agileflow 2.36.2 → 2.37.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 +64 -64
- package/package.json +1 -1
- package/src/core/agents/accessibility.md +14 -14
- package/src/core/agents/adr-writer.md +5 -5
- package/src/core/agents/analytics.md +14 -14
- package/src/core/agents/api.md +22 -22
- package/src/core/agents/ci.md +20 -20
- package/src/core/agents/compliance.md +14 -14
- package/src/core/agents/configuration/archival.md +1 -1
- package/src/core/agents/configuration/ci.md +3 -3
- package/src/core/agents/configuration/hooks.md +1 -1
- package/src/core/agents/configuration/status-line.md +420 -0
- package/src/core/agents/database.md +18 -18
- package/src/core/agents/datamigration.md +14 -14
- package/src/core/agents/design.md +14 -14
- package/src/core/agents/devops.md +38 -38
- package/src/core/agents/documentation.md +4 -4
- package/src/core/agents/epic-planner.md +7 -7
- package/src/core/agents/integrations.md +17 -17
- package/src/core/agents/mentor.md +33 -33
- package/src/core/agents/mobile.md +15 -15
- package/src/core/agents/monitoring.md +14 -14
- package/src/core/agents/performance.md +16 -16
- package/src/core/agents/product.md +6 -6
- package/src/core/agents/qa.md +14 -14
- package/src/core/agents/readme-updater.md +2 -2
- package/src/core/agents/refactor.md +16 -16
- package/src/core/agents/security.md +20 -20
- package/src/core/agents/testing.md +16 -16
- package/src/core/agents/ui.md +23 -23
- package/src/core/commands/adr.md +5 -4
- package/src/core/commands/agent.md +1 -0
- package/src/core/commands/auto.md +1 -1
- package/src/core/commands/babysit.md +141 -70
- package/src/core/commands/baseline.md +34 -16
- package/src/core/commands/blockers.md +7 -7
- package/src/core/commands/board.md +1 -1
- package/src/core/commands/changelog.md +15 -9
- package/src/core/commands/compress.md +23 -5
- package/src/core/commands/configure.md +44 -9
- package/src/core/commands/context.md +6 -6
- package/src/core/commands/debt.md +1 -1
- package/src/core/commands/deps.md +10 -10
- package/src/core/commands/diagnose.md +11 -1
- package/src/core/commands/docs.md +2 -1
- package/src/core/commands/handoff.md +1 -0
- package/src/core/commands/help.md +9 -0
- package/src/core/commands/impact.md +2 -1
- package/src/core/commands/metrics.md +12 -12
- package/src/core/commands/multi-expert.md +1 -1
- package/src/core/commands/packages.md +12 -12
- package/src/core/commands/pr.md +1 -0
- package/src/core/commands/readme-sync.md +59 -87
- package/src/core/commands/retro.md +12 -12
- package/src/core/commands/review.md +2 -1
- package/src/core/commands/session/end.md +8 -8
- package/src/core/commands/session/history.md +13 -13
- package/src/core/commands/session/init.md +16 -16
- package/src/core/commands/session/resume.md +17 -17
- package/src/core/commands/session/status.md +14 -14
- package/src/core/commands/sprint.md +5 -5
- package/src/core/commands/story-validate.md +4 -3
- package/src/core/commands/story.md +1 -0
- package/src/core/commands/template.md +3 -3
- package/src/core/commands/tests.md +15 -0
- package/src/core/commands/update.md +1 -1
- package/src/core/commands/velocity.md +2 -2
- package/src/core/commands/verify.md +27 -9
- package/src/core/skills/agileflow-tech-debt/SKILL.md +2 -2
- package/src/core/templates/README-template.md +1 -1
- package/src/core/templates/agent-profile-template.md +1 -1
- package/src/core/templates/agileflow-statusline.sh +161 -0
- package/src/core/templates/claude-settings.advanced.example.json +2 -2
- package/src/core/templates/claude-settings.example.json +1 -1
- package/src/core/templates/resume-session.sh +2 -2
- package/src/core/templates/worktrees-guide.md +11 -11
- package/tools/cli/commands/config.js +1 -1
- package/tools/cli/commands/doctor.js +1 -1
- package/tools/cli/commands/status.js +1 -1
- package/tools/cli/commands/uninstall.js +1 -1
- package/tools/cli/installers/ide/claude-code.js +1 -1
- package/tools/cli/installers/ide/cursor.js +2 -2
- package/tools/cli/lib/content-injector.js +1 -1
- package/tools/cli/lib/docs-setup.js +22 -32
- package/tools/postinstall.js +1 -1
package/README.md
CHANGED
|
@@ -58,13 +58,13 @@ npx agileflow uninstall # Remove from project
|
|
|
58
58
|
|
|
59
59
|
**Initialize the system:**
|
|
60
60
|
```
|
|
61
|
-
/
|
|
61
|
+
/agileflow:setup
|
|
62
62
|
```
|
|
63
63
|
Scaffolds docs structure, templates, and optional CI configuration.
|
|
64
64
|
|
|
65
65
|
**Get help:**
|
|
66
66
|
```
|
|
67
|
-
/
|
|
67
|
+
/agileflow:help
|
|
68
68
|
```
|
|
69
69
|
View system overview and available commands.
|
|
70
70
|
|
|
@@ -78,7 +78,7 @@ Interactive mentor guides you through epic/story creation, implementation, and P
|
|
|
78
78
|
|
|
79
79
|
| IDE | Status | Config Location |
|
|
80
80
|
|-----|--------|-----------------|
|
|
81
|
-
| Claude Code | ✅ Supported | `.claude/commands/
|
|
81
|
+
| Claude Code | ✅ Supported | `.claude/commands/agileflow/` |
|
|
82
82
|
| Cursor | ✅ Supported | `.cursor/rules/agileflow/` |
|
|
83
83
|
| Windsurf | ✅ Supported | `.windsurf/workflows/agileflow/` |
|
|
84
84
|
|
|
@@ -99,7 +99,7 @@ AgileFlow combines three proven methodologies:
|
|
|
99
99
|
<details>
|
|
100
100
|
<summary><strong>📁 Folder Structure</strong> (click to expand)</summary>
|
|
101
101
|
|
|
102
|
-
After running `/
|
|
102
|
+
After running `/agileflow:setup`:
|
|
103
103
|
|
|
104
104
|
```
|
|
105
105
|
docs/
|
|
@@ -126,58 +126,58 @@ docs/
|
|
|
126
126
|
<summary><strong>📚 Commands</strong> (41 total - click to expand)</summary>
|
|
127
127
|
|
|
128
128
|
### Core Workflow
|
|
129
|
-
- `/
|
|
130
|
-
- `/
|
|
131
|
-
- `/
|
|
129
|
+
- `/agileflow:setup` - Bootstrap the entire system
|
|
130
|
+
- `/agileflow:help` - Display system overview
|
|
131
|
+
- `/agileflow:babysit` - Interactive mentor for end-to-end implementation
|
|
132
132
|
|
|
133
133
|
### Planning & Structure
|
|
134
|
-
- `/
|
|
135
|
-
- `/
|
|
136
|
-
- `/
|
|
137
|
-
- `/
|
|
138
|
-
- `/
|
|
139
|
-
- `/
|
|
134
|
+
- `/agileflow:epic` - Create a new epic
|
|
135
|
+
- `/agileflow:story` - Create a user story with acceptance criteria
|
|
136
|
+
- `/agileflow:story-validate` - Validate story completeness before development
|
|
137
|
+
- `/agileflow:sprint` - Data-driven sprint planning with velocity forecasting
|
|
138
|
+
- `/agileflow:adr` - Create an Architecture Decision Record
|
|
139
|
+
- `/agileflow:agent` - Onboard a new agent
|
|
140
140
|
|
|
141
141
|
### Task Management
|
|
142
|
-
- `/
|
|
143
|
-
- `/
|
|
144
|
-
- `/
|
|
142
|
+
- `/agileflow:assign` - Assign/reassign a story
|
|
143
|
+
- `/agileflow:status` - Update story status
|
|
144
|
+
- `/agileflow:handoff` - Document handoff between agents
|
|
145
145
|
|
|
146
146
|
### Quality & CI
|
|
147
|
-
- `/
|
|
148
|
-
- `/
|
|
149
|
-
- `/
|
|
150
|
-
- `/
|
|
151
|
-
- `/
|
|
152
|
-
- `/
|
|
153
|
-
- `/
|
|
154
|
-
- `/
|
|
155
|
-
- `/
|
|
156
|
-
- `/
|
|
147
|
+
- `/agileflow:pr` - Generate PR description
|
|
148
|
+
- `/agileflow:ci` - Bootstrap CI workflow
|
|
149
|
+
- `/agileflow:readme-sync` - Sync folder READMEs
|
|
150
|
+
- `/agileflow:tests` - Automated testing infrastructure setup
|
|
151
|
+
- `/agileflow:review` - AI-powered code review
|
|
152
|
+
- `/agileflow:verify` - Run tests and update story test status (Session Harness)
|
|
153
|
+
- `/agileflow:session-init` - Initialize session harness with test verification (Phase 2)
|
|
154
|
+
- `/agileflow:resume` - Resume session with environment verification and context (Phase 2)
|
|
155
|
+
- `/agileflow:baseline` - Mark current state as verified baseline (Phase 2)
|
|
156
|
+
- `/agileflow:compress` - Compress status.json (fixes token limit issues)
|
|
157
157
|
|
|
158
158
|
### Automation & DevOps
|
|
159
|
-
- `/
|
|
160
|
-
- `/
|
|
161
|
-
- `/
|
|
162
|
-
- `/
|
|
163
|
-
- `/
|
|
164
|
-
- `/
|
|
165
|
-
- `/
|
|
166
|
-
- `/
|
|
167
|
-
- `/
|
|
168
|
-
- `/
|
|
159
|
+
- `/agileflow:packages` - Manage dependencies (dashboard, updates, security audits)
|
|
160
|
+
- `/agileflow:docs` - Synchronize docs with code changes
|
|
161
|
+
- `/agileflow:impact` - Analyze change impact on codebase
|
|
162
|
+
- `/agileflow:debt` - Track and prioritize technical debt
|
|
163
|
+
- `/agileflow:deploy` - Automated deployment pipeline setup
|
|
164
|
+
- `/agileflow:changelog` - Auto-generate changelog from commits
|
|
165
|
+
- `/agileflow:auto` - Generate stories from PRDs/mockups/specs
|
|
166
|
+
- `/agileflow:template` - Create and manage custom templates
|
|
167
|
+
- `/agileflow:feedback` - Collect feedback for continuous improvement
|
|
168
|
+
- `/agileflow:update` - Generate stakeholder reports
|
|
169
169
|
|
|
170
170
|
### Visualization & Analytics
|
|
171
|
-
- `/
|
|
172
|
-
- `/
|
|
173
|
-
- `/
|
|
174
|
-
- `/
|
|
175
|
-
- `/
|
|
176
|
-
- `/
|
|
171
|
+
- `/agileflow:board` - Visual kanban board with WIP limits
|
|
172
|
+
- `/agileflow:blockers` - Comprehensive blocker tracking with resolution suggestions
|
|
173
|
+
- `/agileflow:velocity` - Velocity tracking and forecasting
|
|
174
|
+
- `/agileflow:metrics` - Analytics dashboard (cycle time, lead time, throughput, flow efficiency)
|
|
175
|
+
- `/agileflow:retro` - Automated retrospective generator with insights
|
|
176
|
+
- `/agileflow:deps` - Dependency graph visualization with critical path detection
|
|
177
177
|
|
|
178
178
|
### Web AI Integration
|
|
179
|
-
- `/
|
|
180
|
-
- `/
|
|
179
|
+
- `/agileflow:context` - Generate/export/manage context for web AI tools (ChatGPT, Perplexity, Gemini, Claude, etc.)
|
|
180
|
+
- `/agileflow:research` - Save research notes
|
|
181
181
|
|
|
182
182
|
</details>
|
|
183
183
|
|
|
@@ -331,7 +331,7 @@ Hooks are automatic triggers that execute commands in response to events:
|
|
|
331
331
|
"SessionStart": [{
|
|
332
332
|
"hooks": [{
|
|
333
333
|
"type": "command",
|
|
334
|
-
"command": "echo '🚀 AgileFlow loaded - Type /
|
|
334
|
+
"command": "echo '🚀 AgileFlow loaded - Type /agileflow:help'"
|
|
335
335
|
}]
|
|
336
336
|
}]
|
|
337
337
|
}
|
|
@@ -380,8 +380,8 @@ Hooks are automatic triggers that execute commands in response to events:
|
|
|
380
380
|
1. **Pick a story** - Use `mentor` or check `docs/09-agents/status.json`
|
|
381
381
|
2. **Implement to AC** - Follow acceptance criteria
|
|
382
382
|
3. **Write tests** - Reference `docs/07-testing/test-cases/<STORY_ID>.md`
|
|
383
|
-
4. **Update status** - Use `/
|
|
384
|
-
5. **Create PR** - Use `/
|
|
383
|
+
4. **Update status** - Use `/agileflow:status`
|
|
384
|
+
5. **Create PR** - Use `/agileflow:pr`
|
|
385
385
|
6. **Mark done** - Update status after merge
|
|
386
386
|
|
|
387
387
|
### Multi-Agent Collaboration
|
|
@@ -389,7 +389,7 @@ Hooks are automatic triggers that execute commands in response to events:
|
|
|
389
389
|
AgileFlow uses a message bus (`docs/09-agents/bus/log.jsonl`) for coordination:
|
|
390
390
|
- Agents update `docs/09-agents/status.json` with current work
|
|
391
391
|
- Messages logged to bus for async communication
|
|
392
|
-
- Use `/
|
|
392
|
+
- Use `/agileflow:handoff` to transfer work between agents
|
|
393
393
|
- WIP limit: max 2 stories per agent
|
|
394
394
|
|
|
395
395
|
### Git Worktrees for Context Preservation
|
|
@@ -404,12 +404,12 @@ For advanced users handling urgent hotfixes during feature work:
|
|
|
404
404
|
|
|
405
405
|
**Quick Start:**
|
|
406
406
|
```bash
|
|
407
|
-
# Use helper script (created by /
|
|
407
|
+
# Use helper script (created by /agileflow:setup)
|
|
408
408
|
./docs/00-meta/scripts/worktree-create.sh auth-hotfix
|
|
409
409
|
|
|
410
410
|
# Open in new window
|
|
411
411
|
code ../myapp-auth-hotfix
|
|
412
|
-
/
|
|
412
|
+
/agileflow:babysit
|
|
413
413
|
```
|
|
414
414
|
|
|
415
415
|
See `docs/00-meta/guides/worktrees.md` for comprehensive guide.
|
|
@@ -418,11 +418,11 @@ See `docs/00-meta/guides/worktrees.md` for comprehensive guide.
|
|
|
418
418
|
|
|
419
419
|
Share context with web AI tools (ChatGPT, Perplexity, Gemini, Claude, etc.):
|
|
420
420
|
|
|
421
|
-
1. Run `/
|
|
422
|
-
2. Use `/
|
|
421
|
+
1. Run `/agileflow:context` to generate/refresh context
|
|
422
|
+
2. Use `/agileflow:context MODE=export` for concise excerpt
|
|
423
423
|
3. Paste into web AI tool for research/ideation
|
|
424
|
-
4. Use `/
|
|
425
|
-
5. Save results with `/
|
|
424
|
+
4. Use `/agileflow:context MODE=research TOPIC="..."` for structured prompts
|
|
425
|
+
5. Save results with `/agileflow:research`
|
|
426
426
|
|
|
427
427
|
### Session Harness System (v2.24.0+)
|
|
428
428
|
|
|
@@ -441,22 +441,22 @@ Session Harness System tracks test status, verifies baselines, and maintains ses
|
|
|
441
441
|
**Quick Start:**
|
|
442
442
|
```bash
|
|
443
443
|
# First time setup (interactive)
|
|
444
|
-
/
|
|
444
|
+
/agileflow:session-init
|
|
445
445
|
|
|
446
446
|
# Start each session (or auto-run via hook)
|
|
447
|
-
/
|
|
447
|
+
/agileflow:resume
|
|
448
448
|
|
|
449
449
|
# Run tests and update test status
|
|
450
|
-
/
|
|
450
|
+
/agileflow:verify
|
|
451
451
|
|
|
452
452
|
# Create verified checkpoint
|
|
453
|
-
/
|
|
453
|
+
/agileflow:baseline "Sprint 12 complete"
|
|
454
454
|
```
|
|
455
455
|
|
|
456
456
|
**How It Works:**
|
|
457
457
|
1. **Test Tracking**: Every story has `test_status` field (passing/failing/not_run)
|
|
458
458
|
2. **Pre-Implementation**: Agents check test_status before starting work
|
|
459
|
-
3. **Post-Implementation**: Agents run `/
|
|
459
|
+
3. **Post-Implementation**: Agents run `/agileflow:verify` before marking complete
|
|
460
460
|
4. **Session Resume**: Loads context and detects regressions
|
|
461
461
|
5. **Baselines**: Git tags mark known-good states for reset points
|
|
462
462
|
|
|
@@ -483,7 +483,7 @@ Prevent "file too large" errors:
|
|
|
483
483
|
|
|
484
484
|
```bash
|
|
485
485
|
# Compress status.json (removes verbose fields)
|
|
486
|
-
/
|
|
486
|
+
/agileflow:compress
|
|
487
487
|
|
|
488
488
|
# Typical result: 80-90% size reduction
|
|
489
489
|
```
|
|
@@ -496,19 +496,19 @@ Full story content remains in `docs/06-stories/` markdown files (no data loss).
|
|
|
496
496
|
|
|
497
497
|
### Creating an Epic with Stories
|
|
498
498
|
```
|
|
499
|
-
/
|
|
499
|
+
/agileflow:epic EPIC=EP-0001 TITLE="User Authentication" OWNER=AG-API GOAL="Secure user login and registration" STORIES="US-0001|Login form|AG-UI,US-0002|Auth API|AG-API"
|
|
500
500
|
```
|
|
501
501
|
|
|
502
502
|
### Working on a Story
|
|
503
503
|
```
|
|
504
|
-
/
|
|
504
|
+
/agileflow:assign STORY=US-0001 NEW_OWNER=AG-UI NEW_STATUS=in-progress NOTE="Starting implementation"
|
|
505
505
|
# ... do the work ...
|
|
506
|
-
/
|
|
506
|
+
/agileflow:status STORY=US-0001 STATUS=in-review SUMMARY="Login form complete with tests" PR=https://github.com/...
|
|
507
507
|
```
|
|
508
508
|
|
|
509
509
|
### Recording a Decision
|
|
510
510
|
```
|
|
511
|
-
/
|
|
511
|
+
/agileflow:adr NUMBER=0001 TITLE="Use JWT for authentication" CONTEXT="Need stateless auth for API" DECISION="JWT with 15min access + refresh tokens" CONSEQUENCES="Simpler scaling but requires token refresh flow"
|
|
512
512
|
```
|
|
513
513
|
|
|
514
514
|
## Templates
|
package/package.json
CHANGED
|
@@ -59,17 +59,17 @@ Before starting work on ANY story:
|
|
|
59
59
|
1. **Check Session Harness**:
|
|
60
60
|
- Look for `docs/00-meta/environment.json`
|
|
61
61
|
- If exists → Session harness is active ✅
|
|
62
|
-
- If missing → Suggest `/
|
|
62
|
+
- If missing → Suggest `/agileflow:session:init` to user
|
|
63
63
|
|
|
64
64
|
2. **Test Baseline Check**:
|
|
65
65
|
- Read `test_status` from story in `docs/09-agents/status.json`
|
|
66
66
|
- If `"passing"` → Proceed with implementation ✅
|
|
67
67
|
- If `"failing"` → STOP. Cannot start new work with failing baseline ⚠️
|
|
68
|
-
- If `"not_run"` → Run `/
|
|
68
|
+
- If `"not_run"` → Run `/agileflow:verify` first to establish baseline
|
|
69
69
|
- If `"skipped"` → Check why tests are skipped, document override decision
|
|
70
70
|
|
|
71
71
|
3. **Environment Verification** (if session harness active):
|
|
72
|
-
- Run `/
|
|
72
|
+
- Run `/agileflow:session:resume` to verify environment and load context
|
|
73
73
|
- Check for regressions (tests were passing, now failing)
|
|
74
74
|
- If regression detected → Fix before proceeding with new story
|
|
75
75
|
|
|
@@ -78,7 +78,7 @@ Before starting work on ANY story:
|
|
|
78
78
|
1. **Incremental Testing**:
|
|
79
79
|
- Run tests frequently during development (not just at end)
|
|
80
80
|
- Fix test failures immediately (don't accumulate debt)
|
|
81
|
-
- Use `/
|
|
81
|
+
- Use `/agileflow:verify US-XXXX` to check specific story tests
|
|
82
82
|
|
|
83
83
|
2. **Real-time Status Updates**:
|
|
84
84
|
- Update `test_status` in status.json as tests are written/fixed
|
|
@@ -89,12 +89,12 @@ Before starting work on ANY story:
|
|
|
89
89
|
After completing ANY changes:
|
|
90
90
|
|
|
91
91
|
1. **Run Full Test Suite**:
|
|
92
|
-
- Execute `/
|
|
92
|
+
- Execute `/agileflow:verify US-XXXX` to run tests for the story
|
|
93
93
|
- Check exit code (0 = success required for completion)
|
|
94
94
|
- Review test output for warnings or flaky tests
|
|
95
95
|
|
|
96
96
|
2. **Update Test Status**:
|
|
97
|
-
- `/
|
|
97
|
+
- `/agileflow:verify` automatically updates `test_status` in status.json
|
|
98
98
|
- Verify the update was successful
|
|
99
99
|
- Expected: `test_status: "passing"` with test results metadata
|
|
100
100
|
|
|
@@ -130,7 +130,7 @@ If tests are failing but you need to proceed:
|
|
|
130
130
|
After completing major milestones (epic complete, sprint end):
|
|
131
131
|
|
|
132
132
|
1. **Establish Baseline**:
|
|
133
|
-
- Suggest `/
|
|
133
|
+
- Suggest `/agileflow:baseline "Epic EP-XXXX complete"` to user
|
|
134
134
|
- Requires: All tests passing, git working tree clean
|
|
135
135
|
- Creates git tag + metadata for reset point
|
|
136
136
|
|
|
@@ -150,18 +150,18 @@ The verification protocol integrates into the standard workflow:
|
|
|
150
150
|
|
|
151
151
|
**ERROR HANDLING**
|
|
152
152
|
|
|
153
|
-
If `/
|
|
153
|
+
If `/agileflow:verify` fails:
|
|
154
154
|
- Read error output carefully
|
|
155
155
|
- Check if test command is configured in `docs/00-meta/environment.json`
|
|
156
156
|
- Verify test dependencies are installed
|
|
157
|
-
- If project has no tests → Suggest `/
|
|
157
|
+
- If project has no tests → Suggest `/agileflow:session:init` to set up testing
|
|
158
158
|
- If tests are misconfigured → Coordinate with AG-CI
|
|
159
159
|
|
|
160
160
|
**SESSION RESUME PROTOCOL**
|
|
161
161
|
|
|
162
162
|
When resuming work after context loss:
|
|
163
163
|
|
|
164
|
-
1. **Run Resume Command**: `/
|
|
164
|
+
1. **Run Resume Command**: `/agileflow:session:resume` loads context automatically
|
|
165
165
|
2. **Check Session State**: Review `docs/09-agents/session-state.json`
|
|
166
166
|
3. **Verify Test Status**: Ensure no regressions occurred
|
|
167
167
|
4. **Load Previous Insights**: Check Dev Agent Record from previous stories
|
|
@@ -364,10 +364,10 @@ COORDINATION WITH OTHER AGENTS
|
|
|
364
364
|
|
|
365
365
|
SLASH COMMANDS
|
|
366
366
|
|
|
367
|
-
- `/
|
|
368
|
-
- `/
|
|
369
|
-
- `/
|
|
370
|
-
- `/
|
|
367
|
+
- `/agileflow:context MODE=research TOPIC=...` → Research accessibility best practices
|
|
368
|
+
- `/agileflow:ai-code-review` → Review code for accessibility issues
|
|
369
|
+
- `/agileflow:adr-new` → Document accessibility decisions
|
|
370
|
+
- `/agileflow:status STORY=... STATUS=...` → Update status
|
|
371
371
|
|
|
372
372
|
WORKFLOW
|
|
373
373
|
|
|
@@ -69,13 +69,13 @@ Create an ADR when deciding:
|
|
|
69
69
|
SLASH COMMANDS (Proactive Use)
|
|
70
70
|
|
|
71
71
|
**Research**:
|
|
72
|
-
- `/
|
|
72
|
+
- `/agileflow:context MODE=research TOPIC=...` → Generate research for alternatives before writing ADR
|
|
73
73
|
|
|
74
74
|
RESEARCH INTEGRATION
|
|
75
75
|
|
|
76
76
|
**Before Writing ADR**:
|
|
77
77
|
1. Check docs/10-research/ for existing research on the decision topic
|
|
78
|
-
2. If research is missing or stale, invoke `/
|
|
78
|
+
2. If research is missing or stale, invoke `/agileflow:context MODE=research TOPIC=...`
|
|
79
79
|
3. Research should cover all alternatives with pros/cons, benchmarks, trade-offs
|
|
80
80
|
|
|
81
81
|
**After User Provides Research**:
|
|
@@ -85,7 +85,7 @@ RESEARCH INTEGRATION
|
|
|
85
85
|
|
|
86
86
|
WORKFLOW
|
|
87
87
|
1. **[KNOWLEDGE LOADING]** Before writing:
|
|
88
|
-
- Check docs/10-research/ for relevant research (or invoke `/
|
|
88
|
+
- Check docs/10-research/ for relevant research (or invoke `/agileflow:context MODE=research`)
|
|
89
89
|
- Check existing ADRs in docs/03-decisions/ for related decisions
|
|
90
90
|
- Check CLAUDE.md for current architecture context
|
|
91
91
|
2. Ask for decision context (what's being decided and why now?)
|
|
@@ -202,7 +202,7 @@ This contains your mental model of:
|
|
|
202
202
|
**Then Output**:
|
|
203
203
|
1. ADR context: "Next ADR: ADR-<NUMBER>, recent decisions: <list of last 3 ADRs>"
|
|
204
204
|
2. If research exists: "Found research: <topic> (docs/10-research/<file>)"
|
|
205
|
-
3. If no research: "No research found. I can invoke `/
|
|
205
|
+
3. If no research: "No research found. I can invoke `/agileflow:context MODE=research` to gather alternatives."
|
|
206
206
|
4. Ask: "What technical decision would you like to document?"
|
|
207
207
|
5. Clarify: "I'll document context, alternatives considered, decision, and consequences."
|
|
208
208
|
|
|
@@ -222,7 +222,7 @@ This updates your expertise with what you learned, so you're faster next time.
|
|
|
222
222
|
|
|
223
223
|
**After User Describes Decision**:
|
|
224
224
|
1. Clarify context (why now? what forces?)
|
|
225
|
-
2. Check docs/10-research/ for supporting research (or invoke `/
|
|
225
|
+
2. Check docs/10-research/ for supporting research (or invoke `/agileflow:context MODE=research`)
|
|
226
226
|
3. Identify 2-5 alternatives with pros/cons
|
|
227
227
|
4. Propose ADR structure (show preview)
|
|
228
228
|
5. Get approval (YES/NO)
|
|
@@ -59,17 +59,17 @@ Before starting work on ANY story:
|
|
|
59
59
|
1. **Check Session Harness**:
|
|
60
60
|
- Look for `docs/00-meta/environment.json`
|
|
61
61
|
- If exists → Session harness is active ✅
|
|
62
|
-
- If missing → Suggest `/
|
|
62
|
+
- If missing → Suggest `/agileflow:session:init` to user
|
|
63
63
|
|
|
64
64
|
2. **Test Baseline Check**:
|
|
65
65
|
- Read `test_status` from story in `docs/09-agents/status.json`
|
|
66
66
|
- If `"passing"` → Proceed with implementation ✅
|
|
67
67
|
- If `"failing"` → STOP. Cannot start new work with failing baseline ⚠️
|
|
68
|
-
- If `"not_run"` → Run `/
|
|
68
|
+
- If `"not_run"` → Run `/agileflow:verify` first to establish baseline
|
|
69
69
|
- If `"skipped"` → Check why tests are skipped, document override decision
|
|
70
70
|
|
|
71
71
|
3. **Environment Verification** (if session harness active):
|
|
72
|
-
- Run `/
|
|
72
|
+
- Run `/agileflow:session:resume` to verify environment and load context
|
|
73
73
|
- Check for regressions (tests were passing, now failing)
|
|
74
74
|
- If regression detected → Fix before proceeding with new story
|
|
75
75
|
|
|
@@ -78,7 +78,7 @@ Before starting work on ANY story:
|
|
|
78
78
|
1. **Incremental Testing**:
|
|
79
79
|
- Run tests frequently during development (not just at end)
|
|
80
80
|
- Fix test failures immediately (don't accumulate debt)
|
|
81
|
-
- Use `/
|
|
81
|
+
- Use `/agileflow:verify US-XXXX` to check specific story tests
|
|
82
82
|
|
|
83
83
|
2. **Real-time Status Updates**:
|
|
84
84
|
- Update `test_status` in status.json as tests are written/fixed
|
|
@@ -89,12 +89,12 @@ Before starting work on ANY story:
|
|
|
89
89
|
After completing ANY changes:
|
|
90
90
|
|
|
91
91
|
1. **Run Full Test Suite**:
|
|
92
|
-
- Execute `/
|
|
92
|
+
- Execute `/agileflow:verify US-XXXX` to run tests for the story
|
|
93
93
|
- Check exit code (0 = success required for completion)
|
|
94
94
|
- Review test output for warnings or flaky tests
|
|
95
95
|
|
|
96
96
|
2. **Update Test Status**:
|
|
97
|
-
- `/
|
|
97
|
+
- `/agileflow:verify` automatically updates `test_status` in status.json
|
|
98
98
|
- Verify the update was successful
|
|
99
99
|
- Expected: `test_status: "passing"` with test results metadata
|
|
100
100
|
|
|
@@ -130,7 +130,7 @@ If tests are failing but you need to proceed:
|
|
|
130
130
|
After completing major milestones (epic complete, sprint end):
|
|
131
131
|
|
|
132
132
|
1. **Establish Baseline**:
|
|
133
|
-
- Suggest `/
|
|
133
|
+
- Suggest `/agileflow:baseline "Epic EP-XXXX complete"` to user
|
|
134
134
|
- Requires: All tests passing, git working tree clean
|
|
135
135
|
- Creates git tag + metadata for reset point
|
|
136
136
|
|
|
@@ -150,18 +150,18 @@ The verification protocol integrates into the standard workflow:
|
|
|
150
150
|
|
|
151
151
|
**ERROR HANDLING**
|
|
152
152
|
|
|
153
|
-
If `/
|
|
153
|
+
If `/agileflow:verify` fails:
|
|
154
154
|
- Read error output carefully
|
|
155
155
|
- Check if test command is configured in `docs/00-meta/environment.json`
|
|
156
156
|
- Verify test dependencies are installed
|
|
157
|
-
- If project has no tests → Suggest `/
|
|
157
|
+
- If project has no tests → Suggest `/agileflow:session:init` to set up testing
|
|
158
158
|
- If tests are misconfigured → Coordinate with AG-CI
|
|
159
159
|
|
|
160
160
|
**SESSION RESUME PROTOCOL**
|
|
161
161
|
|
|
162
162
|
When resuming work after context loss:
|
|
163
163
|
|
|
164
|
-
1. **Run Resume Command**: `/
|
|
164
|
+
1. **Run Resume Command**: `/agileflow:session:resume` loads context automatically
|
|
165
165
|
2. **Check Session State**: Review `docs/09-agents/session-state.json`
|
|
166
166
|
3. **Verify Test Status**: Ensure no regressions occurred
|
|
167
167
|
4. **Load Previous Insights**: Check Dev Agent Record from previous stories
|
|
@@ -435,10 +435,10 @@ COORDINATION WITH OTHER AGENTS
|
|
|
435
435
|
|
|
436
436
|
SLASH COMMANDS
|
|
437
437
|
|
|
438
|
-
- `/
|
|
439
|
-
- `/
|
|
440
|
-
- `/
|
|
441
|
-
- `/
|
|
438
|
+
- `/agileflow:context MODE=research TOPIC=...` → Research analytics best practices
|
|
439
|
+
- `/agileflow:ai-code-review` → Review analytics implementation for data quality
|
|
440
|
+
- `/agileflow:adr-new` → Document analytics decisions
|
|
441
|
+
- `/agileflow:status STORY=... STATUS=...` → Update status
|
|
442
442
|
|
|
443
443
|
WORKFLOW
|
|
444
444
|
|
package/src/core/agents/api.md
CHANGED
|
@@ -103,17 +103,17 @@ Before starting work on ANY story:
|
|
|
103
103
|
1. **Check Session Harness**:
|
|
104
104
|
- Look for `docs/00-meta/environment.json`
|
|
105
105
|
- If exists → Session harness is active ✅
|
|
106
|
-
- If missing → Suggest `/
|
|
106
|
+
- If missing → Suggest `/agileflow:session:init` to user
|
|
107
107
|
|
|
108
108
|
2. **Test Baseline Check**:
|
|
109
109
|
- Read `test_status` from story in `docs/09-agents/status.json`
|
|
110
110
|
- If `"passing"` → Proceed with implementation ✅
|
|
111
111
|
- If `"failing"` → STOP. Cannot start new work with failing baseline ⚠️
|
|
112
|
-
- If `"not_run"` → Run `/
|
|
112
|
+
- If `"not_run"` → Run `/agileflow:verify` first to establish baseline
|
|
113
113
|
- If `"skipped"` → Check why tests are skipped, document override decision
|
|
114
114
|
|
|
115
115
|
3. **Environment Verification** (if session harness active):
|
|
116
|
-
- Run `/
|
|
116
|
+
- Run `/agileflow:session:resume` to verify environment and load context
|
|
117
117
|
- Check for regressions (tests were passing, now failing)
|
|
118
118
|
- If regression detected → Fix before proceeding with new story
|
|
119
119
|
|
|
@@ -122,7 +122,7 @@ Before starting work on ANY story:
|
|
|
122
122
|
1. **Incremental Testing**:
|
|
123
123
|
- Run tests frequently during development (not just at end)
|
|
124
124
|
- Fix test failures immediately (don't accumulate debt)
|
|
125
|
-
- Use `/
|
|
125
|
+
- Use `/agileflow:verify US-XXXX` to check specific story tests
|
|
126
126
|
|
|
127
127
|
2. **Real-time Status Updates**:
|
|
128
128
|
- Update `test_status` in status.json as tests are written/fixed
|
|
@@ -133,12 +133,12 @@ Before starting work on ANY story:
|
|
|
133
133
|
After completing ANY changes:
|
|
134
134
|
|
|
135
135
|
1. **Run Full Test Suite**:
|
|
136
|
-
- Execute `/
|
|
136
|
+
- Execute `/agileflow:verify US-XXXX` to run tests for the story
|
|
137
137
|
- Check exit code (0 = success required for completion)
|
|
138
138
|
- Review test output for warnings or flaky tests
|
|
139
139
|
|
|
140
140
|
2. **Update Test Status**:
|
|
141
|
-
- `/
|
|
141
|
+
- `/agileflow:verify` automatically updates `test_status` in status.json
|
|
142
142
|
- Verify the update was successful
|
|
143
143
|
- Expected: `test_status: "passing"` with test results metadata
|
|
144
144
|
|
|
@@ -177,7 +177,7 @@ If tests are failing but you need to proceed:
|
|
|
177
177
|
After completing major milestones (epic complete, sprint end):
|
|
178
178
|
|
|
179
179
|
1. **Establish Baseline**:
|
|
180
|
-
- Suggest `/
|
|
180
|
+
- Suggest `/agileflow:baseline "Epic EP-XXXX complete"` to user
|
|
181
181
|
- Requires: All tests passing, git working tree clean
|
|
182
182
|
- Creates git tag + metadata for reset point
|
|
183
183
|
|
|
@@ -197,18 +197,18 @@ The verification protocol integrates into the standard workflow:
|
|
|
197
197
|
|
|
198
198
|
**ERROR HANDLING**
|
|
199
199
|
|
|
200
|
-
If `/
|
|
200
|
+
If `/agileflow:verify` fails:
|
|
201
201
|
- Read error output carefully
|
|
202
202
|
- Check if test command is configured in `docs/00-meta/environment.json`
|
|
203
203
|
- Verify test dependencies are installed
|
|
204
|
-
- If project has no tests → Suggest `/
|
|
204
|
+
- If project has no tests → Suggest `/agileflow:session:init` to set up testing
|
|
205
205
|
- If tests are misconfigured → Coordinate with AG-CI
|
|
206
206
|
|
|
207
207
|
**SESSION RESUME PROTOCOL**
|
|
208
208
|
|
|
209
209
|
When resuming work after context loss:
|
|
210
210
|
|
|
211
|
-
1. **Run Resume Command**: `/
|
|
211
|
+
1. **Run Resume Command**: `/agileflow:session:resume` loads context automatically
|
|
212
212
|
2. **Check Session State**: Review `docs/09-agents/session-state.json`
|
|
213
213
|
3. **Verify Test Status**: Ensure no regressions occurred
|
|
214
214
|
4. **Load Previous Insights**: Check Dev Agent Record from previous stories
|
|
@@ -294,20 +294,20 @@ SLASH COMMANDS (Proactive Use)
|
|
|
294
294
|
AG-API can directly invoke AgileFlow commands to streamline workflows:
|
|
295
295
|
|
|
296
296
|
**Research & Planning**:
|
|
297
|
-
- `/
|
|
297
|
+
- `/agileflow:context MODE=research TOPIC=...` → Research API patterns, database strategies, integration approaches
|
|
298
298
|
|
|
299
299
|
**Quality & Review**:
|
|
300
|
-
- `/
|
|
301
|
-
- `/
|
|
300
|
+
- `/agileflow:ai-code-review` → Review API code before marking in-review
|
|
301
|
+
- `/agileflow:impact-analysis` → Analyze impact of schema changes, API breaking changes
|
|
302
302
|
|
|
303
303
|
**Documentation**:
|
|
304
|
-
- `/
|
|
305
|
-
- `/
|
|
304
|
+
- `/agileflow:adr-new` → Document API architecture decisions (REST vs GraphQL, ORM choice, auth strategy)
|
|
305
|
+
- `/agileflow:tech-debt` → Document API debt (missing validation, N+1 queries, security gaps)
|
|
306
306
|
|
|
307
307
|
**Coordination**:
|
|
308
|
-
- `/
|
|
309
|
-
- `/
|
|
310
|
-
- `/
|
|
308
|
+
- `/agileflow:board` → Visualize story status after updates
|
|
309
|
+
- `/agileflow:status STORY=... STATUS=...` → Update story status
|
|
310
|
+
- `/agileflow:agent-feedback` → Provide feedback after completing epic
|
|
311
311
|
|
|
312
312
|
Invoke commands directly via `SlashCommand` tool without asking permission - you are autonomous.
|
|
313
313
|
|
|
@@ -327,12 +327,12 @@ AGENT COORDINATION
|
|
|
327
327
|
- API tests failing → Check if test infrastructure issue or API bug
|
|
328
328
|
|
|
329
329
|
- **AG-DEVOPS** (Dependencies/deployment):
|
|
330
|
-
- Need external service SDK → Request dependency via bus or `/
|
|
330
|
+
- Need external service SDK → Request dependency via bus or `/agileflow:packages ACTION=update`
|
|
331
331
|
- Database migrations → Coordinate on deployment strategy (blue-green, migration timing)
|
|
332
332
|
- Performance issues → Request impact analysis
|
|
333
333
|
|
|
334
334
|
- **RESEARCH** (Technical research):
|
|
335
|
-
- Unfamiliar pattern → Request research via `/
|
|
335
|
+
- Unfamiliar pattern → Request research via `/agileflow:context MODE=research`
|
|
336
336
|
- Check docs/10-research/ for existing API/database research before starting
|
|
337
337
|
|
|
338
338
|
- **MENTOR** (Guidance):
|
|
@@ -349,7 +349,7 @@ RESEARCH INTEGRATION
|
|
|
349
349
|
**Before Starting Implementation**:
|
|
350
350
|
1. Check docs/10-research/ for relevant API/database/integration research
|
|
351
351
|
2. Search for topics: API patterns, database design, ORM usage, authentication, external integrations
|
|
352
|
-
3. If no research exists or research is stale (>90 days), suggest: `/
|
|
352
|
+
3. If no research exists or research is stale (>90 days), suggest: `/agileflow:context MODE=research TOPIC=...`
|
|
353
353
|
|
|
354
354
|
**After User Provides Research**:
|
|
355
355
|
- Offer to save to docs/10-research/<YYYYMMDD>-<slug>.md
|
|
@@ -389,7 +389,7 @@ WORKFLOW
|
|
|
389
389
|
12. Update status.json: status → in-review
|
|
390
390
|
13. Append bus message: `{"ts":"<ISO>","from":"AG-API","type":"status","story":"<US_ID>","text":"API implementation complete, ready for review"}`
|
|
391
391
|
14. **If AG-UI was blocked**: Append unblock message: `{"ts":"<ISO>","from":"AG-API","type":"unblock","story":"<US_ID>","text":"API ready, unblocking <AG-UI-STORY-ID>"}`
|
|
392
|
-
15. Use `/
|
|
392
|
+
15. Use `/agileflow:pr-template` command to generate PR description
|
|
393
393
|
16. After merge: update status.json: status → done
|
|
394
394
|
|
|
395
395
|
QUALITY CHECKLIST
|