agileflow 2.76.0 → 2.78.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 +3 -3
- package/package.json +6 -1
- package/scripts/agileflow-configure.js +185 -13
- package/scripts/agileflow-statusline.sh +266 -27
- package/scripts/agileflow-welcome.js +160 -52
- package/scripts/auto-self-improve.js +63 -20
- package/scripts/check-update.js +1 -4
- package/scripts/damage-control-bash.js +232 -0
- package/scripts/damage-control-edit.js +243 -0
- package/scripts/damage-control-write.js +243 -0
- package/scripts/get-env.js +15 -7
- package/scripts/lib/frontmatter-parser.js +4 -1
- package/scripts/obtain-context.js +59 -48
- package/scripts/ralph-loop.js +25 -13
- package/scripts/validate-expertise.sh +19 -15
- package/src/core/agents/accessibility.md +124 -53
- package/src/core/agents/adr-writer.md +192 -52
- package/src/core/agents/analytics.md +139 -60
- package/src/core/agents/api.md +173 -63
- package/src/core/agents/ci.md +139 -57
- package/src/core/agents/compliance.md +159 -68
- package/src/core/agents/configuration/damage-control.md +356 -0
- package/src/core/agents/database.md +162 -61
- package/src/core/agents/datamigration.md +179 -66
- package/src/core/agents/design.md +179 -57
- package/src/core/agents/devops.md +160 -3
- package/src/core/agents/documentation.md +204 -60
- package/src/core/agents/epic-planner.md +147 -55
- package/src/core/agents/integrations.md +197 -69
- package/src/core/agents/mentor.md +158 -57
- package/src/core/agents/mobile.md +159 -67
- package/src/core/agents/monitoring.md +154 -65
- package/src/core/agents/multi-expert.md +115 -43
- package/src/core/agents/orchestrator.md +77 -24
- package/src/core/agents/performance.md +130 -75
- package/src/core/agents/product.md +151 -55
- package/src/core/agents/qa.md +162 -74
- package/src/core/agents/readme-updater.md +178 -76
- package/src/core/agents/refactor.md +148 -95
- package/src/core/agents/research.md +143 -72
- package/src/core/agents/security.md +154 -65
- package/src/core/agents/testing.md +176 -97
- package/src/core/agents/ui.md +170 -79
- package/src/core/commands/adr/list.md +171 -0
- package/src/core/commands/adr/update.md +235 -0
- package/src/core/commands/adr/view.md +252 -0
- package/src/core/commands/adr.md +207 -50
- package/src/core/commands/agent.md +16 -0
- package/src/core/commands/assign.md +148 -44
- package/src/core/commands/auto.md +18 -1
- package/src/core/commands/babysit.md +361 -36
- package/src/core/commands/baseline.md +14 -0
- package/src/core/commands/blockers.md +170 -51
- package/src/core/commands/board.md +144 -66
- package/src/core/commands/changelog.md +15 -0
- package/src/core/commands/ci.md +179 -69
- package/src/core/commands/compress.md +18 -0
- package/src/core/commands/configure.md +16 -0
- package/src/core/commands/context/export.md +193 -4
- package/src/core/commands/context/full.md +191 -18
- package/src/core/commands/context/note.md +248 -4
- package/src/core/commands/debt.md +17 -0
- package/src/core/commands/deploy.md +208 -65
- package/src/core/commands/deps.md +15 -0
- package/src/core/commands/diagnose.md +16 -0
- package/src/core/commands/docs.md +196 -64
- package/src/core/commands/epic/list.md +170 -0
- package/src/core/commands/epic/view.md +242 -0
- package/src/core/commands/epic.md +192 -69
- package/src/core/commands/feedback.md +191 -71
- package/src/core/commands/handoff.md +162 -48
- package/src/core/commands/help.md +9 -0
- package/src/core/commands/ideate.md +446 -0
- package/src/core/commands/impact.md +16 -0
- package/src/core/commands/metrics.md +141 -37
- package/src/core/commands/multi-expert.md +77 -0
- package/src/core/commands/packages.md +16 -0
- package/src/core/commands/pr.md +161 -67
- package/src/core/commands/readme-sync.md +16 -0
- package/src/core/commands/research/analyze.md +568 -0
- package/src/core/commands/research/ask.md +345 -20
- package/src/core/commands/research/import.md +562 -19
- package/src/core/commands/research/list.md +173 -5
- package/src/core/commands/research/view.md +181 -8
- package/src/core/commands/retro.md +135 -48
- package/src/core/commands/review.md +219 -47
- package/src/core/commands/session/end.md +209 -0
- package/src/core/commands/session/history.md +210 -0
- package/src/core/commands/session/init.md +116 -0
- package/src/core/commands/session/new.md +296 -0
- package/src/core/commands/session/resume.md +166 -0
- package/src/core/commands/session/status.md +166 -0
- package/src/core/commands/skill/create.md +115 -17
- package/src/core/commands/skill/delete.md +117 -0
- package/src/core/commands/skill/edit.md +104 -0
- package/src/core/commands/skill/list.md +128 -0
- package/src/core/commands/skill/test.md +135 -0
- package/src/core/commands/skill/upgrade.md +542 -0
- package/src/core/commands/sprint.md +17 -1
- package/src/core/commands/status.md +133 -21
- package/src/core/commands/story/list.md +176 -0
- package/src/core/commands/story/view.md +265 -0
- package/src/core/commands/story-validate.md +101 -1
- package/src/core/commands/story.md +204 -51
- package/src/core/commands/template.md +16 -1
- package/src/core/commands/tests.md +226 -64
- package/src/core/commands/update.md +17 -1
- package/src/core/commands/validate-expertise.md +16 -0
- package/src/core/commands/velocity.md +140 -36
- package/src/core/commands/verify.md +14 -0
- package/src/core/commands/whats-new.md +30 -0
- package/src/core/skills/_learnings/README.md +91 -0
- package/src/core/skills/_learnings/_template.yaml +106 -0
- package/src/core/skills/_learnings/commit.yaml +69 -0
- package/src/core/templates/damage-control-patterns.yaml +234 -0
- package/src/core/templates/skill-template.md +53 -11
- package/tools/cli/commands/list.js +3 -1
- package/tools/cli/commands/start.js +180 -0
- package/tools/cli/commands/uninstall.js +4 -5
- package/tools/cli/commands/update.js +11 -3
- package/tools/cli/lib/content-injector.js +6 -1
- package/tools/cli/tui/Dashboard.js +66 -0
- package/tools/cli/tui/StoryList.js +69 -0
- package/tools/cli/tui/index.js +16 -0
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Show research notes index
|
|
3
3
|
argument-hint: (no arguments)
|
|
4
|
+
compact_context:
|
|
5
|
+
priority: medium
|
|
6
|
+
preserve_rules:
|
|
7
|
+
- "ACTIVE COMMAND: /agileflow:research:list - List all research notes (read-only)"
|
|
8
|
+
- "NO FILE WRITES - This is read-only browsing"
|
|
9
|
+
- "Read docs/10-research/README.md for index table"
|
|
10
|
+
- "If README doesn't exist, list files from directory"
|
|
11
|
+
- "After showing list, offer quick action links"
|
|
12
|
+
- "Suggest: view a note OR ask new research OR import new research"
|
|
13
|
+
state_fields:
|
|
14
|
+
- research_count
|
|
15
|
+
- most_recent_topic
|
|
4
16
|
---
|
|
5
17
|
|
|
6
18
|
# /agileflow:research:list
|
|
@@ -22,11 +34,165 @@ Shows all research notes stored in `docs/10-research/` with:
|
|
|
22
34
|
---
|
|
23
35
|
|
|
24
36
|
<!-- COMPACT_SUMMARY_START -->
|
|
25
|
-
## Compact Summary
|
|
26
37
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
**
|
|
38
|
+
## ⚠️ COMPACT SUMMARY - /agileflow:research:list IS ACTIVE
|
|
39
|
+
|
|
40
|
+
**CRITICAL**: You are running `/agileflow:research:list`. This is a read-only research index viewer.
|
|
41
|
+
|
|
42
|
+
**ROLE**: Display research index and offer navigation options.
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
### 🚨 RULE #1: NO FILE WRITES (READ-ONLY)
|
|
47
|
+
|
|
48
|
+
**This command ONLY reads and displays. NEVER write, edit, or modify.**
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
❌ WRONG: Update timestamps / Add entries / Reorganize
|
|
52
|
+
✅ RIGHT: Read index and display to user
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
### 🚨 RULE #2: READ INDEX FROM docs/10-research/README.md
|
|
58
|
+
|
|
59
|
+
**Primary source: `docs/10-research/README.md` should contain a table:**
|
|
60
|
+
|
|
61
|
+
```markdown
|
|
62
|
+
## Research Notes
|
|
63
|
+
|
|
64
|
+
| Date | Topic | File | Summary |
|
|
65
|
+
|------|-------|------|---------|
|
|
66
|
+
| 2026-01-07 | OAuth Integration | 20260107-oauth.md | Setup Google OAuth |
|
|
67
|
+
| 2026-01-06 | Performance Tips | 20260106-perf.md | Caching strategies |
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
**If README doesn't exist:** List files from the directory directly.
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
### 🚨 RULE #3: HANDLE MISSING RESEARCH GRACEFULLY
|
|
75
|
+
|
|
76
|
+
**If no research exists, show helpful message:**
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
No research notes found.
|
|
80
|
+
|
|
81
|
+
Quick start:
|
|
82
|
+
- /agileflow:research:ask TOPIC="your topic" - Generate research prompt for ChatGPT/Claude
|
|
83
|
+
- /agileflow:research:import TOPIC="..." - Import external content
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
### 🚨 RULE #4: SIMPLE, CLEAN OUTPUT
|
|
89
|
+
|
|
90
|
+
**Just show the list. No complex formatting, no long explanations.**
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
Research Notes
|
|
94
|
+
==============
|
|
95
|
+
|
|
96
|
+
| Date | Topic | File |
|
|
97
|
+
|------------|------------------------|-----------------------------|
|
|
98
|
+
| 2026-01-07 | OAuth Integration | 20260107-oauth.md |
|
|
99
|
+
| 2026-01-06 | Performance Tips | 20260106-perf.md |
|
|
100
|
+
| 2026-01-05 | Database Migrations | 20260105-migrations.md |
|
|
101
|
+
|
|
102
|
+
Total: 3 research notes
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
### 🚨 RULE #5: OFFER QUICK ACTION LINKS
|
|
108
|
+
|
|
109
|
+
**After showing list, provide suggested actions:**
|
|
110
|
+
|
|
111
|
+
```
|
|
112
|
+
Quick actions:
|
|
113
|
+
- /agileflow:research:view FILE=<filename> - Read a specific note
|
|
114
|
+
- /agileflow:research:analyze FILE=<filename> - Analyze for implementation
|
|
115
|
+
- /agileflow:research:ask TOPIC="new topic" - Create new research prompt
|
|
116
|
+
- /agileflow:research:import TOPIC="..." - Import external content
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Or use AskUserQuestion:
|
|
120
|
+
|
|
121
|
+
```xml
|
|
122
|
+
<invoke name="AskUserQuestion">
|
|
123
|
+
<parameter name="questions">[{
|
|
124
|
+
"question": "What would you like to do?",
|
|
125
|
+
"header": "Actions",
|
|
126
|
+
"multiSelect": false,
|
|
127
|
+
"options": [
|
|
128
|
+
{"label": "View a research note", "description": "Read specific research"},
|
|
129
|
+
{"label": "Analyze research for implementation", "description": "Enter plan mode"},
|
|
130
|
+
{"label": "Create new research prompt", "description": "/agileflow:research:ask"},
|
|
131
|
+
{"label": "Import external content", "description": "/agileflow:research:import"},
|
|
132
|
+
{"label": "Done", "description": "Exit"}
|
|
133
|
+
]
|
|
134
|
+
}]</parameter>
|
|
135
|
+
</invoke>
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
### ANTI-PATTERNS (DON'T DO THESE)
|
|
141
|
+
|
|
142
|
+
❌ Modify the index
|
|
143
|
+
❌ Add or remove entries
|
|
144
|
+
❌ Show only recent research, hide older entries
|
|
145
|
+
❌ Truncate topic names or summaries
|
|
146
|
+
❌ Fail silently if research directory doesn't exist
|
|
147
|
+
❌ End without offering next actions
|
|
148
|
+
|
|
149
|
+
### DO THESE INSTEAD
|
|
150
|
+
|
|
151
|
+
✅ Read-only: no modifications
|
|
152
|
+
✅ Show ALL research notes in index
|
|
153
|
+
✅ Display complete file paths
|
|
154
|
+
✅ Graceful handling if no research exists
|
|
155
|
+
✅ Always offer suggested actions
|
|
156
|
+
✅ Link to related commands (view, analyze, ask, import)
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
### WORKFLOW
|
|
161
|
+
|
|
162
|
+
**Step 1: Read Index**
|
|
163
|
+
1. Try to read `docs/10-research/README.md`
|
|
164
|
+
2. If missing, list files from `docs/10-research/` directory
|
|
165
|
+
3. If directory doesn't exist, show helpful message
|
|
166
|
+
|
|
167
|
+
**Step 2: Display Index**
|
|
168
|
+
4. Show table with: Date, Topic, File, Summary
|
|
169
|
+
5. Count total research notes
|
|
170
|
+
6. Show list to user
|
|
171
|
+
|
|
172
|
+
**Step 3: Offer Actions**
|
|
173
|
+
7. Suggest next steps via quick links or AskUserQuestion
|
|
174
|
+
8. Allow user to view, analyze, or create new research
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
### KEY FILES
|
|
179
|
+
|
|
180
|
+
| File | Purpose |
|
|
181
|
+
|------|---------|
|
|
182
|
+
| `docs/10-research/` | Directory containing all research notes |
|
|
183
|
+
| `docs/10-research/README.md` | Index of research with metadata |
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
### REMEMBER AFTER COMPACTION
|
|
188
|
+
|
|
189
|
+
- `/agileflow:research:list` IS ACTIVE - you're listing research notes
|
|
190
|
+
- Read-only: no file modifications
|
|
191
|
+
- Read index from README.md or list directory
|
|
192
|
+
- Display ALL research notes, don't truncate
|
|
193
|
+
- Show helpful message if no research exists
|
|
194
|
+
- Always offer next action options
|
|
195
|
+
|
|
30
196
|
<!-- COMPACT_SUMMARY_END -->
|
|
31
197
|
|
|
32
198
|
---
|
|
@@ -71,7 +237,8 @@ Use /agileflow:research:view FILE=<filename> to read a specific note.
|
|
|
71
237
|
If notes exist:
|
|
72
238
|
```
|
|
73
239
|
Quick actions:
|
|
74
|
-
- /agileflow:research:view FILE
|
|
240
|
+
- /agileflow:research:view FILE=<filename> - Read a note
|
|
241
|
+
- /agileflow:research:analyze FILE=<filename> - Analyze for implementation
|
|
75
242
|
- /agileflow:research:ask TOPIC="new topic" - Create new research prompt
|
|
76
243
|
- /agileflow:research:import - Import external content
|
|
77
244
|
```
|
|
@@ -88,6 +255,7 @@ Quick actions:
|
|
|
88
255
|
|
|
89
256
|
## Related Commands
|
|
90
257
|
|
|
258
|
+
- `/agileflow:research:analyze` - Analyze research for implementation in your project
|
|
91
259
|
- `/agileflow:research:ask` - Generate research prompt for web AI
|
|
92
260
|
- `/agileflow:research:import` - Import research results
|
|
93
261
|
- `/agileflow:research:view` - Read specific research note
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Read a specific research note
|
|
3
3
|
argument-hint: FILE=<filename>
|
|
4
|
+
compact_context:
|
|
5
|
+
priority: medium
|
|
6
|
+
preserve_rules:
|
|
7
|
+
- "ACTIVE COMMAND: /agileflow:research:view - Display research note contents (read-only)"
|
|
8
|
+
- "NO FILE WRITES - This is read-only, no modifications"
|
|
9
|
+
- "If FILE not provided, list available research and ask user to select"
|
|
10
|
+
- "Display FULL content, never truncate"
|
|
11
|
+
- "After viewing, offer actions: Analyze for implementation OR View another OR Done"
|
|
12
|
+
- "If user selects 'Analyze', invoke /agileflow:research:analyze with the FILE"
|
|
13
|
+
state_fields:
|
|
14
|
+
- selected_research_file
|
|
15
|
+
- file_displayed
|
|
4
16
|
---
|
|
5
17
|
|
|
6
18
|
# /agileflow:research:view
|
|
@@ -21,11 +33,158 @@ Displays the content of a research note from `docs/10-research/`. Useful for:
|
|
|
21
33
|
---
|
|
22
34
|
|
|
23
35
|
<!-- COMPACT_SUMMARY_START -->
|
|
24
|
-
## Compact Summary
|
|
25
36
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
**
|
|
37
|
+
## ⚠️ COMPACT SUMMARY - /agileflow:research:view IS ACTIVE
|
|
38
|
+
|
|
39
|
+
**CRITICAL**: You are running `/agileflow:research:view`. This is a read-only research viewer.
|
|
40
|
+
|
|
41
|
+
**ROLE**: Display research note contents and offer next actions.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
### 🚨 RULE #1: NO FILE WRITES (READ-ONLY)
|
|
46
|
+
|
|
47
|
+
**This command ONLY reads files. NEVER write, edit, or modify anything.**
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
❌ WRONG: Modify the research file / Update timestamps / Add sections
|
|
51
|
+
✅ RIGHT: Read and display the file contents, nothing else
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
### 🚨 RULE #2: HANDLE FILE SELECTION
|
|
57
|
+
|
|
58
|
+
**If FILE argument not provided, prompt user to select:**
|
|
59
|
+
|
|
60
|
+
1. List available research files from `docs/10-research/`
|
|
61
|
+
2. Show most recent files first
|
|
62
|
+
3. Use AskUserQuestion to let user select
|
|
63
|
+
4. Include "Show full list" option if many files
|
|
64
|
+
5. Then proceed to display
|
|
65
|
+
|
|
66
|
+
```xml
|
|
67
|
+
<invoke name="AskUserQuestion">
|
|
68
|
+
<parameter name="questions">[{
|
|
69
|
+
"question": "Which research would you like to view?",
|
|
70
|
+
"header": "Select",
|
|
71
|
+
"multiSelect": false,
|
|
72
|
+
"options": [
|
|
73
|
+
{"label": "20260106-oauth-setup.md", "description": "OAuth 2.0 Setup"},
|
|
74
|
+
{"label": "20260105-next-patterns.md", "description": "Next.js Best Practices"},
|
|
75
|
+
{"label": "Show full list", "description": "See all research notes"}
|
|
76
|
+
]
|
|
77
|
+
}]</parameter>
|
|
78
|
+
</invoke>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
### 🚨 RULE #3: DISPLAY FULL CONTENT
|
|
84
|
+
|
|
85
|
+
**Always display the ENTIRE research note. Never truncate or summarize.**
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
❌ WRONG: "The research discusses OAuth implementation..."
|
|
89
|
+
✅ RIGHT: [Display full file contents exactly as written]
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
### 🚨 RULE #4: HANDLE MISSING FILES GRACEFULLY
|
|
95
|
+
|
|
96
|
+
**If FILE doesn't exist, show helpful error:**
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
Research note not found: [FILENAME]
|
|
100
|
+
|
|
101
|
+
Use /agileflow:research:list to see all available research notes.
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
### 🚨 RULE #5: OFFER ACTIONS AFTER VIEWING
|
|
107
|
+
|
|
108
|
+
**After displaying, ALWAYS ask what user wants to do next:**
|
|
109
|
+
|
|
110
|
+
```xml
|
|
111
|
+
<invoke name="AskUserQuestion">
|
|
112
|
+
<parameter name="questions">[{
|
|
113
|
+
"question": "What would you like to do with this research?",
|
|
114
|
+
"header": "Actions",
|
|
115
|
+
"multiSelect": false,
|
|
116
|
+
"options": [
|
|
117
|
+
{"label": "Analyze for implementation (Recommended)", "description": "Enter plan mode to understand how to implement this"},
|
|
118
|
+
{"label": "View another research note", "description": "Select a different note"},
|
|
119
|
+
{"label": "Done", "description": "Exit"}
|
|
120
|
+
]
|
|
121
|
+
}]</parameter>
|
|
122
|
+
</invoke>
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
**If "Analyze selected"**: Invoke `/agileflow:research:analyze FILE=[current file]`
|
|
126
|
+
**If "View another"**: List files again and repeat
|
|
127
|
+
**If "Done"**: Exit
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
### ANTI-PATTERNS (DON'T DO THESE)
|
|
132
|
+
|
|
133
|
+
❌ Modify or edit the research file
|
|
134
|
+
❌ Truncate or summarize content instead of showing full file
|
|
135
|
+
❌ Add timestamps or metadata to the file
|
|
136
|
+
❌ Fail silently if file doesn't exist
|
|
137
|
+
❌ End without offering next actions
|
|
138
|
+
❌ Assume user knows what to do after viewing
|
|
139
|
+
|
|
140
|
+
### DO THESE INSTEAD
|
|
141
|
+
|
|
142
|
+
✅ Read only, never modify
|
|
143
|
+
✅ Display complete file contents
|
|
144
|
+
✅ Show helpful error for missing files
|
|
145
|
+
✅ Always offer action options after viewing
|
|
146
|
+
✅ Link to /agileflow:research:analyze for implementation
|
|
147
|
+
✅ Link to /agileflow:research:list for browsing all notes
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
### WORKFLOW
|
|
152
|
+
|
|
153
|
+
**Phase 1: Get File Selection**
|
|
154
|
+
1. Check if FILE argument provided
|
|
155
|
+
2. If not, list files and ask user to select
|
|
156
|
+
3. Validate file exists
|
|
157
|
+
|
|
158
|
+
**Phase 2: Read & Display**
|
|
159
|
+
4. Read the entire file from docs/10-research/
|
|
160
|
+
5. Display full content to user
|
|
161
|
+
|
|
162
|
+
**Phase 3: Offer Actions**
|
|
163
|
+
6. Ask what user wants to do next
|
|
164
|
+
7. Route to appropriate command:
|
|
165
|
+
- Analyze → /agileflow:research:analyze
|
|
166
|
+
- View another → Step 1 (select again)
|
|
167
|
+
- Done → Exit
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
### KEY FILES
|
|
172
|
+
|
|
173
|
+
| File | Purpose |
|
|
174
|
+
|------|---------|
|
|
175
|
+
| `docs/10-research/` | Directory containing all research notes |
|
|
176
|
+
| `docs/10-research/README.md` | Index of research notes (if available) |
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
### REMEMBER AFTER COMPACTION
|
|
181
|
+
|
|
182
|
+
- `/agileflow:research:view` IS ACTIVE - you're viewing a research note
|
|
183
|
+
- Read-only: no file modifications whatsoever
|
|
184
|
+
- If FILE not provided, list files and ask user to select
|
|
185
|
+
- Display FULL content, never truncate
|
|
186
|
+
- Always offer next actions (Analyze, View another, Done)
|
|
187
|
+
|
|
29
188
|
<!-- COMPACT_SUMMARY_END -->
|
|
30
189
|
|
|
31
190
|
---
|
|
@@ -79,12 +238,25 @@ Output the full content of the research note.
|
|
|
79
238
|
### Step 4: Suggest Actions
|
|
80
239
|
|
|
81
240
|
After displaying:
|
|
241
|
+
|
|
242
|
+
```xml
|
|
243
|
+
<invoke name="AskUserQuestion">
|
|
244
|
+
<parameter name="questions">[{
|
|
245
|
+
"question": "What would you like to do with this research?",
|
|
246
|
+
"header": "Actions",
|
|
247
|
+
"multiSelect": false,
|
|
248
|
+
"options": [
|
|
249
|
+
{"label": "Analyze for implementation", "description": "Enter plan mode and see how to implement this in your project"},
|
|
250
|
+
{"label": "View another research note", "description": "Switch to a different note"},
|
|
251
|
+
{"label": "Done", "description": "Exit"}
|
|
252
|
+
]
|
|
253
|
+
}]</parameter>
|
|
254
|
+
</invoke>
|
|
82
255
|
```
|
|
83
|
-
---
|
|
84
256
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
257
|
+
If "Analyze for implementation" selected, invoke:
|
|
258
|
+
```
|
|
259
|
+
/agileflow:research:analyze FILE=[current file]
|
|
88
260
|
```
|
|
89
261
|
|
|
90
262
|
---
|
|
@@ -108,6 +280,7 @@ Actions:
|
|
|
108
280
|
|
|
109
281
|
## Related Commands
|
|
110
282
|
|
|
283
|
+
- `/agileflow:research:analyze` - Analyze research for implementation in your project
|
|
111
284
|
- `/agileflow:research:ask` - Generate research prompt for web AI
|
|
112
285
|
- `/agileflow:research:import` - Import research results
|
|
113
286
|
- `/agileflow:research:list` - Show research notes index
|
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Generate retrospective with Start/Stop/Continue format
|
|
3
|
-
argument-hint: [TIMEFRAME=sprint|2weeks|30d|90d] [EPIC=<id>] [FORMAT=ascii|markdown|html] [SAVE=true|false]
|
|
3
|
+
argument-hint: "[TIMEFRAME=sprint|2weeks|30d|90d] [EPIC=<id>] [FORMAT=ascii|markdown|html] [SAVE=true|false]"
|
|
4
4
|
model: haiku
|
|
5
|
+
compact_context:
|
|
6
|
+
priority: medium
|
|
7
|
+
preserve_rules:
|
|
8
|
+
- "ACTIVE COMMAND: /agileflow:retro - Retrospective facilitator (read-only analysis)"
|
|
9
|
+
- "MUST create TodoWrite task list (9 steps: load data, analyze well, analyze improvements, detect patterns, generate actions, celebrate, report, save, update index)"
|
|
10
|
+
- "MUST focus on TEAM-LEVEL patterns (never individual blame)"
|
|
11
|
+
- "MUST balance positive (Continue) with improvements (Start/Stop)"
|
|
12
|
+
- "MUST use DATA to drive insights (no opinions without evidence)"
|
|
13
|
+
- "MUST prioritize action items by impact (HIGH/MEDIUM/LOW)"
|
|
14
|
+
- "MUST celebrate wins (even small ones)"
|
|
15
|
+
- "MUST save automatically to docs/08-project/retrospectives/ unless SAVE=false"
|
|
16
|
+
state_fields:
|
|
17
|
+
- timeframe
|
|
18
|
+
- story_count
|
|
19
|
+
- action_count
|
|
20
|
+
- celebration_count
|
|
5
21
|
---
|
|
6
22
|
|
|
7
23
|
# retro
|
|
@@ -22,64 +38,135 @@ Automated retrospective generator that analyzes patterns and surfaces insights f
|
|
|
22
38
|
|
|
23
39
|
<!-- COMPACT_SUMMARY_START -->
|
|
24
40
|
|
|
25
|
-
##
|
|
41
|
+
## ⚠️ COMPACT SUMMARY - /agileflow:retro IS ACTIVE
|
|
26
42
|
|
|
27
|
-
**
|
|
43
|
+
**CRITICAL**: You are the Retrospective Facilitator. This analyzes patterns and surfaces improvements (read-only).
|
|
28
44
|
|
|
29
|
-
|
|
45
|
+
---
|
|
30
46
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
47
|
+
### 🚨 RULE #1: ALWAYS Create TodoWrite Task List FIRST
|
|
48
|
+
|
|
49
|
+
Create 9-step task list immediately:
|
|
50
|
+
```xml
|
|
51
|
+
<invoke name="TodoWrite">
|
|
52
|
+
<parameter name="content">1. Load data sources (bus/log.jsonl, status.json, stories, velocity)
|
|
53
|
+
2. Analyze what went well (velocity, cycles, completions, estimation)
|
|
54
|
+
3. Analyze improvements (velocity drops, cycles, WIP, blockers)
|
|
55
|
+
4. Detect patterns (recurring blockers, handoffs, story sizes)
|
|
56
|
+
5. Generate action items (prioritized HIGH/MEDIUM/LOW)
|
|
57
|
+
6. Create celebration section (wins, even small ones)
|
|
58
|
+
7. Generate comprehensive report
|
|
59
|
+
8. Save to docs/08-project/retrospectives/
|
|
60
|
+
9. Update retrospectives index</parameter>
|
|
61
|
+
<parameter name="status">in-progress</parameter>
|
|
62
|
+
</invoke>
|
|
63
|
+
```
|
|
64
|
+
Mark each step complete as you finish.
|
|
39
65
|
|
|
40
|
-
|
|
41
|
-
1. docs/09-agents/bus/log.jsonl - Event patterns, status transitions, blocking events
|
|
42
|
-
2. docs/09-agents/status.json - Current state, WIP levels, owner distribution
|
|
43
|
-
3. docs/06-stories/**/US-*.md - Story completion, estimates vs actuals, AC rates
|
|
44
|
-
4. Velocity data - Points completed, throughput trends
|
|
66
|
+
### 🚨 RULE #2: ALWAYS Focus on TEAM-LEVEL Patterns
|
|
45
67
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
-
|
|
50
|
-
- status: "in-progress"
|
|
51
|
-
- activeForm: true
|
|
52
|
-
```
|
|
68
|
+
- Analyze team behaviors, not individuals
|
|
69
|
+
- Never blame people (blame processes)
|
|
70
|
+
- Look for system issues and process improvements
|
|
71
|
+
- Celebrate team wins collectively
|
|
53
72
|
|
|
54
|
-
|
|
55
|
-
1. Create TodoWrite task list → Load and analyze data sources
|
|
56
|
-
2. Identify "What Went Well" patterns (velocity, cycles, completions, estimation, workload)
|
|
57
|
-
3. Identify "What Needs Improvement" patterns (velocity drops, cycles, WIP, blocking, bottlenecks)
|
|
58
|
-
4. Detect advanced patterns (recurring blockers, handoffs, story size correlations)
|
|
59
|
-
5. Generate prioritized action items (HIGH/MEDIUM/LOW) → Create celebration section
|
|
60
|
-
6. Generate ASCII report → Save to retrospectives/ → Update index
|
|
73
|
+
### 🚨 RULE #3: ALWAYS Balance Continue/Start/Stop
|
|
61
74
|
|
|
62
|
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
- `FORMAT`: ascii|markdown|html (default: ascii)
|
|
66
|
-
- `SAVE`: true|false (default: true)
|
|
75
|
+
- CONTINUE: What went well (keep doing)
|
|
76
|
+
- START: New improvements needed (action items)
|
|
77
|
+
- STOP: What's not working (anti-patterns)
|
|
67
78
|
|
|
68
|
-
|
|
69
|
-
- ASCII box with Unicode (╔═╗║╚╝)
|
|
70
|
-
- Sections: Summary → What Went Well → What Needs Improvement → Actions → Team Contributions → Predictions
|
|
71
|
-
- Icons: ✅ ⚠️ 🛑 ▶️ 🎯 📊 🔮 🎉
|
|
79
|
+
Balance should be ~40% Continue, 40% Start/Stop, 20% Actions
|
|
72
80
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
81
|
+
### 🚨 RULE #4: ALWAYS Use DATA to Drive Insights
|
|
82
|
+
|
|
83
|
+
- NO opinion without evidence
|
|
84
|
+
- Back every statement with data
|
|
85
|
+
- Show calculations (e.g., "Velocity +12%")
|
|
86
|
+
- Link to specific stories or events
|
|
87
|
+
- Never assume (calculate from bus log)
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## Key Data Sources & Analysis
|
|
92
|
+
|
|
93
|
+
**Data Sources** (read-only):
|
|
94
|
+
1. docs/09-agents/bus/log.jsonl - Status transitions, blocking events, timelines
|
|
95
|
+
2. docs/09-agents/status.json - Current state, WIP, owner distribution
|
|
96
|
+
3. docs/06-stories/**/US-*.md - Completed stories, estimates vs actuals
|
|
97
|
+
4. Velocity data - Points completed, trends (from /agileflow:velocity)
|
|
98
|
+
|
|
99
|
+
**Analysis Patterns to Look For**:
|
|
100
|
+
- Velocity changes (↗ ↘ →)
|
|
101
|
+
- Cycle time trends (avg days to complete)
|
|
102
|
+
- WIP violations (over 2/agent)
|
|
103
|
+
- Blocking patterns (recurring blockers, durations)
|
|
104
|
+
- Estimation accuracy (variance %)
|
|
105
|
+
- Agent utilization (balanced distribution)
|
|
106
|
+
- Stale stories (in-progress >10 days)
|
|
107
|
+
- Story size correlation (do small stories complete faster?)
|
|
108
|
+
- Day-of-week patterns (Friday dips?)
|
|
109
|
+
- Handoff patterns (frequent reassignments)
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## Output Structure
|
|
114
|
+
|
|
115
|
+
**Retrospective Report Includes**:
|
|
116
|
+
1. **Summary** - Sprint dates, stories completed, velocity, key metrics
|
|
117
|
+
2. **What Went Well** (CONTINUE) - 5-7 positive patterns with data
|
|
118
|
+
3. **What Needs Improvement** (START/STOP) - 5-7 improvement areas with actions
|
|
119
|
+
4. **Action Items** - Prioritized by impact (HIGH/MEDIUM/LOW)
|
|
120
|
+
5. **Team Contributions** - Workload distribution (who did what %)
|
|
121
|
+
6. **Predictions** - Forward-looking next sprint capacity
|
|
122
|
+
|
|
123
|
+
**Format Options**:
|
|
124
|
+
- ASCII: Box drawing with Unicode (╔═╗║╚╝)
|
|
125
|
+
- Markdown: For docs/wiki
|
|
126
|
+
- HTML: For web export
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## Anti-Patterns & Correct Usage
|
|
79
131
|
|
|
80
|
-
**
|
|
132
|
+
❌ **DON'T**:
|
|
133
|
+
- Include individual blame (focus on systems/processes)
|
|
134
|
+
- Make subjective claims without data
|
|
135
|
+
- Skip celebration section (morale matters)
|
|
136
|
+
- Forget to prioritize actions (HIGH/MEDIUM/LOW)
|
|
137
|
+
- Ignore team contributions (acknowledge work)
|
|
138
|
+
|
|
139
|
+
✅ **DO**:
|
|
140
|
+
- Focus on team-level patterns
|
|
141
|
+
- Back every insight with data
|
|
142
|
+
- Celebrate wins (small and large)
|
|
143
|
+
- Prioritize action items by impact
|
|
144
|
+
- Acknowledge individual contributions
|
|
145
|
+
- Provide specific, actionable next steps
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## Integration & Follow-up
|
|
150
|
+
|
|
151
|
+
After displaying retrospective:
|
|
152
|
+
- `/agileflow:sprint-plan` - Use learnings for next sprint
|
|
153
|
+
- `/agileflow:metrics` - See detailed metrics supporting insights
|
|
154
|
+
- `/agileflow:velocity` - See velocity trends over longer horizon
|
|
155
|
+
- Update retrospectives/ index for historical tracking
|
|
156
|
+
|
|
157
|
+
---
|
|
81
158
|
|
|
82
|
-
|
|
159
|
+
## REMEMBER AFTER COMPACTION
|
|
160
|
+
|
|
161
|
+
- Command is read-only (analyzes data, no updates)
|
|
162
|
+
- Creates 9-step TodoWrite task list (tracks progress)
|
|
163
|
+
- Focuses on TEAM-LEVEL patterns (never individual blame)
|
|
164
|
+
- Balances Continue/Start/Stop with data evidence
|
|
165
|
+
- Generates retrospective report with Start/Stop/Continue format
|
|
166
|
+
- Prioritizes action items by impact (HIGH/MEDIUM/LOW)
|
|
167
|
+
- Celebrates team wins (morale building)
|
|
168
|
+
- Saves to docs/08-project/retrospectives/ (historical tracking)
|
|
169
|
+
- Uses data to drive all insights (no subjective opinions)
|
|
83
170
|
|
|
84
171
|
<!-- COMPACT_SUMMARY_END -->
|
|
85
172
|
|