ask-claude

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.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ask-claude" with this command: npx skills add 0xmanel/ask-claude-skill

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

ContextWorkdir
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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

x402-development

Build internet-native payments with the x402 open protocol (x402 Foundation, Apache-2.0). Use when developing paid APIs, paywalled content, AI agent payment...

Registry SourceRecently Updated
Coding

Proxyclick

Proxyclick integration. Manage data, records, and automate workflows. Use when the user wants to interact with Proxyclick data.

Registry SourceRecently Updated
Coding

react-typescript

Build React 19 applications with TypeScript. Covers Actions, Activity, use() hook, React Compiler, ref-as-prop, useEffectEvent, and strict TypeScript pattern...

Registry SourceRecently Updated
Coding

effect-ts

Effect-TS (Effect) comprehensive development guide for TypeScript. Use when building, debugging, reviewing, or generating Effect code. Covers typed error mod...

Registry SourceRecently Updated
1980Profile unavailable