agileflow 2.77.0 → 2.79.0
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/README.md +6 -6
- package/package.json +6 -1
- package/scripts/agileflow-configure.js +174 -2
- package/scripts/agileflow-statusline.sh +171 -78
- package/scripts/agileflow-welcome.js +88 -64
- package/scripts/auto-self-improve.js +23 -45
- package/scripts/check-update.js +35 -42
- package/scripts/damage-control/bash-tool-damage-control.js +257 -0
- package/scripts/damage-control/edit-tool-damage-control.js +279 -0
- package/scripts/damage-control/patterns.yaml +227 -0
- package/scripts/damage-control/write-tool-damage-control.js +274 -0
- package/scripts/damage-control-bash.js +232 -0
- package/scripts/damage-control-edit.js +243 -0
- package/scripts/damage-control-write.js +243 -0
- package/scripts/obtain-context.js +22 -3
- package/scripts/ralph-loop.js +191 -63
- package/scripts/screenshot-verifier.js +213 -0
- package/scripts/session-manager.js +12 -33
- package/src/core/agents/accessibility.md +124 -53
- package/src/core/agents/adr-writer.md +192 -52
- package/src/core/agents/analytics.md +139 -60
- package/src/core/agents/api.md +173 -63
- package/src/core/agents/ci.md +139 -57
- package/src/core/agents/compliance.md +159 -68
- package/src/core/agents/configuration/damage-control.md +356 -0
- package/src/core/agents/configuration-damage-control.md +248 -0
- package/src/core/agents/database.md +162 -61
- package/src/core/agents/datamigration.md +179 -66
- package/src/core/agents/design.md +179 -57
- package/src/core/agents/devops.md +160 -3
- package/src/core/agents/documentation.md +204 -60
- package/src/core/agents/epic-planner.md +147 -55
- package/src/core/agents/integrations.md +197 -69
- package/src/core/agents/mentor.md +158 -57
- package/src/core/agents/mobile.md +159 -67
- package/src/core/agents/monitoring.md +154 -65
- package/src/core/agents/multi-expert.md +115 -43
- package/src/core/agents/orchestrator.md +77 -24
- package/src/core/agents/performance.md +130 -75
- package/src/core/agents/product.md +151 -55
- package/src/core/agents/qa.md +162 -74
- package/src/core/agents/readme-updater.md +178 -76
- package/src/core/agents/refactor.md +148 -95
- package/src/core/agents/research.md +143 -72
- package/src/core/agents/security.md +154 -65
- package/src/core/agents/testing.md +176 -97
- package/src/core/agents/ui.md +170 -79
- package/src/core/commands/adr/list.md +171 -0
- package/src/core/commands/adr/update.md +235 -0
- package/src/core/commands/adr/view.md +252 -0
- package/src/core/commands/adr.md +207 -50
- package/src/core/commands/agent.md +16 -0
- package/src/core/commands/assign.md +148 -44
- package/src/core/commands/auto.md +18 -1
- package/src/core/commands/babysit.md +391 -38
- package/src/core/commands/baseline.md +14 -0
- package/src/core/commands/blockers.md +170 -51
- package/src/core/commands/board.md +144 -66
- package/src/core/commands/changelog.md +15 -0
- package/src/core/commands/ci.md +179 -69
- package/src/core/commands/compress.md +18 -0
- package/src/core/commands/configure.md +16 -0
- package/src/core/commands/context/export.md +193 -4
- package/src/core/commands/context/full.md +191 -18
- package/src/core/commands/context/note.md +248 -4
- package/src/core/commands/debt.md +17 -0
- package/src/core/commands/deploy.md +208 -65
- package/src/core/commands/deps.md +15 -0
- package/src/core/commands/diagnose.md +16 -0
- package/src/core/commands/docs.md +196 -64
- package/src/core/commands/epic/list.md +170 -0
- package/src/core/commands/epic/view.md +242 -0
- package/src/core/commands/epic.md +192 -69
- package/src/core/commands/feedback.md +191 -71
- package/src/core/commands/handoff.md +162 -48
- package/src/core/commands/help.md +9 -0
- package/src/core/commands/ideate.md +446 -0
- package/src/core/commands/impact.md +16 -0
- package/src/core/commands/metrics.md +141 -37
- package/src/core/commands/multi-expert.md +77 -0
- package/src/core/commands/packages.md +16 -0
- package/src/core/commands/pr.md +161 -67
- package/src/core/commands/readme-sync.md +16 -0
- package/src/core/commands/research/analyze.md +568 -0
- package/src/core/commands/research/ask.md +345 -20
- package/src/core/commands/research/import.md +562 -19
- package/src/core/commands/research/list.md +173 -5
- package/src/core/commands/research/view.md +181 -8
- package/src/core/commands/retro.md +135 -48
- package/src/core/commands/review.md +219 -47
- package/src/core/commands/session/end.md +209 -0
- package/src/core/commands/session/history.md +210 -0
- package/src/core/commands/session/init.md +116 -0
- package/src/core/commands/session/new.md +296 -0
- package/src/core/commands/session/resume.md +166 -0
- package/src/core/commands/session/status.md +166 -0
- package/src/core/commands/setup/visual-e2e.md +462 -0
- package/src/core/commands/skill/create.md +115 -17
- package/src/core/commands/skill/delete.md +117 -0
- package/src/core/commands/skill/edit.md +104 -0
- package/src/core/commands/skill/list.md +128 -0
- package/src/core/commands/skill/test.md +135 -0
- package/src/core/commands/skill/upgrade.md +542 -0
- package/src/core/commands/sprint.md +17 -1
- package/src/core/commands/status.md +133 -21
- package/src/core/commands/story/list.md +176 -0
- package/src/core/commands/story/view.md +265 -0
- package/src/core/commands/story-validate.md +101 -1
- package/src/core/commands/story.md +204 -51
- package/src/core/commands/template.md +16 -1
- package/src/core/commands/tests.md +226 -64
- package/src/core/commands/update.md +17 -1
- package/src/core/commands/validate-expertise.md +16 -0
- package/src/core/commands/velocity.md +140 -36
- package/src/core/commands/verify.md +14 -0
- package/src/core/commands/whats-new.md +30 -0
- package/src/core/skills/_learnings/README.md +91 -0
- package/src/core/skills/_learnings/_template.yaml +106 -0
- package/src/core/skills/_learnings/code-review.yaml +118 -0
- package/src/core/skills/_learnings/commit.yaml +69 -0
- package/src/core/skills/_learnings/story-writer.yaml +71 -0
- package/src/core/templates/damage-control-patterns.yaml +234 -0
- package/src/core/templates/skill-template.md +53 -11
- package/tools/cli/commands/start.js +180 -0
- package/tools/cli/installers/ide/claude-code.js +127 -0
- package/tools/cli/tui/Dashboard.js +66 -0
- package/tools/cli/tui/StoryList.js +69 -0
- package/tools/cli/tui/index.js +16 -0
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Set up automated testing infrastructure
|
|
3
3
|
argument-hint: (no arguments)
|
|
4
|
+
compact_context:
|
|
5
|
+
priority: high
|
|
6
|
+
preserve_rules:
|
|
7
|
+
- "Auto-detect language/runtime and testing framework (Node.js→Jest, Python→pytest, Ruby→RSpec, etc.)"
|
|
8
|
+
- "MUST use TodoWrite to track all 10 steps (detect, check existing, install, config, examples, structure, scripts, CI, docs, run)"
|
|
9
|
+
- "Always show diff-first preview before creating files"
|
|
10
|
+
- "Create working example tests (unit, integration, E2E if requested) - not just config"
|
|
11
|
+
- "Set reasonable coverage thresholds (70%, not 100%)"
|
|
12
|
+
- "Integrate with CI immediately (.github/workflows/ci.yml update)"
|
|
13
|
+
- "Create docs/02-practices/testing.md documentation"
|
|
14
|
+
- "Run test suite after setup to verify it works"
|
|
15
|
+
state_fields:
|
|
16
|
+
- framework_detected
|
|
17
|
+
- example_tests_created
|
|
18
|
+
- ci_integrated
|
|
19
|
+
- coverage_threshold_set
|
|
4
20
|
---
|
|
5
21
|
|
|
6
22
|
# setup-tests
|
|
@@ -18,76 +34,18 @@ node .agileflow/scripts/obtain-context.js tests
|
|
|
18
34
|
---
|
|
19
35
|
|
|
20
36
|
<!-- COMPACT_SUMMARY_START -->
|
|
21
|
-
## Compact Summary
|
|
22
37
|
|
|
23
|
-
|
|
38
|
+
## ⚠️ COMPACT SUMMARY - /agileflow:setup-tests IS ACTIVE
|
|
24
39
|
|
|
25
|
-
**
|
|
40
|
+
**CRITICAL**: You are bootstrapping test infrastructure. All 10 steps must complete to have working test suite.
|
|
26
41
|
|
|
27
|
-
**
|
|
28
|
-
- MUST use TodoWrite to track all 10 steps (detect language, check existing setup, install deps, create config, create examples, create structure, add scripts, integrate CI, create docs, run tests)
|
|
29
|
-
- MUST preview all changes (diff-first, YES/NO)
|
|
30
|
-
- MUST create working examples, not just config
|
|
31
|
-
- MUST run test suite after setup to verify
|
|
32
|
-
- MUST integrate with CI immediately
|
|
33
|
-
- Set reasonable coverage thresholds (70%, not 100%)
|
|
34
|
-
- Create docs/02-practices/testing.md documentation
|
|
42
|
+
**ROLE**: Test Infrastructure Bootstrapper - Auto-detect language, install framework, create examples, integrate CI
|
|
35
43
|
|
|
36
|
-
|
|
37
|
-
- FRAMEWORK=auto|jest|mocha|pytest|rspec|go-test|cargo-test (default: auto-detect)
|
|
38
|
-
- COVERAGE=yes|no (default: yes)
|
|
39
|
-
- E2E=yes|no (default: no, ask if needed)
|
|
40
|
-
|
|
41
|
-
**Project Detection**:
|
|
42
|
-
- Node.js: package.json → Jest/Mocha
|
|
43
|
-
- Python: requirements.txt, pyproject.toml → pytest
|
|
44
|
-
- Ruby: Gemfile → RSpec
|
|
45
|
-
- Go: go.mod → go test
|
|
46
|
-
- Rust: Cargo.toml → cargo test
|
|
47
|
-
- Java: pom.xml, build.gradle → JUnit
|
|
48
|
-
- .NET: *.csproj → xUnit/NUnit
|
|
44
|
+
---
|
|
49
45
|
|
|
50
|
-
|
|
51
|
-
```
|
|
52
|
-
tests/
|
|
53
|
-
├── unit/ # Unit tests (isolated functions/classes)
|
|
54
|
-
├── integration/ # Integration tests (multiple components)
|
|
55
|
-
├── e2e/ # End-to-end tests (full user flows) [if E2E=yes]
|
|
56
|
-
├── fixtures/ # Test data
|
|
57
|
-
└── helpers/ # Test utilities
|
|
58
|
-
```
|
|
46
|
+
### 🚨 RULE #1: ALWAYS USE TodoWrite FOR 10 STEPS
|
|
59
47
|
|
|
60
|
-
|
|
61
|
-
1. Detect language/runtime and framework
|
|
62
|
-
2. Check existing test setup
|
|
63
|
-
3. Install testing framework dependencies
|
|
64
|
-
4. Create test configuration files (jest.config.js, pytest.ini, etc.)
|
|
65
|
-
5. Create example tests (unit, integration, E2E if requested)
|
|
66
|
-
6. Create test directory structure
|
|
67
|
-
7. Add test scripts to package.json/equivalent
|
|
68
|
-
8. Integrate with CI workflow (.github/workflows/ci.yml)
|
|
69
|
-
9. Create docs/02-practices/testing.md documentation
|
|
70
|
-
10. Run tests to verify setup
|
|
71
|
-
|
|
72
|
-
**Output Files**:
|
|
73
|
-
- Config: jest.config.js / pytest.ini / .rspec / etc.
|
|
74
|
-
- Examples: tests/unit/example.test.ts, tests/integration/api.test.ts
|
|
75
|
-
- CI: .github/workflows/ci.yml (test job added)
|
|
76
|
-
- Docs: docs/02-practices/testing.md
|
|
77
|
-
- Scripts: package.json updated with test commands
|
|
78
|
-
|
|
79
|
-
**Success Criteria**:
|
|
80
|
-
- All 10 todo items marked complete
|
|
81
|
-
- Test framework installed and configured
|
|
82
|
-
- Example tests created and passing
|
|
83
|
-
- CI integration added
|
|
84
|
-
- Documentation created
|
|
85
|
-
- User confirmed via YES/NO prompt
|
|
86
|
-
|
|
87
|
-
**Tools Used**:
|
|
88
|
-
- TodoWrite: Track 10-step test infrastructure setup
|
|
89
|
-
|
|
90
|
-
**TodoWrite Example**:
|
|
48
|
+
Track all steps explicitly:
|
|
91
49
|
```xml
|
|
92
50
|
<invoke name="TodoWrite">
|
|
93
51
|
<parameter name="content">
|
|
@@ -106,6 +64,210 @@ tests/
|
|
|
106
64
|
</invoke>
|
|
107
65
|
```
|
|
108
66
|
|
|
67
|
+
Mark each step complete. This ensures comprehensive setup.
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
### 🚨 RULE #2: FRAMEWORK AUTO-DETECTION
|
|
72
|
+
|
|
73
|
+
Detect from manifest files:
|
|
74
|
+
- **Node.js**: package.json → **Jest** (or Mocha if configured)
|
|
75
|
+
- **Python**: requirements.txt/pyproject.toml → **pytest**
|
|
76
|
+
- **Ruby**: Gemfile → **RSpec**
|
|
77
|
+
- **Go**: go.mod → **go test**
|
|
78
|
+
- **Rust**: Cargo.toml → **cargo test**
|
|
79
|
+
- **Java**: pom.xml/build.gradle → **JUnit**
|
|
80
|
+
- **.NET**: *.csproj → **xUnit/NUnit**
|
|
81
|
+
|
|
82
|
+
If unclear, ask: "Detected Node.js. Use Jest?"
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
### 🚨 RULE #3: WORKING EXAMPLES, NOT JUST CONFIG
|
|
87
|
+
|
|
88
|
+
**NEVER** create config without example tests:
|
|
89
|
+
- Create `tests/unit/example.test.ts` (passes immediately)
|
|
90
|
+
- Create `tests/integration/api.test.ts` (passes immediately)
|
|
91
|
+
- Create `tests/e2e/flow.spec.ts` (only if E2E=yes)
|
|
92
|
+
|
|
93
|
+
Examples MUST pass on first run:
|
|
94
|
+
```typescript
|
|
95
|
+
describe('Example Test Suite', () => {
|
|
96
|
+
it('should pass this example test', () => {
|
|
97
|
+
expect(true).toBe(true);
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
### 🚨 RULE #4: COVERAGE THRESHOLD
|
|
105
|
+
|
|
106
|
+
Always set REASONABLE thresholds (not perfectionistic):
|
|
107
|
+
|
|
108
|
+
```javascript
|
|
109
|
+
coverageThreshold: {
|
|
110
|
+
global: {
|
|
111
|
+
branches: 70, // Don't require 100%
|
|
112
|
+
functions: 70, // Realistic goals
|
|
113
|
+
lines: 70,
|
|
114
|
+
statements: 70
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Don't enforce >80% initially. Users will increase over time.
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
### 🚨 RULE #5: CI INTEGRATION MANDATORY
|
|
124
|
+
|
|
125
|
+
Always update/create `.github/workflows/ci.yml` with test job:
|
|
126
|
+
|
|
127
|
+
```yaml
|
|
128
|
+
test:
|
|
129
|
+
runs-on: ubuntu-latest
|
|
130
|
+
steps:
|
|
131
|
+
- uses: actions/checkout@v4
|
|
132
|
+
- run: npm install
|
|
133
|
+
- run: npm test -- --coverage
|
|
134
|
+
- uses: codecov/codecov-action@v3
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
If .github/workflows/ci.yml exists, add test job. Don't replace.
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
### 🚨 RULE #6: DIFF-FIRST PATTERN
|
|
142
|
+
|
|
143
|
+
Always show preview:
|
|
144
|
+
|
|
145
|
+
```
|
|
146
|
+
Will set up testing for: Node.js (Jest)
|
|
147
|
+
|
|
148
|
+
Will create:
|
|
149
|
+
✓ jest.config.js (test configuration)
|
|
150
|
+
✓ tests/unit/example.test.ts (example unit test)
|
|
151
|
+
✓ tests/integration/api.test.ts (example integration test)
|
|
152
|
+
✓ tests/fixtures/ directory
|
|
153
|
+
✓ Update .github/workflows/ci.yml
|
|
154
|
+
|
|
155
|
+
Will install:
|
|
156
|
+
✓ jest @types/jest ts-jest
|
|
157
|
+
|
|
158
|
+
Proceed? (YES/NO)
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
Then ask: "Proceed with test setup? (YES/NO)"
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
### ANTI-PATTERNS (DON'T DO THESE)
|
|
166
|
+
|
|
167
|
+
❌ Create jest.config.js but no example tests
|
|
168
|
+
❌ Set coverage threshold to 100%
|
|
169
|
+
❌ Forget to integrate with CI
|
|
170
|
+
❌ Skip running tests after setup
|
|
171
|
+
❌ Create config without docs
|
|
172
|
+
❌ Hardcode framework (don't auto-detect)
|
|
173
|
+
|
|
174
|
+
### DO THESE INSTEAD
|
|
175
|
+
|
|
176
|
+
✅ Create config AND working example tests
|
|
177
|
+
✅ Set realistic thresholds (70%)
|
|
178
|
+
✅ Add test job to CI immediately
|
|
179
|
+
✅ Run tests after setup to verify
|
|
180
|
+
✅ Create docs/02-practices/testing.md
|
|
181
|
+
✅ Auto-detect language/framework first
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
|
|
185
|
+
### WORKFLOW PHASES
|
|
186
|
+
|
|
187
|
+
**Phase 1: Detection (Steps 1-2)**
|
|
188
|
+
- Scan for package.json, Gemfile, go.mod, etc.
|
|
189
|
+
- Detect language/runtime
|
|
190
|
+
- Check if tests already exist
|
|
191
|
+
|
|
192
|
+
**Phase 2: Installation (Step 3)**
|
|
193
|
+
- Install framework deps (jest, pytest, etc.)
|
|
194
|
+
- Install coverage tools if needed
|
|
195
|
+
|
|
196
|
+
**Phase 3: Configuration (Step 4)**
|
|
197
|
+
- Create config file (jest.config.js, pytest.ini, etc.)
|
|
198
|
+
- Set coverage thresholds (70%)
|
|
199
|
+
|
|
200
|
+
**Phase 4: Examples (Steps 5-6)**
|
|
201
|
+
- Create working example tests
|
|
202
|
+
- Create test directory structure
|
|
203
|
+
|
|
204
|
+
**Phase 5: Integration (Steps 7-8)**
|
|
205
|
+
- Add test scripts to package.json
|
|
206
|
+
- Add test job to CI workflow
|
|
207
|
+
|
|
208
|
+
**Phase 6: Documentation (Step 9)**
|
|
209
|
+
- Create docs/02-practices/testing.md
|
|
210
|
+
|
|
211
|
+
**Phase 7: Verification (Step 10)**
|
|
212
|
+
- Run tests to verify everything works
|
|
213
|
+
- Show test output
|
|
214
|
+
|
|
215
|
+
---
|
|
216
|
+
|
|
217
|
+
### OUTPUT STRUCTURE
|
|
218
|
+
|
|
219
|
+
Always create:
|
|
220
|
+
```
|
|
221
|
+
tests/
|
|
222
|
+
├── unit/ # Fast, isolated tests
|
|
223
|
+
├── integration/ # Slower, multi-component tests
|
|
224
|
+
├── e2e/ # Slow, full-flow tests (if E2E=yes)
|
|
225
|
+
├── fixtures/ # Test data files
|
|
226
|
+
└── helpers/ # Test utilities (mocks, factories)
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
### SCRIPTS TO ADD
|
|
232
|
+
|
|
233
|
+
```json
|
|
234
|
+
{
|
|
235
|
+
"scripts": {
|
|
236
|
+
"test": "jest",
|
|
237
|
+
"test:watch": "jest --watch",
|
|
238
|
+
"test:coverage": "jest --coverage",
|
|
239
|
+
"test:unit": "jest tests/unit",
|
|
240
|
+
"test:integration": "jest tests/integration",
|
|
241
|
+
"test:e2e": "playwright test"
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
---
|
|
247
|
+
|
|
248
|
+
### KEY FILES TO REMEMBER
|
|
249
|
+
|
|
250
|
+
| File | Purpose |
|
|
251
|
+
|------|---------|
|
|
252
|
+
| `jest.config.js` (or equivalent) | Test framework configuration |
|
|
253
|
+
| `tests/unit/example.test.ts` | Working example test |
|
|
254
|
+
| `docs/02-practices/testing.md` | How to write and run tests |
|
|
255
|
+
| `.github/workflows/ci.yml` | CI test job |
|
|
256
|
+
| `.gitignore` entry | Exclude coverage/ from git |
|
|
257
|
+
|
|
258
|
+
---
|
|
259
|
+
|
|
260
|
+
### REMEMBER AFTER COMPACTION
|
|
261
|
+
|
|
262
|
+
- `/agileflow:setup-tests` IS ACTIVE - bootstrap test infrastructure
|
|
263
|
+
- Auto-detect language/framework (Node.js→Jest, Python→pytest, etc.)
|
|
264
|
+
- ALWAYS create working example tests (not just config)
|
|
265
|
+
- Set reasonable coverage (70%, not 100%)
|
|
266
|
+
- Run tests after setup to verify they pass
|
|
267
|
+
- Use TodoWrite to track 10 steps
|
|
268
|
+
- Integrate with CI immediately
|
|
269
|
+
- Create docs/02-practices/testing.md
|
|
270
|
+
|
|
109
271
|
<!-- COMPACT_SUMMARY_END -->
|
|
110
272
|
|
|
111
273
|
## Prompt
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Generate stakeholder progress report
|
|
3
|
-
argument-hint:
|
|
3
|
+
argument-hint: [PERIOD=week|sprint|month|quarter] [AUDIENCE=exec|client|team|board] [FORMAT=email|markdown]
|
|
4
|
+
compact_context:
|
|
5
|
+
priority: high
|
|
6
|
+
preserve_rules:
|
|
7
|
+
- "ACTIVE COMMAND: /agileflow:stakeholder-update - Stakeholder communication generator"
|
|
8
|
+
- "CRITICAL: Aggregate data from 10 sources (status, epics, stories, roadmap, risks, git, bus, ADRs, milestones, releases)"
|
|
9
|
+
- "CRITICAL: PREVIEW before sending (diff-first, YES/NO/EDIT)"
|
|
10
|
+
- "CRITICAL: Always HONEST about blockers and risks (never hide problems)"
|
|
11
|
+
- "MUST focus on business value, not technical jargon (for exec/client audiences)"
|
|
12
|
+
- "MUST save all updates to docs/08-project/updates/ for historical record"
|
|
13
|
+
- "MUST include specific metrics with trends (velocity, coverage, bugs, test coverage)"
|
|
14
|
+
- "Update structure: Executive Summary | Progress | Upcoming | Metrics | Blockers | Decisions | Resources"
|
|
15
|
+
state_fields:
|
|
16
|
+
- period
|
|
17
|
+
- audience
|
|
18
|
+
- format
|
|
19
|
+
- date_range
|
|
4
20
|
---
|
|
5
21
|
|
|
6
22
|
# stakeholder-update
|
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
description: Validate expertise files for drift and staleness
|
|
3
3
|
argument-hint: "[DOMAIN]"
|
|
4
4
|
model: haiku
|
|
5
|
+
compact_context:
|
|
6
|
+
priority: medium
|
|
7
|
+
preserve_rules:
|
|
8
|
+
- "DOMAIN is OPTIONAL - if not provided, validate ALL expertise files"
|
|
9
|
+
- "Run 4 validation checks: file path drift, stale learnings, file size, required sections"
|
|
10
|
+
- "File Path Drift CRITICAL - detect referenced files that no longer exist"
|
|
11
|
+
- "Stale Learnings - flag expertise not updated in 30+ days"
|
|
12
|
+
- "File Size Check - warn if expertise.yaml exceeds 200 lines"
|
|
13
|
+
- "Required Sections - verify domain, mental_models, learnings, key_files, patterns"
|
|
14
|
+
- "Non-destructive (read-only) - report issues but don't auto-fix"
|
|
15
|
+
- "Prioritize drift detection (most critical issue)"
|
|
16
|
+
state_fields:
|
|
17
|
+
- domain_filter
|
|
18
|
+
- total_checks
|
|
19
|
+
- pass_count
|
|
20
|
+
- fail_count
|
|
5
21
|
---
|
|
6
22
|
|
|
7
23
|
# validate-expertise
|
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Track velocity and forecast sprint capacity
|
|
3
|
-
argument-hint:
|
|
3
|
+
argument-hint: "[PERIOD=week|sprint|month|all] [FORECAST=<epic-id>] [FORMAT=report|chart|json]"
|
|
4
4
|
model: haiku
|
|
5
|
+
compact_context:
|
|
6
|
+
priority: medium
|
|
7
|
+
preserve_rules:
|
|
8
|
+
- "ACTIVE COMMAND: /agileflow:velocity - Velocity analyst and forecaster (read-only)"
|
|
9
|
+
- "MUST read docs/09-agents/bus/log.jsonl (parse done status changes with timestamps)"
|
|
10
|
+
- "MUST read docs/06-stories/**/US-*.md for estimates (frontmatter)"
|
|
11
|
+
- "MUST calculate over 3+ time periods for reliability"
|
|
12
|
+
- "MUST warn if sample size <5 stories (unreliable forecast)"
|
|
13
|
+
- "MUST exclude outliers (>3x average) from velocity calc"
|
|
14
|
+
- "MUST save velocity history to docs/08-project/velocity/"
|
|
15
|
+
- "MUST show trend analysis (↗ ↘ →) with % change"
|
|
16
|
+
state_fields:
|
|
17
|
+
- current_velocity
|
|
18
|
+
- trend_pct
|
|
19
|
+
- period
|
|
20
|
+
- sample_size
|
|
5
21
|
---
|
|
6
22
|
|
|
7
23
|
# velocity
|
|
@@ -21,54 +37,142 @@ This gathers git status, stories/epics, session state, and registers for PreComp
|
|
|
21
37
|
---
|
|
22
38
|
|
|
23
39
|
<!-- COMPACT_SUMMARY_START -->
|
|
24
|
-
## Compact Summary
|
|
25
40
|
|
|
26
|
-
|
|
41
|
+
## ⚠️ COMPACT SUMMARY - /agileflow:velocity IS ACTIVE
|
|
27
42
|
|
|
28
|
-
**
|
|
43
|
+
**CRITICAL**: You are the Velocity Analyst. This command analyzes team productivity trends (read-only).
|
|
29
44
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
### 🚨 RULE #1: ALWAYS Parse bus/log.jsonl for Completions
|
|
48
|
+
|
|
49
|
+
Extract "done" status changes:
|
|
50
|
+
1. Read docs/09-agents/bus/log.jsonl
|
|
51
|
+
2. Find entries with type="status" and status="done"
|
|
52
|
+
3. Extract timestamps and story IDs
|
|
53
|
+
4. Match to story files for estimates (frontmatter)
|
|
54
|
+
5. Group by time period (week/sprint/month)
|
|
55
|
+
6. Calculate velocity per period
|
|
56
|
+
|
|
57
|
+
### 🚨 RULE #2: ALWAYS Calculate Over 3+ Time Periods
|
|
37
58
|
|
|
38
|
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
59
|
+
- Minimum 3 periods for trend reliability
|
|
60
|
+
- Warn if sample size <5 stories (unreliable)
|
|
61
|
+
- Exclude outliers >3x average from calc
|
|
62
|
+
- Show moving average trend (↗ ↘ →)
|
|
42
63
|
|
|
43
|
-
|
|
44
|
-
|
|
64
|
+
### 🚨 RULE #3: ALWAYS Show Confidence Levels
|
|
65
|
+
|
|
66
|
+
Confidence = 100% - (StdDev / Velocity Avg) * 100
|
|
67
|
+
- >80% = High confidence (stable velocity)
|
|
68
|
+
- 60-80% = Medium confidence (some variance)
|
|
69
|
+
- <60% = Low confidence (unreliable, don't forecast)
|
|
70
|
+
|
|
71
|
+
### 🚨 RULE #4: ALWAYS Save History
|
|
72
|
+
|
|
73
|
+
Save velocity reports to:
|
|
74
|
+
- docs/08-project/velocity/velocity-YYYYMMDD.md
|
|
75
|
+
- Track trends over time for capacity planning
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## Key Files & Data
|
|
80
|
+
|
|
81
|
+
**Input Parameters** (all optional):
|
|
82
|
+
```
|
|
83
|
+
PERIOD=week|sprint|month|all # Time grouping (default: sprint)
|
|
84
|
+
FORECAST=<EPIC_ID> # Predict epic completion date
|
|
85
|
+
FORMAT=report|chart|json # Output format (default: report)
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
**Data Sources** (read-only):
|
|
89
|
+
1. docs/09-agents/bus/log.jsonl - Completion events with timestamps
|
|
45
90
|
2. docs/06-stories/**/US-*.md - Story estimates (frontmatter)
|
|
46
|
-
3. docs/05-epics/*.md - Epic
|
|
91
|
+
3. docs/05-epics/*.md - Epic totals
|
|
47
92
|
4. docs/08-project/milestones.md - Milestone targets
|
|
48
93
|
|
|
49
|
-
|
|
50
|
-
- Velocity = Total points completed / Number of time periods
|
|
51
|
-
- Days to complete = (Remaining points / Velocity) * 7
|
|
52
|
-
- Confidence = 100% - (Std Dev / Velocity Avg) * 100
|
|
94
|
+
---
|
|
53
95
|
|
|
54
|
-
|
|
55
|
-
1. Parse bus/log.jsonl → Extract "done" status changes with timestamps
|
|
56
|
-
2. Match stories to frontmatter estimates → Convert to points (1d = 1pt)
|
|
57
|
-
3. Group by time period (week/sprint) → Calculate velocity stats
|
|
58
|
-
4. If FORECAST: Calculate remaining points → Forecast completion date
|
|
59
|
-
5. Render report/chart → Generate recommendations
|
|
60
|
-
6. Save to docs/08-project/velocity/velocity-YYYYMMDD.md
|
|
96
|
+
## Key Calculations
|
|
61
97
|
|
|
62
|
-
**
|
|
63
|
-
```
|
|
64
|
-
/
|
|
65
|
-
|
|
66
|
-
|
|
98
|
+
**Velocity Formula**:
|
|
99
|
+
```
|
|
100
|
+
Velocity = Total points completed / Number of periods
|
|
101
|
+
Points = story estimate converted to days (1d = 1 point)
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
**Forecast Formula**:
|
|
67
105
|
```
|
|
106
|
+
Days to complete = (Remaining points / Velocity) * 7
|
|
107
|
+
Completion date = Today + Days to complete
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
**Trend Analysis**:
|
|
111
|
+
```
|
|
112
|
+
% Change = ((Current velocity - Previous velocity) / Previous velocity) * 100
|
|
113
|
+
Trend: ↗ (positive), ↘ (negative), → (stable)
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## Output Structure
|
|
119
|
+
|
|
120
|
+
**Velocity Report Includes**:
|
|
121
|
+
- Current velocity (avg points/period)
|
|
122
|
+
- Trend analysis (↗ ↘ → with % change)
|
|
123
|
+
- Historical breakdown (by week/sprint/month)
|
|
124
|
+
- Velocity by owner (individual agent productivity)
|
|
125
|
+
- Forecasts (if requested)
|
|
126
|
+
- Risk analysis (what could slow us down)
|
|
127
|
+
- Capacity recommendations (plan next sprint)
|
|
128
|
+
- Velocity goals (targets to achieve)
|
|
129
|
+
|
|
130
|
+
**Forecast Details**:
|
|
131
|
+
- Remaining points to complete epic
|
|
132
|
+
- Weeks needed at current velocity
|
|
133
|
+
- Predicted completion date
|
|
134
|
+
- Confidence level (80%/70%/60%)
|
|
135
|
+
- Risk assumptions
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## Anti-Patterns & Correct Usage
|
|
140
|
+
|
|
141
|
+
❌ **DON'T**:
|
|
142
|
+
- Forecast with <5 stories in sample (unreliable)
|
|
143
|
+
- Ignore outliers (can skew velocity)
|
|
144
|
+
- Forecast without confidence levels
|
|
145
|
+
- Use velocity from <3 time periods
|
|
146
|
+
|
|
147
|
+
✅ **DO**:
|
|
148
|
+
- Calculate over 3+ time periods
|
|
149
|
+
- Show trend analysis with % changes
|
|
150
|
+
- Warn if sample size too small
|
|
151
|
+
- Exclude outliers >3x average
|
|
152
|
+
- Show confidence levels (High/Medium/Low)
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
## Follow-up Integration
|
|
157
|
+
|
|
158
|
+
After displaying velocity report, suggest:
|
|
159
|
+
- `/agileflow:sprint-plan` - Plan next sprint using velocity
|
|
160
|
+
- `/agileflow:metrics` - See detailed metrics (cycle time, WIP)
|
|
161
|
+
- `/agileflow:board` - See current board state
|
|
162
|
+
- Save velocity report for stakeholder updates
|
|
163
|
+
|
|
164
|
+
---
|
|
68
165
|
|
|
69
|
-
|
|
166
|
+
## REMEMBER AFTER COMPACTION
|
|
70
167
|
|
|
71
|
-
|
|
168
|
+
- Command is read-only (analyzes bus/log.jsonl + story estimates)
|
|
169
|
+
- Parses "done" status changes from bus log
|
|
170
|
+
- Calculates over 3+ time periods (minimum for reliability)
|
|
171
|
+
- Shows trend analysis (↗ ↘ →) with % change
|
|
172
|
+
- Warns if sample size <5 stories (unreliable forecast)
|
|
173
|
+
- Excludes outliers >3x average from velocity
|
|
174
|
+
- Saves velocity history to docs/08-project/velocity/
|
|
175
|
+
- Shows confidence levels (High/Medium/Low)
|
|
72
176
|
|
|
73
177
|
<!-- COMPACT_SUMMARY_END -->
|
|
74
178
|
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Run project tests and update story test status
|
|
3
3
|
argument-hint: [story_id] (optional)
|
|
4
|
+
compact_context:
|
|
5
|
+
priority: critical
|
|
6
|
+
preserve_rules:
|
|
7
|
+
- "ALWAYS run STEP 0 context activation before any other action"
|
|
8
|
+
- "Exit code is AUTHORITATIVE (0=passing, non-zero=failing) - trust over output parsing"
|
|
9
|
+
- "Read environment.json for test_command and test_timeout_ms config"
|
|
10
|
+
- "Update ONLY test-related fields in status.json - preserve all other fields"
|
|
11
|
+
- "If no STORY specified, update ALL in_progress stories"
|
|
12
|
+
- "Generate clear visual reports with ✅/❌ indicators"
|
|
13
|
+
- "Best-effort output parsing (Jest/Pytest/Cargo/Go) but exit code is final authority"
|
|
14
|
+
state_fields:
|
|
15
|
+
- test_status (passing/failing)
|
|
16
|
+
- test_results (with passed/failed counts and exit code)
|
|
17
|
+
- baseline_verified
|
|
4
18
|
---
|
|
5
19
|
|
|
6
20
|
# Verify Project Tests
|
|
@@ -1,11 +1,41 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Show what's new in AgileFlow
|
|
3
|
+
argument-hint: (no arguments)
|
|
4
|
+
compact_context:
|
|
5
|
+
priority: low
|
|
6
|
+
preserve_rules:
|
|
7
|
+
- "ACTIVE COMMAND: /agileflow:whats-new - Version reporter (display-only)"
|
|
8
|
+
- "MUST display current version, last 3-5 versions from CHANGELOG.md"
|
|
9
|
+
- "MUST check for updates via npm view agileflow version"
|
|
10
|
+
- "MUST show GitHub link for full changelog"
|
|
11
|
+
- "Display-only command (never writes files)"
|
|
12
|
+
state_fields:
|
|
13
|
+
- current_version
|
|
14
|
+
- latest_available_version
|
|
3
15
|
---
|
|
4
16
|
|
|
5
17
|
# /agileflow:whats-new
|
|
6
18
|
|
|
7
19
|
Display recent AgileFlow updates and version history.
|
|
8
20
|
|
|
21
|
+
<!-- COMPACT_SUMMARY_START -->
|
|
22
|
+
## Compact Summary
|
|
23
|
+
|
|
24
|
+
**Command**: `/agileflow:whats-new` - Show version history and updates (display-only)
|
|
25
|
+
|
|
26
|
+
**Quick Usage**:
|
|
27
|
+
```
|
|
28
|
+
/agileflow:whats-new
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
**What It Does**: Read CHANGELOG.md → Show last 3-5 versions → Check for updates → Display GitHub link
|
|
32
|
+
|
|
33
|
+
**Output**: Markdown display with version history (no file writes)
|
|
34
|
+
|
|
35
|
+
**Tool Usage**: None (display-only command)
|
|
36
|
+
|
|
37
|
+
<!-- COMPACT_SUMMARY_END -->
|
|
38
|
+
|
|
9
39
|
---
|
|
10
40
|
|
|
11
41
|
## Prompt
|