← 返回 Skills 市场
0xmanel

Ask Claude Skill

作者 0xManel · GitHub ↗ · v1.1.1 · MIT-0
cross-platform ⚠ suspicious
360
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (SKILL.md)

Ask Claude — Execute & Report (with persistent sessions)

The Two Modes

New session (default)

Use when starting a fresh task or new topic.

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.

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)

# 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
安全使用建议
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 bypassPermissions` to the CLI — verify what that flag does for your installed claude CLI/version. 4) Install and trust the official Claude Code CLI from its vendor; verify authentication (claude login) is performed separately. If you want to limit risk, run the skill in an isolated workdir with no sensitive files or avoid using --continue/persistent sessions.
功能分析
Type: OpenClaw Skill Name: ask-claude-skill Version: 1.1.1 The skill automates the Claude Code CLI using the `--permission-mode bypassPermissions` flag in `run-claude.sh` and `SKILL.md`, which allows the sub-agent to execute arbitrary shell commands and file modifications without user confirmation. It contains hardcoded absolute paths for a specific user (`/home/xmanel`) and explicitly suggests a workdir for 'Trading' (`hyperliquid`), which is a high-value target. While there is no evidence of intentional exfiltration or malware, the bypass of security prompts combined with access to sensitive directories poses a high risk of unintended autonomous actions or exploitation via prompt injection.
能力评估
Purpose & Capability
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.
Instruction Scope
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 expose secrets from those directories if present.
Install Mechanism
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.
Credentials
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.
Persistence & Privilege
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ask-claude-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ask-claude-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.1
Updated README with full documentation: feature table, persistent sessions explained, v1.0.0 vs v1.1.0 changelog, usage examples with continue/new session decision logic.
v1.1.0
- Adds persistent session support: Claude Code now remembers previous context within the same workdir, enabling follow-ups using --continue. - New run-claude.sh wrapper script added for handling session management. - Updated usage instructions and trigger phrases to explain when to start a new session or continue a previous one. - Output handling guidance improved: summarize results, mention files affected, and advise on errors. - Documentation reorganized for clarity on modes, session storage, and common workdirs.
v1.0.0
- Initial release of the ask-claude skill. - Allows users to delegate code execution and analysis tasks to the local Claude Code CLI directly from OpenClaw. - Always runs tasks synchronously and returns the full result in chat, following a strict output pattern. - error handling, file edits, and long outputs are explicitly addressed in the usage rules. - Skill auto-triggers on various task delegation phrases like "ask claude to..." or "use claude code to...".
元数据
Slug ask-claude-skill
版本 1.1.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 360 次。

如何安装 Ask Claude Skill?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install ask-claude-skill」即可一键安装,无需额外配置。

Ask Claude Skill 是免费的吗?

是的,Ask Claude Skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Ask Claude Skill 支持哪些平台?

Ask Claude Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Ask Claude Skill?

由 0xManel(@0xmanel)开发并维护,当前版本 v1.1.1。

💬 留言讨论