opencode-athena 0.0.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/LICENSE +18 -0
- package/README.md +178 -0
- package/commands/athena-debug.md +338 -0
- package/commands/athena-dev.md +322 -0
- package/commands/athena-info.md +325 -0
- package/commands/athena-parallel.md +266 -0
- package/commands/athena-research.md +326 -0
- package/commands/athena-review.md +441 -0
- package/commands/athena-status.md +279 -0
- package/config/presets/enterprise.json +37 -0
- package/config/presets/minimal.json +34 -0
- package/config/presets/solo-quick.json +34 -0
- package/config/presets/standard.json +37 -0
- package/config/schemas/athena.schema.json +128 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +2185 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/index.d.ts +628 -0
- package/dist/index.js +1360 -0
- package/dist/index.js.map +1 -0
- package/dist/plugin/index.d.ts +20 -0
- package/dist/plugin/index.js +1343 -0
- package/dist/plugin/index.js.map +1 -0
- package/package.json +83 -0
|
@@ -0,0 +1,441 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run a combined quality gate on the current story implementation
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Athena Review - Automated Quality Gate
|
|
6
|
+
|
|
7
|
+
Perform a comprehensive quality review by orchestrating **oh-my-opencode Oracle code review** and **BMAD adversarial review**, both powered by Oracle's deep reasoning capabilities.
|
|
8
|
+
|
|
9
|
+
**You are Sisyphus, the orchestrator.** You will coordinate multiple review perspectives and synthesize the findings.
|
|
10
|
+
|
|
11
|
+
## Step 1: Load Story Context
|
|
12
|
+
|
|
13
|
+
Call **athena_get_story** to get the current story context:
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
athena_get_story()
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
This returns:
|
|
20
|
+
- Story requirements and acceptance criteria
|
|
21
|
+
- Relevant architecture sections
|
|
22
|
+
- Relevant PRD sections
|
|
23
|
+
- Sprint context
|
|
24
|
+
|
|
25
|
+
## Step 2: Identify Changed Files
|
|
26
|
+
|
|
27
|
+
Use git to identify what files were modified for this story:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
git diff --name-only HEAD~1..HEAD
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Or use `lsp_workspace_symbols` and codebase knowledge to identify the implementation files.
|
|
34
|
+
|
|
35
|
+
## Step 3: Oracle Code Review (oh-my-opencode Style)
|
|
36
|
+
|
|
37
|
+
**You MUST invoke Oracle for deep code review.**
|
|
38
|
+
|
|
39
|
+
Ask **@oracle** to perform an oh-my-opencode style code review:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
@oracle Please perform a comprehensive code review for Story {storyId}.
|
|
43
|
+
|
|
44
|
+
**Story Context:**
|
|
45
|
+
{paste story requirements and acceptance criteria}
|
|
46
|
+
|
|
47
|
+
**Architecture Patterns:**
|
|
48
|
+
{paste relevant architecture sections}
|
|
49
|
+
|
|
50
|
+
**Changed Files:**
|
|
51
|
+
{list of changed files from Step 2}
|
|
52
|
+
|
|
53
|
+
**Review Focus:**
|
|
54
|
+
|
|
55
|
+
1. **Architectural Compliance**
|
|
56
|
+
- Does this implementation follow the patterns defined in architecture.md?
|
|
57
|
+
- Are there any architectural violations or deviations?
|
|
58
|
+
- Is the code organized according to project structure conventions?
|
|
59
|
+
|
|
60
|
+
2. **Code Quality**
|
|
61
|
+
- Are there code smells or anti-patterns?
|
|
62
|
+
- Is complexity appropriate (no overly complex functions)?
|
|
63
|
+
- Is the code self-documenting with minimal comments?
|
|
64
|
+
- Are variable/function names clear and consistent?
|
|
65
|
+
|
|
66
|
+
3. **Type Safety** (if TypeScript/typed language)
|
|
67
|
+
- Are types used properly?
|
|
68
|
+
- Any use of `any`, `@ts-ignore`, `@ts-expect-error`?
|
|
69
|
+
- Are return types explicit for public APIs?
|
|
70
|
+
|
|
71
|
+
4. **Error Handling**
|
|
72
|
+
- Is error handling comprehensive?
|
|
73
|
+
- Are edge cases covered?
|
|
74
|
+
- Are errors propagated appropriately?
|
|
75
|
+
|
|
76
|
+
5. **Security**
|
|
77
|
+
- Any security vulnerabilities?
|
|
78
|
+
- Input validation present?
|
|
79
|
+
- No hardcoded secrets or credentials?
|
|
80
|
+
|
|
81
|
+
6. **Performance**
|
|
82
|
+
- Any obvious performance issues?
|
|
83
|
+
- Appropriate use of async/await?
|
|
84
|
+
- No unnecessary re-renders or re-computations?
|
|
85
|
+
|
|
86
|
+
7. **Test Coverage**
|
|
87
|
+
- Are tests present for new functionality?
|
|
88
|
+
- Do tests cover edge cases?
|
|
89
|
+
- Are tests readable and maintainable?
|
|
90
|
+
|
|
91
|
+
**Output Format:**
|
|
92
|
+
Provide a structured review with:
|
|
93
|
+
- **Critical Issues** (MUST fix before completion)
|
|
94
|
+
- **Warnings** (SHOULD fix, affects quality)
|
|
95
|
+
- **Recommendations** (COULD improve, nice to have)
|
|
96
|
+
- **Positive Observations** (what was done well)
|
|
97
|
+
|
|
98
|
+
For each issue, include:
|
|
99
|
+
- File path and line number (if applicable)
|
|
100
|
+
- Description of the issue
|
|
101
|
+
- Why it's problematic
|
|
102
|
+
- Suggested fix
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
**Wait for Oracle's response before proceeding to Step 4.**
|
|
106
|
+
|
|
107
|
+
## Step 4: Oracle Adversarial Review (BMAD Methodology)
|
|
108
|
+
|
|
109
|
+
**You MUST invoke Oracle again for adversarial review.**
|
|
110
|
+
|
|
111
|
+
This is BMAD's quality methodology: **assume the code is broken and try to find how**.
|
|
112
|
+
|
|
113
|
+
Ask **@oracle** to perform a BMAD-style adversarial review:
|
|
114
|
+
|
|
115
|
+
```
|
|
116
|
+
@oracle Now perform an ADVERSARIAL review for Story {storyId}.
|
|
117
|
+
|
|
118
|
+
**Your Role:** You are a skeptical QA engineer trying to BREAK this implementation and FIND problems.
|
|
119
|
+
|
|
120
|
+
**Story Acceptance Criteria:**
|
|
121
|
+
{paste acceptance criteria from story}
|
|
122
|
+
|
|
123
|
+
**Implementation:**
|
|
124
|
+
{reference to changed files}
|
|
125
|
+
|
|
126
|
+
**Adversarial Review Instructions:**
|
|
127
|
+
|
|
128
|
+
1. **Challenge Acceptance Criteria**
|
|
129
|
+
- For EACH acceptance criterion, try to find a scenario where it FAILS
|
|
130
|
+
- Are there edge cases not covered by the criteria?
|
|
131
|
+
- Are the criteria vague or incomplete?
|
|
132
|
+
- Does the implementation actually satisfy each criterion?
|
|
133
|
+
|
|
134
|
+
2. **Edge Case Hunting**
|
|
135
|
+
- What inputs could break this code?
|
|
136
|
+
- What states could cause unexpected behavior?
|
|
137
|
+
- What happens with:
|
|
138
|
+
* Empty inputs, null, undefined
|
|
139
|
+
* Very large inputs
|
|
140
|
+
* Malformed or invalid inputs
|
|
141
|
+
* Concurrent operations (if applicable)
|
|
142
|
+
* Network failures (if applicable)
|
|
143
|
+
|
|
144
|
+
3. **Integration Vulnerabilities**
|
|
145
|
+
- How could this break other parts of the system?
|
|
146
|
+
- What assumptions does this code make about its dependencies?
|
|
147
|
+
- What happens if those assumptions are violated?
|
|
148
|
+
|
|
149
|
+
4. **Missing Requirements**
|
|
150
|
+
- What scenarios does this story NOT address but should?
|
|
151
|
+
- Are there user workflows that would break?
|
|
152
|
+
- What features are incomplete?
|
|
153
|
+
|
|
154
|
+
5. **Test Adequacy**
|
|
155
|
+
- Can you think of tests that SHOULD exist but DON'T?
|
|
156
|
+
- Do existing tests actually prove the code works?
|
|
157
|
+
- Are tests checking the right things?
|
|
158
|
+
|
|
159
|
+
6. **Production Readiness**
|
|
160
|
+
- What could go wrong in production that won't in development?
|
|
161
|
+
- Are there monitoring/logging gaps?
|
|
162
|
+
- What failure modes exist?
|
|
163
|
+
|
|
164
|
+
**Output Format:**
|
|
165
|
+
Provide findings as:
|
|
166
|
+
- **Blockers** (Critical issues that would cause failures in production)
|
|
167
|
+
- **Gaps** (Missing functionality or incomplete implementation)
|
|
168
|
+
- **Edge Cases** (Scenarios not handled correctly)
|
|
169
|
+
- **Test Gaps** (Missing or inadequate tests)
|
|
170
|
+
- **Future Risks** (Technical debt or maintainability concerns)
|
|
171
|
+
|
|
172
|
+
For each finding:
|
|
173
|
+
- Specific scenario that would fail
|
|
174
|
+
- Why it's a problem
|
|
175
|
+
- Severity (Critical / High / Medium / Low)
|
|
176
|
+
- Recommended fix or mitigation
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
**Wait for Oracle's adversarial review before proceeding to Step 5.**
|
|
180
|
+
|
|
181
|
+
## Step 5: Automated Quality Checks
|
|
182
|
+
|
|
183
|
+
While Oracle reviews are running or after they complete, run automated checks:
|
|
184
|
+
|
|
185
|
+
### 5.1 LSP Diagnostics
|
|
186
|
+
|
|
187
|
+
For each changed file, run:
|
|
188
|
+
|
|
189
|
+
```
|
|
190
|
+
lsp_diagnostics(filePath: "<file>", severity: "all")
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
Collect all errors and warnings.
|
|
194
|
+
|
|
195
|
+
### 5.2 Anti-Pattern Detection
|
|
196
|
+
|
|
197
|
+
Use AST-grep to check for common anti-patterns:
|
|
198
|
+
|
|
199
|
+
**For TypeScript/JavaScript projects:**
|
|
200
|
+
|
|
201
|
+
```
|
|
202
|
+
ast_grep_search(pattern: "console.log($$$)", lang: "typescript")
|
|
203
|
+
ast_grep_search(pattern: "as any", lang: "typescript")
|
|
204
|
+
ast_grep_search(pattern: "catch($E) {}", lang: "typescript")
|
|
205
|
+
ast_grep_search(pattern: "@ts-ignore", lang: "typescript")
|
|
206
|
+
ast_grep_search(pattern: "@ts-expect-error", lang: "typescript")
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
**For Python projects:**
|
|
210
|
+
|
|
211
|
+
```
|
|
212
|
+
ast_grep_search(pattern: "except: pass", lang: "python")
|
|
213
|
+
ast_grep_search(pattern: "print($$$)", lang: "python")
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### 5.3 Build Verification
|
|
217
|
+
|
|
218
|
+
If the project has a build script in `package.json` or equivalent:
|
|
219
|
+
|
|
220
|
+
```bash
|
|
221
|
+
npm run build
|
|
222
|
+
# OR
|
|
223
|
+
pnpm run build
|
|
224
|
+
# OR
|
|
225
|
+
yarn build
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
Capture build output and check for errors.
|
|
229
|
+
|
|
230
|
+
### 5.4 Test Execution
|
|
231
|
+
|
|
232
|
+
If the project has tests:
|
|
233
|
+
|
|
234
|
+
```bash
|
|
235
|
+
npm test
|
|
236
|
+
# OR
|
|
237
|
+
pnpm test
|
|
238
|
+
# OR
|
|
239
|
+
yarn test
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
Capture test results.
|
|
243
|
+
|
|
244
|
+
## Step 6: Synthesize Quality Gate Report
|
|
245
|
+
|
|
246
|
+
**After receiving both Oracle reviews and automated check results**, synthesize a unified quality gate report.
|
|
247
|
+
|
|
248
|
+
Generate this structured report:
|
|
249
|
+
|
|
250
|
+
```markdown
|
|
251
|
+
# Quality Gate Report: Story {storyId}
|
|
252
|
+
|
|
253
|
+
## Summary
|
|
254
|
+
|
|
255
|
+
- **Overall Status**: PASS / FAIL / NEEDS WORK
|
|
256
|
+
- **Review Date**: {current date}
|
|
257
|
+
- **Reviewed By**: Sisyphus (orchestrator) + Oracle (reviews)
|
|
258
|
+
|
|
259
|
+
---
|
|
260
|
+
|
|
261
|
+
## Oracle Code Review (oh-my-opencode)
|
|
262
|
+
|
|
263
|
+
### Critical Issues: {count}
|
|
264
|
+
{list all critical issues from Oracle's code review}
|
|
265
|
+
|
|
266
|
+
### Warnings: {count}
|
|
267
|
+
{list all warnings from Oracle's code review}
|
|
268
|
+
|
|
269
|
+
### Recommendations: {count}
|
|
270
|
+
{list all recommendations from Oracle's code review}
|
|
271
|
+
|
|
272
|
+
### Positive Observations:
|
|
273
|
+
{list what Oracle noted as well-done}
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
277
|
+
## Oracle Adversarial Review (BMAD Methodology)
|
|
278
|
+
|
|
279
|
+
### Blockers: {count}
|
|
280
|
+
{list all blockers from Oracle's adversarial review}
|
|
281
|
+
|
|
282
|
+
### Gaps: {count}
|
|
283
|
+
{list all gaps from Oracle's adversarial review}
|
|
284
|
+
|
|
285
|
+
### Edge Cases: {count}
|
|
286
|
+
{list all unhandled edge cases from Oracle's adversarial review}
|
|
287
|
+
|
|
288
|
+
### Test Gaps: {count}
|
|
289
|
+
{list all test gaps from Oracle's adversarial review}
|
|
290
|
+
|
|
291
|
+
### Future Risks: {count}
|
|
292
|
+
{list all future risks from Oracle's adversarial review}
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
## Automated Quality Checks
|
|
297
|
+
|
|
298
|
+
### LSP Diagnostics
|
|
299
|
+
- **Errors**: {count} {list if any}
|
|
300
|
+
- **Warnings**: {count} {list if any}
|
|
301
|
+
|
|
302
|
+
### Anti-Patterns Detected
|
|
303
|
+
{list any anti-patterns found via ast_grep}
|
|
304
|
+
|
|
305
|
+
### Build Status
|
|
306
|
+
- **Result**: PASS / FAIL
|
|
307
|
+
- **Output**: {relevant build output if failed}
|
|
308
|
+
|
|
309
|
+
### Test Results
|
|
310
|
+
- **Result**: PASS / FAIL
|
|
311
|
+
- **Tests Run**: {count}
|
|
312
|
+
- **Tests Passed**: {count}
|
|
313
|
+
- **Tests Failed**: {count} {list failures if any}
|
|
314
|
+
|
|
315
|
+
---
|
|
316
|
+
|
|
317
|
+
## Acceptance Criteria Verification
|
|
318
|
+
|
|
319
|
+
{For each acceptance criterion from the story:}
|
|
320
|
+
|
|
321
|
+
### AC{number}: {criterion text}
|
|
322
|
+
- **Status**: ✅ VERIFIED / ⚠️ PARTIAL / ❌ NOT MET
|
|
323
|
+
- **Evidence**: {how it's verified or what's missing}
|
|
324
|
+
- **Issues**: {any issues from reviews related to this criterion}
|
|
325
|
+
|
|
326
|
+
---
|
|
327
|
+
|
|
328
|
+
## Quality Gate Decision
|
|
329
|
+
|
|
330
|
+
### Gate Status: PASS / FAIL / NEEDS WORK
|
|
331
|
+
|
|
332
|
+
**Decision Rationale:**
|
|
333
|
+
{Explain why the gate passed, failed, or needs work based on:
|
|
334
|
+
- Number and severity of critical issues
|
|
335
|
+
- Blocker count
|
|
336
|
+
- LSP errors (must be 0 for PASS)
|
|
337
|
+
- Build failures (must pass for PASS)
|
|
338
|
+
- Test failures (must pass for PASS)
|
|
339
|
+
- Acceptance criteria verification
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
### Must Fix Before Completion:
|
|
343
|
+
{List all critical issues, blockers, and LSP errors that MUST be fixed}
|
|
344
|
+
|
|
345
|
+
### Should Fix (Recommended):
|
|
346
|
+
{List warnings, gaps, and edge cases that SHOULD be addressed}
|
|
347
|
+
|
|
348
|
+
### Optional Improvements:
|
|
349
|
+
{List recommendations and future risks for consideration}
|
|
350
|
+
|
|
351
|
+
---
|
|
352
|
+
|
|
353
|
+
## Next Steps
|
|
354
|
+
|
|
355
|
+
{if PASS}:
|
|
356
|
+
1. All quality checks passed
|
|
357
|
+
2. Ready to mark story as completed
|
|
358
|
+
3. No blocking issues found
|
|
359
|
+
|
|
360
|
+
{if FAIL}:
|
|
361
|
+
1. CRITICAL: Address all must-fix items above
|
|
362
|
+
2. Re-run quality gate after fixes
|
|
363
|
+
3. Do NOT mark story complete until gate passes
|
|
364
|
+
|
|
365
|
+
{if NEEDS WORK}:
|
|
366
|
+
1. Address must-fix items (critical issues, blockers, LSP errors)
|
|
367
|
+
2. Consider addressing should-fix items for better quality
|
|
368
|
+
3. Re-run quality gate after critical fixes
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
## Step 7: Update Story Status
|
|
372
|
+
|
|
373
|
+
Based on the Quality Gate Decision:
|
|
374
|
+
|
|
375
|
+
### If PASS (no critical issues, no blockers, LSP clean, build/tests pass):
|
|
376
|
+
|
|
377
|
+
```
|
|
378
|
+
athena_update_status({
|
|
379
|
+
storyId: "{storyId}",
|
|
380
|
+
status: "completed",
|
|
381
|
+
completionSummary: "Quality gate PASSED. Oracle code review: {X} issues (all addressed). Adversarial review: {Y} findings (all resolved). All automated checks passed. All acceptance criteria verified."
|
|
382
|
+
})
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
### If FAIL (critical issues OR blockers OR LSP errors OR build/test failures):
|
|
386
|
+
|
|
387
|
+
```
|
|
388
|
+
athena_update_status({
|
|
389
|
+
storyId: "{storyId}",
|
|
390
|
+
status: "in_progress",
|
|
391
|
+
notes: "Quality gate FAILED. Must fix: {count} critical issues, {count} blockers, {count} LSP errors. See quality gate report above. Re-run /athena-review after fixes."
|
|
392
|
+
})
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
### If NEEDS WORK (warnings/gaps but no critical issues):
|
|
396
|
+
|
|
397
|
+
```
|
|
398
|
+
athena_update_status({
|
|
399
|
+
storyId: "{storyId}",
|
|
400
|
+
status: "needs_review",
|
|
401
|
+
notes: "Quality gate: NEEDS WORK. Critical issues resolved, but {count} warnings and {count} gaps found. Recommend addressing before completion. See quality gate report above."
|
|
402
|
+
})
|
|
403
|
+
```
|
|
404
|
+
|
|
405
|
+
## Important Notes
|
|
406
|
+
|
|
407
|
+
### Review Philosophy
|
|
408
|
+
|
|
409
|
+
- **Oracle Code Review**: Architectural and code quality perspective (constructive)
|
|
410
|
+
- **Oracle Adversarial Review**: QA/testing perspective (destructive - trying to break it)
|
|
411
|
+
- **Both use the same model** (Oracle agent model, typically GPT-5.2)
|
|
412
|
+
- **Both perspectives are essential** for comprehensive quality assurance
|
|
413
|
+
|
|
414
|
+
### Cost Awareness
|
|
415
|
+
|
|
416
|
+
- **Oracle is expensive** (high-quality reasoning model)
|
|
417
|
+
- **Two Oracle invocations** per quality gate
|
|
418
|
+
- Only use `/athena-review` for **significant story implementations**
|
|
419
|
+
- For trivial changes, manual checks may suffice
|
|
420
|
+
|
|
421
|
+
### Quality Standards
|
|
422
|
+
|
|
423
|
+
- **LSP errors MUST be 0** for PASS
|
|
424
|
+
- **Build MUST succeed** for PASS
|
|
425
|
+
- **Tests MUST pass** for PASS (if tests exist)
|
|
426
|
+
- **Critical issues MUST be 0** for PASS
|
|
427
|
+
- **Blockers MUST be 0** for PASS
|
|
428
|
+
|
|
429
|
+
### When to Use
|
|
430
|
+
|
|
431
|
+
Use `/athena-review`:
|
|
432
|
+
- ✅ Before marking a story complete
|
|
433
|
+
- ✅ After implementing significant features
|
|
434
|
+
- ✅ When quality is critical (production code)
|
|
435
|
+
- ✅ When multiple acceptance criteria exist
|
|
436
|
+
|
|
437
|
+
Don't use `/athena-review` for:
|
|
438
|
+
- ❌ Trivial changes (typo fixes, comment updates)
|
|
439
|
+
- ❌ Documentation-only changes
|
|
440
|
+
- ❌ Configuration changes
|
|
441
|
+
- ❌ When you've already manually verified everything
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: View and manage BMAD sprint status
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Athena Status - Sprint Status Management
|
|
6
|
+
|
|
7
|
+
View current sprint progress and manage story statuses. This command helps you track where you are in the sprint and what to work on next.
|
|
8
|
+
|
|
9
|
+
## Quick Status Check
|
|
10
|
+
|
|
11
|
+
Get an overview of the current sprint:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
athena_get_story()
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
This returns:
|
|
18
|
+
- **Current Story**: The story you're working on (if any)
|
|
19
|
+
- **Sprint Progress**: Completed, in-progress, pending, blocked counts
|
|
20
|
+
- **Next Story**: The next story to work on
|
|
21
|
+
- **Epic Context**: Which epic the current work belongs to
|
|
22
|
+
|
|
23
|
+
## Sprint Overview
|
|
24
|
+
|
|
25
|
+
When you call `athena_get_story()`, review the sprint progress:
|
|
26
|
+
|
|
27
|
+
```markdown
|
|
28
|
+
## Sprint Progress Example
|
|
29
|
+
|
|
30
|
+
Epic: User Authentication (Epic 2)
|
|
31
|
+
- Completed: 3 stories (2.1, 2.2, 2.3)
|
|
32
|
+
- In Progress: 1 story (2.4) ← Current
|
|
33
|
+
- Pending: 2 stories (2.5, 2.6)
|
|
34
|
+
- Blocked: 0 stories
|
|
35
|
+
- Progress: 50% complete
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Story Status Management
|
|
39
|
+
|
|
40
|
+
### Start Working on a Story
|
|
41
|
+
|
|
42
|
+
When you begin implementing a story:
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
athena_update_status({
|
|
46
|
+
storyId: "2.4",
|
|
47
|
+
status: "in_progress"
|
|
48
|
+
})
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
**When to use:**
|
|
52
|
+
- Starting a new story from `/athena-dev`
|
|
53
|
+
- Resuming work after a break
|
|
54
|
+
- Moving from blocked to in-progress
|
|
55
|
+
|
|
56
|
+
### Complete a Story
|
|
57
|
+
|
|
58
|
+
When implementation is done and verified:
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
athena_update_status({
|
|
62
|
+
storyId: "2.4",
|
|
63
|
+
status: "completed",
|
|
64
|
+
completionSummary: "Implemented OAuth2 login flow with Google and GitHub providers. Added token refresh mechanism. All tests passing."
|
|
65
|
+
})
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**Requirements for completion:**
|
|
69
|
+
- ✅ All acceptance criteria met
|
|
70
|
+
- ✅ LSP diagnostics clean
|
|
71
|
+
- ✅ Build passes
|
|
72
|
+
- ✅ Tests pass
|
|
73
|
+
- ✅ Code follows architecture patterns
|
|
74
|
+
|
|
75
|
+
**Best Practices for completionSummary:**
|
|
76
|
+
- Be specific about what was built
|
|
77
|
+
- Mention key components or files
|
|
78
|
+
- Note test status
|
|
79
|
+
- Include any notable decisions or trade-offs
|
|
80
|
+
|
|
81
|
+
### Block a Story
|
|
82
|
+
|
|
83
|
+
When you can't proceed due to an external dependency:
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
athena_update_status({
|
|
87
|
+
storyId: "2.4",
|
|
88
|
+
status: "blocked",
|
|
89
|
+
notes: "Blocked on API credentials. Need OAuth client ID and secret from DevOps team. ETA unknown."
|
|
90
|
+
})
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
**When to block:**
|
|
94
|
+
- Waiting for external team or resource
|
|
95
|
+
- Missing design/specification clarity
|
|
96
|
+
- Dependency on another incomplete story
|
|
97
|
+
- Technical blocker requiring decision
|
|
98
|
+
|
|
99
|
+
**Best Practices for notes:**
|
|
100
|
+
- Explain what's blocking you
|
|
101
|
+
- What you need to unblock
|
|
102
|
+
- Who can provide it
|
|
103
|
+
- Any workarounds attempted
|
|
104
|
+
|
|
105
|
+
### Request Review
|
|
106
|
+
|
|
107
|
+
When ready for code review or QA:
|
|
108
|
+
|
|
109
|
+
```
|
|
110
|
+
athena_update_status({
|
|
111
|
+
storyId: "2.4",
|
|
112
|
+
status: "needs_review"
|
|
113
|
+
})
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
**When to request review:**
|
|
117
|
+
- Implementation complete but not verified
|
|
118
|
+
- Want another pass before marking complete
|
|
119
|
+
- Before running `/athena-review` quality gate
|
|
120
|
+
|
|
121
|
+
## Workflow Integration
|
|
122
|
+
|
|
123
|
+
### Recommended Sprint Workflow
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
┌──────────────────────────────────────────────────────────────┐
|
|
127
|
+
│ 1. CHECK STATUS │
|
|
128
|
+
│ /athena-status → See sprint progress, identify next │
|
|
129
|
+
└──────────────────────────────────────────────────────────────┘
|
|
130
|
+
│
|
|
131
|
+
▼
|
|
132
|
+
┌──────────────────────────────────────────────────────────────┐
|
|
133
|
+
│ 2. START IMPLEMENTATION │
|
|
134
|
+
│ /athena-dev → Load story, plan, implement │
|
|
135
|
+
│ Status: pending → in_progress │
|
|
136
|
+
└──────────────────────────────────────────────────────────────┘
|
|
137
|
+
│
|
|
138
|
+
▼
|
|
139
|
+
┌──────────────────────────────────────────────────────────────┐
|
|
140
|
+
│ 3. QUALITY GATE (Optional but Recommended) │
|
|
141
|
+
│ /athena-review → Oracle code review + adversarial review │
|
|
142
|
+
│ Status: in_progress → needs_review → completed/in_progress│
|
|
143
|
+
└──────────────────────────────────────────────────────────────┘
|
|
144
|
+
│
|
|
145
|
+
▼
|
|
146
|
+
┌──────────────────────────────────────────────────────────────┐
|
|
147
|
+
│ 4. COMPLETE & NEXT │
|
|
148
|
+
│ /athena-status → Verify completion, see next story │
|
|
149
|
+
│ Status: in_progress → completed │
|
|
150
|
+
└──────────────────────────────────────────────────────────────┘
|
|
151
|
+
│
|
|
152
|
+
▼
|
|
153
|
+
Repeat for next story
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Command Quick Reference
|
|
157
|
+
|
|
158
|
+
| Situation | Command | Purpose |
|
|
159
|
+
|-----------|---------|---------|
|
|
160
|
+
| See sprint progress | `/athena-status` | Get overview and next story |
|
|
161
|
+
| Start implementing | `/athena-dev` | Load story and implement |
|
|
162
|
+
| Need research | `/athena-research` | Find patterns and docs |
|
|
163
|
+
| Hit a complex bug | `/athena-debug` | Oracle-powered debugging |
|
|
164
|
+
| Ready to complete | `/athena-review` | Quality gate before completion |
|
|
165
|
+
| View config | `/athena-info` | Check toolkit settings |
|
|
166
|
+
|
|
167
|
+
## Status Transitions
|
|
168
|
+
|
|
169
|
+
### Valid Status Flow
|
|
170
|
+
|
|
171
|
+
```
|
|
172
|
+
pending ──────┬─────────────────────────────────────────┐
|
|
173
|
+
│ │
|
|
174
|
+
▼ │
|
|
175
|
+
in_progress ◄──────────────────────────┐ │
|
|
176
|
+
│ │ │
|
|
177
|
+
├──────► blocked ─────────────────┘ │
|
|
178
|
+
│ │ │
|
|
179
|
+
│ └────────────────────────────┘
|
|
180
|
+
│ (when unblocked)
|
|
181
|
+
│
|
|
182
|
+
├──────► needs_review ────────────┐
|
|
183
|
+
│ │
|
|
184
|
+
│ ▼
|
|
185
|
+
└──────────────────────────► completed
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### Status Definitions
|
|
189
|
+
|
|
190
|
+
| Status | Meaning | Next Actions |
|
|
191
|
+
|--------|---------|--------------|
|
|
192
|
+
| **pending** | Not yet started | Start with `/athena-dev` |
|
|
193
|
+
| **in_progress** | Actively being worked on | Continue implementation |
|
|
194
|
+
| **blocked** | Waiting for external dependency | Resolve blocker, then resume |
|
|
195
|
+
| **needs_review** | Ready for review | Run `/athena-review` |
|
|
196
|
+
| **completed** | Done and verified | Move to next story |
|
|
197
|
+
|
|
198
|
+
## Handling Special Cases
|
|
199
|
+
|
|
200
|
+
### Resuming After Interruption
|
|
201
|
+
|
|
202
|
+
If you return to a story after a break:
|
|
203
|
+
|
|
204
|
+
```
|
|
205
|
+
# Check current state
|
|
206
|
+
athena_get_story()
|
|
207
|
+
|
|
208
|
+
# If status is in_progress, continue
|
|
209
|
+
# If status is pending, start fresh with /athena-dev
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
### Story Dependencies
|
|
213
|
+
|
|
214
|
+
If Story B depends on Story A:
|
|
215
|
+
|
|
216
|
+
```
|
|
217
|
+
# Check if Story A is complete
|
|
218
|
+
athena_get_story({ storyId: "A" })
|
|
219
|
+
|
|
220
|
+
# If not complete, work on A first
|
|
221
|
+
# If complete, proceed with B
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
### Blocked Resolution
|
|
225
|
+
|
|
226
|
+
When a blocker is resolved:
|
|
227
|
+
|
|
228
|
+
```
|
|
229
|
+
athena_update_status({
|
|
230
|
+
storyId: "2.4",
|
|
231
|
+
status: "in_progress",
|
|
232
|
+
notes: "Blocker resolved. Received API credentials from DevOps. Resuming implementation."
|
|
233
|
+
})
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
### Reassessing Completion
|
|
237
|
+
|
|
238
|
+
If issues are found after marking complete:
|
|
239
|
+
|
|
240
|
+
```
|
|
241
|
+
athena_update_status({
|
|
242
|
+
storyId: "2.4",
|
|
243
|
+
status: "in_progress",
|
|
244
|
+
notes: "Reopened: Found edge case not covered. Need to add handling for empty input."
|
|
245
|
+
})
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
## Sprint Health Indicators
|
|
249
|
+
|
|
250
|
+
When reviewing sprint status, watch for:
|
|
251
|
+
|
|
252
|
+
### Healthy Sprint
|
|
253
|
+
- ✅ Stories completing regularly
|
|
254
|
+
- ✅ Few or no blocked stories
|
|
255
|
+
- ✅ Clear next story identified
|
|
256
|
+
- ✅ Progress percentage increasing
|
|
257
|
+
|
|
258
|
+
### Warning Signs
|
|
259
|
+
- ⚠️ Multiple stories blocked
|
|
260
|
+
- ⚠️ Story in_progress for too long
|
|
261
|
+
- ⚠️ No progress for extended time
|
|
262
|
+
- ⚠️ Blockers not getting resolved
|
|
263
|
+
|
|
264
|
+
### Actions for Warning Signs
|
|
265
|
+
|
|
266
|
+
| Warning | Action |
|
|
267
|
+
|---------|--------|
|
|
268
|
+
| Multiple blocked stories | Escalate blockers, prioritize resolution |
|
|
269
|
+
| Story stuck in_progress | Break into smaller tasks, ask for help |
|
|
270
|
+
| No progress | Check for hidden blockers, reassess scope |
|
|
271
|
+
| Blockers aging | Follow up with responsible parties |
|
|
272
|
+
|
|
273
|
+
## Tips
|
|
274
|
+
|
|
275
|
+
- **Check status regularly** - Start each session with `/athena-status`
|
|
276
|
+
- **Update status honestly** - Accurate status helps track progress
|
|
277
|
+
- **Include context** - Good notes help when resuming later
|
|
278
|
+
- **Complete incrementally** - Mark stories done as they finish, not in batches
|
|
279
|
+
- **Don't skip reviews** - Use `/athena-review` for quality assurance
|