agileflow 2.30.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 +61 -0
- package/src/core/agents/accessibility.md +445 -0
- package/src/core/agents/adr-writer.md +215 -0
- package/src/core/agents/analytics.md +523 -0
- package/src/core/agents/api.md +484 -0
- package/src/core/agents/ci.md +452 -0
- package/src/core/agents/compliance.md +401 -0
- package/src/core/agents/context7.md +164 -0
- package/src/core/agents/database.md +377 -0
- package/src/core/agents/datamigration.md +565 -0
- package/src/core/agents/design.md +400 -0
- package/src/core/agents/devops.md +576 -0
- package/src/core/agents/documentation.md +229 -0
- package/src/core/agents/epic-planner.md +277 -0
- package/src/core/agents/integrations.md +459 -0
- package/src/core/agents/mentor.md +375 -0
- package/src/core/agents/mobile.md +391 -0
- package/src/core/agents/monitoring.md +430 -0
- package/src/core/agents/performance.md +390 -0
- package/src/core/agents/product.md +311 -0
- package/src/core/agents/qa.md +647 -0
- package/src/core/agents/readme-updater.md +325 -0
- package/src/core/agents/refactor.md +432 -0
- package/src/core/agents/research.md +250 -0
- package/src/core/agents/security.md +379 -0
- package/src/core/agents/testing.md +397 -0
- package/src/core/agents/ui.md +999 -0
- package/src/core/commands/adr.md +32 -0
- package/src/core/commands/agent.md +23 -0
- package/src/core/commands/assign.md +34 -0
- package/src/core/commands/auto.md +364 -0
- package/src/core/commands/babysit.md +1357 -0
- package/src/core/commands/baseline.md +520 -0
- package/src/core/commands/blockers.md +343 -0
- package/src/core/commands/board.md +241 -0
- package/src/core/commands/changelog.md +321 -0
- package/src/core/commands/ci.md +36 -0
- package/src/core/commands/compress.md +270 -0
- package/src/core/commands/context.md +222 -0
- package/src/core/commands/debt.md +268 -0
- package/src/core/commands/deploy.md +544 -0
- package/src/core/commands/deps.md +560 -0
- package/src/core/commands/diagnose.md +227 -0
- package/src/core/commands/docs.md +166 -0
- package/src/core/commands/epic.md +40 -0
- package/src/core/commands/feedback.md +307 -0
- package/src/core/commands/handoff.md +33 -0
- package/src/core/commands/help.md +90 -0
- package/src/core/commands/impact.md +204 -0
- package/src/core/commands/metrics.md +530 -0
- package/src/core/commands/packages.md +369 -0
- package/src/core/commands/pr.md +35 -0
- package/src/core/commands/readme-sync.md +168 -0
- package/src/core/commands/research.md +30 -0
- package/src/core/commands/resume.md +475 -0
- package/src/core/commands/retro.md +538 -0
- package/src/core/commands/review.md +364 -0
- package/src/core/commands/session-init.md +532 -0
- package/src/core/commands/setup.md +708 -0
- package/src/core/commands/sprint.md +490 -0
- package/src/core/commands/status.md +38 -0
- package/src/core/commands/story-validate.md +242 -0
- package/src/core/commands/story.md +38 -0
- package/src/core/commands/template.md +458 -0
- package/src/core/commands/tests.md +359 -0
- package/src/core/commands/update.md +407 -0
- package/src/core/commands/velocity.md +369 -0
- package/src/core/commands/verify.md +283 -0
- package/src/core/skills/acceptance-criteria-generator/SKILL.md +46 -0
- package/src/core/skills/adr-template/SKILL.md +62 -0
- package/src/core/skills/agileflow-acceptance-criteria/SKILL.md +156 -0
- package/src/core/skills/agileflow-adr/SKILL.md +147 -0
- package/src/core/skills/agileflow-adr/examples/database-choice-example.md +122 -0
- package/src/core/skills/agileflow-adr/templates/adr-template.md +69 -0
- package/src/core/skills/agileflow-commit-messages/SKILL.md +130 -0
- package/src/core/skills/agileflow-commit-messages/reference/bad-examples.md +168 -0
- package/src/core/skills/agileflow-commit-messages/reference/good-examples.md +120 -0
- package/src/core/skills/agileflow-commit-messages/scripts/check-attribution.sh +15 -0
- package/src/core/skills/agileflow-epic-planner/SKILL.md +184 -0
- package/src/core/skills/agileflow-retro-facilitator/SKILL.md +281 -0
- package/src/core/skills/agileflow-sprint-planner/SKILL.md +212 -0
- package/src/core/skills/agileflow-story-writer/SKILL.md +163 -0
- package/src/core/skills/agileflow-story-writer/examples/good-story-example.md +63 -0
- package/src/core/skills/agileflow-story-writer/templates/story-template.md +44 -0
- package/src/core/skills/agileflow-tech-debt/SKILL.md +215 -0
- package/src/core/skills/api-documentation-generator/SKILL.md +65 -0
- package/src/core/skills/changelog-entry/SKILL.md +55 -0
- package/src/core/skills/commit-message-formatter/SKILL.md +50 -0
- package/src/core/skills/deployment-guide-generator/SKILL.md +84 -0
- package/src/core/skills/diagram-generator/SKILL.md +65 -0
- package/src/core/skills/error-handler-template/SKILL.md +78 -0
- package/src/core/skills/migration-checklist/SKILL.md +82 -0
- package/src/core/skills/pr-description/SKILL.md +65 -0
- package/src/core/skills/sql-schema-generator/SKILL.md +69 -0
- package/src/core/skills/story-skeleton/SKILL.md +34 -0
- package/src/core/skills/test-case-generator/SKILL.md +63 -0
- package/src/core/skills/type-definitions/SKILL.md +65 -0
- package/src/core/skills/validation-schema-generator/SKILL.md +64 -0
- package/src/core/templates/README-template.md +16 -0
- package/src/core/templates/adr-template.md +28 -0
- package/src/core/templates/agent-profile-template.md +51 -0
- package/src/core/templates/agileflow-metadata.json +41 -0
- package/src/core/templates/ci-workflow.yml +74 -0
- package/src/core/templates/claude-settings.advanced.example.json +71 -0
- package/src/core/templates/claude-settings.example.json +26 -0
- package/src/core/templates/comms-note-template.md +24 -0
- package/src/core/templates/environment.json +18 -0
- package/src/core/templates/epic-template.md +27 -0
- package/src/core/templates/init.sh +76 -0
- package/src/core/templates/research-template.md +44 -0
- package/src/core/templates/resume-session.sh +121 -0
- package/src/core/templates/session-state.json +20 -0
- package/src/core/templates/skill-template.md +75 -0
- package/src/core/templates/story-template.md +88 -0
- package/src/core/templates/validate-tokens.sh +88 -0
- package/src/core/templates/worktree-create.sh +111 -0
- package/src/core/templates/worktrees-guide.md +235 -0
- package/tools/agileflow-npx.js +40 -0
- package/tools/cli/agileflow-cli.js +70 -0
- package/tools/cli/commands/doctor.js +243 -0
- package/tools/cli/commands/install.js +82 -0
- package/tools/cli/commands/status.js +121 -0
- package/tools/cli/commands/uninstall.js +110 -0
- package/tools/cli/commands/update.js +99 -0
- package/tools/cli/installers/core/installer.js +296 -0
- package/tools/cli/installers/ide/_base-ide.js +133 -0
- package/tools/cli/installers/ide/claude-code.js +174 -0
- package/tools/cli/installers/ide/cursor.js +189 -0
- package/tools/cli/installers/ide/manager.js +197 -0
- package/tools/cli/installers/ide/windsurf.js +192 -0
- package/tools/cli/lib/ui.js +203 -0
- package/tools/cli/lib/version-checker.js +95 -0
- package/tools/postinstall.js +141 -0
|
@@ -0,0 +1,475 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Resume work with verification and context loading
|
|
3
|
+
argument-hint: (no arguments)
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Resume AgileFlow Session
|
|
7
|
+
|
|
8
|
+
You are running the `/AgileFlow:resume` command to start an AgileFlow session with environment verification, test checking, and context loading.
|
|
9
|
+
|
|
10
|
+
## Command Purpose
|
|
11
|
+
|
|
12
|
+
Standard startup routine for every AgileFlow session. Verifies environment, runs tests, loads context from previous work, and provides a comprehensive summary to resume productive work immediately.
|
|
13
|
+
|
|
14
|
+
## TODO LIST TRACKING
|
|
15
|
+
|
|
16
|
+
**CRITICAL**: Immediately create a todo list using TodoWrite tool to track session resumption:
|
|
17
|
+
```
|
|
18
|
+
1. Check if session harness initialized
|
|
19
|
+
2. Run init script (if configured)
|
|
20
|
+
3. Verify tests (/AgileFlow:verify)
|
|
21
|
+
4. Load git context (commits, branch, status)
|
|
22
|
+
5. Load AgileFlow context (in-progress stories, recent completions)
|
|
23
|
+
6. Update session-state.json with current session metadata
|
|
24
|
+
7. Generate and display session summary
|
|
25
|
+
8. Load Previous Story Insights (if applicable)
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Mark each step complete as you finish it. This ensures comprehensive session startup.
|
|
29
|
+
|
|
30
|
+
**When to use:**
|
|
31
|
+
- Manually: Start of each coding session
|
|
32
|
+
- Automatically: Via SessionStart hook (configured in `/AgileFlow:session-init`)
|
|
33
|
+
|
|
34
|
+
## Prerequisites
|
|
35
|
+
|
|
36
|
+
- Session harness must be initialized (`/AgileFlow:session-init`)
|
|
37
|
+
- Must be in project root directory
|
|
38
|
+
|
|
39
|
+
## Execution Flow
|
|
40
|
+
|
|
41
|
+
### 1. Check Initialization
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
if [ ! -f "docs/00-meta/environment.json" ]; then
|
|
45
|
+
echo "⚠️ Session harness not initialized"
|
|
46
|
+
echo ""
|
|
47
|
+
echo "Run /AgileFlow:session-init to set up test verification"
|
|
48
|
+
echo ""
|
|
49
|
+
echo "Or continue without session harness? [y/N]: "
|
|
50
|
+
|
|
51
|
+
# If user says no, exit
|
|
52
|
+
# If yes, skip to step 4 (load context only)
|
|
53
|
+
fi
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### 2. Run Init Script (Optional)
|
|
57
|
+
|
|
58
|
+
If `init_script` is configured in environment.json:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
INIT_SCRIPT=$(jq -r '.init_script' docs/00-meta/environment.json)
|
|
62
|
+
|
|
63
|
+
if [ -f "$INIT_SCRIPT" ]; then
|
|
64
|
+
echo "🚀 Running environment initialization..."
|
|
65
|
+
echo ""
|
|
66
|
+
|
|
67
|
+
bash "$INIT_SCRIPT"
|
|
68
|
+
|
|
69
|
+
if [ $? -eq 0 ]; then
|
|
70
|
+
echo ""
|
|
71
|
+
echo "✅ Environment ready"
|
|
72
|
+
else
|
|
73
|
+
echo ""
|
|
74
|
+
echo "⚠️ Init script encountered issues"
|
|
75
|
+
echo "Continue anyway? [Y/n]: "
|
|
76
|
+
fi
|
|
77
|
+
fi
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
**Output example:**
|
|
81
|
+
```
|
|
82
|
+
🚀 Running environment initialization...
|
|
83
|
+
|
|
84
|
+
📦 Installing dependencies (npm ci)...
|
|
85
|
+
✅ Dependencies installed
|
|
86
|
+
|
|
87
|
+
✅ Environment ready
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### 3. Verify Tests
|
|
91
|
+
|
|
92
|
+
Run `/AgileFlow:verify` to check current test status:
|
|
93
|
+
|
|
94
|
+
```
|
|
95
|
+
🧪 Running tests...
|
|
96
|
+
Command: npm test
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
**Track changes from last session:**
|
|
100
|
+
- Read `last_session.final_test_status` from session-state.json
|
|
101
|
+
- Compare to current test results
|
|
102
|
+
- Detect regressions
|
|
103
|
+
|
|
104
|
+
**If tests were passing, now failing:**
|
|
105
|
+
```
|
|
106
|
+
⚠️ REGRESSION DETECTED
|
|
107
|
+
|
|
108
|
+
Tests were: passing (last session)
|
|
109
|
+
Tests are now: FAILING
|
|
110
|
+
|
|
111
|
+
Failed: 2/42 tests
|
|
112
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
113
|
+
|
|
114
|
+
❌ auth.test.ts:42
|
|
115
|
+
Expected redirect to /dashboard
|
|
116
|
+
Got redirect to /login
|
|
117
|
+
|
|
118
|
+
❌ auth.test.ts:67
|
|
119
|
+
Session token not persisting
|
|
120
|
+
|
|
121
|
+
Recent commits:
|
|
122
|
+
abc123 - feat: update auth flow (2 hours ago)
|
|
123
|
+
def456 - fix: session cookie domain (3 hours ago)
|
|
124
|
+
|
|
125
|
+
Likely culprit: abc123 (auth flow changes)
|
|
126
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
**If tests passing:**
|
|
130
|
+
```
|
|
131
|
+
✅ All tests passing (42/42)
|
|
132
|
+
Duration: 12.3s
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### 4. Load Git Context
|
|
136
|
+
|
|
137
|
+
Get recent activity:
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
# Last 5 commits
|
|
141
|
+
git log --oneline -5
|
|
142
|
+
|
|
143
|
+
# Current branch
|
|
144
|
+
git branch --show-current
|
|
145
|
+
|
|
146
|
+
# Working tree status
|
|
147
|
+
git status --short
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### 5. Load AgileFlow Context
|
|
151
|
+
|
|
152
|
+
Read from status.json and session-state.json:
|
|
153
|
+
|
|
154
|
+
**Current Work:**
|
|
155
|
+
- Stories with status `in_progress`
|
|
156
|
+
- Stories with status `ready` (prioritized)
|
|
157
|
+
- Stories with status `blocked` (with blocker info)
|
|
158
|
+
|
|
159
|
+
**Recent Activity:**
|
|
160
|
+
- Stories completed since last session
|
|
161
|
+
- Commits made since last session
|
|
162
|
+
- Test status changes
|
|
163
|
+
|
|
164
|
+
**Previous Story Insights:**
|
|
165
|
+
- If current story has Previous Story Insights, load them
|
|
166
|
+
- If current story has Dev Agent Record from previous stories in epic, highlight key lessons
|
|
167
|
+
|
|
168
|
+
### 6. Update Session State
|
|
169
|
+
|
|
170
|
+
Update `docs/09-agents/session-state.json`:
|
|
171
|
+
|
|
172
|
+
```json
|
|
173
|
+
{
|
|
174
|
+
"current_session": {
|
|
175
|
+
"id": "sess-20251206-140000",
|
|
176
|
+
"started_at": "2025-12-06T14:00:00Z",
|
|
177
|
+
"baseline_verified": true,
|
|
178
|
+
"initial_test_status": "passing",
|
|
179
|
+
"current_story": "US-0043",
|
|
180
|
+
"active_agent": null
|
|
181
|
+
},
|
|
182
|
+
"last_session": {
|
|
183
|
+
"id": "sess-20251205-140000",
|
|
184
|
+
"ended_at": "2025-12-05T18:00:00Z",
|
|
185
|
+
"stories_completed": ["US-0041", "US-0042"],
|
|
186
|
+
"final_test_status": "passing",
|
|
187
|
+
"commits": ["abc123", "def456"]
|
|
188
|
+
},
|
|
189
|
+
"session_history": [
|
|
190
|
+
{
|
|
191
|
+
"date": "2025-12-05",
|
|
192
|
+
"sessions": 2,
|
|
193
|
+
"stories_completed": 3,
|
|
194
|
+
"test_regressions": 0
|
|
195
|
+
}
|
|
196
|
+
]
|
|
197
|
+
}
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
### 7. Generate Session Summary
|
|
201
|
+
|
|
202
|
+
Compile and display comprehensive summary:
|
|
203
|
+
|
|
204
|
+
```
|
|
205
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
206
|
+
🚀 AgileFlow Session Resumed
|
|
207
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
208
|
+
|
|
209
|
+
📅 Last Session: 1 day ago (sess-20251205-140000)
|
|
210
|
+
Duration: 4 hours
|
|
211
|
+
Stories Completed: US-0041, US-0042
|
|
212
|
+
|
|
213
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
214
|
+
📊 Current State
|
|
215
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
216
|
+
|
|
217
|
+
→ In Progress (1):
|
|
218
|
+
US-0043: Add user profile settings page
|
|
219
|
+
Owner: ui
|
|
220
|
+
Started: 2 hours ago
|
|
221
|
+
Tests: ✅ passing
|
|
222
|
+
|
|
223
|
+
Ready Queue (5):
|
|
224
|
+
US-0044: Implement password reset flow
|
|
225
|
+
US-0045: Add email verification
|
|
226
|
+
US-0046: Create admin dashboard
|
|
227
|
+
US-0047: Add user roles and permissions
|
|
228
|
+
US-0048: Implement audit logging
|
|
229
|
+
|
|
230
|
+
Blocked (1):
|
|
231
|
+
US-0049: Deploy to production
|
|
232
|
+
Blocker: Waiting on US-0043 completion
|
|
233
|
+
Owner: devops
|
|
234
|
+
|
|
235
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
236
|
+
🧪 Test Status
|
|
237
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
238
|
+
|
|
239
|
+
✅ All Passing (42/42)
|
|
240
|
+
Last Run: Just now
|
|
241
|
+
Command: npm test
|
|
242
|
+
Duration: 12.3s
|
|
243
|
+
|
|
244
|
+
No regressions detected since last session ✅
|
|
245
|
+
|
|
246
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
247
|
+
📁 Git Status
|
|
248
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
249
|
+
|
|
250
|
+
Branch: feature/user-profile
|
|
251
|
+
Status: Clean working tree ✅
|
|
252
|
+
|
|
253
|
+
Recent commits:
|
|
254
|
+
abc123 - feat: add profile form component (2 hours ago)
|
|
255
|
+
def456 - test: add profile validation tests (3 hours ago)
|
|
256
|
+
ghi789 - docs: update API documentation (1 day ago)
|
|
257
|
+
|
|
258
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
259
|
+
💡 Context from Previous Stories
|
|
260
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
261
|
+
|
|
262
|
+
From US-0042 (completed 1 day ago):
|
|
263
|
+
• Use shadcn/ui form components for consistency
|
|
264
|
+
• zod validation reduces runtime errors significantly
|
|
265
|
+
• Watch for Next.js hydration mismatches with dynamic content
|
|
266
|
+
• Form state management works well with react-hook-form
|
|
267
|
+
|
|
268
|
+
From US-0041 (completed 2 days ago):
|
|
269
|
+
• API rate limiting needs Redis configuration
|
|
270
|
+
• Test coverage requirement: 85% for new features
|
|
271
|
+
• Always run migration before testing DB changes
|
|
272
|
+
|
|
273
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
274
|
+
|
|
275
|
+
Ready to work on US-0043: "Add user profile settings page" 🚀
|
|
276
|
+
|
|
277
|
+
Next steps:
|
|
278
|
+
1. Review story details: docs/06-stories/EP-0001/US-0043.md
|
|
279
|
+
2. Check Architecture Context for implementation guidance
|
|
280
|
+
3. Review Previous Story Insights above
|
|
281
|
+
4. Implement to acceptance criteria
|
|
282
|
+
5. Run /AgileFlow:verify before marking complete
|
|
283
|
+
|
|
284
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
### 8. Minimal Mode (If No Session Harness)
|
|
288
|
+
|
|
289
|
+
If session harness not initialized, provide basic context:
|
|
290
|
+
|
|
291
|
+
```
|
|
292
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
293
|
+
🚀 AgileFlow Session (Basic Mode)
|
|
294
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
295
|
+
|
|
296
|
+
⚠️ Session harness not initialized
|
|
297
|
+
Run /AgileFlow:session-init for:
|
|
298
|
+
• Automatic test verification
|
|
299
|
+
• Session state tracking
|
|
300
|
+
• Baseline management
|
|
301
|
+
• Regression detection
|
|
302
|
+
|
|
303
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
304
|
+
📊 Current State (from status.json)
|
|
305
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
306
|
+
|
|
307
|
+
In Progress (1):
|
|
308
|
+
US-0043: Add user profile settings page
|
|
309
|
+
Owner: ui
|
|
310
|
+
|
|
311
|
+
Ready Queue (5):
|
|
312
|
+
US-0044, US-0045, US-0046, US-0047, US-0048
|
|
313
|
+
|
|
314
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
## Output Variations
|
|
318
|
+
|
|
319
|
+
### First Session Ever
|
|
320
|
+
```
|
|
321
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
322
|
+
🚀 Welcome to AgileFlow!
|
|
323
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
324
|
+
|
|
325
|
+
This is your first session with session harness enabled.
|
|
326
|
+
|
|
327
|
+
✅ Environment ready
|
|
328
|
+
✅ Tests passing (42/42)
|
|
329
|
+
✅ Baseline established
|
|
330
|
+
|
|
331
|
+
No stories in progress yet. Ready to start work!
|
|
332
|
+
|
|
333
|
+
Next steps:
|
|
334
|
+
1. Review available stories: docs/06-stories/
|
|
335
|
+
2. Assign yourself a story: /AgileFlow:assign
|
|
336
|
+
3. Start implementation following AC
|
|
337
|
+
4. Run /AgileFlow:verify before completion
|
|
338
|
+
|
|
339
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
### After Long Break (7+ days)
|
|
343
|
+
```
|
|
344
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
345
|
+
🚀 Welcome Back!
|
|
346
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
347
|
+
|
|
348
|
+
Last session: 8 days ago
|
|
349
|
+
|
|
350
|
+
Since then:
|
|
351
|
+
• 12 stories completed
|
|
352
|
+
• 45 commits
|
|
353
|
+
• 3 new epics added
|
|
354
|
+
|
|
355
|
+
Consider running /AgileFlow:status for full overview
|
|
356
|
+
|
|
357
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
## Error Handling
|
|
361
|
+
|
|
362
|
+
### Init Script Fails
|
|
363
|
+
```
|
|
364
|
+
⚠️ Environment initialization failed
|
|
365
|
+
|
|
366
|
+
Error: npm ci exited with code 1
|
|
367
|
+
|
|
368
|
+
Output:
|
|
369
|
+
npm ERR! ENOLOCK: no package-lock.json found
|
|
370
|
+
|
|
371
|
+
Options:
|
|
372
|
+
1. Fix issue and retry
|
|
373
|
+
2. Continue without running init
|
|
374
|
+
3. Exit and investigate
|
|
375
|
+
|
|
376
|
+
Choice [1/2/3]: _
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
### Tests Fail
|
|
380
|
+
```
|
|
381
|
+
❌ Tests Failed
|
|
382
|
+
|
|
383
|
+
Command: npm test
|
|
384
|
+
Exit Code: 1
|
|
385
|
+
Failed: 2/42 tests
|
|
386
|
+
|
|
387
|
+
Options:
|
|
388
|
+
1. View failed test output
|
|
389
|
+
2. Continue with failing tests (mark in session state)
|
|
390
|
+
3. Exit to fix tests first
|
|
391
|
+
|
|
392
|
+
Choice [1/2/3]: _
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
### Git Issues
|
|
396
|
+
```
|
|
397
|
+
⚠️ Git status check failed
|
|
398
|
+
|
|
399
|
+
This might indicate:
|
|
400
|
+
• Not in a git repository
|
|
401
|
+
• Git not installed
|
|
402
|
+
• Repository corruption
|
|
403
|
+
|
|
404
|
+
Continuing without git context...
|
|
405
|
+
```
|
|
406
|
+
|
|
407
|
+
### Status.json Corrupted
|
|
408
|
+
```
|
|
409
|
+
❌ Cannot read status.json
|
|
410
|
+
|
|
411
|
+
File appears corrupted or invalid JSON.
|
|
412
|
+
|
|
413
|
+
Backup exists at: docs/09-agents/status.json.backup
|
|
414
|
+
|
|
415
|
+
Options:
|
|
416
|
+
1. Restore from backup
|
|
417
|
+
2. Continue with empty status
|
|
418
|
+
3. Exit and fix manually
|
|
419
|
+
|
|
420
|
+
Choice [1/2/3]: _
|
|
421
|
+
```
|
|
422
|
+
|
|
423
|
+
## Integration Points
|
|
424
|
+
|
|
425
|
+
### Called By
|
|
426
|
+
- SessionStart hook (if configured)
|
|
427
|
+
- User manually via `/AgileFlow:resume`
|
|
428
|
+
|
|
429
|
+
### Calls
|
|
430
|
+
- `/AgileFlow:verify` - Test verification
|
|
431
|
+
- Init script (`docs/00-meta/init.sh`)
|
|
432
|
+
|
|
433
|
+
### Reads
|
|
434
|
+
- `docs/00-meta/environment.json` - Configuration
|
|
435
|
+
- `docs/09-agents/session-state.json` - Session history
|
|
436
|
+
- `docs/09-agents/status.json` - Current story status
|
|
437
|
+
- Git log and status - Recent activity
|
|
438
|
+
|
|
439
|
+
### Updates
|
|
440
|
+
- `docs/09-agents/session-state.json` - Current session metadata
|
|
441
|
+
|
|
442
|
+
## Implementation Notes
|
|
443
|
+
|
|
444
|
+
1. **Fast Execution**: Optimize for quick startup (<5 seconds typical)
|
|
445
|
+
2. **Graceful Degradation**: Works even if parts fail
|
|
446
|
+
3. **Clear Output**: Visual hierarchy with clear sections
|
|
447
|
+
4. **Actionable**: Always end with clear next steps
|
|
448
|
+
5. **Context-Rich**: Provide all info needed to resume work
|
|
449
|
+
6. **Non-Blocking**: Don't wait for user input unless critical
|
|
450
|
+
7. **Silent Option**: Support quiet mode for hook usage
|
|
451
|
+
|
|
452
|
+
## Example Execution
|
|
453
|
+
|
|
454
|
+
```
|
|
455
|
+
User: /AgileFlow:resume
|
|
456
|
+
|
|
457
|
+
Claude: 🚀 Resuming AgileFlow session...
|
|
458
|
+
|
|
459
|
+
Running docs/00-meta/init.sh...
|
|
460
|
+
📦 Dependencies up to date
|
|
461
|
+
✅ Environment ready
|
|
462
|
+
|
|
463
|
+
🧪 Running tests...
|
|
464
|
+
✅ All tests passing (42/42) - 12.3s
|
|
465
|
+
|
|
466
|
+
Loading context...
|
|
467
|
+
|
|
468
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
469
|
+
🚀 AgileFlow Session Resumed
|
|
470
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
471
|
+
|
|
472
|
+
[... full summary as shown above ...]
|
|
473
|
+
|
|
474
|
+
Ready to work on US-0043! 🚀
|
|
475
|
+
```
|