openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > Ask Claude Skill

Delegate a task to Claude Code CLI and immediately report the result back in chat. Supports persistent sessions — Claude Code remembers previous context with...

通信与消息

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v1.1.1

统计:⭐ 0 · 175 · 0 current installs · 0 all-time installs

0

安装量(当前) 0

🛡 VirusTotal :可疑 · OpenClaw :良性

Package:0xmanel/ask-claude-skill

安全扫描(ClawHub)

  • VirusTotal :可疑
  • OpenClaw :良性

OpenClaw 评估

The skill does what it says — it runs the Claude Code CLI and returns its output — but it relies on the local claude binary and persistent workspace directories, so you should be aware it will run Claude against files in the chosen workdir (possible sensitive data exposure) and that a hardcoded default path and a bypass flag are used.

目的

Name/description match the implementation: the SKILL.md and run-claude.sh invoke the local `claude` CLI, support --continue for persistent sessions, and capture stdout/stderr. Requiring the claude binary is proportionate to the stated purpose.

说明范围

Instructions explicitly tell the agent to run the claude CLI (or the run-claude.sh wrapper), unset CLAUDECODE, and use `--permission-mode bypassPermissions`. They also document session storage under ~/.claude/projects/ and default workdirs under /home/xmanel. This is coherent with the skill's purpose, but means Claude (via the CLI) will have access to files in the chosen workdir and any session history stored in the user's home — which can exp…

安装机制

No install spec is present (instruction-only plus a small wrapper script). Nothing is downloaded or written by an installer; the only runtime requirement is that the official `claude` CLI is installed and authenticated.

证书

The skill declares no required env vars (appropriate). The instructions and wrapper intentionally unset CLAUDECODE (env -u CLAUDECODE) before launching claude; this is consistent with avoiding nested-session errors but is worth noting. No unexpected credentials or unrelated environment access are requested.

持久

The skill uses Claude Code's persistent sessions (per-directory storage in ~/.claude/projects/) to implement --continue behavior. The skill itself does not request always:true and does not modify other skills. However, persistent sessions mean the agent (via Claude) can access historical session data and files within the workdir, increasing the scope of what is read and potentially reported back.

综合结论

This skill is coherent with its stated purpose, but review these before installing: 1) Confirm you want the agent to run your local `claude` CLI — anything in the chosen workdir can be read by Claude and returned in chat. 2) Check and, if needed, change the default workdir (/home/xmanel/.openclaw/workspace) used by the wrapper so it doesn't point at a directory containing secrets. 3) Be aware the wrapper passes `--permission-mode bypassPermiss…

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Ask Claude Skill」。简介:Delegate a task to Claude Code CLI and immediately report the result back in ch…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/0xmanel/ask-claude-skill/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

---
name: ask-claude
description: >
  Delegate a task to Claude Code CLI and immediately report the result back in chat.
  Supports persistent sessions — Claude Code remembers previous context within the same workdir.
  Use when the user asks to run Claude, delegate a coding task, continue a previous Claude session,
  or any task benefiting from Claude Code's tools (file editing, code analysis, bash, etc.).
  ALWAYS run synchronously and ALWAYS include the result in your reply.
metadata:
  {
    "openclaw": {
      "emoji": "🤖",
      "requires": { "anyBins": ["claude"] }
    }
  }
---

# Ask Claude — Execute & Report (with persistent sessions)

## The Two Modes

### New session (default)
Use when starting a fresh task or new topic.

```bash
OUTPUT=$(/home/xmanel/.openclaw/workspace/run-claude.sh "prompt" "/workdir")
echo "$OUTPUT"
```

### Continue session (--continue)
Use when the user is following up on a previous Claude task in the same workdir.
Claude Code will have full memory of what was done before — files read, edits made, context gathered.

```bash
OUTPUT=$(/home/xmanel/.openclaw/workspace/run-claude.sh --continue "prompt" "/workdir")
echo "$OUTPUT"
```

## When to use --continue

Use `--continue` when the user says things like:
- "agora corrige o que encontraste"
- "continua"
- "e o ficheiro X?"
- "faz o mesmo para..."
- "e agora?"
- "ok, e o erro de..."
- Anything that clearly references what Claude just did

Use a **new session** when:
- New unrelated task
- User says "começa do zero" / "new task" / "esquece o anterior"
- Different workdir/project

## Session storage

Claude Code stores sessions per-directory in `~/.claude/projects/`.
As long as you use the same `workdir`, `--continue` picks up exactly where it left off —
same file context, same conversation history, same edits.

## Direct command (alternative to wrapper)

```bash
# New session
OUTPUT=$(cd /workdir && env -u CLAUDECODE claude --permission-mode bypassPermissions --print "task" 2>&1)

# Continue session
OUTPUT=$(cd /workdir && env -u CLAUDECODE claude --permission-mode bypassPermissions --print --continue "task" 2>&1)
```

## Common workdirs

| Context         | Workdir                                                |
| --------------- | ------------------------------------------------------ |
| General/scripts | `/home/xmanel/.openclaw/workspace`                     |
| Trading         | `/home/xmanel/.openclaw/workspace/hyperliquid`         |

## After receiving output

- Summarize in 1-3 lines what Claude did/found
- Mention files created or edited
- If error: analyze and suggest fix
- If output is long: summarize, offer full output on request