5-phase-workflow 1.8.9 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/install.js +147 -66
- package/package.json +1 -1
- package/src/commands/5/configure.md +25 -19
- package/src/commands/5/discuss-feature.md +4 -2
- package/src/commands/5/implement-feature.md +22 -5
- package/src/commands/5/plan-feature.md +77 -38
- package/src/commands/5/plan-implementation.md +62 -29
- package/src/commands/5/quick-implement.md +2 -1
- package/src/commands/5/reconfigure.md +3 -3
- package/src/commands/5/review-code.md +7 -7
- package/src/references/configure-tables.md +1 -1
- package/src/skills/configure-docs-index/SKILL.md +35 -17
- package/src/skills/configure-skills/SKILL.md +2 -2
- package/src/skills/generate-readme/SKILL.md +1 -1
- package/src/skills/generate-readme/TEMPLATE.md +5 -5
- package/src/templates/workflow/FEATURE-SPEC.md +58 -24
- package/src/templates/workflow/PLAN.md +15 -14
|
@@ -75,7 +75,7 @@ Examples:
|
|
|
75
75
|
|
|
76
76
|
**DO NOT include:**
|
|
77
77
|
|
|
78
|
-
- General patterns covered in
|
|
78
|
+
- General patterns covered in AGENTS.md
|
|
79
79
|
- Obvious patterns like "use builders for construction"
|
|
80
80
|
- Implementation details
|
|
81
81
|
|
|
@@ -95,8 +95,8 @@ Examples:
|
|
|
95
95
|
|
|
96
96
|
**Don't include:**
|
|
97
97
|
|
|
98
|
-
- Links to
|
|
99
|
-
- Don't repeat things and patterns already documented in
|
|
98
|
+
- Links to AGENTS.md sections relevant to this module
|
|
99
|
+
- Don't repeat things and patterns already documented in AGENTS.md
|
|
100
100
|
|
|
101
101
|
**Include for:**
|
|
102
102
|
|
|
@@ -112,7 +112,7 @@ Examples:
|
|
|
112
112
|
|
|
113
113
|
1. List every validator, query, or handler class individually
|
|
114
114
|
2. Document implementation details
|
|
115
|
-
3. Copy content from
|
|
115
|
+
3. Copy content from AGENTS.md
|
|
116
116
|
4. Include exhaustive method signatures
|
|
117
117
|
5. Create walls of text
|
|
118
118
|
6. Document every package
|
|
@@ -122,7 +122,7 @@ Examples:
|
|
|
122
122
|
|
|
123
123
|
1. Focus on top-level overview
|
|
124
124
|
2. List 3-5 key components only
|
|
125
|
-
3. Reference
|
|
125
|
+
3. Reference AGENTS.md for patterns
|
|
126
126
|
4. Keep it under 100 lines
|
|
127
127
|
5. Use examples sparingly
|
|
128
128
|
6. Use package references for groups
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
- Entity definitions describe data concepts, not schemas or interfaces
|
|
5
5
|
- Acceptance criteria describe observable behavior, not test assertions
|
|
6
6
|
- NO code, pseudo-code, or implementation details anywhere in this document
|
|
7
|
+
- Visual Overview section is OPTIONAL — delete it if the feature doesn't benefit from diagrams
|
|
8
|
+
- Mermaid diagrams describe WHAT happens, not HOW it is implemented
|
|
7
9
|
-->
|
|
8
10
|
|
|
9
11
|
# Feature: {TICKET-ID} - {Title}
|
|
@@ -12,27 +14,57 @@
|
|
|
12
14
|
{TICKET-ID}
|
|
13
15
|
|
|
14
16
|
## Summary
|
|
15
|
-
{1-2 sentence overview
|
|
17
|
+
{1-2 sentence overview: what capability is being added and who benefits}
|
|
16
18
|
|
|
17
19
|
## Problem Statement
|
|
18
|
-
{
|
|
20
|
+
{Describe the current pain point or gap. Who experiences it and what is the impact?}
|
|
21
|
+
|
|
22
|
+
## Visual Overview
|
|
23
|
+
<!-- OPTIONAL: Include mermaid diagrams only when they add clarity to the feature.
|
|
24
|
+
Delete this entire section if the feature is simple enough to understand without diagrams.
|
|
25
|
+
Use whichever diagram types are relevant — you don't need all of them. -->
|
|
26
|
+
|
|
27
|
+
<!-- Process Flow — use when the feature involves a multi-step process or state transitions -->
|
|
28
|
+
```mermaid
|
|
29
|
+
flowchart TD
|
|
30
|
+
A[Start state] --> B[Step 1]
|
|
31
|
+
B --> C{Decision point}
|
|
32
|
+
C -->|Yes| D[Outcome 1]
|
|
33
|
+
C -->|No| E[Outcome 2]
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
<!-- Entity Relationships — use when new data concepts relate to existing ones -->
|
|
37
|
+
```mermaid
|
|
38
|
+
erDiagram
|
|
39
|
+
ENTITY-A ||--o{ ENTITY-B : "relationship"
|
|
40
|
+
ENTITY-B }|--|| ENTITY-C : "relationship"
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
<!-- Component Interactions — use when multiple modules or services communicate -->
|
|
44
|
+
```mermaid
|
|
45
|
+
sequenceDiagram
|
|
46
|
+
actor User
|
|
47
|
+
participant ComponentA
|
|
48
|
+
participant ComponentB
|
|
49
|
+
User->>ComponentA: action
|
|
50
|
+
ComponentA->>ComponentB: interaction
|
|
51
|
+
ComponentB-->>User: result
|
|
52
|
+
```
|
|
19
53
|
|
|
20
54
|
## Requirements
|
|
21
55
|
|
|
22
56
|
### Functional Requirements
|
|
23
|
-
- {
|
|
24
|
-
- {Requirement 2}
|
|
57
|
+
- {The system shall... [describe observable behavior]}
|
|
25
58
|
- ...
|
|
26
59
|
|
|
27
60
|
### Non-Functional Requirements
|
|
28
|
-
- {Performance
|
|
29
|
-
- {Compatibility requirements}
|
|
61
|
+
- {Performance, reliability, scalability, or compatibility expectations}
|
|
30
62
|
- ...
|
|
31
63
|
|
|
32
64
|
## Constraints
|
|
33
|
-
- {Business
|
|
34
|
-
- {Technical
|
|
35
|
-
- {
|
|
65
|
+
- {Business rules that limit the solution space}
|
|
66
|
+
- {Technical boundaries from existing architecture}
|
|
67
|
+
- {Timeline or resource limitations}
|
|
36
68
|
|
|
37
69
|
## Affected Components
|
|
38
70
|
- **{component/module-1}** - {What changes here}
|
|
@@ -56,9 +88,9 @@
|
|
|
56
88
|
- ...
|
|
57
89
|
|
|
58
90
|
## Acceptance Criteria
|
|
59
|
-
- [ ] {
|
|
60
|
-
- [ ] {
|
|
61
|
-
- [ ] {
|
|
91
|
+
- [ ] {Observable behavior that proves this requirement is met}
|
|
92
|
+
- [ ] {Observable behavior that proves this requirement is met}
|
|
93
|
+
- [ ] {Observable behavior that proves this requirement is met}
|
|
62
94
|
- ...
|
|
63
95
|
|
|
64
96
|
## Alternatives Considered
|
|
@@ -78,22 +110,24 @@
|
|
|
78
110
|
|
|
79
111
|
## Decisions
|
|
80
112
|
|
|
81
|
-
<!--
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
113
|
+
<!-- Record key decisions from the spec discussion.
|
|
114
|
+
Tag each with exactly one of: [DECIDED], [FLEXIBLE], [DEFERRED]
|
|
115
|
+
- [DECIDED]: Locked — Phase 2 planner and Phase 3 agents MUST honor exactly
|
|
116
|
+
- [FLEXIBLE]: Claude's discretion — planner chooses the best approach
|
|
117
|
+
- [DEFERRED]: Out of scope — planner MUST NOT include in the plan
|
|
85
118
|
-->
|
|
86
119
|
|
|
87
|
-
###
|
|
88
|
-
**
|
|
120
|
+
### {Topic: brief description of what was decided}
|
|
121
|
+
**Context:** {Why this decision came up}
|
|
122
|
+
**Decision:** {What was decided} **[DECIDED]**
|
|
89
123
|
|
|
90
|
-
###
|
|
91
|
-
**
|
|
124
|
+
### {Topic: area left to implementer's discretion}
|
|
125
|
+
**Context:** {What was discussed}
|
|
126
|
+
**Decision:** {General direction, implementer chooses specifics} **[FLEXIBLE]**
|
|
92
127
|
|
|
93
|
-
###
|
|
94
|
-
**
|
|
95
|
-
|
|
96
|
-
...
|
|
128
|
+
### {Topic: explicitly deferred item}
|
|
129
|
+
**Context:** {Why it was raised}
|
|
130
|
+
**Decision:** {Not addressing now — reason} **[DEFERRED]**
|
|
97
131
|
|
|
98
132
|
## Next Steps
|
|
99
133
|
After approval:
|
|
@@ -10,7 +10,8 @@ created: {ISO-timestamp}
|
|
|
10
10
|
- Description column: one action-oriented sentence per component
|
|
11
11
|
- Pattern File column: path to an existing file the executor MUST read before implementing (establishes conventions)
|
|
12
12
|
- Verify column: a concrete command or check the executor runs after implementing (grep pattern, test command, build check)
|
|
13
|
-
-
|
|
13
|
+
- Depends On column: name of a component this one depends on (for cross-step data dependencies), or "—" if none
|
|
14
|
+
- Implementation Notes: scoped with [global], [Step N], or [component-name] prefixes — the orchestrator filters per agent
|
|
14
15
|
- Components table must cover all functional requirements from feature.md
|
|
15
16
|
- Three test tiers: unit (always required for logic), integration (when framework detected + cross-module/DB/API), e2e (when framework detected + endpoints/UI flows)
|
|
16
17
|
- Every "create" component with logic (services, controllers, repositories, utilities) must have a corresponding unit test component
|
|
@@ -24,16 +25,16 @@ created: {ISO-timestamp}
|
|
|
24
25
|
|
|
25
26
|
## Components
|
|
26
27
|
|
|
27
|
-
| Step | Component | Action | File | Description | Pattern File | Verify | Complexity |
|
|
28
|
-
|
|
29
|
-
| 1 | {name} | create | {path} | {what it does} | {existing file to read first} | {grep/test command} | simple |
|
|
30
|
-
| 1 | {name} | create | {path} | {what it does} | {pattern} | {verify} | simple |
|
|
31
|
-
| 2 | {name} | create | {path} | {what it does} | {pattern} | {verify} | moderate |
|
|
32
|
-
| 2 | {name} | modify | {path} | {what to change} | {target file} | {verify} | moderate |
|
|
33
|
-
| 3 | {name} | create | {path} | {what it does} | {pattern} | {verify} | complex |
|
|
34
|
-
| 4 | {name} unit tests | create | {test-path} | Test {what it tests} | {existing test} | {test command} | moderate |
|
|
35
|
-
| 4 | {name} integration tests | create | {test-path} | Test {cross-module interaction} | {existing test} | {test command} | moderate |
|
|
36
|
-
| 4 | {name} e2e tests | create | {test-path} | Test {user-facing flow end-to-end} | {existing test} | {test command} | moderate |
|
|
28
|
+
| Step | Component | Action | File | Description | Pattern File | Verify | Complexity | Depends On |
|
|
29
|
+
|------|-----------|--------|------|-------------|-------------|--------|------------|------------|
|
|
30
|
+
| 1 | {name} | create | {path} | {what it does} | {existing file to read first} | {grep/test command} | simple | — |
|
|
31
|
+
| 1 | {name} | create | {path} | {what it does} | {pattern} | {verify} | simple | — |
|
|
32
|
+
| 2 | {name} | create | {path} | {what it does} | {pattern} | {verify} | moderate | {step-1-component} |
|
|
33
|
+
| 2 | {name} | modify | {path} | {what to change} | {target file} | {verify} | moderate | — |
|
|
34
|
+
| 3 | {name} | create | {path} | {what it does} | {pattern} | {verify} | complex | {step-2-component} |
|
|
35
|
+
| 4 | {name} unit tests | create | {test-path} | Test {what it tests} | {existing test} | {test command} | moderate | {tested-component} |
|
|
36
|
+
| 4 | {name} integration tests | create | {test-path} | Test {cross-module interaction} | {existing test} | {test command} | moderate | {tested-component} |
|
|
37
|
+
| 4 | {name} e2e tests | create | {test-path} | Test {user-facing flow end-to-end} | {existing test} | {test command} | moderate | {tested-component} |
|
|
37
38
|
|
|
38
39
|
## Testing Strategy
|
|
39
40
|
|
|
@@ -41,9 +42,9 @@ created: {ISO-timestamp}
|
|
|
41
42
|
|
|
42
43
|
## Implementation Notes
|
|
43
44
|
|
|
44
|
-
- Follow the pattern from {existing-file} for {component-type}
|
|
45
|
-
- {
|
|
46
|
-
- {
|
|
45
|
+
- [global] Follow the pattern from {existing-file} for {component-type}
|
|
46
|
+
- [Step N] {Convention or context relevant to all components in step N}
|
|
47
|
+
- [{component-name}] {Key business rule or integration point specific to this component}
|
|
47
48
|
|
|
48
49
|
## Verification
|
|
49
50
|
|