fix: Add schema reference requirement for Low complexity planning in lite-plan

- Updated execution flow diagram to show schema loading as REQUIRED step
- Added explicit schema reference for Low complexity direct planning
- Ensures plan.json follows consistent structure regardless of complexity level

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
catlog22
2025-11-27 17:05:57 +08:00
parent 2a11d5f190
commit 8bc5b40957

View File

@@ -50,8 +50,9 @@ Phase 2: Clarification (optional)
└─ No clarifications → Skip to Phase 3
Phase 3: Planning
├─ Load schema: cat ~/.claude/workflows/cli-templates/schemas/plan-json-schema.json (REQUIRED)
└─ Decision (based on Phase 1 complexity):
├─ Low → Direct Claude planning → plan.json
├─ Low → Direct Claude planning (following schema) → plan.json
└─ Medium/High → cli-lite-planning-agent → plan.json
Phase 4: Confirmation & Selection
@@ -331,7 +332,8 @@ if (uniqueClarifications.length > 0) {
**Planning Strategy Selection** (based on Phase 1 complexity):
**Low Complexity** - Direct planning by Claude:
- Generate plan directly, write to `${sessionFolder}/plan.json`
- Read schema: `cat ~/.claude/workflows/cli-templates/schemas/plan-json-schema.json`
- Generate plan following schema structure, write to `${sessionFolder}/plan.json`
- No agent invocation
**Medium/High Complexity** - Invoke cli-lite-planning-agent: