multi-plan
Create a multi-model implementation plan without modifying production code.
от jaswanthsanjay88★ 24 звезды на GitHub
Установить multi-plan в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Plan - Multi-Model Collaborative Planning
Multi-model collaborative planning - Context retrieval + Dual-model analysis → Generate step-by-step implementation plan.
Prerequisite: Requires the external
ccg-workflowruntime, which is not part of the base ECC install. Initialize it withnpx ccg-workflowto provision~/.claude/bin/codeagent-wrapperand the~/.claude/.ccg/prompts/*role files this command depends on. Without that runtime, this command will not run correctly.
$ARGUMENTS
Core Protocols
- Language Protocol: Use English when interacting with tools/models, communicate with user in their language
- Mandatory Parallel: Codex/Gemini calls MUST use
run_in_background: true(including single model calls, to avoid blocking main thread) - Code Sovereignty: External models have zero filesystem write access, all modifications by Claude
- Stop-Loss Mechanism: Do not proceed to next phase until current phase output is validated
- Planning Only: This command allows reading context and writing to
.claude/plan/*plan files, but NEVER modify production code
Multi-Model Call Specification
Call Syntax (parallel: use run_in_background: true):
Bash({
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"$PWD\" <<'EOF'
ROLE_FILE: <role prompt path>
<TASK>
Requirement: <enhanced requirement>
Context: <retrieved project context>
</TASK>
OUTPUT: Step-by-step implementation plan with pseudo-code. DO NOT modify any files.
EOF",
run_in_background: true,
timeout: 3600000,
description: "Brief description"
})
Model Parameter Notes:
{{GEMINI_MODEL_FLAG}}: When using--backend gemini, replace with--gemini-model gemini-3-pro-preview(note trailing space); use empty string for codex
Role Prompts:
| Phase | Codex | Gemini |
|---|---|---|
| Analysis | ~/.claude/.ccg/prompts/codex/analyzer.md |
~/.claude/.ccg/prompts/gemini/analyzer.md |
| Planning | ~/.claude/.ccg/prompts/codex/architect.md |
~/.claude/.ccg/prompts/gemini/architect.md |
Session Reuse: Each call returns SESSION_ID: xxx (typically output by wrapper), MUST save for subsequent /ccg:execute use.
Wait for Background Tasks (max timeout 600000ms = 10 minutes):
TaskOutput({ task_id: "<task_id>", block: true, timeout: 600000 })
IMPORTANT:
- Must specify
timeout: 600000, otherwise default 30 seconds will cause premature timeout - If still incomplete after 10 minutes, continue polling with
TaskOutput, NEVER kill the process - If waiting is skipped due to timeout, MUST call
AskUserQuestionto ask user whether to continue waiting or kill task
Execution Workflow
Planning Task: $ARGUMENTS
Phase 1: Full Context Retrieval
[Mode: Research]
1.1 Prompt Enhancement (MUST execute first)
If ace-tool MCP is available, call mcp__ace-tool__enhance_prompt tool:
mcp__ace-tool__enhance_prompt({
prompt: "$ARGUMENTS",
conversation_history: "<last 5-10 conversation turns>",
project_root_path: "$PWD"
})
Wait for enhanced prompt, replace original $ARGUMENTS with enhanced result for all subsequent phases.
If ace-tool MCP is NOT available: Skip this step and use the original $ARGUMENTS as-is for all subsequent phases.
1.2 Context Retrieval
If ace-tool MCP is available, call mcp__ace-tool__search_context tool:
mcp__ace-tool__search_context({
query: "<semantic query based on enhanced requirement>",
project_root_path: "$PWD"
})
- Build semantic query using natural language (Where/What/How)
- NEVER answer based on assumptions
If ace-tool MCP is NOT available, use Claude Code built-in tools as fallback:
- Glob: Find relevant files by pattern (e.g.,
Glob("**/*.ts"),Glob("src/**/*.py")) - Grep: Search for key symbols, function names, class definitions (e.g.,
Grep("className|functionName")) - Read: Read the discovered files to gather complete context
- Task (Explore agent): For deeper exploration, use
Taskwithsubagent_type: "Explore"to search across the codebase
1.3 Completeness Check
- Must obtain complete definitions and signatures for relevant classes, functions, variables
- If context insufficient, trigger recursive retrieval
- Prioritize output: entry file + line number + key symbol name; add minimal code snippets only when necessary to resolve ambiguity
1.4 Requirement Alignment
- If requirements still have ambiguity, MUST output guiding questions for user
- Until requirement boundaries are clear (no omissions, no redundancy)
Phase 2: Multi-Model Collaborative Analysis
[Mode: Analysis]
2.1 Distribute Inputs
Parallel call Codex and Gemini (run_in_background: true):
Distribute original requirement (without preset opinions) to both models:
- Codex Backend Analysis:
- ROLE_FILE: `~/
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл multi-plan?
Create a multi-model implementation plan without modifying production code.
Как установить скилл multi-plan?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл multi-plan запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis 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…