acp-router
できること
このスキルは、AIエージェントに、Claude Code、Cursor、Gemini CLIなどの外部のコーディングツールへタスクを渡し、そのセッションで作業を続ける方法を教えます。OpenClawを使って他のコーディングアシスタントを動かしたい人のためのものです。
使う場面
- ✓OpenClawに、Claude CodeやCursorなど別のコーディングアシスタントでタスクを実行させたいとき。
- ✓外部のコーディングツールですでに動いている以前の作業を続けたいとき。
- ✓コーディングアシスタントに指示を送り、会話を1か所にまとめておきたいとき。
スキルのリンク
https://github.com/openclaw/openclaw/blob/main/extensions/acpx/skills/acp-router/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このバグ修正をOpenClaw経由でClaude Codeに実行させて、終わったら結果を送ってください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは、コーディングツールに合った経路を選びます。OpenClawのセッションか、直接の接続のどちらかです。そのうえで、ターミナルの画面を読むのではなく、適切なツールを通じてセッションを開始または継続します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
ACP Harness Router
When user intent is "run this in Claude Code/Cursor/Copilot/OpenClaw/OpenCode/Gemini/Grok Build/Qwen/Kiro/Kimi/iFlow/Droid/Kilocode (ACP harness)", do not use subagent runtime or PTY scraping. Route through ACP-aware flows.
Codex is special: plain chat/conversation binding and control should use the native Codex app-server plugin (/codex bind, /codex threads, /codex resume) instead of the default ACP path. Use ACP for Codex only when the user explicitly names ACP//acp/acpx, or when spawning background child sessions through sessions_spawn where a native Codex runtime spawn is not available yet.
Intent detection
Trigger this skill when the user asks OpenClaw to:
- run something in Claude Code / Cursor / Copilot / OpenClaw / OpenCode / Gemini / Grok Build / Qwen / Kiro / Kimi / iFlow / Droid / Kilocode
- run Codex explicitly through ACP,
/acp, or acpx - continue existing harness work
- relay instructions to an external coding harness
- keep an external harness conversation in a thread-like conversation
Mandatory preflight for coding-agent thread requests:
- Before creating any thread for ACP harness work, read this skill first in the same turn.
- After reading, follow
OpenClaw ACP runtime pathbelow; do not usemessage(action="thread-create")for ACP harness thread spawn.
Mode selection
Choose one of these paths:
- OpenClaw ACP runtime path (default): use
sessions_spawn/ ACP runtime tools. - Direct
acpxpath (telephone game): useacpxCLI throughexecto drive the harness session directly.
Use direct acpx when one of these is true:
- user explicitly asks for direct
acpxdriving - ACP runtime/plugin path is unavailable or unhealthy
- the task is "just relay prompts to harness" and no OpenClaw ACP lifecycle features are needed
Do not use:
subagentsruntime for harness control/acpcommand delegation as a requirement for the user- PTY scraping of supported ACP harness CLIs when
acpxis available
AgentId mapping
Use these defaults when user names a harness directly:
- "openclaw" ->
agentId: "openclaw" - "claude" or "claude code" ->
agentId: "claude" - "codex" ->
agentId: "codex"only for explicit ACP/acpx requests or background ACP runtime spawn - "copilot" or "github copilot" ->
agentId: "copilot" - "cursor" or "cursor cli" ->
agentId: "cursor" - "droid" or "factory droid" ->
agentId: "droid" - "opencode" ->
agentId: "opencode" - "gemini" or "gemini cli" ->
agentId: "gemini" - "grok build" or "grok-build" ->
agentId: "grok-build" - "iflow" ->
agentId: "iflow" - "kilocode" ->
agentId: "kilocode" - "kimi" or "kimi cli" ->
agentId: "kimi" - "kiro" or "kiro cli" ->
agentId: "kiro" - "qwen" or "qwen code" ->
agentId: "qwen"
These defaults match current acpx built-in aliases.
grok-build is an ACPX agent target, not the xAI model id
xai/grok-build-0.1. Route grok-build through agentId; use the fully
qualified xAI ref only in an OpenClaw model field.
If policy rejects the chosen id, report the policy error clearly and ask for the allowed ACP agent id.
OpenClaw ACP runtime path
Required behavior:
- For ACP harness thread spawn requests, read this skill first in the same turn before calling tools.
- Use
sessions_spawnwith:runtime: "acp"thread: truemode: "session"(unless user explicitly wants one-shot)
- For ACP harness thread creation, do not use
messagewithaction=thread-create;sessions_spawnis the only thread-create path. - Put requested work in
taskso the ACP session gets it immediately. - Set
agentIdexplicitly unless ACP default agent is known. - Do not ask user to run slash commands or CLI when this path works directly.
Example:
User: "spawn a test codex ACP session in thread and tell it to say hi"
Call:
{
"task": "Say hi.",
"runtime": "acp",
"agentId": "codex",
"thread": true,
"mode": "session"
}
Thread spawn recovery policy
When the user asks to start a coding harness in a thread, treat that as an ACP runtime request and try to satisfy it end-to-end.
Required behavior when ACP backend is unavailable:
- Do not immediately ask the user to pick an alternate path.
- First attempt automatic local repair:
- check that plugin-local pinned acpx is installed in the ACPX plugin package
- verify
${ACPX_CMD} --version
- After reinstall/repair, restart the gateway and explicitly offer to run that restart for the
よくある質問
Codexでも使えますか?
Codexには独自のネイティブなバインディング経路があるため、このスキルでは、ACPやacpxを特に依頼された場合にのみCodexにACPを使います。
コーディング作業用の新しいスレッドは、どのように作成しますか?
コーディングエージェントのスレッドには、汎用のスレッドコマンドではなく、セッションツールを使ってスレッドを作成します。
どのコーディングツールに対応していますか?
Claude Code、Cursor、Copilot、OpenCode、Gemini CLI、Qwenなど、多くのツールが挙げられています。
詳細
作者による元の説明
Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.
repo: openclaw/openclaw
人気
- GitHubのスター
- 394k
- ランキング
- #13
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
discord-user-post
394kエージェントが、承認済みのお知らせをDiscordのデスクトップアプリからあなたとして投稿できるよう支援します。投稿前に正確なチャンネルを確認します。
discrawl
394k保存済みのローカルなDiscordメッセージのアーカイブを検索して要約し、その新しさを確認し、ダイレクトメッセージを読めるようエージェントを支援します。
gitcrawl
394k保存されたGitHubのイシューとプルリクエストのアーカイブを検索し、重複をまとめ、GitHub上の現在の状態を確認するようエージェントを支援します。
graincrawl
394k保存されたGranolaのミーティングメモとトランスクリプトを検索し、その新しさを確認して、一定期間の件数を数えるようエージェントを支援します。
似ているスキル
using-superpowers
311k作業を始める前に、適切なスキルを見つけて使えるようにし、そのタスクの種類で実証された手順に従うよう、エージェントを支援します。
ask-matt
310kエージェントが、コーディングスキルのセットへの案内役となり、アイデアから出荷されるコードまでの、あなたの状況に合った次のスキルを示すようにします。
retro
310kコーディングのセッションを振り返り、ナビゲーションの改善や自動チェックの追加など、プロジェクトのセットアップの変更を提案して、将来のエージェントの実行がより円滑になるようにします。