Ask claude

From dvcrn/openclaw-skills-marketplace · View interactive version

Ask claude is an AI agent skill from the GitHub repository dvcrn/openclaw-skills-marketplace. Delegate a task to Claude Code CLI and immediately report the result back in chat. Supports persistent sessions with full context memory. Safe execution: no data exfiltration, no external calls, file operations confined to workspace. Use when the user asks to run Claude, delegate a coding task, cont

How to use this skill

Skill file

Ask Claude — Execute & Report (with persistent sessions)

How to Run

ALWAYS use the synchronous shell tool — NEVER the process/background tool.

The command takes 30–120 seconds. Wait for it. Do NOT launch it as a background process.

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:

Use a new session when:

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)

Security & Privacy

Workspace-Only Access (User-Controlled):

The skill operates exclusively on files inside the WORKDIR you specify. You have full control over what gets exposed:

What it DOES NOT do:

The skill works exclusively on files inside the specified WORKDIR. You control what workdir to use:

What it DOES NOT do:

What it DOES:

Technical Note:

Uses --permission-mode bypassPermissions for technical reasons but does NOT require sudo/root access.


Common workdirs

| Context | Workdir |

| --------------- | ------------------------------------------------------ |

| General/scripts | /home/xmanel/.openclaw/workspace |

| Trading | /home/xmanel/.openclaw/workspace/hyperliquid |

After receiving output

| Context | Workdir |

| --------------- | ------------------------------------------------------ |

| General/scripts | /home/xmanel/.openclaw/workspace |

| Trading | /home/xmanel/.openclaw/workspace/hyperliquid |

After receiving output

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.