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
Copy file name to clipboardExpand all lines: templates/commands/analyze.md
+21-16Lines changed: 21 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
---
2
2
description: Perform cross-artifact consistency and quality analysis. Automatically detects pre vs post-implementation context based on workflow mode and project state.
-**Build Mode**: Focus on core functionality and quick iterations
70
74
-**Spec Mode**: Comprehensive analysis with full validation
71
75
72
-
**Fallback Logic**: If detection is ambiguous, default to pre-implementation analysis and prompt user for clarification.
76
+
**Fallback Logic**: If detection is ambiguous, default to pre-implementation analysis appropriate for the current mode and prompt user for clarification.
73
77
74
78
### 3. Load Artifacts (Auto-Detected Mode)
75
79
76
80
**Pre-Implementation Mode Artifacts:**
77
-
Load only the minimal necessary context from each artifact:
81
+
Load available artifacts (build mode may have only spec.md):
78
82
79
-
**From spec.md:**
83
+
**From spec.md (required):**
80
84
- Overview/Context
81
85
- Functional Requirements
82
86
- Non-Functional Requirements
83
87
- User Stories
84
88
- Edge Cases (if present)
85
89
86
-
**From plan.md:**
90
+
**From plan.md (optional in build mode):**
87
91
- Architecture/stack choices
88
92
- Data Model references
89
93
- Phases
90
94
- Technical constraints
91
95
92
-
**From tasks.md:**
96
+
**From tasks.md (optional in build mode):**
93
97
- Task IDs
94
98
- Descriptions
95
99
- Phase grouping
@@ -143,7 +147,7 @@ Focus on high-signal findings. Limit to 50 findings total; aggregate remainder i
143
147
144
148
- Requirements with verbs but missing object or measurable outcome
145
149
- User stories missing acceptance criteria alignment
146
-
- Tasks referencing files or components not defined in spec/plan
150
+
- Tasks referencing files or components not defined in spec/plan (if tasks.md exists)
147
151
148
152
#### D. Constitution Alignment
149
153
@@ -152,9 +156,9 @@ Focus on high-signal findings. Limit to 50 findings total; aggregate remainder i
152
156
153
157
#### E. Coverage Gaps
154
158
155
-
- Requirements with zero associated tasks
156
-
- Tasks with no mapped requirement/story
157
-
- Non-functional requirements not reflected in tasks (e.g., performance, security)
159
+
- Requirements with zero associated tasks (if tasks.md exists)
160
+
- Tasks with no mapped requirement/story (if tasks.md exists)
161
+
- Non-functional requirements not reflected in tasks (if tasks.md exists)
158
162
159
163
#### F. Inconsistency
160
164
@@ -194,9 +198,9 @@ Focus on high-signal findings. Limit to 50 findings total; aggregate remainder i
194
198
Use this heuristic to prioritize findings:
195
199
196
200
**Pre-Implementation Severities:**
197
-
-**CRITICAL**: Violates constitution MUST, missing core spec artifact, or requirement with zero coverage that blocks baseline functionality
201
+
-**CRITICAL**: Violates constitution MUST, missing spec.md, or requirement with zero coverage that blocks baseline functionality
-**LOW**: Style/wording improvements, minor redundancy not affecting execution order
201
205
202
206
**Post-Implementation Severities:**
@@ -265,7 +269,8 @@ Output a Markdown report (no file writes) with auto-detected mode-appropriate st
265
269
At end of report, output a concise Next Actions block based on detected mode and findings:
266
270
267
271
**Pre-Implementation Next Actions:**
268
-
- If CRITICAL issues exist: Recommend resolving before `/implement`
272
+
-**Build Mode**: Missing plan.md/tasks.md is not critical - user may proceed to `/implement` for lightweight development
273
+
-**Spec Mode**: If CRITICAL issues exist: Recommend resolving before `/implement`
269
274
- If only LOW/MEDIUM: User may proceed, but provide improvement suggestions
270
275
- Provide explicit command suggestions: e.g., "Run /specify with refinement", "Run /plan to adjust architecture", "Manually edit tasks.md to add coverage for 'performance-metrics'"
0 commit comments