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
|
@@ -1,69 +1,52 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Synchronize a folder's README.md with its current contents
|
|
3
|
+
argument-hint: FOLDER=<path> | FOLDER=all
|
|
3
4
|
---
|
|
4
5
|
|
|
5
6
|
# readme-sync
|
|
6
7
|
|
|
7
|
-
Synchronize a folder's README.md with its current contents
|
|
8
|
+
Synchronize a folder's README.md with its current contents.
|
|
8
9
|
|
|
9
10
|
## Prompt
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
ROLE: README Sync Orchestrator
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
INPUTS
|
|
15
|
+
FOLDER=<path> Path to folder (e.g., docs/02-practices)
|
|
16
|
+
FOLDER=all Sync all docs/ subfolders
|
|
14
17
|
|
|
15
|
-
|
|
18
|
+
AGENT SPAWNING
|
|
19
|
+
This command spawns the `readme-updater` agent to do the actual work:
|
|
16
20
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
2.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
Your task:
|
|
31
|
-
1. List all files and subdirectories in [folder_path]
|
|
32
|
-
2. Read the current README.md (if exists)
|
|
33
|
-
3. Extract descriptions from each file (first heading or sentence)
|
|
34
|
-
4. Build a new '## Contents' section with all files listed
|
|
35
|
-
5. Show the proposed changes (diff format)
|
|
36
|
-
6. Ask user to confirm: 'Update README.md? (YES/NO)'
|
|
37
|
-
7. If YES: Update only the '## Contents' section (preserve everything else)
|
|
38
|
-
8. Report what was changed",
|
|
39
|
-
subagent_type: "readme-updater"
|
|
40
|
-
)
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
3. **If folder path is unclear**, ask user:
|
|
44
|
-
- "Which folder should I sync the README for? (e.g., docs/02-practices)"
|
|
45
|
-
- Then spawn the subagent with the provided folder
|
|
46
|
-
|
|
47
|
-
**EXAMPLE INVOCATIONS**:
|
|
48
|
-
|
|
49
|
-
User: "sync docs/02-practices"
|
|
50
|
-
โ Spawn readme-updater with prompt: "Audit and synchronize README.md for docs/02-practices"
|
|
21
|
+
```
|
|
22
|
+
Task(
|
|
23
|
+
description: "Sync README for <FOLDER>",
|
|
24
|
+
prompt: "Audit and synchronize README.md for: <FOLDER>
|
|
25
|
+
1. List all files and subdirectories
|
|
26
|
+
2. Read current README.md (if exists)
|
|
27
|
+
3. Extract descriptions from each file
|
|
28
|
+
4. Build new '## Contents' section
|
|
29
|
+
5. Show diff and ask for confirmation
|
|
30
|
+
6. Update if approved",
|
|
31
|
+
subagent_type: "AgileFlow:readme-updater"
|
|
32
|
+
)
|
|
33
|
+
```
|
|
51
34
|
|
|
52
|
-
|
|
53
|
-
|
|
35
|
+
ACTIONS
|
|
36
|
+
1) If FOLDER=all:
|
|
37
|
+
- List all docs/*/ subdirectories
|
|
38
|
+
- Spawn readme-updater agent for each folder (can run in parallel)
|
|
39
|
+
- Report summary of all folders updated
|
|
54
40
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
41
|
+
2) If FOLDER=<path>:
|
|
42
|
+
- Validate folder exists
|
|
43
|
+
- Spawn readme-updater agent with the folder path
|
|
44
|
+
- Agent handles: listing, diffing, confirmation, updating
|
|
59
45
|
|
|
60
|
-
|
|
61
|
-
-
|
|
62
|
-
- The subagent (readme-updater) does the actual work
|
|
63
|
-
- Subagent has tools: Bash, Read, Edit, Write
|
|
64
|
-
- Subagent will handle all file discovery, diffing, and updating
|
|
46
|
+
3) If FOLDER is missing:
|
|
47
|
+
- Ask: "Which folder should I sync? (e.g., docs/02-practices, or 'all')"
|
|
65
48
|
|
|
66
|
-
|
|
49
|
+
WORKFLOW DETAILS
|
|
67
50
|
|
|
68
51
|
### Step 1: List Folder Contents
|
|
69
52
|
```bash
|
|
@@ -93,75 +76,64 @@ Generate markdown bullet list:
|
|
|
93
76
|
- If YES: Use Edit tool to update "## Contents" section
|
|
94
77
|
- If NO: Abort without changes
|
|
95
78
|
|
|
96
|
-
|
|
79
|
+
EXAMPLE OUTPUT
|
|
97
80
|
|
|
98
81
|
```
|
|
99
82
|
๐ Syncing docs/02-practices/README.md
|
|
100
83
|
=====================================
|
|
101
84
|
|
|
102
|
-
Found
|
|
85
|
+
Found 8 files:
|
|
103
86
|
โข README.md (existing)
|
|
104
87
|
โข testing.md โ Test strategy, patterns, test infrastructure
|
|
105
88
|
โข git-branching.md โ Git workflow, branching strategy, commit conventions
|
|
106
89
|
โข ci.md โ CI/CD pipeline configuration, testing gates
|
|
107
90
|
โข security.md โ Security practices, input validation, authentication
|
|
108
91
|
โข releasing.md โ Release procedures, versioning, changelog
|
|
109
|
-
โข
|
|
92
|
+
โข diagrams.md โ Mermaid diagram generation with light/dark themes
|
|
93
|
+
โข async-agent-spawning.md โ Launch, monitor, and retrieve background agents
|
|
94
|
+
โข ask-user-question.md โ Using the AskUserQuestion tool effectively
|
|
110
95
|
|
|
111
96
|
Proposed Changes to ## Contents Section:
|
|
112
97
|
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
113
|
-
- testing.md โ Test strategy, patterns, test infrastructure
|
|
114
|
-
- git-branching.md โ Git workflow, branching strategy, commit conventions
|
|
115
|
-
- ci.md โ CI/CD pipeline configuration, testing gates
|
|
116
|
-
- security.md โ Security practices, input validation, authentication
|
|
117
|
-
- releasing.md โ Release procedures, versioning, changelog
|
|
118
|
-
-
|
|
119
|
-
|
|
120
|
-
|
|
98
|
+
- **testing.md** โ Test strategy, patterns, test infrastructure
|
|
99
|
+
- **git-branching.md** โ Git workflow, branching strategy, commit conventions
|
|
100
|
+
- **ci.md** โ CI/CD pipeline configuration, testing gates
|
|
101
|
+
- **security.md** โ Security practices, input validation, authentication
|
|
102
|
+
- **releasing.md** โ Release procedures, versioning, changelog
|
|
103
|
+
- **diagrams.md** โ Mermaid diagram generation with light/dark themes
|
|
104
|
+
- **async-agent-spawning.md** โ Launch, monitor, and retrieve background agents
|
|
105
|
+
- **ask-user-question.md** โ Using the AskUserQuestion tool effectively
|
|
121
106
|
|
|
122
107
|
Update README.md with these changes? (YES/NO)
|
|
123
108
|
```
|
|
124
109
|
|
|
125
|
-
|
|
126
|
-
|
|
110
|
+
WHEN TO USE
|
|
127
111
|
- After adding new files to a folder (keep README current)
|
|
128
112
|
- Before major releases (ensure docs match code)
|
|
129
113
|
- During documentation cleanup (quarterly maintenance)
|
|
130
114
|
- After reorganizing folder structure (update navigation)
|
|
131
115
|
- When README "Contents" section is out of date
|
|
116
|
+
- Use FOLDER=all to sync entire docs/ directory at once
|
|
132
117
|
|
|
133
|
-
|
|
134
|
-
|
|
118
|
+
USAGE EXAMPLES
|
|
135
119
|
```bash
|
|
136
|
-
# Sync
|
|
137
|
-
/
|
|
120
|
+
# Sync single folder
|
|
121
|
+
/agileflow:readme-sync FOLDER=docs/02-practices
|
|
138
122
|
|
|
139
|
-
# Sync docs
|
|
140
|
-
/
|
|
123
|
+
# Sync all docs folders
|
|
124
|
+
/agileflow:readme-sync FOLDER=all
|
|
141
125
|
|
|
142
|
-
# Sync
|
|
143
|
-
/
|
|
126
|
+
# Sync architecture docs
|
|
127
|
+
/agileflow:readme-sync FOLDER=docs/04-architecture
|
|
144
128
|
```
|
|
145
129
|
|
|
146
|
-
|
|
147
|
-
|
|
130
|
+
WHAT IT UPDATES
|
|
148
131
|
Only the `## Contents` section of README.md:
|
|
149
132
|
- Removes old file listings
|
|
150
133
|
- Adds all current files with descriptions
|
|
151
134
|
- Maintains all other sections unchanged
|
|
152
135
|
- Preserves custom notes and links
|
|
153
136
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
```bash
|
|
158
|
-
for folder in docs/0[0-9]-*; do
|
|
159
|
-
/AgileFlow:readme-sync FOLDER="$folder"
|
|
160
|
-
done
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
## Related Commands
|
|
164
|
-
|
|
165
|
-
- `/AgileFlow:doc-coverage` - Report on documentation completeness
|
|
166
|
-
- `/AgileFlow:impact-analysis` - See what changed
|
|
167
|
-
- `/AgileFlow:board` - View project status
|
|
137
|
+
RELATED
|
|
138
|
+
- [Diagram Practice](docs/02-practices/diagrams.md) - How to create diagrams
|
|
139
|
+
- [Async Agent Spawning](docs/02-practices/async-agent-spawning.md) - Background agent patterns
|
|
@@ -241,7 +241,7 @@ fi
|
|
|
241
241
|
if [ $avg_review_time -gt 2 ]; then
|
|
242
242
|
echo "๐ฏ MEDIUM: Reduce review time from $avg_review_time to <1 day"
|
|
243
243
|
echo " - Set up daily 30min review slot"
|
|
244
|
-
echo " - Use /
|
|
244
|
+
echo " - Use /agileflow:ai-code-review before requesting human review"
|
|
245
245
|
fi
|
|
246
246
|
|
|
247
247
|
# Low priority: Long-term improvements
|
|
@@ -377,8 +377,8 @@ Saved to: docs/08-project/retrospectives/retro-20251031.md
|
|
|
377
377
|
|
|
378
378
|
Next Steps:
|
|
379
379
|
- Review action items in next team meeting
|
|
380
|
-
- Run /
|
|
381
|
-
- Run /
|
|
380
|
+
- Run /agileflow:metrics to track improvements
|
|
381
|
+
- Run /agileflow:velocity to update sprint planning
|
|
382
382
|
```
|
|
383
383
|
|
|
384
384
|
INSIGHTS ENGINE
|
|
@@ -498,36 +498,36 @@ echo "$retro_content" > $retro_file
|
|
|
498
498
|
|
|
499
499
|
INTEGRATION WITH OTHER COMMANDS
|
|
500
500
|
|
|
501
|
-
- After `/
|
|
502
|
-
- Before planning: Run `/
|
|
503
|
-
- In `/
|
|
504
|
-
- With `/
|
|
501
|
+
- After `/agileflow:metrics`: Run `/agileflow:retro` to contextualize the data
|
|
502
|
+
- Before planning: Run `/agileflow:retro` to apply learnings
|
|
503
|
+
- In `/agileflow:babysit`: Suggest `/agileflow:retro` at sprint boundaries
|
|
504
|
+
- With `/agileflow:velocity`: Use velocity trends in retro insights
|
|
505
505
|
|
|
506
506
|
USAGE EXAMPLES
|
|
507
507
|
|
|
508
508
|
### Standard 2-week retro
|
|
509
509
|
```bash
|
|
510
|
-
/
|
|
510
|
+
/agileflow:retro
|
|
511
511
|
```
|
|
512
512
|
|
|
513
513
|
### Last 30 days
|
|
514
514
|
```bash
|
|
515
|
-
/
|
|
515
|
+
/agileflow:retro TIMEFRAME=30d
|
|
516
516
|
```
|
|
517
517
|
|
|
518
518
|
### Epic-specific retro
|
|
519
519
|
```bash
|
|
520
|
-
/
|
|
520
|
+
/agileflow:retro EPIC=EP-0010
|
|
521
521
|
```
|
|
522
522
|
|
|
523
523
|
### Generate without saving
|
|
524
524
|
```bash
|
|
525
|
-
/
|
|
525
|
+
/agileflow:retro SAVE=false
|
|
526
526
|
```
|
|
527
527
|
|
|
528
528
|
### Export as markdown
|
|
529
529
|
```bash
|
|
530
|
-
/
|
|
530
|
+
/agileflow:retro FORMAT=markdown > retro.md
|
|
531
531
|
```
|
|
532
532
|
|
|
533
533
|
RULES
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: AI-powered code review with quality suggestions
|
|
3
|
+
argument-hint: [BRANCH=<name>] [BASE=<branch>] [FOCUS=all|security|performance|style]
|
|
3
4
|
---
|
|
4
5
|
|
|
5
6
|
# ai-code-review
|
|
@@ -314,7 +315,7 @@ INTEGRATION
|
|
|
314
315
|
Suggest adding to .github/workflows/pr.yml:
|
|
315
316
|
\`\`\`yaml
|
|
316
317
|
- name: AI Code Review
|
|
317
|
-
run: npx claude-code /
|
|
318
|
+
run: npx claude-code /agileflow:ai-code-review BRANCH=${{ github.head_ref }}
|
|
318
319
|
|
|
319
320
|
- name: Check for critical issues
|
|
320
321
|
run: |
|
|
@@ -5,7 +5,7 @@ argument-hint: (no arguments)
|
|
|
5
5
|
|
|
6
6
|
# End Session
|
|
7
7
|
|
|
8
|
-
You are running the `/
|
|
8
|
+
You are running the `/agileflow:session:end` command to cleanly close the current AgileFlow session. This records what was accomplished, updates session history, and prepares for the next session.
|
|
9
9
|
|
|
10
10
|
## Command Purpose
|
|
11
11
|
|
|
@@ -44,7 +44,7 @@ Proper session closure that:
|
|
|
44
44
|
if [ ! -f "docs/09-agents/session-state.json" ]; then
|
|
45
45
|
echo "โ ๏ธ No active session to end"
|
|
46
46
|
echo ""
|
|
47
|
-
echo "Run /
|
|
47
|
+
echo "Run /agileflow:session:resume to start a session first"
|
|
48
48
|
exit 0
|
|
49
49
|
fi
|
|
50
50
|
|
|
@@ -198,7 +198,7 @@ Ready to pick up:
|
|
|
198
198
|
โข US-0045: Add email verification
|
|
199
199
|
โข US-0046: Create admin dashboard
|
|
200
200
|
|
|
201
|
-
Run /
|
|
201
|
+
Run /agileflow:session:resume to start next session
|
|
202
202
|
|
|
203
203
|
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
204
204
|
```
|
|
@@ -289,10 +289,10 @@ Completed:
|
|
|
289
289
|
|
|
290
290
|
| Command | Purpose |
|
|
291
291
|
|---------|---------|
|
|
292
|
-
| `/
|
|
293
|
-
| `/
|
|
294
|
-
| `/
|
|
295
|
-
| `/
|
|
292
|
+
| `/agileflow:session:init` | One-time setup of session harness |
|
|
293
|
+
| `/agileflow:session:resume` | Start session with verification |
|
|
294
|
+
| `/agileflow:session:status` | Quick view of current session |
|
|
295
|
+
| `/agileflow:session:history` | View past sessions and analytics |
|
|
296
296
|
|
|
297
297
|
## Integration Points
|
|
298
298
|
|
|
@@ -305,7 +305,7 @@ Completed:
|
|
|
305
305
|
- `docs/09-agents/session-state.json` - Moves current to last, updates history
|
|
306
306
|
|
|
307
307
|
### Optionally Runs
|
|
308
|
-
- `/
|
|
308
|
+
- `/agileflow:verify` - Final test check
|
|
309
309
|
|
|
310
310
|
## Implementation Notes
|
|
311
311
|
|
|
@@ -5,7 +5,7 @@ argument-hint: [DAYS=7|30|90|all]
|
|
|
5
5
|
|
|
6
6
|
# Session History
|
|
7
7
|
|
|
8
|
-
You are running the `/
|
|
8
|
+
You are running the `/agileflow:session:history` command to view past session history, productivity metrics, and trends over time.
|
|
9
9
|
|
|
10
10
|
## Command Purpose
|
|
11
11
|
|
|
@@ -22,9 +22,9 @@ Analytics view of your session history showing:
|
|
|
22
22
|
| `DAYS` | Time period to show | `7` (last 7 days) |
|
|
23
23
|
|
|
24
24
|
**Examples:**
|
|
25
|
-
- `/
|
|
26
|
-
- `/
|
|
27
|
-
- `/
|
|
25
|
+
- `/agileflow:session:history` - Last 7 days
|
|
26
|
+
- `/agileflow:session:history DAYS=30` - Last 30 days
|
|
27
|
+
- `/agileflow:session:history DAYS=all` - All time
|
|
28
28
|
|
|
29
29
|
## Execution Flow
|
|
30
30
|
|
|
@@ -165,9 +165,9 @@ Test stability:
|
|
|
165
165
|
No session history found.
|
|
166
166
|
|
|
167
167
|
Start tracking sessions with:
|
|
168
|
-
1. /
|
|
169
|
-
2. /
|
|
170
|
-
3. /
|
|
168
|
+
1. /agileflow:session:init (one-time setup)
|
|
169
|
+
2. /agileflow:session:resume (each session)
|
|
170
|
+
3. /agileflow:session:end (end of session)
|
|
171
171
|
|
|
172
172
|
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
173
173
|
```
|
|
@@ -246,12 +246,12 @@ Oct 2025: โโโโโโโโโโโโ 18 stories โ 58h
|
|
|
246
246
|
|
|
247
247
|
| Command | Purpose |
|
|
248
248
|
|---------|---------|
|
|
249
|
-
| `/
|
|
250
|
-
| `/
|
|
251
|
-
| `/
|
|
252
|
-
| `/
|
|
253
|
-
| `/
|
|
254
|
-
| `/
|
|
249
|
+
| `/agileflow:session:init` | One-time setup of session harness |
|
|
250
|
+
| `/agileflow:session:resume` | Start session with verification |
|
|
251
|
+
| `/agileflow:session:status` | Quick view of current session |
|
|
252
|
+
| `/agileflow:session:end` | Cleanly end session and record summary |
|
|
253
|
+
| `/agileflow:metrics` | Full project analytics dashboard |
|
|
254
|
+
| `/agileflow:velocity` | Sprint velocity tracking |
|
|
255
255
|
|
|
256
256
|
## Integration Points
|
|
257
257
|
|
|
@@ -5,7 +5,7 @@ argument-hint: (no arguments)
|
|
|
5
5
|
|
|
6
6
|
# Session Harness Initialization
|
|
7
7
|
|
|
8
|
-
You are running the `/
|
|
8
|
+
You are running the `/agileflow:session:init` command to set up test verification and session management for the AgileFlow project.
|
|
9
9
|
|
|
10
10
|
## Command Purpose
|
|
11
11
|
|
|
@@ -21,7 +21,7 @@ First-time setup of the **Session Harness System**. Detects project configuratio
|
|
|
21
21
|
4. Create docs/00-meta/environment.json
|
|
22
22
|
5. Create docs/00-meta/init.sh
|
|
23
23
|
6. Create docs/09-agents/session-state.json
|
|
24
|
-
7. Run initial test verification (/
|
|
24
|
+
7. Run initial test verification (/agileflow:verify)
|
|
25
25
|
8. Create baseline git tag (if tests pass)
|
|
26
26
|
9. Configure SessionStart hook (optional)
|
|
27
27
|
10. Display final summary
|
|
@@ -31,7 +31,7 @@ Mark each step complete as you finish it. This ensures nothing is forgotten duri
|
|
|
31
31
|
|
|
32
32
|
## Prerequisites
|
|
33
33
|
|
|
34
|
-
- AgileFlow must be initialized (`/
|
|
34
|
+
- AgileFlow must be initialized (`/agileflow:setup` must have been run)
|
|
35
35
|
- Project must have a test suite configured
|
|
36
36
|
- Must be in project root directory
|
|
37
37
|
|
|
@@ -44,7 +44,7 @@ Mark each step complete as you finish it. This ensures nothing is forgotten duri
|
|
|
44
44
|
if [ ! -f "docs/09-agents/status.json" ]; then
|
|
45
45
|
echo "โ AgileFlow not initialized"
|
|
46
46
|
echo ""
|
|
47
|
-
echo "Run /
|
|
47
|
+
echo "Run /agileflow:setup first to create the docs structure"
|
|
48
48
|
exit 1
|
|
49
49
|
fi
|
|
50
50
|
|
|
@@ -220,7 +220,7 @@ Initialize session state file:
|
|
|
220
220
|
|
|
221
221
|
### 7. Run Initial Test Verification
|
|
222
222
|
|
|
223
|
-
Run `/
|
|
223
|
+
Run `/agileflow:verify` to establish baseline test status:
|
|
224
224
|
|
|
225
225
|
```
|
|
226
226
|
๐งช Running initial test verification...
|
|
@@ -321,9 +321,9 @@ echo "โ
SessionStart hook configured"
|
|
|
321
321
|
echo "โ
docs/00-meta/resume-session.sh created"
|
|
322
322
|
```
|
|
323
323
|
|
|
324
|
-
**IMPORTANT**: The hook calls a **shell script** (`bash docs/00-meta/resume-session.sh`), NOT the slash command `/
|
|
324
|
+
**IMPORTANT**: The hook calls a **shell script** (`bash docs/00-meta/resume-session.sh`), NOT the slash command `/agileflow:session:resume`. This is because:
|
|
325
325
|
- Hooks execute shell commands, not Claude Code slash commands
|
|
326
|
-
- The shell script replicates `/
|
|
326
|
+
- The shell script replicates `/agileflow:session:resume` functionality
|
|
327
327
|
- This enables true automatic session resumption
|
|
328
328
|
|
|
329
329
|
### 10. Final Summary
|
|
@@ -353,9 +353,9 @@ Configuration:
|
|
|
353
353
|
|
|
354
354
|
Next Steps:
|
|
355
355
|
1. Restart Claude Code to activate SessionStart hook
|
|
356
|
-
2. Run /
|
|
357
|
-
3. Run /
|
|
358
|
-
4. Run /
|
|
356
|
+
2. Run /agileflow:verify to check tests anytime
|
|
357
|
+
3. Run /agileflow:baseline to mark new baselines
|
|
358
|
+
4. Run /agileflow:session:resume manually or let the hook run it
|
|
359
359
|
|
|
360
360
|
On Next Session:
|
|
361
361
|
- Hook will automatically run: bash docs/00-meta/resume-session.sh
|
|
@@ -369,10 +369,10 @@ Session harness is ready! ๐
|
|
|
369
369
|
|
|
370
370
|
| Command | Purpose |
|
|
371
371
|
|---------|---------|
|
|
372
|
-
| `/
|
|
373
|
-
| `/
|
|
374
|
-
| `/
|
|
375
|
-
| `/
|
|
372
|
+
| `/agileflow:session:resume` | Start session with verification and context loading |
|
|
373
|
+
| `/agileflow:session:status` | View current session state and activity |
|
|
374
|
+
| `/agileflow:session:end` | Cleanly end session and record summary |
|
|
375
|
+
| `/agileflow:session:history` | View past session history and metrics |
|
|
376
376
|
|
|
377
377
|
## Error Handling
|
|
378
378
|
|
|
@@ -430,10 +430,10 @@ This is optional - you can add baseline tags manually later using:
|
|
|
430
430
|
## Integration Points
|
|
431
431
|
|
|
432
432
|
### Called By
|
|
433
|
-
- `/
|
|
433
|
+
- `/agileflow:setup` - Optionally runs session:init during initial setup
|
|
434
434
|
|
|
435
435
|
### Calls
|
|
436
|
-
- `/
|
|
436
|
+
- `/agileflow:verify` - For initial test verification
|
|
437
437
|
- Template system - Uses templates/environment.json, templates/init.sh
|
|
438
438
|
|
|
439
439
|
### Creates
|
|
@@ -5,7 +5,7 @@ argument-hint: (no arguments)
|
|
|
5
5
|
|
|
6
6
|
# Resume AgileFlow Session
|
|
7
7
|
|
|
8
|
-
You are running the `/
|
|
8
|
+
You are running the `/agileflow:session:resume` command to start an AgileFlow session with environment verification, test checking, and context loading.
|
|
9
9
|
|
|
10
10
|
## Command Purpose
|
|
11
11
|
|
|
@@ -17,7 +17,7 @@ Standard startup routine for every AgileFlow session. Verifies environment, runs
|
|
|
17
17
|
```
|
|
18
18
|
1. Check if session harness initialized
|
|
19
19
|
2. Run init script (if configured)
|
|
20
|
-
3. Verify tests (/
|
|
20
|
+
3. Verify tests (/agileflow:verify)
|
|
21
21
|
4. Load git context (commits, branch, status)
|
|
22
22
|
5. Load AgileFlow context (in-progress stories, recent completions)
|
|
23
23
|
6. Update session-state.json with current session metadata
|
|
@@ -29,11 +29,11 @@ Mark each step complete as you finish it. This ensures comprehensive session sta
|
|
|
29
29
|
|
|
30
30
|
**When to use:**
|
|
31
31
|
- Manually: Start of each coding session
|
|
32
|
-
- Automatically: Via SessionStart hook (configured in `/
|
|
32
|
+
- Automatically: Via SessionStart hook (configured in `/agileflow:session:init`)
|
|
33
33
|
|
|
34
34
|
## Prerequisites
|
|
35
35
|
|
|
36
|
-
- Session harness must be initialized (`/
|
|
36
|
+
- Session harness must be initialized (`/agileflow:session:init`)
|
|
37
37
|
- Must be in project root directory
|
|
38
38
|
|
|
39
39
|
## Execution Flow
|
|
@@ -44,7 +44,7 @@ Mark each step complete as you finish it. This ensures comprehensive session sta
|
|
|
44
44
|
if [ ! -f "docs/00-meta/environment.json" ]; then
|
|
45
45
|
echo "โ ๏ธ Session harness not initialized"
|
|
46
46
|
echo ""
|
|
47
|
-
echo "Run /
|
|
47
|
+
echo "Run /agileflow:session:init to set up test verification"
|
|
48
48
|
echo ""
|
|
49
49
|
echo "Or continue without session harness? [y/N]: "
|
|
50
50
|
|
|
@@ -89,7 +89,7 @@ fi
|
|
|
89
89
|
|
|
90
90
|
### 3. Verify Tests
|
|
91
91
|
|
|
92
|
-
Run `/
|
|
92
|
+
Run `/agileflow:verify` to check current test status:
|
|
93
93
|
|
|
94
94
|
```
|
|
95
95
|
๐งช Running tests...
|
|
@@ -279,7 +279,7 @@ Next steps:
|
|
|
279
279
|
2. Check Architecture Context for implementation guidance
|
|
280
280
|
3. Review Previous Story Insights above
|
|
281
281
|
4. Implement to acceptance criteria
|
|
282
|
-
5. Run /
|
|
282
|
+
5. Run /agileflow:verify before marking complete
|
|
283
283
|
|
|
284
284
|
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
285
285
|
```
|
|
@@ -294,7 +294,7 @@ If session harness not initialized, provide basic context:
|
|
|
294
294
|
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
295
295
|
|
|
296
296
|
โ ๏ธ Session harness not initialized
|
|
297
|
-
Run /
|
|
297
|
+
Run /agileflow:session:init for:
|
|
298
298
|
โข Automatic test verification
|
|
299
299
|
โข Session state tracking
|
|
300
300
|
โข Baseline management
|
|
@@ -332,9 +332,9 @@ No stories in progress yet. Ready to start work!
|
|
|
332
332
|
|
|
333
333
|
Next steps:
|
|
334
334
|
1. Review available stories: docs/06-stories/
|
|
335
|
-
2. Assign yourself a story: /
|
|
335
|
+
2. Assign yourself a story: /agileflow:assign
|
|
336
336
|
3. Start implementation following AC
|
|
337
|
-
4. Run /
|
|
337
|
+
4. Run /agileflow:verify before completion
|
|
338
338
|
|
|
339
339
|
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
340
340
|
```
|
|
@@ -352,7 +352,7 @@ Since then:
|
|
|
352
352
|
โข 45 commits
|
|
353
353
|
โข 3 new epics added
|
|
354
354
|
|
|
355
|
-
Consider running /
|
|
355
|
+
Consider running /agileflow:session:status for full overview
|
|
356
356
|
|
|
357
357
|
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
358
358
|
```
|
|
@@ -361,10 +361,10 @@ Consider running /AgileFlow:session:status for full overview
|
|
|
361
361
|
|
|
362
362
|
| Command | Purpose |
|
|
363
363
|
|---------|---------|
|
|
364
|
-
| `/
|
|
365
|
-
| `/
|
|
366
|
-
| `/
|
|
367
|
-
| `/
|
|
364
|
+
| `/agileflow:session:init` | One-time setup of session harness |
|
|
365
|
+
| `/agileflow:session:status` | View current session state and activity |
|
|
366
|
+
| `/agileflow:session:end` | Cleanly end session and record summary |
|
|
367
|
+
| `/agileflow:session:history` | View past session history and metrics |
|
|
368
368
|
|
|
369
369
|
## Error Handling
|
|
370
370
|
|
|
@@ -433,10 +433,10 @@ Choice [1/2/3]: _
|
|
|
433
433
|
|
|
434
434
|
### Called By
|
|
435
435
|
- SessionStart hook (if configured)
|
|
436
|
-
- User manually via `/
|
|
436
|
+
- User manually via `/agileflow:session:resume`
|
|
437
437
|
|
|
438
438
|
### Calls
|
|
439
|
-
- `/
|
|
439
|
+
- `/agileflow:verify` - Test verification
|
|
440
440
|
- Init script (`docs/00-meta/init.sh`)
|
|
441
441
|
|
|
442
442
|
### Reads
|