mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-12 02:37:45 +08:00
主要变更: - 模板重命名:采用优先级前缀(01-通用, 02-专用, 03-领域特定) - 目录调整:bug-diagnosis从development移至analysis - 引用更新:5个命令文件中21处模板引用更新为新路径 - 路径统一:所有引用统一使用完整路径格式 模板变更详情: - analysis/:8个模板(01-trace-code-execution, 01-diagnose-bug-root-cause等) - development/:5个模板(02-implement-feature, 02-refactor-codebase等) - planning/:5个模板(01-plan-architecture-design, 02-breakdown-task-steps等) - memory/:1个模板(02-document-module-structure) 命令文件更新: - cli/mode/bug-diagnosis.md(6处引用) - cli/mode/code-analysis.md(6处引用) - cli/mode/plan.md(6处引用) - task/execute.md(1处引用) - workflow/tools/test-task-generate.md(2处引用) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
3.6 KiB
3.6 KiB
name, description, argument-hint, allowed-tools
| name | description | argument-hint | allowed-tools |
|---|---|---|---|
| plan | Project planning and architecture analysis using CLI tools | [--agent] [--tool codex|gemini|qwen] [--enhance] [--cd path] topic | SlashCommand(*), Bash(*), Task(*) |
CLI Mode: Plan (/cli:mode:plan)
Purpose
Strategic software architecture planning template (~/.claude/workflows/cli-templates/prompts/planning/01-plan-architecture-design.txt).
Tool Selection:
- gemini (default) - Best for architecture planning
- qwen - Fallback when Gemini unavailable
- codex - Alternative for implementation planning
Parameters
--tool <gemini|qwen|codex>- Tool selection (default: gemini)--agent- Use cli-execution-agent for automated context discovery--enhance- Enhance task with/enhance-prompt--cd "path"- Target directory for focused planning<planning-task>(Required) - Architecture planning task or modification requirements
Tool Usage
Gemini (Primary):
--tool gemini # or omit (default)
Qwen (Fallback):
--tool qwen
Codex (Alternative):
--tool codex
Execution Flow
Standard Mode
- Parse tool selection (default: gemini)
- Optional: enhance with
/enhance-prompt - Detect directory from
--cdor auto-infer - Build command with template
- Execute planning (read-only, no code generation)
- Save to
.workflow/WFS-[id]/.chat/
Agent Mode (--agent)
Delegates to agent for intelligent planning:
Task(
subagent_type="cli-execution-agent",
description="Architecture modification planning",
prompt=`
Task: ${planning_task}
Mode: architecture-planning
Tool: ${tool_flag || 'auto-select'} // gemini|qwen|codex
Directory: ${cd_path || 'auto-detect'}
Template: ~/.claude/workflows/cli-templates/prompts/planning/01-plan-architecture-design.txt
Agent responsibilities:
1. Context Discovery:
- Analyze current architecture
- Identify affected components
- Map dependencies and impacts
2. CLI Command Generation:
- Build Gemini/Qwen/Codex command
- Include architecture context
- Apply ~/.claude/workflows/cli-templates/prompts/planning/01-plan-architecture-design.txt template
3. Execution & Output:
- Execute strategic planning
- Generate modification plan
- Save to .workflow/.chat/
`
)
Core Rules
- Planning only: Creates modification plans, does NOT generate code
- Template: Uses
~/.claude/workflows/cli-templates/prompts/planning/01-plan-architecture-design.txtfor strategic planning - Output: Saves to
.workflow/WFS-[id]/.chat/
CLI Command Templates
Gemini/Qwen (default, planning only):
cd [dir] && gemini -p "
PURPOSE: [goal]
TASK: Architecture planning
MODE: analysis
CONTEXT: @**/*
EXPECTED: Modification plan, impact analysis
RULES: $(cat ~/.claude/workflows/cli-templates/prompts/planning/01-plan-architecture-design.txt)
"
# Qwen: Replace 'gemini' with 'qwen'
Codex (planning + implementation guidance):
codex -C [dir] --full-auto exec "
PURPOSE: [goal]
TASK: Architecture planning
MODE: analysis
CONTEXT: @**/*
EXPECTED: Plan, implementation roadmap
RULES: $(cat ~/.claude/workflows/cli-templates/prompts/planning/01-plan-architecture-design.txt)
" -m gpt-5 --skip-git-repo-check -s danger-full-access
Output
- With session:
.workflow/WFS-[id]/.chat/plan-[timestamp].md - No session:
.workflow/.scratchpad/plan-[desc]-[timestamp].md
Notes
- Template:
~/.claude/workflows/cli-templates/prompts/planning/01-plan-architecture-design.txt - See
intelligent-tools-strategy.mdfor detailed tool usage