@codihaus/claude-skills 1.6.7 → 1.6.8
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/package.json +1 -1
- package/skills/debrief/SKILL.md +139 -421
- package/skills/dev-arch/SKILL.md +120 -403
- package/skills/dev-changelog/SKILL.md +67 -221
- package/skills/dev-coding/SKILL.md +95 -144
- package/skills/dev-review/SKILL.md +63 -238
- package/skills/dev-scout/SKILL.md +82 -55
- package/skills/dev-specs/SKILL.md +81 -37
- package/skills/dev-test/SKILL.md +79 -157
|
@@ -39,255 +39,101 @@ plans/features/{feature}/
|
|
|
39
39
|
└── docs-updates.md # Documentation tasks
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
##
|
|
42
|
+
## Expected Outcome
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
Documentation of what was implemented after `/dev-review` passes.
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
**Outputs:**
|
|
47
|
+
- `summary.md` - What was built this session/PR
|
|
48
|
+
- `implementation.md` - Cumulative status (updated)
|
|
49
|
+
- `tech-debt.md` - Known issues, TODOs (updated)
|
|
50
|
+
- `docs-updates.md` - Documentation tasks
|
|
50
51
|
|
|
51
|
-
|
|
52
|
-
→ "Run /dev-review first"
|
|
53
|
-
→ Exit
|
|
54
|
-
```
|
|
52
|
+
## Success Criteria
|
|
55
53
|
|
|
56
|
-
|
|
54
|
+
- Changes mapped to specs and use cases
|
|
55
|
+
- Completion status clear (done/partial/not started)
|
|
56
|
+
- Tech debt captured (TODOs, workarounds, gaps)
|
|
57
|
+
- Documentation tasks identified
|
|
58
|
+
- Easy to resume work later
|
|
59
|
+
- Clear what's done, what's remaining
|
|
57
60
|
|
|
58
|
-
|
|
59
|
-
1. Git changes (source of truth)
|
|
60
|
-
git log --oneline {since}
|
|
61
|
-
git diff --stat {since}
|
|
61
|
+
## Prerequisite
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
**Verify `/dev-review` passed:**
|
|
64
|
+
- If review not done or failed → "Run /dev-review first"
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
plans/features/{feature}/specs/*.md
|
|
66
|
+
## Sources to Gather
|
|
68
67
|
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
**Git (source of truth):**
|
|
69
|
+
- `git log --oneline {since}` - Commits made
|
|
70
|
+
- `git diff --stat {since}` - Files changed
|
|
71
|
+
- `gh pr view {number}` - PR info (if available)
|
|
71
72
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
**Intent & Context:**
|
|
74
|
+
- specs/*.md - What was intended
|
|
75
|
+
- use-cases/*.md - Business context
|
|
76
|
+
- implementation.md (previous) - Track cumulative status
|
|
75
77
|
|
|
76
|
-
|
|
78
|
+
## Analysis
|
|
77
79
|
|
|
78
|
-
Map git changes to specs and use cases
|
|
80
|
+
**Map git changes to specs and use cases:**
|
|
79
81
|
|
|
80
|
-
```
|
|
81
82
|
For each changed file:
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
**Mapping table:**
|
|
83
|
+
- What component? (API, UI, model, etc.)
|
|
84
|
+
- Which spec item does it fulfill?
|
|
85
|
+
- Which use case does it support?
|
|
86
|
+
- Complete or partial?
|
|
89
87
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
88
|
+
**Extract tech debt:**
|
|
89
|
+
- TODOs in changed files (grep for TODO/FIXME/HACK/XXX)
|
|
90
|
+
- Incomplete spec items (spec says X, implementation does Y)
|
|
91
|
+
- Known issues from commits (WIP, temporary, workaround)
|
|
92
|
+
- Review comments not addressed
|
|
95
93
|
|
|
96
|
-
|
|
94
|
+
**Identify doc updates needed:**
|
|
97
95
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
```
|
|
101
|
-
1. TODOs in changed files
|
|
102
|
-
grep -r "TODO\|FIXME\|HACK\|XXX" {changed_files}
|
|
103
|
-
|
|
104
|
-
2. Incomplete spec items
|
|
105
|
-
→ Spec says X, implementation does Y
|
|
106
|
-
|
|
107
|
-
3. Known issues from commits
|
|
108
|
-
→ "WIP:", "temporary", "workaround"
|
|
109
|
-
|
|
110
|
-
4. Review comments not addressed
|
|
111
|
-
→ From /dev-review output
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
### Phase 4: Identify Documentation Updates
|
|
115
|
-
|
|
116
|
-
Based on what changed:
|
|
117
|
-
|
|
118
|
-
| Change Type | Doc Update Needed |
|
|
119
|
-
|-------------|-------------------|
|
|
96
|
+
| Change Type | Doc Update |
|
|
97
|
+
|-------------|------------|
|
|
120
98
|
| New API endpoint | API Reference |
|
|
121
99
|
| New UI feature | User Guide |
|
|
122
100
|
| New config option | Configuration docs |
|
|
123
101
|
| Breaking change | Migration guide |
|
|
124
102
|
| New component | Component docs |
|
|
125
103
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
#### summary.md (per session/PR)
|
|
129
|
-
|
|
130
|
-
```markdown
|
|
131
|
-
# Summary: {Feature} - {Date/PR}
|
|
132
|
-
|
|
133
|
-
> **PR**: #{number} or commit range
|
|
134
|
-
> **Author**: {who}
|
|
135
|
-
> **Review**: Passed
|
|
136
|
-
|
|
137
|
-
## What Was Built
|
|
138
|
-
|
|
139
|
-
### API Changes
|
|
140
|
-
- `POST /api/billing/checkout` - Process payment
|
|
141
|
-
- `GET /api/billing/invoices` - List invoices
|
|
142
|
-
|
|
143
|
-
### UI Changes
|
|
144
|
-
- CheckoutForm component
|
|
145
|
-
- InvoiceList component
|
|
146
|
-
- PaymentSuccess page
|
|
147
|
-
|
|
148
|
-
### Data Changes
|
|
149
|
-
- Added Invoice model
|
|
150
|
-
- Added Payment model
|
|
151
|
-
- Migration: 20240118_add_billing_tables
|
|
152
|
-
|
|
153
|
-
## Spec Items Completed
|
|
154
|
-
|
|
155
|
-
| Spec | Title | Status |
|
|
156
|
-
|------|-------|--------|
|
|
157
|
-
| SPEC-PAY-001 | Checkout Flow | ✅ Complete |
|
|
158
|
-
| SPEC-PAY-002 | Payment Processing | ✅ Complete |
|
|
159
|
-
| SPEC-PAY-004 | Subscription Mgmt | ⚠️ Partial |
|
|
160
|
-
|
|
161
|
-
## Use Cases Addressed
|
|
162
|
-
|
|
163
|
-
| UC | Title | Coverage |
|
|
164
|
-
|----|-------|----------|
|
|
165
|
-
| UC-PAY-001 | Checkout | Full |
|
|
166
|
-
| UC-PAY-002 | Subscribe | Create only |
|
|
167
|
-
|
|
168
|
-
## Commits
|
|
169
|
-
|
|
170
|
-
- `abc1234` feat(billing): add checkout endpoint
|
|
171
|
-
- `def5678` feat(billing): add CheckoutForm component
|
|
172
|
-
- `ghi9012` feat(billing): add invoice model
|
|
173
|
-
|
|
174
|
-
## Next Steps
|
|
175
|
-
|
|
176
|
-
1. Complete subscription upgrade/downgrade (SPEC-PAY-004)
|
|
177
|
-
2. Add refund functionality (SPEC-PAY-005)
|
|
178
|
-
3. Update API documentation
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
#### implementation.md (cumulative status)
|
|
104
|
+
## Output Files
|
|
182
105
|
|
|
183
|
-
|
|
184
|
-
|
|
106
|
+
**summary.md** (per session/PR):
|
|
107
|
+
- What was built (API, UI, data changes)
|
|
108
|
+
- Spec items completed (with status)
|
|
109
|
+
- Use cases addressed (coverage)
|
|
110
|
+
- Commits list
|
|
111
|
+
- Next steps
|
|
185
112
|
|
|
186
|
-
|
|
187
|
-
|
|
113
|
+
**implementation.md** (cumulative):
|
|
114
|
+
- Overall progress percentage
|
|
115
|
+
- Completed items (with PR reference)
|
|
116
|
+
- In progress items (what's done, what's remaining)
|
|
117
|
+
- Not started items (with blockers if any)
|
|
118
|
+
- History (date, PR, summary)
|
|
188
119
|
|
|
189
|
-
|
|
120
|
+
**tech-debt.md** (updated):
|
|
121
|
+
- High/Medium/Low priority issues
|
|
122
|
+
- Location, impact, notes for each
|
|
123
|
+
- Code TODOs with file:line references
|
|
190
124
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
| Invoices | SPEC-PAY-003 | UC-PAY-003 | PR #125 |
|
|
125
|
+
**docs-updates.md** (updated):
|
|
126
|
+
- Required updates (API Reference, User Guide, Configuration)
|
|
127
|
+
- Examples to add (code snippets)
|
|
128
|
+
- Screenshots needed
|
|
196
129
|
|
|
197
|
-
##
|
|
198
|
-
|
|
199
|
-
| Item | Spec | UC | Done | Remaining |
|
|
200
|
-
|------|------|----|------|-----------|
|
|
201
|
-
| Subscriptions | SPEC-PAY-004 | UC-PAY-002 | Create/cancel | Upgrade/downgrade |
|
|
202
|
-
|
|
203
|
-
## Not Started ❌
|
|
204
|
-
|
|
205
|
-
| Item | Spec | UC | Blocked By |
|
|
206
|
-
|------|------|----|------------|
|
|
207
|
-
| Refunds | SPEC-PAY-005 | UC-PAY-004 | - |
|
|
208
|
-
| Usage billing | SPEC-PAY-006 | UC-PAY-005 | Phase 2 |
|
|
209
|
-
|
|
210
|
-
## History
|
|
211
|
-
|
|
212
|
-
| Date | PR | Summary |
|
|
213
|
-
|------|----|---------|
|
|
214
|
-
| 2024-01-18 | #123 | Checkout + payments |
|
|
215
|
-
| 2024-01-20 | #125 | Invoice generation |
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
#### tech-debt.md
|
|
219
|
-
|
|
220
|
-
```markdown
|
|
221
|
-
# Tech Debt: {Feature}
|
|
222
|
-
|
|
223
|
-
> **Last Updated**: {date}
|
|
224
|
-
|
|
225
|
-
## High Priority
|
|
226
|
-
|
|
227
|
-
| Issue | Location | Impact | Notes |
|
|
228
|
-
|-------|----------|--------|-------|
|
|
229
|
-
| No retry on payment failure | `billing/stripe.ts:45` | Users see errors | Add exponential backoff |
|
|
230
|
-
|
|
231
|
-
## Medium Priority
|
|
232
|
-
|
|
233
|
-
| Issue | Location | Impact | Notes |
|
|
234
|
-
|-------|----------|--------|-------|
|
|
235
|
-
| Hardcoded tax rate | `billing/invoice.ts:23` | Wrong tax for some regions | Make configurable |
|
|
236
|
-
| No pagination | `api/invoices.ts:12` | Slow for many invoices | Add cursor pagination |
|
|
237
|
-
|
|
238
|
-
## Low Priority
|
|
239
|
-
|
|
240
|
-
| Issue | Location | Impact | Notes |
|
|
241
|
-
|-------|----------|--------|-------|
|
|
242
|
-
| TODO: Add logging | `billing/checkout.ts:78` | Hard to debug | Add structured logging |
|
|
243
|
-
|
|
244
|
-
## Code TODOs
|
|
245
|
-
|
|
246
|
-
```
|
|
247
|
-
billing/stripe.ts:45: TODO: Add retry logic for failed payments
|
|
248
|
-
billing/invoice.ts:23: TODO: Make tax rate configurable
|
|
249
|
-
billing/checkout.ts:78: TODO: Add logging
|
|
250
|
-
```
|
|
251
|
-
```
|
|
252
|
-
|
|
253
|
-
#### docs-updates.md
|
|
254
|
-
|
|
255
|
-
```markdown
|
|
256
|
-
# Documentation Updates: {Feature}
|
|
257
|
-
|
|
258
|
-
> **Last Updated**: {date}
|
|
259
|
-
|
|
260
|
-
## Required Updates
|
|
261
|
-
|
|
262
|
-
### API Reference
|
|
263
|
-
- [ ] Add `POST /api/billing/checkout` endpoint
|
|
264
|
-
- [ ] Add `GET /api/billing/invoices` endpoint
|
|
265
|
-
- [ ] Add `POST /api/billing/subscriptions` endpoint
|
|
266
|
-
|
|
267
|
-
### User Guide
|
|
268
|
-
- [ ] Add "Making a Purchase" section
|
|
269
|
-
- [ ] Add "Managing Your Subscription" section
|
|
270
|
-
- [ ] Add "Viewing Invoices" section
|
|
271
|
-
|
|
272
|
-
### Configuration
|
|
273
|
-
- [ ] Document `STRIPE_SECRET_KEY` env var
|
|
274
|
-
- [ ] Document `STRIPE_WEBHOOK_SECRET` env var
|
|
275
|
-
|
|
276
|
-
## Examples to Add
|
|
277
|
-
|
|
278
|
-
### API Examples
|
|
279
|
-
```bash
|
|
280
|
-
# Checkout
|
|
281
|
-
curl -X POST /api/billing/checkout \
|
|
282
|
-
-H "Authorization: Bearer {token}" \
|
|
283
|
-
-d '{"planId": "pro", "paymentMethodId": "pm_xxx"}'
|
|
284
|
-
```
|
|
130
|
+
## Resume Flow
|
|
285
131
|
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
-
|
|
289
|
-
|
|
290
|
-
|
|
132
|
+
When returning to work later:
|
|
133
|
+
1. Read implementation.md → See what's done, what's remaining
|
|
134
|
+
2. Read tech-debt.md → See known issues
|
|
135
|
+
3. Read summary.md (latest) → See where you left off
|
|
136
|
+
4. Continue with `/dev-specs` or `/dev-coding`
|
|
291
137
|
|
|
292
138
|
## Integration with /dev-review
|
|
293
139
|
|
|
@@ -48,161 +48,112 @@ You have universal engineering principles and apply them to this specific projec
|
|
|
48
48
|
2. `plans/brd/tech-context.md` exists → patterns known
|
|
49
49
|
3. `plans/features/{feature}/codebase-context.md` exists (optional, helpful)
|
|
50
50
|
|
|
51
|
-
##
|
|
51
|
+
## Expected Outcome
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
Implemented feature that meets all acceptance criteria from spec.
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
**What "done" looks like:**
|
|
56
|
+
- All requirements from spec completed
|
|
57
|
+
- All acceptance criteria pass
|
|
58
|
+
- Patterns from tech-context.md followed
|
|
59
|
+
- Files from spec checklist created/modified
|
|
60
|
+
- No security vulnerabilities
|
|
61
|
+
- Tests passing (if applicable)
|
|
62
|
+
- Code quality maintained
|
|
56
63
|
|
|
57
|
-
|
|
58
|
-
2. **Ask implementation mode:**
|
|
59
|
-
- One by one (Recommended): Implement → Test → Ask next
|
|
60
|
-
- Multiple: Select UCs (e.g., "1,3-5") → Implement all
|
|
61
|
-
- All at once: Implement all UCs
|
|
62
|
-
|
|
63
|
-
3. **Store plan** and proceed
|
|
64
|
-
|
|
65
|
-
If user specifies UC (e.g., UC-AUTH-001): skip to Phase 1
|
|
66
|
-
|
|
67
|
-
### Phase 1: Load Principles
|
|
68
|
-
|
|
69
|
-
**Load once, use throughout:**
|
|
70
|
-
|
|
71
|
-
1. **Load universal principles** (optional, as needed)
|
|
72
|
-
- `references/backend-principles.md` (if doing API/data work)
|
|
73
|
-
- `references/frontend-principles.md` (if doing UI work)
|
|
74
|
-
- General software engineering wisdom
|
|
75
|
-
|
|
76
|
-
2. **Read spec** (requirements)
|
|
77
|
-
- `plans/features/{feature}/specs/UC-*.md`
|
|
78
|
-
- Get: Requirements, acceptance criteria, files to modify
|
|
79
|
-
|
|
80
|
-
3. **Read tech-context.md** (project specifics)
|
|
81
|
-
- `plans/brd/tech-context.md`
|
|
82
|
-
- Get: How THIS project implements patterns
|
|
83
|
-
- Project-specific rules and conventions
|
|
84
|
-
|
|
85
|
-
4. **Read codebase-context.md** (existing code)
|
|
86
|
-
- `plans/features/{feature}/codebase-context.md`
|
|
87
|
-
- Get: How this feature currently works, entry points
|
|
88
|
-
|
|
89
|
-
5. **Read architecture.md** (if exists)
|
|
90
|
-
- `plans/features/{feature}/architecture.md`
|
|
91
|
-
- Get: Feature-specific patterns
|
|
92
|
-
|
|
93
|
-
6. **Create TODO list** from spec requirements
|
|
94
|
-
- Each requirement = one TODO
|
|
95
|
-
- Mark first as in_progress
|
|
96
|
-
|
|
97
|
-
### Phase 2: Implement (Just-in-Time Discovery)
|
|
98
|
-
|
|
99
|
-
For each requirement in TODO list:
|
|
100
|
-
|
|
101
|
-
#### Step 1: Understand Requirement
|
|
102
|
-
|
|
103
|
-
**From spec (already loaded):**
|
|
104
|
-
- What to build (requirement)
|
|
105
|
-
- Where to build it (technical constraints)
|
|
106
|
-
- Success criteria (acceptance criteria)
|
|
107
|
-
|
|
108
|
-
#### Step 2: Apply Principles
|
|
109
|
-
|
|
110
|
-
**Think (using loaded principles):**
|
|
111
|
-
|
|
112
|
-
Ask yourself what this requirement needs:
|
|
113
|
-
- API work? → Apply API principles + project's API pattern
|
|
114
|
-
- UI work? → Apply component principles + project's UI pattern
|
|
115
|
-
- Data work? → Apply data access principles + project's data pattern
|
|
116
|
-
- Form work? → Apply validation principles + project's validation pattern
|
|
117
|
-
- Full-stack? → Apply multiple principles as needed
|
|
118
|
-
|
|
119
|
-
**You already know:**
|
|
120
|
-
- Universal principles (from references/)
|
|
121
|
-
- How THIS project works (from tech-context.md)
|
|
122
|
-
|
|
123
|
-
#### Step 3: Discover Details (As Needed)
|
|
124
|
-
|
|
125
|
-
**Just-in-time discovery:**
|
|
64
|
+
## Role: Principal Engineering Developer
|
|
126
65
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
-
|
|
131
|
-
-
|
|
132
|
-
-
|
|
133
|
-
|
|
66
|
+
You have universal engineering knowledge and apply it to this specific project.
|
|
67
|
+
|
|
68
|
+
**You know:**
|
|
69
|
+
- Universal principles (references/backend-principles.md, frontend-principles.md)
|
|
70
|
+
- Project-specific patterns (tech-context.md)
|
|
71
|
+
- Business requirements (specs/*.md)
|
|
72
|
+
- How to verify success (acceptance criteria)
|
|
73
|
+
|
|
74
|
+
**You can:**
|
|
75
|
+
- Discover details just-in-time (Glob/Grep/Read as needed)
|
|
76
|
+
- Apply principles based on what requirement needs
|
|
77
|
+
- Validate against acceptance criteria
|
|
78
|
+
- Fix and iterate until passing
|
|
79
|
+
|
|
80
|
+
## Implementation Approach
|
|
81
|
+
|
|
82
|
+
**1. Load Context (once):**
|
|
83
|
+
- Read spec → Get requirements, acceptance criteria, files to modify
|
|
84
|
+
- Read tech-context.md → Get project patterns (API, data, UI, validation, etc.)
|
|
85
|
+
- Read codebase-context.md → Get feature-specific implementation
|
|
86
|
+
- Read architecture.md (if exists) → Get architecture decisions
|
|
87
|
+
- Load universal principles (references/) as needed
|
|
88
|
+
|
|
89
|
+
**2. Plan Work:**
|
|
90
|
+
- If feature name given (not specific UC): Ask implementation mode
|
|
91
|
+
- One by one: Implement → Test → Ask next (Recommended)
|
|
92
|
+
- Multiple: Select UCs → Implement all
|
|
93
|
+
- All at once: Implement all UCs
|
|
94
|
+
- Create TODO list from spec requirements
|
|
95
|
+
|
|
96
|
+
**3. Implement (for each requirement):**
|
|
97
|
+
- **Understand:** What to build, where to build it, success criteria
|
|
98
|
+
- **Apply:** Use principles + project patterns based on what requirement needs
|
|
99
|
+
- API work? → Apply API principles + project's API pattern
|
|
100
|
+
- UI work? → Apply component principles + project's UI pattern
|
|
101
|
+
- Data work? → Apply data access principles + project's data pattern
|
|
102
|
+
- Full-stack? → Apply multiple principles as needed
|
|
103
|
+
- **Discover:** Find details just-in-time (Glob/Grep/Read)
|
|
104
|
+
- **Build:** Create/modify files following patterns and conventions
|
|
105
|
+
- **Validate:** Check acceptance criteria, fix if needed
|
|
106
|
+
- **Test:** Write/run tests if applicable
|
|
107
|
+
|
|
108
|
+
**4. Complete:**
|
|
109
|
+
- Verify all acceptance criteria met
|
|
110
|
+
- Verify all files from checklist done
|
|
111
|
+
- Update spec with status
|
|
112
|
+
- Git commit (if requested)
|
|
113
|
+
- Move to next UC or trigger `/dev-test`
|
|
114
|
+
|
|
115
|
+
## Just-in-Time Discovery
|
|
116
|
+
|
|
117
|
+
Don't pre-load everything. Discover when needed:
|
|
134
118
|
|
|
135
119
|
**Examples:**
|
|
136
|
-
-
|
|
137
|
-
-
|
|
138
|
-
-
|
|
139
|
-
-
|
|
120
|
+
- Need API wrapper location? → Glob: `**/api.*`, `**/request.*`
|
|
121
|
+
- Need schema location? → Check tech-context.md or Glob: `**/schemas/*`
|
|
122
|
+
- Need validation example? → Read existing validation file
|
|
123
|
+
- Need composable location? → Glob: `composables/use-*.{ts,js}`
|
|
140
124
|
|
|
141
125
|
**Don't:**
|
|
142
|
-
- ❌ Pre-
|
|
143
|
-
- ❌ List all components
|
|
144
|
-
|
|
145
|
-
#### Step 4: Implement
|
|
126
|
+
- ❌ Pre-read all files
|
|
127
|
+
- ❌ List all components upfront
|
|
128
|
+
- ❌ Memorize function names (look up when needed)
|
|
146
129
|
|
|
147
|
-
|
|
148
|
-
2. Apply principles (from references/ + tech-context.md)
|
|
149
|
-
3. Use discovered details (function names, locations)
|
|
150
|
-
4. Follow conventions (from tech-context.md)
|
|
151
|
-
|
|
152
|
-
#### Step 5: Validate
|
|
153
|
-
|
|
154
|
-
**Check against acceptance criteria:**
|
|
155
|
-
- [ ] Happy path works?
|
|
156
|
-
- [ ] Error cases handled?
|
|
157
|
-
- [ ] Edge cases covered?
|
|
158
|
-
|
|
159
|
-
**If passes:** Mark TODO completed, move to next
|
|
160
|
-
**If fails:** Fix issues, re-validate
|
|
161
|
-
|
|
162
|
-
#### Step 6: Self-Test (Optional)
|
|
163
|
-
|
|
164
|
-
If requirement is testable:
|
|
165
|
-
- Write/update tests
|
|
166
|
-
- Run tests
|
|
167
|
-
- Fix failures
|
|
168
|
-
|
|
169
|
-
### Phase 3: Complete UC
|
|
170
|
-
|
|
171
|
-
After all requirements implemented:
|
|
172
|
-
|
|
173
|
-
1. **Final validation:**
|
|
174
|
-
- Review all acceptance criteria
|
|
175
|
-
- Check file checklist completed
|
|
176
|
-
- Verify patterns followed
|
|
177
|
-
|
|
178
|
-
2. **Update spec:**
|
|
179
|
-
- Mark requirements completed
|
|
180
|
-
- Add implementation notes if deviated
|
|
181
|
-
- Update status
|
|
182
|
-
|
|
183
|
-
3. **Git commit** (if user requests)
|
|
184
|
-
- Follow git conventions from tech-context.md
|
|
185
|
-
- Reference UC in commit message
|
|
186
|
-
|
|
187
|
-
4. **Next UC:**
|
|
188
|
-
- If "one by one": Ask user to continue
|
|
189
|
-
- If "multiple" or "all": Auto-continue to next UC
|
|
190
|
-
|
|
191
|
-
### Phase 4: Run Tests
|
|
192
|
-
|
|
193
|
-
After all UCs in plan completed:
|
|
194
|
-
|
|
195
|
-
1. **Auto-trigger `/dev-test`** (if available)
|
|
196
|
-
- Runs test suite
|
|
197
|
-
- Reports results
|
|
130
|
+
## How Principles Work
|
|
198
131
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
132
|
+
```
|
|
133
|
+
Universal Principles (references/)
|
|
134
|
+
+
|
|
135
|
+
Project Specifics (tech-context.md)
|
|
136
|
+
=
|
|
137
|
+
Implementation
|
|
138
|
+
```
|
|
203
139
|
|
|
204
|
-
|
|
205
|
-
|
|
140
|
+
**Apply what the requirement needs:**
|
|
141
|
+
- API endpoint? → backend-principles.md + tech-context.md (API patterns)
|
|
142
|
+
- UI component? → frontend-principles.md + tech-context.md (component patterns)
|
|
143
|
+
- Form validation? → Both + tech-context.md (validation pattern)
|
|
144
|
+
- Full-stack feature? → Use all as needed
|
|
145
|
+
|
|
146
|
+
## After Implementation
|
|
147
|
+
|
|
148
|
+
**When all UCs complete:**
|
|
149
|
+
- Auto-trigger `/dev-test` (if available)
|
|
150
|
+
- If tests fail: Fix issues, re-run
|
|
151
|
+
- If tests pass: Suggest `/dev-review`
|
|
152
|
+
|
|
153
|
+
**For each UC complete:**
|
|
154
|
+
- Update spec status
|
|
155
|
+
- Commit if requested (follow git conventions from tech-context.md)
|
|
156
|
+
- Continue to next UC (based on implementation mode)
|
|
206
157
|
|
|
207
158
|
## How Principles Work
|
|
208
159
|
|