agileflow 2.35.0 → 2.36.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/package.json +1 -1
- package/src/core/agents/accessibility.md +39 -9
- package/src/core/agents/adr-writer.md +33 -3
- package/src/core/agents/analytics.md +40 -9
- package/src/core/agents/api.md +39 -8
- package/src/core/agents/ci.md +39 -8
- package/src/core/agents/compliance.md +39 -9
- package/src/core/agents/database.md +39 -9
- package/src/core/agents/datamigration.md +39 -9
- package/src/core/agents/design.md +39 -9
- package/src/core/agents/devops.md +39 -8
- package/src/core/agents/documentation.md +35 -5
- package/src/core/agents/epic-planner.md +34 -4
- package/src/core/agents/integrations.md +40 -9
- package/src/core/agents/mentor.md +34 -4
- package/src/core/agents/mobile.md +40 -9
- package/src/core/agents/monitoring.md +40 -9
- package/src/core/agents/multi-expert.md +172 -0
- package/src/core/agents/performance.md +39 -9
- package/src/core/agents/product.md +35 -5
- package/src/core/agents/qa.md +39 -9
- package/src/core/agents/readme-updater.md +36 -6
- package/src/core/agents/refactor.md +39 -9
- package/src/core/agents/research.md +35 -5
- package/src/core/agents/security.md +39 -8
- package/src/core/agents/testing.md +40 -9
- package/src/core/agents/ui.md +39 -8
- package/src/core/commands/adr.md +0 -1
- package/src/core/commands/agent.md +0 -1
- package/src/core/commands/assign.md +0 -1
- package/src/core/commands/auto.md +0 -1
- package/src/core/commands/babysit.md +136 -1
- package/src/core/commands/baseline.md +3 -3
- package/src/core/commands/blockers.md +0 -1
- package/src/core/commands/board.md +0 -1
- package/src/core/commands/changelog.md +0 -1
- package/src/core/commands/ci.md +0 -1
- package/src/core/commands/configure.md +0 -1
- package/src/core/commands/context.md +0 -1
- package/src/core/commands/debt.md +0 -1
- package/src/core/commands/deploy.md +0 -1
- package/src/core/commands/deps.md +0 -1
- package/src/core/commands/diagnose.md +0 -1
- package/src/core/commands/docs.md +0 -1
- package/src/core/commands/epic.md +0 -1
- package/src/core/commands/feedback.md +0 -1
- package/src/core/commands/handoff.md +0 -1
- package/src/core/commands/help.md +0 -1
- package/src/core/commands/impact.md +0 -1
- package/src/core/commands/metrics.md +0 -1
- package/src/core/commands/multi-expert.md +285 -0
- package/src/core/commands/packages.md +0 -1
- package/src/core/commands/pr.md +0 -1
- package/src/core/commands/readme-sync.md +0 -1
- package/src/core/commands/research.md +0 -1
- package/src/core/commands/retro.md +0 -1
- package/src/core/commands/review.md +0 -1
- package/src/core/commands/session/end.md +316 -0
- package/src/core/commands/session/history.md +273 -0
- package/src/core/commands/{session-init.md → session/init.md} +14 -93
- package/src/core/commands/{resume.md → session/resume.md} +16 -32
- package/src/core/commands/session/status.md +250 -0
- package/src/core/commands/sprint.md +0 -1
- package/src/core/commands/status.md +0 -1
- package/src/core/commands/story-validate.md +0 -1
- package/src/core/commands/story.md +0 -1
- package/src/core/commands/template.md +0 -1
- package/src/core/commands/tests.md +0 -1
- package/src/core/commands/update.md +0 -1
- package/src/core/commands/validate-expertise.md +123 -0
- package/src/core/commands/velocity.md +0 -1
- package/src/core/commands/verify.md +3 -3
- package/src/core/experts/README.md +236 -0
- package/src/core/experts/accessibility/expertise.yaml +77 -0
- package/src/core/experts/accessibility/question.md +41 -0
- package/src/core/experts/accessibility/self-improve.md +45 -0
- package/src/core/experts/accessibility/workflow.md +59 -0
- package/src/core/experts/adr-writer/expertise.yaml +91 -0
- package/src/core/experts/adr-writer/question.md +56 -0
- package/src/core/experts/adr-writer/self-improve.md +106 -0
- package/src/core/experts/adr-writer/workflow.md +184 -0
- package/src/core/experts/analytics/expertise.yaml +167 -0
- package/src/core/experts/analytics/question.md +74 -0
- package/src/core/experts/analytics/self-improve.md +163 -0
- package/src/core/experts/analytics/workflow.md +272 -0
- package/src/core/experts/api/expertise.yaml +118 -0
- package/src/core/experts/api/question.md +74 -0
- package/src/core/experts/api/self-improve.md +122 -0
- package/src/core/experts/api/workflow.md +248 -0
- package/src/core/experts/ci/expertise.yaml +69 -0
- package/src/core/experts/ci/question.md +69 -0
- package/src/core/experts/ci/self-improve.md +100 -0
- package/src/core/experts/ci/workflow.md +145 -0
- package/src/core/experts/compliance/expertise.yaml +136 -0
- package/src/core/experts/compliance/question.md +56 -0
- package/src/core/experts/compliance/self-improve.md +106 -0
- package/src/core/experts/compliance/workflow.md +184 -0
- package/src/core/experts/database/expertise.yaml +99 -0
- package/src/core/experts/database/question.md +74 -0
- package/src/core/experts/database/self-improve.md +121 -0
- package/src/core/experts/database/workflow.md +234 -0
- package/src/core/experts/datamigration/expertise.yaml +107 -0
- package/src/core/experts/datamigration/question.md +56 -0
- package/src/core/experts/datamigration/self-improve.md +106 -0
- package/src/core/experts/datamigration/workflow.md +184 -0
- package/src/core/experts/design/expertise.yaml +97 -0
- package/src/core/experts/design/question.md +56 -0
- package/src/core/experts/design/self-improve.md +106 -0
- package/src/core/experts/design/workflow.md +184 -0
- package/src/core/experts/devops/expertise.yaml +76 -0
- package/src/core/experts/devops/question.md +68 -0
- package/src/core/experts/devops/self-improve.md +102 -0
- package/src/core/experts/devops/workflow.md +142 -0
- package/src/core/experts/documentation/expertise.yaml +61 -0
- package/src/core/experts/documentation/question.md +41 -0
- package/src/core/experts/documentation/self-improve.md +45 -0
- package/src/core/experts/documentation/workflow.md +55 -0
- package/src/core/experts/epic-planner/expertise.yaml +106 -0
- package/src/core/experts/epic-planner/question.md +56 -0
- package/src/core/experts/epic-planner/self-improve.md +106 -0
- package/src/core/experts/epic-planner/workflow.md +184 -0
- package/src/core/experts/integrations/expertise.yaml +143 -0
- package/src/core/experts/integrations/question.md +74 -0
- package/src/core/experts/integrations/self-improve.md +151 -0
- package/src/core/experts/integrations/workflow.md +246 -0
- package/src/core/experts/mentor/expertise.yaml +106 -0
- package/src/core/experts/mentor/question.md +56 -0
- package/src/core/experts/mentor/self-improve.md +106 -0
- package/src/core/experts/mentor/workflow.md +184 -0
- package/src/core/experts/mobile/expertise.yaml +122 -0
- package/src/core/experts/mobile/question.md +72 -0
- package/src/core/experts/mobile/self-improve.md +140 -0
- package/src/core/experts/mobile/workflow.md +240 -0
- package/src/core/experts/monitoring/expertise.yaml +143 -0
- package/src/core/experts/monitoring/question.md +76 -0
- package/src/core/experts/monitoring/self-improve.md +150 -0
- package/src/core/experts/monitoring/workflow.md +264 -0
- package/src/core/experts/performance/expertise.yaml +69 -0
- package/src/core/experts/performance/question.md +41 -0
- package/src/core/experts/performance/self-improve.md +45 -0
- package/src/core/experts/performance/workflow.md +61 -0
- package/src/core/experts/product/expertise.yaml +85 -0
- package/src/core/experts/product/question.md +56 -0
- package/src/core/experts/product/self-improve.md +106 -0
- package/src/core/experts/product/workflow.md +184 -0
- package/src/core/experts/qa/expertise.yaml +91 -0
- package/src/core/experts/qa/question.md +56 -0
- package/src/core/experts/qa/self-improve.md +106 -0
- package/src/core/experts/qa/workflow.md +184 -0
- package/src/core/experts/readme-updater/expertise.yaml +94 -0
- package/src/core/experts/readme-updater/question.md +56 -0
- package/src/core/experts/readme-updater/self-improve.md +106 -0
- package/src/core/experts/readme-updater/workflow.md +184 -0
- package/src/core/experts/refactor/expertise.yaml +59 -0
- package/src/core/experts/refactor/question.md +41 -0
- package/src/core/experts/refactor/self-improve.md +45 -0
- package/src/core/experts/refactor/workflow.md +57 -0
- package/src/core/experts/research/expertise.yaml +100 -0
- package/src/core/experts/research/question.md +56 -0
- package/src/core/experts/research/self-improve.md +106 -0
- package/src/core/experts/research/workflow.md +184 -0
- package/src/core/experts/security/expertise.yaml +79 -0
- package/src/core/experts/security/question.md +77 -0
- package/src/core/experts/security/self-improve.md +102 -0
- package/src/core/experts/security/workflow.md +152 -0
- package/src/core/experts/templates/expertise-template.yaml +67 -0
- package/src/core/experts/templates/question-template.md +56 -0
- package/src/core/experts/templates/self-improve-template.md +106 -0
- package/src/core/experts/templates/workflow-template.md +184 -0
- package/src/core/experts/testing/expertise.yaml +67 -0
- package/src/core/experts/testing/question.md +68 -0
- package/src/core/experts/testing/self-improve.md +102 -0
- package/src/core/experts/testing/workflow.md +143 -0
- package/src/core/experts/ui/expertise.yaml +122 -0
- package/src/core/experts/ui/question.md +74 -0
- package/src/core/experts/ui/self-improve.md +122 -0
- package/src/core/experts/ui/workflow.md +262 -0
- package/src/core/templates/resume-session.sh +2 -2
- package/src/core/commands/PATTERNS-AskUserQuestion.md +0 -474
package/package.json
CHANGED
|
@@ -59,7 +59,7 @@ 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 `/AgileFlow:session
|
|
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`
|
|
@@ -69,7 +69,7 @@ Before starting work on ANY story:
|
|
|
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 `/AgileFlow:resume` to verify environment and load context
|
|
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
|
|
|
@@ -154,14 +154,14 @@ 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 `/AgileFlow:session
|
|
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**: `/AgileFlow:resume` loads context automatically
|
|
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
|
|
@@ -429,12 +429,28 @@ Before approval:
|
|
|
429
429
|
|
|
430
430
|
FIRST ACTION
|
|
431
431
|
|
|
432
|
+
**CRITICAL: Load Expertise First (Agent Expert Protocol)**
|
|
433
|
+
|
|
434
|
+
Before ANY work, read your expertise file:
|
|
435
|
+
```
|
|
436
|
+
packages/cli/src/core/experts/accessibility/expertise.yaml
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
This contains your mental model of:
|
|
440
|
+
- Component accessibility requirements
|
|
441
|
+
- WCAG compliance checklist
|
|
442
|
+
- ARIA patterns
|
|
443
|
+
- Recent learnings from past work
|
|
444
|
+
|
|
445
|
+
**Validate expertise against actual code** - expertise is your memory, code is the source of truth.
|
|
446
|
+
|
|
432
447
|
**Proactive Knowledge Loading**:
|
|
433
|
-
1.
|
|
434
|
-
2.
|
|
435
|
-
3. Check
|
|
436
|
-
4.
|
|
437
|
-
5.
|
|
448
|
+
1. **READ EXPERTISE FILE FIRST** (packages/cli/src/core/experts/accessibility/expertise.yaml)
|
|
449
|
+
2. Read docs/09-agents/status.json for a11y stories
|
|
450
|
+
3. Check CLAUDE.md for accessibility requirements
|
|
451
|
+
4. Check docs/10-research/ for a11y patterns
|
|
452
|
+
5. Run automated a11y audit tools
|
|
453
|
+
6. Identify critical accessibility gaps
|
|
438
454
|
|
|
439
455
|
**Then Output**:
|
|
440
456
|
1. Accessibility summary: "WCAG AA compliance: [X]%"
|
|
@@ -443,3 +459,17 @@ FIRST ACTION
|
|
|
443
459
|
4. Suggest stories: "Ready for a11y work: [list]"
|
|
444
460
|
5. Ask: "Which accessibility issue needs fixing?"
|
|
445
461
|
6. Explain autonomy: "I'll audit for WCAG compliance, test with assistive tech, remediate issues, ensure inclusive design"
|
|
462
|
+
|
|
463
|
+
**For Complete Features - Use Workflow**:
|
|
464
|
+
For implementing complete accessibility improvements, use the three-step workflow:
|
|
465
|
+
```
|
|
466
|
+
packages/cli/src/core/experts/accessibility/workflow.md
|
|
467
|
+
```
|
|
468
|
+
This chains Plan → Build → Self-Improve automatically.
|
|
469
|
+
|
|
470
|
+
**After Completing Work - Self-Improve**:
|
|
471
|
+
After ANY accessibility changes, run self-improve:
|
|
472
|
+
```
|
|
473
|
+
packages/cli/src/core/experts/accessibility/self-improve.md
|
|
474
|
+
```
|
|
475
|
+
This updates your expertise with what you learned, so you're faster next time.
|
|
@@ -178,10 +178,26 @@ TONE
|
|
|
178
178
|
|
|
179
179
|
FIRST ACTION
|
|
180
180
|
|
|
181
|
+
**CRITICAL: Load Expertise First (Agent Expert Protocol)**
|
|
182
|
+
|
|
183
|
+
Before ANY work, read your expertise file:
|
|
184
|
+
```
|
|
185
|
+
packages/cli/src/core/experts/adr-writer/expertise.yaml
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
This contains your mental model of:
|
|
189
|
+
- ADR file locations and numbering
|
|
190
|
+
- ADR structure and status lifecycle
|
|
191
|
+
- Trade-off documentation patterns
|
|
192
|
+
- Recent learnings from past work
|
|
193
|
+
|
|
194
|
+
**Validate expertise against actual code** - expertise is your memory, code is the source of truth.
|
|
195
|
+
|
|
181
196
|
**Proactive Knowledge Loading** (do this BEFORE asking user):
|
|
182
|
-
1.
|
|
183
|
-
2.
|
|
184
|
-
3.
|
|
197
|
+
1. **READ EXPERTISE FILE FIRST** (packages/cli/src/core/experts/adr-writer/expertise.yaml)
|
|
198
|
+
2. Read docs/03-decisions/README.md → Get next ADR number (sequential)
|
|
199
|
+
3. Check docs/10-research/ → Look for research supporting the decision
|
|
200
|
+
4. Scan recent ADRs → Identify related decisions
|
|
185
201
|
|
|
186
202
|
**Then Output**:
|
|
187
203
|
1. ADR context: "Next ADR: ADR-<NUMBER>, recent decisions: <list of last 3 ADRs>"
|
|
@@ -190,6 +206,20 @@ FIRST ACTION
|
|
|
190
206
|
4. Ask: "What technical decision would you like to document?"
|
|
191
207
|
5. Clarify: "I'll document context, alternatives considered, decision, and consequences."
|
|
192
208
|
|
|
209
|
+
**For Complete Features - Use Workflow**:
|
|
210
|
+
For implementing complete ADR work, use the three-step workflow:
|
|
211
|
+
```
|
|
212
|
+
packages/cli/src/core/experts/adr-writer/workflow.md
|
|
213
|
+
```
|
|
214
|
+
This chains Plan → Build → Self-Improve automatically.
|
|
215
|
+
|
|
216
|
+
**After Completing Work - Self-Improve**:
|
|
217
|
+
After ANY ADR changes, run self-improve:
|
|
218
|
+
```
|
|
219
|
+
packages/cli/src/core/experts/adr-writer/self-improve.md
|
|
220
|
+
```
|
|
221
|
+
This updates your expertise with what you learned, so you're faster next time.
|
|
222
|
+
|
|
193
223
|
**After User Describes Decision**:
|
|
194
224
|
1. Clarify context (why now? what forces?)
|
|
195
225
|
2. Check docs/10-research/ for supporting research (or invoke `/AgileFlow:context MODE=research`)
|
|
@@ -59,7 +59,7 @@ 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 `/AgileFlow:session
|
|
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`
|
|
@@ -69,7 +69,7 @@ Before starting work on ANY story:
|
|
|
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 `/AgileFlow:resume` to verify environment and load context
|
|
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
|
|
|
@@ -154,14 +154,14 @@ 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 `/AgileFlow:session
|
|
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**: `/AgileFlow:resume` loads context automatically
|
|
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
|
|
@@ -507,12 +507,29 @@ Before approval:
|
|
|
507
507
|
|
|
508
508
|
FIRST ACTION
|
|
509
509
|
|
|
510
|
+
**CRITICAL: Load Expertise First (Agent Expert Protocol)**
|
|
511
|
+
|
|
512
|
+
Before ANY work, read your expertise file:
|
|
513
|
+
```
|
|
514
|
+
packages/cli/src/core/experts/analytics/expertise.yaml
|
|
515
|
+
```
|
|
516
|
+
|
|
517
|
+
This contains your mental model of:
|
|
518
|
+
- Tracking file locations
|
|
519
|
+
- Event naming conventions
|
|
520
|
+
- Event categories and schemas
|
|
521
|
+
- Key metrics definitions
|
|
522
|
+
- Recent learnings from past work
|
|
523
|
+
|
|
524
|
+
**Validate expertise against actual code** - expertise is your memory, code is the source of truth.
|
|
525
|
+
|
|
510
526
|
**Proactive Knowledge Loading**:
|
|
511
|
-
1.
|
|
512
|
-
2.
|
|
513
|
-
3. Check
|
|
514
|
-
4.
|
|
515
|
-
5.
|
|
527
|
+
1. **READ EXPERTISE FILE FIRST** (packages/cli/src/core/experts/analytics/expertise.yaml)
|
|
528
|
+
2. Read docs/09-agents/status.json for analytics stories
|
|
529
|
+
3. Check CLAUDE.md for analytics requirements
|
|
530
|
+
4. Check docs/10-research/ for analytics patterns
|
|
531
|
+
5. Identify key business metrics needed
|
|
532
|
+
6. Check GDPR/privacy requirements
|
|
516
533
|
|
|
517
534
|
**Then Output**:
|
|
518
535
|
1. Analytics summary: "Event tracking coverage: [X]%"
|
|
@@ -521,3 +538,17 @@ FIRST ACTION
|
|
|
521
538
|
4. Suggest stories: "Ready for analytics work: [list]"
|
|
522
539
|
5. Ask: "Which metric or event needs tracking?"
|
|
523
540
|
6. Explain autonomy: "I'll design event schema, create dashboards, ensure privacy compliance, monitor data quality"
|
|
541
|
+
|
|
542
|
+
**For Complete Features - Use Workflow**:
|
|
543
|
+
For implementing complete analytics tracking, use the three-step workflow:
|
|
544
|
+
```
|
|
545
|
+
packages/cli/src/core/experts/analytics/workflow.md
|
|
546
|
+
```
|
|
547
|
+
This chains Plan → Build → Self-Improve automatically.
|
|
548
|
+
|
|
549
|
+
**After Completing Work - Self-Improve**:
|
|
550
|
+
After ANY analytics changes, run self-improve:
|
|
551
|
+
```
|
|
552
|
+
packages/cli/src/core/experts/analytics/self-improve.md
|
|
553
|
+
```
|
|
554
|
+
This updates your expertise with what you learned, so you're faster next time.
|
package/src/core/agents/api.md
CHANGED
|
@@ -103,7 +103,7 @@ 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 `/AgileFlow:session
|
|
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`
|
|
@@ -113,7 +113,7 @@ Before starting work on ANY story:
|
|
|
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 `/AgileFlow:resume` to verify environment and load context
|
|
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
|
|
|
@@ -201,14 +201,14 @@ 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 `/AgileFlow:session
|
|
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**: `/AgileFlow:resume` loads context automatically
|
|
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
|
|
@@ -433,11 +433,28 @@ AG-UI stories frequently block waiting for API endpoints. Always check for block
|
|
|
433
433
|
|
|
434
434
|
FIRST ACTION
|
|
435
435
|
|
|
436
|
+
**CRITICAL: Load Expertise First (Agent Expert Protocol)**
|
|
437
|
+
|
|
438
|
+
Before ANY work, read your expertise file:
|
|
439
|
+
```
|
|
440
|
+
packages/cli/src/core/experts/api/expertise.yaml
|
|
441
|
+
```
|
|
442
|
+
|
|
443
|
+
This contains your mental model of:
|
|
444
|
+
- Route/controller file locations
|
|
445
|
+
- Middleware structure
|
|
446
|
+
- Endpoint registry
|
|
447
|
+
- Auth and validation patterns
|
|
448
|
+
- Recent learnings from past work
|
|
449
|
+
|
|
450
|
+
**Validate expertise against actual code** - expertise is your memory, code is the source of truth.
|
|
451
|
+
|
|
436
452
|
**Proactive Knowledge Loading** (do this BEFORE asking user):
|
|
437
|
-
1.
|
|
438
|
-
2.
|
|
439
|
-
3.
|
|
440
|
-
4.
|
|
453
|
+
1. **READ EXPERTISE FILE FIRST** (packages/cli/src/core/experts/api/expertise.yaml)
|
|
454
|
+
2. Read docs/09-agents/status.json → Find READY stories where owner==AG-API
|
|
455
|
+
3. **CRITICAL**: Search for blocked AG-UI stories waiting on AG-API endpoints
|
|
456
|
+
4. Read docs/09-agents/bus/log.jsonl (last 10 messages) → Check for API requests from AG-UI
|
|
457
|
+
5. Check CLAUDE.md for API architecture (REST, GraphQL, auth pattern)
|
|
441
458
|
|
|
442
459
|
**Then Output**:
|
|
443
460
|
1. Status summary: "<N> API stories ready, <N> in progress"
|
|
@@ -448,3 +465,17 @@ FIRST ACTION
|
|
|
448
465
|
- Format: `US-####: <title> (estimate: <time>, unblocks: <US-IDs>, AC: <count> criteria)`
|
|
449
466
|
4. Ask: "Which API story should I implement? (Prioritizing AG-UI unblocking)"
|
|
450
467
|
5. Explain autonomy: "I'll automatically notify AG-UI when endpoints are ready."
|
|
468
|
+
|
|
469
|
+
**For Complete Features - Use Workflow**:
|
|
470
|
+
For implementing complete API features, use the three-step workflow:
|
|
471
|
+
```
|
|
472
|
+
packages/cli/src/core/experts/api/workflow.md
|
|
473
|
+
```
|
|
474
|
+
This chains Plan → Build → Self-Improve automatically.
|
|
475
|
+
|
|
476
|
+
**After Completing Work - Self-Improve**:
|
|
477
|
+
After ANY API changes (new endpoints, middleware, validation), run self-improve:
|
|
478
|
+
```
|
|
479
|
+
packages/cli/src/core/experts/api/self-improve.md
|
|
480
|
+
```
|
|
481
|
+
This updates your expertise with what you learned, so you're faster next time.
|
package/src/core/agents/ci.md
CHANGED
|
@@ -104,7 +104,7 @@ Before starting work on ANY story:
|
|
|
104
104
|
1. **Check Session Harness**:
|
|
105
105
|
- Look for `docs/00-meta/environment.json`
|
|
106
106
|
- If exists → Session harness is active ✅
|
|
107
|
-
- If missing → Suggest `/AgileFlow:session
|
|
107
|
+
- If missing → Suggest `/AgileFlow:session:init` to user
|
|
108
108
|
|
|
109
109
|
2. **Test Baseline Check**:
|
|
110
110
|
- Read `test_status` from story in `docs/09-agents/status.json`
|
|
@@ -114,7 +114,7 @@ Before starting work on ANY story:
|
|
|
114
114
|
- If `"skipped"` → Check why tests are skipped, document override decision
|
|
115
115
|
|
|
116
116
|
3. **Environment Verification** (if session harness active):
|
|
117
|
-
- Run `/AgileFlow:resume` to verify environment and load context
|
|
117
|
+
- Run `/AgileFlow:session:resume` to verify environment and load context
|
|
118
118
|
- Check for regressions (tests were passing, now failing)
|
|
119
119
|
- If regression detected → Fix before proceeding with new story
|
|
120
120
|
|
|
@@ -199,14 +199,14 @@ If `/AgileFlow:verify` fails:
|
|
|
199
199
|
- Read error output carefully
|
|
200
200
|
- Check if test command is configured in `docs/00-meta/environment.json`
|
|
201
201
|
- Verify test dependencies are installed
|
|
202
|
-
- If project has no tests → Suggest `/AgileFlow:session
|
|
202
|
+
- If project has no tests → Suggest `/AgileFlow:session:init` to set up testing
|
|
203
203
|
- If tests are misconfigured → Coordinate with AG-CI
|
|
204
204
|
|
|
205
205
|
**SESSION RESUME PROTOCOL**
|
|
206
206
|
|
|
207
207
|
When resuming work after context loss:
|
|
208
208
|
|
|
209
|
-
1. **Run Resume Command**: `/AgileFlow:resume` loads context automatically
|
|
209
|
+
1. **Run Resume Command**: `/AgileFlow:session:resume` loads context automatically
|
|
210
210
|
2. **Check Session State**: Review `docs/09-agents/session-state.json`
|
|
211
211
|
3. **Verify Test Status**: Ensure no regressions occurred
|
|
212
212
|
4. **Load Previous Insights**: Check Dev Agent Record from previous stories
|
|
@@ -401,11 +401,28 @@ When invoked, also:
|
|
|
401
401
|
|
|
402
402
|
FIRST ACTION
|
|
403
403
|
|
|
404
|
+
**CRITICAL: Load Expertise First (Agent Expert Protocol)**
|
|
405
|
+
|
|
406
|
+
Before ANY work, read your expertise file:
|
|
407
|
+
```
|
|
408
|
+
packages/cli/src/core/experts/ci/expertise.yaml
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
This contains your mental model of:
|
|
412
|
+
- Workflow file locations (.github/workflows/, etc.)
|
|
413
|
+
- CI platform (GitHub Actions, GitLab CI, etc.)
|
|
414
|
+
- Jobs, triggers, and caching patterns
|
|
415
|
+
- Quality tools (ESLint, Prettier, TypeScript)
|
|
416
|
+
- Recent learnings from past work
|
|
417
|
+
|
|
418
|
+
**Validate expertise against actual code** - expertise is your memory, code is the source of truth.
|
|
419
|
+
|
|
404
420
|
**Proactive Knowledge Loading** (do this BEFORE asking user):
|
|
405
|
-
1.
|
|
406
|
-
2.
|
|
407
|
-
3.
|
|
408
|
-
4.
|
|
421
|
+
1. **READ EXPERTISE FILE FIRST** (packages/cli/src/core/experts/ci/expertise.yaml)
|
|
422
|
+
2. Read docs/09-agents/status.json → Find READY stories where owner==AG-CI
|
|
423
|
+
3. Check for blocked AG-UI/AG-API stories waiting on test infrastructure
|
|
424
|
+
4. Read docs/09-agents/bus/log.jsonl (last 10 messages) → Check for test requests
|
|
425
|
+
5. Check for CI config (.github/workflows/, .gitlab-ci.yml, etc.)
|
|
409
426
|
|
|
410
427
|
**Then Output**:
|
|
411
428
|
1. CI health check:
|
|
@@ -418,3 +435,17 @@ FIRST ACTION
|
|
|
418
435
|
- If no stories: "Proactive: I can audit CI (flaky tests, slow builds, coverage gaps)"
|
|
419
436
|
5. Ask: "What CI/quality work should I prioritize?"
|
|
420
437
|
6. Explain autonomy: "I can set up test infrastructure and fix flaky tests automatically."
|
|
438
|
+
|
|
439
|
+
**For Complete Features - Use Workflow**:
|
|
440
|
+
For implementing complete CI features, use the three-step workflow:
|
|
441
|
+
```
|
|
442
|
+
packages/cli/src/core/experts/ci/workflow.md
|
|
443
|
+
```
|
|
444
|
+
This chains Plan → Build → Self-Improve automatically.
|
|
445
|
+
|
|
446
|
+
**After Completing Work - Self-Improve**:
|
|
447
|
+
After ANY CI changes (new workflows, jobs, quality tools), run self-improve:
|
|
448
|
+
```
|
|
449
|
+
packages/cli/src/core/experts/ci/self-improve.md
|
|
450
|
+
```
|
|
451
|
+
This updates your expertise with what you learned, so you're faster next time.
|
|
@@ -60,7 +60,7 @@ Before starting work on ANY story:
|
|
|
60
60
|
1. **Check Session Harness**:
|
|
61
61
|
- Look for `docs/00-meta/environment.json`
|
|
62
62
|
- If exists → Session harness is active ✅
|
|
63
|
-
- If missing → Suggest `/AgileFlow:session
|
|
63
|
+
- If missing → Suggest `/AgileFlow:session:init` to user
|
|
64
64
|
|
|
65
65
|
2. **Test Baseline Check**:
|
|
66
66
|
- Read `test_status` from story in `docs/09-agents/status.json`
|
|
@@ -70,7 +70,7 @@ Before starting work on ANY story:
|
|
|
70
70
|
- If `"skipped"` → Check why tests are skipped, document override decision
|
|
71
71
|
|
|
72
72
|
3. **Environment Verification** (if session harness active):
|
|
73
|
-
- Run `/AgileFlow:resume` to verify environment and load context
|
|
73
|
+
- Run `/AgileFlow:session:resume` to verify environment and load context
|
|
74
74
|
- Check for regressions (tests were passing, now failing)
|
|
75
75
|
- If regression detected → Fix before proceeding with new story
|
|
76
76
|
|
|
@@ -155,14 +155,14 @@ If `/AgileFlow:verify` fails:
|
|
|
155
155
|
- Read error output carefully
|
|
156
156
|
- Check if test command is configured in `docs/00-meta/environment.json`
|
|
157
157
|
- Verify test dependencies are installed
|
|
158
|
-
- If project has no tests → Suggest `/AgileFlow:session
|
|
158
|
+
- If project has no tests → Suggest `/AgileFlow:session:init` to set up testing
|
|
159
159
|
- If tests are misconfigured → Coordinate with AG-CI
|
|
160
160
|
|
|
161
161
|
**SESSION RESUME PROTOCOL**
|
|
162
162
|
|
|
163
163
|
When resuming work after context loss:
|
|
164
164
|
|
|
165
|
-
1. **Run Resume Command**: `/AgileFlow:resume` loads context automatically
|
|
165
|
+
1. **Run Resume Command**: `/AgileFlow:session:resume` loads context automatically
|
|
166
166
|
2. **Check Session State**: Review `docs/09-agents/session-state.json`
|
|
167
167
|
3. **Verify Test Status**: Ensure no regressions occurred
|
|
168
168
|
4. **Load Previous Insights**: Check Dev Agent Record from previous stories
|
|
@@ -385,12 +385,28 @@ Before approval:
|
|
|
385
385
|
|
|
386
386
|
FIRST ACTION
|
|
387
387
|
|
|
388
|
+
**CRITICAL: Load Expertise First (Agent Expert Protocol)**
|
|
389
|
+
|
|
390
|
+
Before ANY work, read your expertise file:
|
|
391
|
+
```
|
|
392
|
+
packages/cli/src/core/experts/compliance/expertise.yaml
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
This contains your mental model of:
|
|
396
|
+
- Compliance framework file locations
|
|
397
|
+
- Audit trail implementations
|
|
398
|
+
- Policy document templates
|
|
399
|
+
- Recent learnings from past work
|
|
400
|
+
|
|
401
|
+
**Validate expertise against actual code** - expertise is your memory, code is the source of truth.
|
|
402
|
+
|
|
388
403
|
**Proactive Knowledge Loading**:
|
|
389
|
-
1.
|
|
390
|
-
2.
|
|
391
|
-
3. Check
|
|
392
|
-
4.
|
|
393
|
-
5.
|
|
404
|
+
1. **READ EXPERTISE FILE FIRST** (packages/cli/src/core/experts/compliance/expertise.yaml)
|
|
405
|
+
2. Read docs/09-agents/status.json for compliance stories
|
|
406
|
+
3. Check CLAUDE.md for compliance requirements
|
|
407
|
+
4. Check docs/10-research/ for compliance research
|
|
408
|
+
5. Identify applicable regulations
|
|
409
|
+
6. Check for audit trail implementation
|
|
394
410
|
|
|
395
411
|
**Then Output**:
|
|
396
412
|
1. Compliance summary: "Applicable frameworks: [list]"
|
|
@@ -399,3 +415,17 @@ FIRST ACTION
|
|
|
399
415
|
4. Suggest stories: "Ready for compliance work: [list]"
|
|
400
416
|
5. Ask: "Which compliance requirement needs attention?"
|
|
401
417
|
6. Explain autonomy: "I'll implement audit trails, document policies, ensure compliance, prepare for audits"
|
|
418
|
+
|
|
419
|
+
**For Complete Features - Use Workflow**:
|
|
420
|
+
For implementing complete compliance work, use the three-step workflow:
|
|
421
|
+
```
|
|
422
|
+
packages/cli/src/core/experts/compliance/workflow.md
|
|
423
|
+
```
|
|
424
|
+
This chains Plan → Build → Self-Improve automatically.
|
|
425
|
+
|
|
426
|
+
**After Completing Work - Self-Improve**:
|
|
427
|
+
After ANY compliance changes, run self-improve:
|
|
428
|
+
```
|
|
429
|
+
packages/cli/src/core/experts/compliance/self-improve.md
|
|
430
|
+
```
|
|
431
|
+
This updates your expertise with what you learned, so you're faster next time.
|
|
@@ -61,7 +61,7 @@ Before starting work on ANY story:
|
|
|
61
61
|
1. **Check Session Harness**:
|
|
62
62
|
- Look for `docs/00-meta/environment.json`
|
|
63
63
|
- If exists → Session harness is active ✅
|
|
64
|
-
- If missing → Suggest `/AgileFlow:session
|
|
64
|
+
- If missing → Suggest `/AgileFlow:session:init` to user
|
|
65
65
|
|
|
66
66
|
2. **Test Baseline Check**:
|
|
67
67
|
- Read `test_status` from story in `docs/09-agents/status.json`
|
|
@@ -71,7 +71,7 @@ Before starting work on ANY story:
|
|
|
71
71
|
- If `"skipped"` → Check why tests are skipped, document override decision
|
|
72
72
|
|
|
73
73
|
3. **Environment Verification** (if session harness active):
|
|
74
|
-
- Run `/AgileFlow:resume` to verify environment and load context
|
|
74
|
+
- Run `/AgileFlow:session:resume` to verify environment and load context
|
|
75
75
|
- Check for regressions (tests were passing, now failing)
|
|
76
76
|
- If regression detected → Fix before proceeding with new story
|
|
77
77
|
|
|
@@ -156,14 +156,14 @@ If `/AgileFlow:verify` fails:
|
|
|
156
156
|
- Read error output carefully
|
|
157
157
|
- Check if test command is configured in `docs/00-meta/environment.json`
|
|
158
158
|
- Verify test dependencies are installed
|
|
159
|
-
- If project has no tests → Suggest `/AgileFlow:session
|
|
159
|
+
- If project has no tests → Suggest `/AgileFlow:session:init` to set up testing
|
|
160
160
|
- If tests are misconfigured → Coordinate with AG-CI
|
|
161
161
|
|
|
162
162
|
**SESSION RESUME PROTOCOL**
|
|
163
163
|
|
|
164
164
|
When resuming work after context loss:
|
|
165
165
|
|
|
166
|
-
1. **Run Resume Command**: `/AgileFlow:resume` loads context automatically
|
|
166
|
+
1. **Run Resume Command**: `/AgileFlow:session:resume` loads context automatically
|
|
167
167
|
2. **Check Session State**: Review `docs/09-agents/session-state.json`
|
|
168
168
|
3. **Verify Test Status**: Ensure no regressions occurred
|
|
169
169
|
4. **Load Previous Insights**: Check Dev Agent Record from previous stories
|
|
@@ -361,12 +361,28 @@ Before approval:
|
|
|
361
361
|
|
|
362
362
|
FIRST ACTION
|
|
363
363
|
|
|
364
|
+
**CRITICAL: Load Expertise First (Agent Expert Protocol)**
|
|
365
|
+
|
|
366
|
+
Before ANY work, read your expertise file:
|
|
367
|
+
```
|
|
368
|
+
packages/cli/src/core/experts/database/expertise.yaml
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
This contains your mental model of:
|
|
372
|
+
- Schema file locations (Prisma, Drizzle, TypeORM paths)
|
|
373
|
+
- Table relationships you've learned
|
|
374
|
+
- Query patterns and conventions
|
|
375
|
+
- Recent learnings from past work
|
|
376
|
+
|
|
377
|
+
**Validate expertise against actual code** - expertise is your memory, code is the source of truth.
|
|
378
|
+
|
|
364
379
|
**Proactive Knowledge Loading**:
|
|
365
|
-
1.
|
|
366
|
-
2.
|
|
367
|
-
3. Check
|
|
368
|
-
4. Check docs/
|
|
369
|
-
5. Check
|
|
380
|
+
1. **READ EXPERTISE FILE FIRST** (packages/cli/src/core/experts/database/expertise.yaml)
|
|
381
|
+
2. Read docs/09-agents/status.json for database-related stories
|
|
382
|
+
3. Check CLAUDE.md for database type and ORM
|
|
383
|
+
4. Check docs/10-research/ for schema design patterns
|
|
384
|
+
5. Check docs/03-decisions/ for database architecture ADRs
|
|
385
|
+
6. Check if AG-API stories are waiting for schema
|
|
370
386
|
|
|
371
387
|
**Then Output**:
|
|
372
388
|
1. Database summary: "Database: [type], ORM: [name]"
|
|
@@ -375,3 +391,17 @@ FIRST ACTION
|
|
|
375
391
|
4. Suggest stories: "Ready for implementation: [list]"
|
|
376
392
|
5. Ask: "Which story needs database work first?"
|
|
377
393
|
6. Explain autonomy: "I'll design schemas, create migrations, optimize queries, and coordinate with AG-API"
|
|
394
|
+
|
|
395
|
+
**For Complete Features - Use Workflow**:
|
|
396
|
+
For implementing complete database features, use the three-step workflow:
|
|
397
|
+
```
|
|
398
|
+
packages/cli/src/core/experts/database/workflow.md
|
|
399
|
+
```
|
|
400
|
+
This chains Plan → Build → Self-Improve automatically.
|
|
401
|
+
|
|
402
|
+
**After Completing Work - Self-Improve**:
|
|
403
|
+
After ANY database changes (new tables, migrations, queries), run self-improve:
|
|
404
|
+
```
|
|
405
|
+
packages/cli/src/core/experts/database/self-improve.md
|
|
406
|
+
```
|
|
407
|
+
This updates your expertise with what you learned, so you're faster next time.
|
|
@@ -58,7 +58,7 @@ Before starting work on ANY story:
|
|
|
58
58
|
1. **Check Session Harness**:
|
|
59
59
|
- Look for `docs/00-meta/environment.json`
|
|
60
60
|
- If exists → Session harness is active ✅
|
|
61
|
-
- If missing → Suggest `/AgileFlow:session
|
|
61
|
+
- If missing → Suggest `/AgileFlow:session:init` to user
|
|
62
62
|
|
|
63
63
|
2. **Test Baseline Check**:
|
|
64
64
|
- Read `test_status` from story in `docs/09-agents/status.json`
|
|
@@ -68,7 +68,7 @@ Before starting work on ANY story:
|
|
|
68
68
|
- If `"skipped"` → Check why tests are skipped, document override decision
|
|
69
69
|
|
|
70
70
|
3. **Environment Verification** (if session harness active):
|
|
71
|
-
- Run `/AgileFlow:resume` to verify environment and load context
|
|
71
|
+
- Run `/AgileFlow:session:resume` to verify environment and load context
|
|
72
72
|
- Check for regressions (tests were passing, now failing)
|
|
73
73
|
- If regression detected → Fix before proceeding with new story
|
|
74
74
|
|
|
@@ -153,14 +153,14 @@ If `/AgileFlow:verify` fails:
|
|
|
153
153
|
- Read error output carefully
|
|
154
154
|
- Check if test command is configured in `docs/00-meta/environment.json`
|
|
155
155
|
- Verify test dependencies are installed
|
|
156
|
-
- If project has no tests → Suggest `/AgileFlow:session
|
|
156
|
+
- If project has no tests → Suggest `/AgileFlow:session:init` to set up testing
|
|
157
157
|
- If tests are misconfigured → Coordinate with AG-CI
|
|
158
158
|
|
|
159
159
|
**SESSION RESUME PROTOCOL**
|
|
160
160
|
|
|
161
161
|
When resuming work after context loss:
|
|
162
162
|
|
|
163
|
-
1. **Run Resume Command**: `/AgileFlow:resume` loads context automatically
|
|
163
|
+
1. **Run Resume Command**: `/AgileFlow:session:resume` loads context automatically
|
|
164
164
|
2. **Check Session State**: Review `docs/09-agents/session-state.json`
|
|
165
165
|
3. **Verify Test Status**: Ensure no regressions occurred
|
|
166
166
|
4. **Load Previous Insights**: Check Dev Agent Record from previous stories
|
|
@@ -549,12 +549,28 @@ Before approval:
|
|
|
549
549
|
|
|
550
550
|
FIRST ACTION
|
|
551
551
|
|
|
552
|
+
**CRITICAL: Load Expertise First (Agent Expert Protocol)**
|
|
553
|
+
|
|
554
|
+
Before ANY work, read your expertise file:
|
|
555
|
+
```
|
|
556
|
+
packages/cli/src/core/experts/datamigration/expertise.yaml
|
|
557
|
+
```
|
|
558
|
+
|
|
559
|
+
This contains your mental model of:
|
|
560
|
+
- Migration script locations
|
|
561
|
+
- Zero-downtime patterns used
|
|
562
|
+
- Validation and rollback strategies
|
|
563
|
+
- Recent learnings from past work
|
|
564
|
+
|
|
565
|
+
**Validate expertise against actual code** - expertise is your memory, code is the source of truth.
|
|
566
|
+
|
|
552
567
|
**Proactive Knowledge Loading**:
|
|
553
|
-
1.
|
|
554
|
-
2.
|
|
555
|
-
3. Check
|
|
556
|
-
4.
|
|
557
|
-
5.
|
|
568
|
+
1. **READ EXPERTISE FILE FIRST** (packages/cli/src/core/experts/datamigration/expertise.yaml)
|
|
569
|
+
2. Read docs/09-agents/status.json for migration stories
|
|
570
|
+
3. Check CLAUDE.md for migration requirements
|
|
571
|
+
4. Check docs/10-research/ for migration patterns
|
|
572
|
+
5. Identify data migrations needed
|
|
573
|
+
6. Check for pending schema changes
|
|
558
574
|
|
|
559
575
|
**Then Output**:
|
|
560
576
|
1. Migration summary: "Migrations needed: [N]"
|
|
@@ -563,3 +579,17 @@ FIRST ACTION
|
|
|
563
579
|
4. Suggest stories: "Ready for migration: [list]"
|
|
564
580
|
5. Ask: "Which migration should we plan?"
|
|
565
581
|
6. Explain autonomy: "I'll plan zero-downtime migrations, validate data, design rollback, ensure safety"
|
|
582
|
+
|
|
583
|
+
**For Complete Features - Use Workflow**:
|
|
584
|
+
For implementing complete migration work, use the three-step workflow:
|
|
585
|
+
```
|
|
586
|
+
packages/cli/src/core/experts/datamigration/workflow.md
|
|
587
|
+
```
|
|
588
|
+
This chains Plan → Build → Self-Improve automatically.
|
|
589
|
+
|
|
590
|
+
**After Completing Work - Self-Improve**:
|
|
591
|
+
After ANY migration changes, run self-improve:
|
|
592
|
+
```
|
|
593
|
+
packages/cli/src/core/experts/datamigration/self-improve.md
|
|
594
|
+
```
|
|
595
|
+
This updates your expertise with what you learned, so you're faster next time.
|