agileflow 2.73.0 → 2.75.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.
Files changed (39) hide show
  1. package/README.md +3 -3
  2. package/package.json +1 -1
  3. package/scripts/agileflow-configure.js +315 -0
  4. package/src/core/agents/accessibility.md +1 -1
  5. package/src/core/agents/adr-writer.md +6 -6
  6. package/src/core/agents/analytics.md +1 -1
  7. package/src/core/agents/api.md +130 -41
  8. package/src/core/agents/ci.md +3 -3
  9. package/src/core/agents/compliance.md +1 -1
  10. package/src/core/agents/database.md +121 -36
  11. package/src/core/agents/datamigration.md +1 -1
  12. package/src/core/agents/design.md +1 -1
  13. package/src/core/agents/devops.md +2 -2
  14. package/src/core/agents/documentation.md +1 -1
  15. package/src/core/agents/epic-planner.md +4 -4
  16. package/src/core/agents/integrations.md +3 -3
  17. package/src/core/agents/mentor.md +6 -6
  18. package/src/core/agents/mobile.md +1 -1
  19. package/src/core/agents/monitoring.md +1 -1
  20. package/src/core/agents/performance.md +1 -1
  21. package/src/core/agents/product.md +3 -3
  22. package/src/core/agents/qa.md +1 -1
  23. package/src/core/agents/refactor.md +1 -1
  24. package/src/core/agents/security.md +4 -4
  25. package/src/core/agents/testing.md +2 -2
  26. package/src/core/agents/ui.md +129 -44
  27. package/src/core/commands/babysit.md +137 -0
  28. package/src/core/commands/blockers.md +3 -3
  29. package/src/core/commands/configure.md +88 -1
  30. package/src/core/commands/context/export.md +99 -0
  31. package/src/core/commands/context/full.md +172 -0
  32. package/src/core/commands/context/note.md +128 -0
  33. package/src/core/commands/research/ask.md +453 -0
  34. package/src/core/commands/research/import.md +287 -0
  35. package/src/core/commands/research/list.md +93 -0
  36. package/src/core/commands/research/view.md +113 -0
  37. package/src/core/experts/research/expertise.yaml +2 -2
  38. package/src/core/commands/context.md +0 -417
  39. package/src/core/commands/research.md +0 -124
