mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-13 02:41:50 +08:00
Update all command files to use the new standardized directory structure:
- Active sessions: .workflow/active/WFS-{session}/
- Archived sessions: .workflow/archives/WFS-{session}/
Changes:
- Updated workflow-architecture.md with new directory structure (active/ not sessions/)
- Fixed 31 path references across 12 command files
- Verified compliance across all 73 command files using parallel agent checks
- Confirmed directory naming: active/ (adjective, no plural) + archives/ (noun plural)
Files modified:
- .claude/workflows/workflow-architecture.md (directory structure definition)
- .claude/commands/cli/*.md (8 files: analyze, chat, codex-execute, discuss-plan, execute, mode/*)
- .claude/commands/memory/docs.md (4 path fixes)
- .claude/commands/task/*.md (execute, replan)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
94 lines
2.9 KiB
Markdown
94 lines
2.9 KiB
Markdown
---
|
|
name: plan
|
|
description: Read-only architecture planning using Gemini/Qwen/Codex with strategic planning template for modification plans and impact analysis
|
|
argument-hint: "[--tool codex|gemini|qwen] [--enhance] [--cd path] topic"
|
|
allowed-tools: 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)
|
|
- `--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):
|
|
```bash
|
|
--tool gemini # or omit (default)
|
|
```
|
|
|
|
**Qwen** (Fallback):
|
|
```bash
|
|
--tool qwen
|
|
```
|
|
|
|
**Codex** (Alternative):
|
|
```bash
|
|
--tool codex
|
|
```
|
|
|
|
## Execution Flow
|
|
|
|
Uses **cli-execution-agent** (default) for automated planning:
|
|
|
|
```javascript
|
|
Task(
|
|
subagent_type="cli-execution-agent",
|
|
description="Architecture planning with impact analysis",
|
|
prompt=`
|
|
Task: ${planning_task}
|
|
Mode: plan
|
|
Tool: ${tool_flag || 'gemini'}
|
|
Directory: ${cd_path || '.'}
|
|
Enhance: ${enhance_flag}
|
|
Template: ~/.claude/workflows/cli-templates/prompts/planning/01-plan-architecture-design.txt
|
|
|
|
Execute strategic architecture planning:
|
|
|
|
1. Context Discovery:
|
|
- Analyze current architecture structure
|
|
- Identify affected components and modules
|
|
- Map dependencies and integration points
|
|
- Assess modification impacts (scope, complexity, risks)
|
|
|
|
2. Planning Analysis:
|
|
- Apply strategic planning template
|
|
- Generate modification plan with phases
|
|
- Document architectural decisions and rationale
|
|
- Identify potential conflicts and mitigation strategies
|
|
|
|
3. CLI Command Construction:
|
|
- Tool: ${tool_flag || 'gemini'} (qwen fallback, codex for implementation guidance)
|
|
- Directory: cd ${cd_path || '.'} &&
|
|
- Context: @**/* (full architecture context)
|
|
- Mode: analysis (read-only, no code generation)
|
|
- Template: planning/01-plan-architecture-design.txt
|
|
|
|
4. Output Generation:
|
|
- Strategic modification plan
|
|
- Impact analysis and risk assessment
|
|
- Implementation roadmap
|
|
- Save to .workflow/active/WFS-[id]/.chat/plan-[timestamp].md (or .scratchpad/)
|
|
`
|
|
)
|
|
```
|
|
|
|
## Core Rules
|
|
|
|
- **Read-only**: Creates modification plans, does NOT generate code
|
|
- **Template**: `~/.claude/workflows/cli-templates/prompts/planning/01-plan-architecture-design.txt`
|
|
- **Output**: `.workflow/active/WFS-[id]/.chat/plan-[timestamp].md` (or `.scratchpad/` if no session)
|