mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-13 02:41:50 +08:00
Streamlined 7 CLI command documentation files by removing duplicate content that's already comprehensively covered in intelligent-tools-strategy.md (loaded in memory). Established single source of truth (SSOT) pattern. Changes: - Removed duplicate command templates (→ strategy lines 51-118) - Removed file pattern reference lists (→ strategy lines 324-329) - Removed complex pattern discovery steps (→ strategy lines 331-355) - Removed MODE field definitions (→ strategy lines 128-143) - Removed tool feature descriptions (→ strategy lines 283-322) Files streamlined: - analyze.md: 117→61 lines (48% reduction) - chat.md: 118→62 lines (47% reduction) - execute.md: 180→100 lines (44% reduction) - codex-execute.md: 481→473 lines (2% - preserved unique content) - mode/bug-index.md: 144→75 lines (48% reduction) - mode/code-analysis.md: 188→76 lines (60% reduction) - mode/plan.md: 100→76 lines (24% reduction) Total reduction: 681 lines removed across all files Each doc now contains only: - Unique purpose and parameters - Command-specific execution flow - Practical examples - Brief reference to intelligent-tools-strategy.md 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
76 lines
2.2 KiB
Markdown
76 lines
2.2 KiB
Markdown
---
|
|
name: plan
|
|
description: Project planning and architecture analysis using CLI tools
|
|
usage: /cli:mode:plan [--tool <codex|gemini|qwen>] [--enhance] [--cd "path"] "topic"
|
|
argument-hint: "[--tool codex|gemini|qwen] [--enhance] [--cd path] topic"
|
|
examples:
|
|
- /cli:mode:plan "design user dashboard"
|
|
- /cli:mode:plan --tool qwen --enhance "plan microservices migration"
|
|
- /cli:mode:plan --tool codex --cd "src/auth" "authentication system"
|
|
allowed-tools: SlashCommand(*), Bash(*)
|
|
---
|
|
|
|
# CLI Mode: Plan (/cli:mode:plan)
|
|
|
|
## Purpose
|
|
|
|
Comprehensive planning and architecture analysis with strategic planning template (`~/.claude/prompt-templates/plan.md`).
|
|
|
|
**Supported Tools**: codex, gemini (default), qwen
|
|
**Key Feature**: `--cd` flag for directory-scoped planning
|
|
|
|
## Parameters
|
|
|
|
- `--tool <codex|gemini|qwen>` - Tool selection (default: gemini)
|
|
- `--enhance` - Enhance topic with `/enhance-prompt` first
|
|
- `--cd "path"` - Target directory for focused planning
|
|
- `<topic>` (Required) - Planning topic or architectural question
|
|
|
|
## Execution Flow
|
|
|
|
1. Parse tool and directory options
|
|
2. If `--enhance`: Execute `/enhance-prompt` to expand planning context
|
|
3. Use planning template: `~/.claude/prompt-templates/plan.md`
|
|
4. Execute with `--all-files` in target directory
|
|
5. Save to `.workflow/WFS-[id]/.chat/plan-[timestamp].md`
|
|
|
|
## Planning Capabilities (via Template)
|
|
|
|
- Strategic architecture insights
|
|
- Implementation roadmaps
|
|
- Key technical decisions
|
|
- Risk assessment
|
|
- Resource planning
|
|
|
|
## Examples
|
|
|
|
```bash
|
|
# Basic planning
|
|
/cli:mode:plan "design user dashboard"
|
|
|
|
# Enhanced with directory scope
|
|
/cli:mode:plan --cd "src/api" --enhance "plan API refactoring"
|
|
|
|
# Qwen for architecture planning
|
|
/cli:mode:plan --tool qwen "plan microservices migration"
|
|
|
|
# Codex for technical planning
|
|
/cli:mode:plan --tool codex "plan testing strategy"
|
|
```
|
|
|
|
## Planning Workflow
|
|
|
|
```bash
|
|
# 1. Gather existing architecture info
|
|
rg "architecture|design" --files-with-matches
|
|
|
|
# 2. Execute planning analysis
|
|
/cli:mode:plan "topic for strategic planning"
|
|
```
|
|
|
|
## Notes
|
|
|
|
- Command templates and file patterns: see intelligent-tools-strategy.md (loaded in memory)
|
|
- Template path: `~/.claude/prompt-templates/plan.md`
|
|
- Always uses `--all-files` for comprehensive project context
|