@@ -0,0 +1,287 @@
1
+ ---
2
+ description: Import research results and save to research folder
3
+ argument-hint: TOPIC=<text> [CONTENT=<text>] [SOURCE=<url>]
4
+ ---
5
+
6
+ # /agileflow:research:import
7
+
8
+ Import research results from web AI tools or external content into your research folder.
9
+
10
+ ---
11
+
12
+ ## Purpose
13
+
14
+ After using `/agileflow:research:ask` to get answers from ChatGPT, Claude web, or other AI tools, use this command to:
15
+ - Format the results into structured markdown
16
+ - Save to `docs/10-research/YYYYMMDD-topic-slug.md`
17
+ - Update the research index
18
+ - Optionally link to ADRs, Epics, or Stories
19
+
20
+ Also works for importing:
21
+ - YouTube video transcripts
22
+ - Conference talk notes
23
+ - Blog posts / articles
24
+ - Documentation pages
25
+ - Meeting notes
26
+
27
+ ---
28
+
29
+ <!-- COMPACT_SUMMARY_START -->
30
+ ## Compact Summary
31
+
32
+ **Command**: `/agileflow:research:import TOPIC="topic" CONTENT="paste results here"`
33
+ **Purpose**: Save research results to docs/10-research/ folder
34
+
35
+ ### Critical Rules
36
+ - **Validate inputs**: TOPIC required, CONTENT required (or user pastes after command)
37
+ - **Preserve ALL code snippets** exactly as provided
38
+ - **Generate actionable items** (not vague suggestions)
39
+ - **Diff-first**: Show formatted result before saving
40
+ - **Update index**: Always add entry to README.md
41
+ <!-- COMPACT_SUMMARY_END -->
42
+
43
+ ---
44
+
45
+ ## Arguments
46
+
47
+ | Argument | Required | Description |
48
+ |----------|----------|-------------|
49
+ | TOPIC | Yes | Name for the research file (e.g., "OAuth 2.0 Setup") |
50
+ | CONTENT | Yes* | Research results to import (*can be pasted after command) |
51
+ | SOURCE | No | Original source URL for attribution |
52
+
53
+ ---
54
+
55
+ ## IMMEDIATE ACTIONS
56
+
57
+ Upon invocation, execute these steps:
58
+
59
+ ### Step 1: Create Todo List
60
+
61
+ ```xml
62
+ <invoke name="TodoWrite">
63
+ <parameter name="todos">[
64
+ {"content": "Validate TOPIC and CONTENT", "status": "in_progress", "activeForm": "Validating inputs"},
65
+ {"content": "Analyze and summarize content", "status": "pending", "activeForm": "Analyzing content"},
66
+ {"content": "Extract code snippets", "status": "pending", "activeForm": "Extracting code"},
67
+ {"content": "Generate action items", "status": "pending", "activeForm": "Generating actions"},
68
+ {"content": "Format research file", "status": "pending", "activeForm": "Formatting file"},
69
+ {"content": "Show diff for review", "status": "pending", "activeForm": "Showing preview"},
70
+ {"content": "Save to docs/10-research/", "status": "pending", "activeForm": "Saving file"},
71
+ {"content": "Update README.md index", "status": "pending", "activeForm": "Updating index"},
72
+ {"content": "Offer ADR/Epic/Story linking", "status": "pending", "activeForm": "Offering links"}
73
+ ]</parameter>
74
+ </invoke>
75
+ ```
76
+
77
+ ### Step 2: Validate Inputs
78
+
79
+ **TOPIC required**: If missing, ask:
80
+ ```xml
81
+ <invoke name="AskUserQuestion">
82
+ <parameter name="questions">[{
83
+ "question": "What topic is this research about?",
84
+ "header": "Topic",
85
+ "multiSelect": false,
86
+ "options": [{"label": "Enter topic", "description": "Type in 'Other' field"}]
87
+ }]</parameter>
88
+ </invoke>
89
+ ```
90
+
91
+ **CONTENT required**: If not provided, wait for user to paste results. Prompt:
92
+ "Please paste the research results from ChatGPT/Claude/Perplexity below."
93
+
94
+ ### Step 3: Analyze Content
95
+
96
+ Extract from the provided content:
97
+ - **Summary**: 2-3 paragraph TL;DR
98
+ - **Key Findings**: Main takeaways as bullet points
99
+ - **Code Snippets**: Any code blocks (preserve exactly)
100
+ - **Action Items**: Concrete next steps
101
+ - **Story Suggestions**: Potential user stories if applicable
102
+
103
+ ### Step 4: Format Research File
104
+
105
+ Generate structured markdown:
106
+
107
+ ```markdown
108
+ # [Topic Title]
109
+
110
+ **Import Date**: YYYY-MM-DD
111
+ **Topic**: [original topic]
112
+ **Source**: [URL if provided, or "ChatGPT/Claude/Perplexity research"]
113
+ **Content Type**: [research/transcript/article/notes]
114
+
115
+ ---
116
+
117
+ ## Summary
118
+
119
+ [2-3 paragraph executive summary of the content]
120
+
121
+ ---
122
+
123
+ ## Key Findings
124
+
125
+ - [Main point 1 with details]
126
+ - [Main point 2 with details]
127
+ - [Main point 3 with details]
128
+ - [Continue for all key points...]
129
+
130
+ ---
131
+
132
+ ## Implementation Approach
133
+
134
+ [Step-by-step plan if applicable]
135
+
136
+ 1. [Step 1]
137
+ 2. [Step 2]
138
+ 3. [Step 3]
139
+
140
+ ---
141
+
142
+ ## Code Snippets
143
+
144
+ [Preserve ALL code snippets exactly as provided]
145
+
146
+ ### [Snippet description]
147
+
148
+ ```language
149
+ [code here]
150
+ ```
151
+
152
+ ### [Another snippet]
153
+
154
+ ```language
155
+ [code here]
156
+ ```
157
+
158
+ ---
159
+
160
+ ## Action Items
161
+
162
+ - [ ] [Action 1 - concrete next step]
163
+ - [ ] [Action 2 - concrete next step]
164
+ - [ ] [Action 3 - concrete next step]
165
+
166
+ ---
167
+
168
+ ## Risks & Gotchas
169
+
170
+ [Any warnings, edge cases, or potential issues mentioned]
171
+
172
+ - [Risk 1]
173
+ - [Risk 2]
174
+
175
+ ---
176
+
177
+ ## Story Suggestions
178
+
179
+ [If content suggests feature work]
180
+
181
+ ### Potential Epic: [Epic Title]
182
+
183
+ **US-XXXX**: [Story 1 title]
184
+ - AC: [acceptance criteria]
185
+
186
+ **US-XXXX**: [Story 2 title]
187
+ - AC: [acceptance criteria]
188
+
189
+ ---
190
+
191
+ ## Raw Content Reference
192
+
193
+ <details>
194
+ <summary>Original content (click to expand)</summary>
195
+
196
+ [First 1000 chars of original content for reference...]
197
+
198
+ </details>
199
+
200
+ ---
201
+
202
+ ## References
203
+
204
+ - Source: [URL or "Direct import"]
205
+ - Import date: YYYY-MM-DD
206
+ - Related: [links to related docs if applicable]
207
+ ```
208
+
209
+ ### Step 5: Show Preview
210
+
211
+ Display the formatted research file for review.
212
+
213
+ ### Step 6: Ask for Confirmation
214
+
215
+ ```xml
216
+ <invoke name="AskUserQuestion">
217
+ <parameter name="questions">[{
218
+ "question": "Save this research file?",
219
+ "header": "Confirm",
220
+ "multiSelect": false,
221
+ "options": [
222
+ {"label": "Yes, save to docs/10-research/", "description": "Write file and update index"},
223
+ {"label": "No, cancel", "description": "Cancel without saving"}
224
+ ]
225
+ }]</parameter>
226
+ </invoke>
227
+ ```
228
+
229
+ ### Step 7: Save Research File
230
+
231
+ If YES:
232
+ - Generate filename: `YYYYMMDD-<topic-slug>.md`
233
+ - Save to `docs/10-research/`
234
+ - Use Write tool
235
+
236
+ ### Step 8: Update Index
237
+
238
+ Add entry to `docs/10-research/README.md`:
239
+
240
+ ```markdown
241
+ | Date | Topic | File | Summary |
242
+ |------|-------|------|---------|
243
+ | YYYY-MM-DD | [Topic] | [filename.md] | [One-line summary] |
244
+ ```
245
+
246
+ Insert newest entries at the top of the table.
247
+
248
+ ### Step 9: Offer Next Steps
249
+
250
+ ```xml
251
+ <invoke name="AskUserQuestion">
252
+ <parameter name="questions">[{
253
+ "question": "What would you like to do with this research?",
254
+ "header": "Next Steps",
255
+ "multiSelect": true,
256
+ "options": [
257
+ {"label": "Create ADR referencing this research", "description": "Document an architecture decision"},
258
+ {"label": "Create Epic/Stories from research", "description": "Turn findings into actionable work"},
259
+ {"label": "Link to existing Epic/Story", "description": "Reference from current work"},
260
+ {"label": "Done for now", "description": "No further action needed"}
261
+ ]
262
+ }]</parameter>
263
+ </invoke>
264
+ ```
265
+
266
+ If linking, add to the target document:
267
+ ```markdown
268
+ **Research**: See [Topic Research](../10-research/YYYYMMDD-topic-slug.md)
269
+ ```
270
+
271
+ ---
272
+
273
+ ## Rules
274
+
275
+ - **Preserve ALL code snippets** exactly as provided
276
+ - **Generate actionable items** (not vague suggestions)
277
+ - **Diff-first**: Always show preview before saving
278
+ - **Always update the index**: Never skip this step
279
+ - **Keep raw content reference** collapsed for space
280
+
281
+ ---
282
+
283
+ ## Related Commands
284
+
285
+ - `/agileflow:research:ask` - Generate research prompt for web AI
286
+ - `/agileflow:research:list` - Show research notes index
287
+ - `/agileflow:research:view` - Read specific research note
@@ -0,0 +1,93 @@
1
+ ---
2
+ description: Show research notes index
3
+ argument-hint: (no arguments)
4
+ ---
5
+
6
+ # /agileflow:research:list
7
+
8
+ Display the index of all research notes in your project.
9
+
10
+ ---
11
+
12
+ ## Purpose
13
+
14
+ Shows all research notes stored in `docs/10-research/` with:
15
+ - Date
16
+ - Topic
17
+ - File path
18
+ - One-line summary
19
+
20
+ **This is a read-only command** - no files are written.
21
+
22
+ ---
23
+
24
+ <!-- COMPACT_SUMMARY_START -->
25
+ ## Compact Summary
26
+
27
+ **Command**: `/agileflow:research:list`
28
+ **Purpose**: Display research notes index from docs/10-research/README.md
29
+ **Key Rule**: Read-only, no file writes
30
+ <!-- COMPACT_SUMMARY_END -->
31
+
32
+ ---
33
+
34
+ ## IMMEDIATE ACTIONS
35
+
36
+ Upon invocation, execute these steps:
37
+
38
+ ### Step 1: Check Research Directory
39
+
40
+ Verify `docs/10-research/` exists. If not:
41
+ ```
42
+ No research notes found. Use /agileflow:research:ask to generate a research prompt.
43
+ ```
44
+
45
+ ### Step 2: Read Index File
46
+
47
+ Read `docs/10-research/README.md` for the index table.
48
+
49
+ If README.md doesn't exist but research files do, list them by reading the directory.
50
+
51
+ ### Step 3: Display Index
52
+
53
+ Format output:
54
+
55
+ ```
56
+ ## Research Notes
57
+
58
+ | Date | Topic | File |
59
+ |------|-------|------|
60
+ | 2024-12-31 | OAuth 2.0 Setup | 20241231-oauth-setup.md |
61
+ | 2024-12-30 | Session Tracking | 20241230-session-tracking.md |
62
+ | 2024-12-28 | Mermaid Diagrams | 20241228-mermaid-diagrams.md |
63
+
64
+ Total: 3 research notes
65
+
66
+ Use /agileflow:research:view FILE=<filename> to read a specific note.
67
+ ```
68
+
69
+ ### Step 4: Suggest Actions
70
+
71
+ If notes exist:
72
+ ```
73
+ Quick actions:
74
+ - /agileflow:research:view FILE=20241231-oauth-setup.md - Read a note
75
+ - /agileflow:research:ask TOPIC="new topic" - Create new research prompt
76
+ - /agileflow:research:import - Import external content
77
+ ```
78
+
79
+ ---
80
+
81
+ ## Rules
82
+
83
+ - **Read-only**: No file writes
84
+ - **Handle missing directory**: Graceful message if no research exists
85
+ - **Simple output**: Just show the list, no complex formatting
86
+
87
+ ---
88
+
89
+ ## Related Commands
90
+
91
+ - `/agileflow:research:ask` - Generate research prompt for web AI
92
+ - `/agileflow:research:import` - Import research results
93
+ - `/agileflow:research:view` - Read specific research note
@@ -0,0 +1,113 @@
1
+ ---
2
+ description: Read a specific research note
3
+ argument-hint: FILE=<filename>
4
+ ---
5
+
6
+ # /agileflow:research:view
7
+
8
+ Read and display a specific research note.
9
+
10
+ ---
11
+
12
+ ## Purpose
13
+
14
+ Displays the content of a research note from `docs/10-research/`. Useful for:
15
+ - Reviewing previous research before implementing
16
+ - Finding code snippets from past research
17
+ - Checking action items from research
18
+
19
+ **This is a read-only command** - no files are written.
20
+
21
+ ---
22
+
23
+ <!-- COMPACT_SUMMARY_START -->
24
+ ## Compact Summary
25
+
26
+ **Command**: `/agileflow:research:view FILE=<filename>`
27
+ **Purpose**: Display contents of a specific research note
28
+ **Key Rule**: Read-only, no file writes
29
+ <!-- COMPACT_SUMMARY_END -->
30
+
31
+ ---
32
+
33
+ ## Arguments
34
+
35
+ | Argument | Required | Description |
36
+ |----------|----------|-------------|
37
+ | FILE | Yes | Filename of the research note (e.g., "20241231-oauth-setup.md") |
38
+
39
+ ---
40
+
41
+ ## IMMEDIATE ACTIONS
42
+
43
+ Upon invocation, execute these steps:
44
+
45
+ ### Step 1: Validate Input
46
+
47
+ If FILE not provided, show available files:
48
+
49
+ ```xml
50
+ <invoke name="AskUserQuestion">
51
+ <parameter name="questions">[{
52
+ "question": "Which research note would you like to view?",
53
+ "header": "Select file",
54
+ "multiSelect": false,
55
+ "options": [
56
+ {"label": "20241231-oauth-setup.md", "description": "OAuth 2.0 Setup"},
57
+ {"label": "20241230-session-tracking.md", "description": "Session Tracking"},
58
+ {"label": "List all notes", "description": "Show full research index"}
59
+ ]
60
+ }]</parameter>
61
+ </invoke>
62
+ ```
63
+
64
+ ### Step 2: Read File
65
+
66
+ Read `docs/10-research/[FILE]`.
67
+
68
+ If file doesn't exist:
69
+ ```
70
+ Research note not found: [FILE]
71
+
72
+ Use /agileflow:research:list to see available notes.
73
+ ```
74
+
75
+ ### Step 3: Display Content
76
+
77
+ Output the full content of the research note.
78
+
79
+ ### Step 4: Suggest Actions
80
+
81
+ After displaying:
82
+ ```
83
+ ---
84
+
85
+ Actions:
86
+ - /agileflow:research:list - See all research notes
87
+ - /agileflow:research:ask TOPIC="new topic" - Create new research
88
+ ```
89
+
90
+ ---
91
+
92
+ ## Example Usage
93
+
94
+ ```bash
95
+ /agileflow:research:view FILE=20241231-oauth-setup.md
96
+ /agileflow:research:view FILE=20241228-mermaid-diagrams.md
97
+ ```
98
+
99
+ ---
100
+
101
+ ## Rules
102
+
103
+ - **Read-only**: No file writes
104
+ - **Full content**: Display entire file, don't truncate
105
+ - **Handle missing files**: Graceful error message
106
+
107
+ ---
108
+
109
+ ## Related Commands
110
+
111
+ - `/agileflow:research:ask` - Generate research prompt for web AI
112
+ - `/agileflow:research:import` - Import research results
113
+ - `/agileflow:research:list` - Show research notes index
@@ -86,7 +86,7 @@ patterns:
86
86
 
87
87
  - name: Context Export
88
88
  description: "/agileflow:context for external AI research"
89
- command: "/agileflow:context MODE=research TOPIC=<topic>"
89
+ command: "/agileflow:research:ask TOPIC=<topic>"
90
90
  purpose: "Generate prompt for ChatGPT/external AI with project context"
91
91
 
92
92
  conventions:
@@ -139,5 +139,5 @@ learnings:
139
139
 
140
140
  - date: 2025-12-21
141
141
  context: "Analyzed context command"
142
- insight: "/agileflow:context MODE=research generates external AI prompts with project context for deep research"
142
+ insight: "/agileflow:research:ask generates external AI prompts with project context for deep research"
143
143
  source: "packages/cli/src/core/commands/context.md"