| name | hi:plan |
| description | Plan implementations, design architectures, create technical roadmaps with detailed phases. |
| argument-hint | [task] [--full|--hard|--parallel|--two|--no-tasks] — default: fast mode. Sub: archive|red-team|validate |
| metadata | {"author":"baka3k","version":"2.0.0"} |
Plan - Implementation Planning
Scan ./plans/ first. If relevant unfinished plans exist, update them. If unclear, ask user.
Cross-Plan Dependency Detection
- Scan
plans/*/plan.md (status != completed/cancelled)
- Detect overlapping files, shared deps, same feature area
- Classify: new needs existing output ->
blockedBy: [dir], new changes existing deps -> update both
- Bidirectional: update BOTH plan.md files
Default (No Arguments)
| Operation | Description |
|---|
| (default) | Create implementation plan (fast mode) |
--full | Full flow: research + scope challenge + red team + validate |
archive | Archive plans + journal |
red-team | Adversarial review |
validate | Critical questions interview |
If invoked without arguments, run fast mode trực tiếp (không AskUserQuestion).
Workflow Modes
| Flag | Mode | Research | Red Team | Validation |
|---|
| default / --fast | Fast | Skip | Skip | Skip |
| --full | Full | 1 researcher | Optional | Optional |
| --hard | Hard | 2 researchers | Yes | Optional |
| --parallel | Parallel | 2 researchers | Yes | Optional |
| --two | Two approaches | 2+ researchers | After select | After select |
Add --no-tasks to skip task hydration.
Process Flow (default fast)
- Cross-Plan Scan -> Chỉ quét nếu có plan active (scan nhanh)
- Scope Challenge -> Skip (fast)
- Codebase Analysis -> Đọc docs, scout nếu cần (không spawn researcher)
- Plan Documentation -> Write plan.md + phase-XX.md
- Hydrate Tasks -> TaskCreate per phase (--no-tasks để skip)
- Output -> Absolute path
Full Flow (--full)
- Pre-Creation Check -> Check Plan Context
- Cross-Plan Scan -> Detect blockedBy/blocks, update both
- Scope Challenge -> Run 3 questions, select mode
- Research -> Spawn 1 researcher
- Codebase Analysis -> Read docs, scout if needed
- Plan Documentation -> Write plan.md + phase-XX.md
- Red Team ->
/hi:plan red-team {path}
- Validate ->
/hi:plan validate {path}
- Hydrate Tasks -> TaskCreate per phase
- Output -> Absolute path + cook command
Output Requirements
- Plans in CURRENT WORKING PROJECT DIRECTORY (not user home)
- Plan files = persistent. Tasks = session-scoped
- Invoke /hi:project-organization after output
- Respect
./docs/development-rules.md
Task Management
- Auto-hydrate tasks after plan write (skip --no-tasks)
- <3 phases -> skip task creation (overhead > benefit)
- Task tools CLI-only (VSCode: use TodoWrite)
Subcommands
| Subcommand | Purpose |
|---|
/hi:plan archive | Archive plans + journal |
/hi:plan red-team {path} | Adversarial review |
/hi:plan validate {path} | Critical questions interview |