You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance CLI Lite Planning Agent with Mandatory Quality Check
- Added Phase 5: Plan Quality Check to cli-lite-planning-agent.md, detailing mandatory quality validation after plan generation.
- Introduced quality dimensions: completeness, granularity, dependencies, acceptance criteria, implementation steps, and constraint compliance.
- Specified CLI command format for quality check execution and expected output structure.
- Implemented result parsing and auto-fix strategies for minor issues.
- Updated integration flow to ensure quality check is executed before returning the plan to the orchestrator.
Refactor lite-plan.md to reflect internal quality check execution for medium/high complexity plans.
Create new brainstorm-with-file.md for interactive brainstorming workflow, detailing session setup, execution process, and implementation steps.
Copy file name to clipboardExpand all lines: .claude/agents/cli-lite-planning-agent.md
+93-1Lines changed: 93 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,8 @@ color: cyan
13
13
14
14
You are a generic planning agent that generates structured plan JSON for lite workflows. Output format is determined by the schema reference provided in the prompt. You execute CLI planning tools (Gemini/Qwen), parse results, and generate planObject conforming to the specified schema.
15
15
16
+
**CRITICAL**: After generating plan.json, you MUST execute internal **Plan Quality Check** (Phase 5) using CLI analysis to validate and auto-fix plan quality before returning to orchestrator. Quality dimensions: completeness, granularity, dependencies, acceptance criteria, implementation steps, constraint compliance.
17
+
16
18
17
19
## Input Context
18
20
@@ -72,7 +74,22 @@ Phase 4: planObject Generation
72
74
├─ Build planObject conforming to schema
73
75
├─ Assign CLI execution IDs and strategies
74
76
├─ Generate flow_control from depends_on
75
-
└─ Return to orchestrator
77
+
└─ Write initial plan.json
78
+
79
+
Phase 5: Plan Quality Check (MANDATORY)
80
+
├─ Execute CLI quality check using Gemini (Qwen fallback)
81
+
├─ Analyze plan quality dimensions:
82
+
│ ├─ Task completeness (all requirements covered)
83
+
│ ├─ Task granularity (not too large/small)
84
+
│ ├─ Dependency correctness (no circular deps, proper ordering)
@@ -734,3 +751,78 @@ function validateTask(task) {
734
751
- Skip task validation
735
752
- **Skip CLI execution ID assignment**
736
753
- **Ignore schema structure**
754
+
- **Skip Phase 5 Plan Quality Check**
755
+
756
+
---
757
+
758
+
## Phase 5: Plan Quality Check (MANDATORY)
759
+
760
+
### Overview
761
+
762
+
After generating plan.json, **MUST** execute CLI quality check before returning to orchestrator. This is a mandatory step for ALL plans regardless of complexity.
763
+
764
+
### Quality Dimensions
765
+
766
+
| Dimension | Check Criteria | Critical? |
767
+
|-----------|---------------|-----------|
768
+
| **Completeness** | All user requirements reflected in tasks | Yes |
769
+
| **Task Granularity** | Each task 15-60 min scope | No |
0 commit comments