Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

claw2claudeclaw2claude 命令行

Agent Skill

claw2claude 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,849

周安装

162

GitHub Stars

公开资料未说明

下载量

1,348
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:claw2claude(claw2claude 命令行)
来源仓库:https://github.com/is-xins-xiaobai/claw2claude
安装命令:
openclaw skills install claw2claude
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install claw2claude

简介

claw2claude 用于将任务委派给本地 Claude Code CLI 处理。

  • 适合需要更强模型推理或现有项目深度协作时使用。
  • 通过 clawhub 安装,在检测到特定请求时自动激活。
  • 安装前需确认本地 Claude 环境配置、API 密钥有效性及相关资源占用。
  • 建议仅在必要时触发以避免不必要的本地计算开销。

SKILL.md

name
claw2claude
description
Delegates tasks to the local Claude Code CLI. Activate immediately when the user asks for Claude, requests a stronger model, or mentions an existing project path. Ask the user first whether to create a Claude project when: the task involves building something from scratch, spans multiple parts, requires multiple rounds of iteration, or the user is expressing a direction rather than a concrete single question. Applies to code AND non-code work (business plans, product specs, docs, etc.). Do not start answering directly — ask first.
license
MIT
metadata
openclaw
os
darwin
emoji
🦞→🤖
requires
bins
reads
writes
background_processes
gateway_tools_used
config_changes_required
permissions
claude_flags
--dangerously-skip-permissions" # Claude runs fully automated; no interactive prompts
rationale
>-

claw2claude — OpenClaw Orchestrates Claude Code

Delegates the user's task to the local claude CLI. You (OpenClaw AI) are the orchestrator. Claude Code is the executor.


Security & Transparency

This skill has broader-than-average system access because it bridges two runtimes (OpenClaw and Claude Code). Everything it does is documented here and in the metadata above.

What this skill accesses

ResourceWhyAccess type
~/.openclaw/openclaw.jsonGateway port + auth token, so notifier.py can POST results back to the user's channelRead-only
~/.openclaw/credentials/JWT expiry check before Claude starts — warns if token is stale; never modifiesRead-only
~/.openclaw/agents/main/sessions/sessions.jsonFind the user's most recently active channel so results go to the right placeRead-only
<project_path>/Claude Code working directory; all file changes are intentional outputs of the delegated taskRead + write
<skill_dir>/logs/Monthly invocation log (timestamp, mode, project, exit status, no prompt content beyond first 200 chars)Write

Background processes

Two scripts run detached from the main AI turn:

  • notifier.py — starts when Claude starts; polls every 2 s for Claude's completion file; sends chunked results to the user's channel via the OpenClaw gateway message tool; exits immediately after delivery (or after 35 min if Claude never finishes).
  • heartbeat.py — used in background mode only; monitors the background Claude PID; sends a notification when Claude exits. Not used in discuss, execute, or continue modes.

Neither process modifies OpenClaw config, reads credentials a second time, or persists beyond the task lifecycle.

--dangerously-skip-permissions usage

All Claude sessions are launched with this flag. It is necessary because Claude Code is invoked non-interactively (triggered by a chat message, not a terminal), so it cannot display permission prompts. The flag's scope is limited to the project directory — Claude is not given broader system access than a normal Claude Code session would have.

If you prefer interactive permission prompts, run Claude Code directly in a terminal rather than through this skill.

Required openclaw.json changes

Two config changes must be applied before the skill works. These are opt-in — the skill cannot make these changes itself:

{
  "gateway": {
    "tools": { "allow": ["message"] }
  },
  "tools": {
    "sessions": { "visibility": "all" }
  }
}
  • gateway.tools.allow: ["message"] — lets notifier.py call the gateway message tool from outside an AI turn to deliver results
  • tools.sessions.visibility: "all" — lets the notifier target the user's channel session (which differs from the system session running Claude)

See README.md for the full setup guide.


Activation

A. Activate immediately (any one condition is enough)

ConditionExamples
User explicitly asks for Claude"use Claude for this", "let Claude handle it", "hand it to Claude"
User requests a stronger / smarter model"use a better model", "switch to a more capable AI"
Task involves an existing Claude Code projectUser mentions a path that contains .openclaw-claude-session.json
User explicitly mentions claude CLI / Claude Code"run it with claude", "open a Claude Code session"

B. Ask first (when you judge the task has these traits)

Before starting, ask the user whether to create a Claude project if any of the following apply:

TraitHow to judge
It's an idea or directionUser says "I want to build/design/plan/write a…" — no concrete single question yet
Multiple parts involvedFeature modules, document chapters, plan phases — not answerable in one reply
Multiple iterations expectedDiscuss → revise → confirm loop, or clearly not a one-shot Q&A
A clear project concept existsApp, system, business plan, product spec, docs, course outline, campaign plan, etc.
User already has related materialMentions an existing directory, codebase, docs, or prior discussion

Fixed phrasing to use when asking:

This looks like a task that will need multiple rounds of discussion or iteration. Would you like to set up a Claude Code project for this? Benefits: - Full conversation history and context that persists across sessions - Pick up where you left off at any time - All files, plans, and code kept in one working directory [Yes, create project] / [No, handle it directly]
  • User says yes: ask for (or suggest) a project path, then launch in discuss or execute mode
  • User says no: handle it yourself; do not invoke this skill

If none of the above conditions apply, handle the request yourself. Do not invoke this skill.


Four Modes

ModeWhen to useClaude permissions
discussRequirements are unclear; user wants to explore options or plan architecture--dangerously-skip-permissions (all operations allowed)
executeTask is clear; user wants code written or changed--dangerously-skip-permissions (fully automatic)
continueResuming the previous session in the same modeInherits the previous mode's permissions
backgroundUser wants Claude to run without waiting for the resultSame as execute (--dangerously-skip-permissions) — always runs as execute, cannot use discuss or continue

Claude has a 30-minute timeout. If it expires, the task is aborted — split it into smaller subtasks and retry.


Step 1: Determine the mode

What the user saysMode
"Help me think through how to design…" / "What are the options?" / "Analyse this…"discuss
"Write…" / "Implement…" / "Create…" / "Refactor…"execute
"Continue" / "Keep going" / "Do what we discussed"continue
After a discussion: "OK, let's build it" / "Go with that plan"execute ← important!
"Run it in the background" / "Don't wait, just let it run"background
⚠️ Use execute, not continue, when switching from discussion to implementation. execute always resumes the last session (--resume) if one exists, whether the previous mode was discuss or execute. This keeps all messages to the same project in a single continuous session. continue also resumes the same session but is reserved for explicit "pick up where we left off" requests. If the user says "continue" but also adds a new direction, use execute mode with the full structured prompt — not continue.

Step 2: Confirm the project path (critical — prevents session cross-contamination)

The registry is printed to stderr automatically each time launch.sh runs — you do not need a separate call unless you need to inspect it *before* deciding which project to use. If unsure, run:

python3 "$SKILL_DIR/scripts/projects.py" list
SituationAction
User specified a path explicitlyUse it directly
Registry is empty — brand new projectGenerate an English directory name from the task; tell the user: "I'll create the project at ~/Projects/<name> — let me know if you'd like a different location"
Registry has exactly one projectUse it by default; tell the user: "Continuing with [project name]"
Registry has multiple projects + user says "continue" but it's ambiguousList them and ask the user to choose. Never guess.
Registry has multiple projects + task implies a specific oneInfer and confirm: "Did you mean [project name]?"

Step 3: Build the prompt for Claude

Expand the user's raw description into a structured instruction that Claude can execute efficiently.

discuss mode — instruct Claude to act as an architecture advisor, suggestions only, no code:

You are an experienced software architect. The user wants to discuss the following:

<user's original request>

Ask clarifying questions, suggest architecture patterns and tech stack options, identify risks.
Do NOT write actual implementation code unless the user explicitly asks for a short example.

execute mode — instruct Claude to complete the task directly:

You are a professional software engineer. Complete the following task:

Goal: <clear description of the end result>
Tech stack: <language/framework — infer if not specified>

Requirements:
- Clean, commented code following best practices
- Proper error handling and edge case coverage
- <any specific requirements the user emphasised>

<list concrete steps if applicable; omit otherwise>

continue mode — pass the user's new instruction directly; Claude already has the full prior context:

<user's new instruction verbatim>

Step 4: Launch and notify (required)

Before invoking Claude Code, tell the user it's starting (say it in your reply — no extra tool needed): "🚀 Launching Claude Code for [project name] — [discuss/execute] mode. This will take a few minutes…"

Then run with the exec tool:

"$SKILL_DIR/scripts/launch.sh" "<project_path>" "<mode>" "<prompt>"
  • project_path: absolute path — the script creates the directory and runs git init automatically
  • mode: discuss / execute / continue / background
  • prompt: the structured instruction built in Step 3. If the prompt contains double quotes, escape them as \" or wrap in single quotes.
⚠️ Never pass a 4th argument. The session key is always auto-detected by launch.sh. Passing it manually risks arg-parse corruption: when the prompt contains newlines or special characters, the shell may miscount positional arguments and assign prompt content to $4, sending results to the wrong channel.

background mode: the script returns immediately; Claude runs in the background. Tell the user: "🚀 Claude Code is running in the background. You'll be notified automatically when it's done."


Step 5: Deliver the result

The exec result already contains a structured summary written by Claude (extracted from the ---CHAT_SUMMARY--- block). The full output is in the log file.

The exec call may have taken several minutes and the channel connection may be stale. Always use the message tool explicitly to guarantee delivery — do not rely on turn-response auto-routing.

Chunked delivery (required — do not send in one message)

Split the summary into chunks and send each as a separate message call. Rules:

  1. First message: one-line confirmation only → "✅ Claude Code finished · [project name]"
  2. Body chunks: split the summary by section headings (##, ###) or at natural paragraph breaks — whichever comes first. Each chunk must be ≤ 500 characters. If a single paragraph exceeds 500 characters, break it at the nearest sentence boundary.
  3. Last message: footer line only →

- discuss mode: omit the footer — do not add any fixed closing line; let the summary speak for itself and ask a natural follow-up question if appropriate - execute mode: "Please verify the result in your project directory." - on timeout: "⏰ Task timed out (>30 min) — please split it into smaller subtasks and retry."

Do not rewrite or expand the summary — Claude already wrote it concisely. Send each chunk verbatim.

Example (summary has 3 sections):

message("✅ Claude Code finished · myapp")
message("## What was done\
Added JWT middleware to …")
message("## Files changed\
- src/auth.ts\
- src/routes …")
message("## Next steps\
Run `npm test` to verify …")
message("Please verify the result in your project directory.")

Examples

User: I want to build a video transcription tool but I'm not sure which tech stack to use
→ discuss mode → confirm directory ~/Projects/video-transcriber
→ Claude analyses options

User: OK, let's go with Whisper + FastAPI — start building
→ execute mode (discuss→execute, carries over context via --resume)
→ Claude implements directly based on the discussion, no need to re-explain

User: Add JWT authentication to ~/Projects/myapp
→ execute mode, path is explicit

User: Continue
→ registry has two projects → list them and ask the user to choose

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

73.52%
按下载量换算991

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills