cli-claude-code
БесплатноБез исполняемых скриптовНе проверенClaude Code CLI executor for Anthropic-backed reasoning, edits, reviews, and structured cross-AI handoff.
от MichelKerkmeester★ 40 звёзд на GitHubОб этом скилле
Claude Code CLI Orchestrator - Cross-AI Task Delegation
CRITICAL — SELF-INVOCATION PROHIBITED
This skill dispatches to the Anthropic CLI binary (
claude). If the agent currently reading this skill is itself running inside Claude Code (detection signals listed inROUTER.md), the skill MUST refuse to load and return the documented error message instead of generating anyclaudeinvocation.A running CLI skill never dispatches itself. The cli-X skills are for cross-AI delegation only — never self-invocation.
Orchestrate Anthropic's Claude Code CLI from external AI assistants (OpenCode, Copilot, etc.) for tasks that benefit from deep extended thinking, surgical code editing, structured output with JSON schema validation, agent delegation, or persistent memory context.
Core Principle: The calling AI stays the conductor. Delegate to Claude Code for what it does best — deep reasoning, precise code editing, and structured analysis. Validate and integrate the output.
1. WHEN TO USE
Activation Triggers
- Deep Reasoning — extended-thinking architectural decisions, multi-dimensional trade-off analysis, step-by-step algorithm design, root-cause analysis of subtle bugs.
- Code Editing — surgical diff-based edits, pattern-preserving refactors, and multi-file coordinated changes.
- Structured Output —
--json-schema-validated output, machine-readable analysis, guaranteed-structure data extraction, pipeline integration. - Code Review — second-AI security audits, extended-thinking architecture review, cross-AI validation, pre-merge quality gates.
- Agent-Delegated Tasks — specialized
.claude/agents/*.mdmatches,--permission-mode planread-only exploration,@ai-councilplanning, session continuity (--continue,--resume). - Background Processing — long-running offloaded analysis, parallel generation/docs, batch processing with
--max-budget-usdcost control.
When NOT to Use
- You ARE Claude Code already. If your runtime is Claude Code (detection signal:
$CLAUDECODEenv var set,claudein process ancestry, or~/.claude/state/<id>/lockpresent), this skill refuses to load. Self-invocation creates a circular dispatch loop and burns tokens for no value. The cli-X family is exclusively for cross-AI delegation.- Run the work natively instead. Dispatch a subagent with the Agent tool. Its
modelparameter picks the model, and it takes no effort setting. - Effort comes from the session. A subagent runs at the session's effort level unless its agent definition sets
effort(low,medium,high,xhighormax), so a definition is needed only for a level different from the session's, such as~/.claude/agents/opus-xhigh.md. A new or edited definition loads within seconds, with no restart. - Source: the
effortrow of the frontmatter table at code.claude.com/docs/en/sub-agents; where this summary and that page differ, the page wins.
- Run the work natively instead. Dispatch a subagent with the Agent tool. Its
- Simple, quick tasks where CLI overhead is not worth it.
- Tasks requiring interactive terminal UI (use
claudedirectly instead). - Context already loaded and understood by the calling AI.
- Tasks where Claude Code CLI is not installed.
- Real-time web search (Claude Code has no
--searchflag — use OpenCode).
2. SMART ROUTING
The cli-external-orchestration hub routes an Anthropic dispatch here: the prompt names Claude Code, the Claude CLI, extended thinking or a deep-reasoning handoff, and the hub's cli-claude-code mode signal selects this packet.
A session already running inside Claude Code never routes here; the self-invocation guard refuses it.
The hub ROUTER.md names the two leaves a dispatch starts from.
Inside this packet the ALWAYS tier loads first: references/cli-reference.md for the flags, models and permission modes, and assets/prompt-quality-card.md for the fast-path prompt framework.
Intent-mapped references load after those, one set per intent.
Read ROUTER.md before selecting skill-local resources; open only the matched files.
3. HOW IT WORKS
Execution Ownership
This packet owns user-facing routing, the command -v claude availability probe, prompt construction and the self-invocation guard.
For research and review lineages, the shared deep-loop runtime at ../../system-deep-loop/runtime/scripts/fanout-run.cjs owns process construction and execution, using executor kind cli-claude-code.
That runner accepts only the research and review loop types, so a single build or doc dispatch uses the child dispatch envelope in providers-and-models.md §5.
Do not add a packet-local wrapper, spawn path or command builder. Direct claude -p snippets below are operator reference and manual-testing examples.
Prerequisites
# Verify installation
command -v claude || echo "Not installed. Run: npm
Установить cli-claude-code в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadGlobGrepВложенные файлы
FAQ
Что делает скилл cli-claude-code?
Claude Code CLI executor for Anthropic-backed reasoning, edits, reviews, and structured cross-AI handoff.
Как установить скилл cli-claude-code?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cli-claude-code запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic