ask-claude

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, continue a previous Claude session, or any task benefiting from Claude Code's tools (file editing, code analysis, bash, etc.).

Safety Notice

This item is sourced from the public archived skills repository. Treat as untrusted until reviewed.

Copy this and send it to your AI assistant to learn

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

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:

  • "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)

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:

  • /home/xmanel/.openclaw/workspace - General scripts
  • /home/xmanel/.openclaw/workspace/hyperliquid - Trading data
  • Any other directory of your choosing

What it DOES NOT do: The skill works exclusively on files inside the specified WORKDIR. You control what workdir to use:

  • /home/xmanel/.openclaw/workspace - General scripts
  • /home/xmanel/.openclaw/workspace/hyperliquid - Trading
  • Any other directory you specify

What it DOES NOT do:

  • ❌ Never access ~/.ssh, ~/.aws, ~/.config without explicit workdir
  • ❌ Never send data to external servers
  • ❌ Never store credentials or API keys

What it DOES:

  • 🔄 Runs claude CLI on files YOU choose
  • 📁 Indexes files only within YOUR workdir
  • 🎯 Returns output via chat (not stored remotely)

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


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
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

browser-cdp

Real Chrome browser automation via CDP Proxy — access pages with full user login state, bypass anti-bot detection, perform interactive operations (click/fill/scroll), extract dynamic JavaScript-rendered content, take screenshots. Triggers (satisfy ANY one): - Target URL is a search results page (Bing/Google/YouTube search) - Static fetch (agent-reach/WebFetch) is blocked by anti-bot (captcha/intercept/empty) - Need to read logged-in user's private content - YouTube, Twitter/X, Xiaohongshu, WeChat public accounts, etc. - Task involves "click", "fill form", "scroll", "drag" - Need screenshot or dynamic-rendered page capture

Archived SourceRecently Updated
Coding

promotion-planning

Develop promotion strategies and discount recommendations based on historical data analysis

Archived SourceRecently Updated
Coding

unified-session

Unify all chat channels into one shared AI session for seamless cross-device continuity. Start a conversation on your laptop, continue from your phone — same context, same memory, zero loss. Use this skill whenever: - User wants multiple messaging channels (DingTalk, Feishu/Lark, Telegram, Discord, WhatsApp, Signal, Slack, webchat) to share one conversation - User mentions "shared session", "cross-device", "multi-channel", "unified session", "continue conversation", "seamless", "context lost", "memory lost", "上下文丢失", "记忆丢失", "多端共享" - User says their bot "forgets" what was said when they switch from one app to another - User asks how to make Telegram/Discord/DingTalk/Feishu/WhatsApp share context with webchat - User wants to switch between desktop and mobile without losing conversation history - User mentions dmScope, session routing, channel isolation, or session merging - User describes wanting to pick up where they left off on a different device or chat app - User complains about having separate conversations on each channel when they only have one agent - Even if the user doesn't use technical terms — if they describe the pain of "switching apps and the AI doesn't remember", this is the skill to use

Archived SourceRecently Updated
Coding

Mapping-Skill

AI/ML 人才搜索、论文作者发现、实验室成员爬取、GitHub 研究者挖掘与个性化招聘邮件生成 skill。只要用户提到查找 AI/ML PhD、研究员、工程师,抓取实验室成员、OpenReview/CVF 会议作者、GitHub 网络研究者,提取主页/Scholar/GitHub/邮箱/研究方向,识别华人、分类去重,或把结果导入飞书多维表格并批量生成邮件,就应该优先使用这个 skill;即使用户没有明确说“使用 Mapping-Skill”,只要任务属于这些复合工作流,也应触发。

Archived SourceRecently Updated