From 8bc5b409574c08c7b4fa526e63c041b520e2f717 Mon Sep 17 00:00:00 2001 From: catlog22 Date: Thu, 27 Nov 2025 17:05:57 +0800 Subject: [PATCH] fix: Add schema reference requirement for Low complexity planning in lite-plan MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- .claude/commands/workflow/lite-plan.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.claude/commands/workflow/lite-plan.md b/.claude/commands/workflow/lite-plan.md index 73334280..aa6f5c39 100644 --- a/.claude/commands/workflow/lite-plan.md +++ b/.claude/commands/workflow/lite-plan.md @@ -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: