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.
- package/README.md +3 -3
- package/package.json +1 -1
- package/scripts/agileflow-configure.js +315 -0
- package/src/core/agents/accessibility.md +1 -1
- package/src/core/agents/adr-writer.md +6 -6
- package/src/core/agents/analytics.md +1 -1
- package/src/core/agents/api.md +130 -41
- package/src/core/agents/ci.md +3 -3
- package/src/core/agents/compliance.md +1 -1
- package/src/core/agents/database.md +121 -36
- package/src/core/agents/datamigration.md +1 -1
- package/src/core/agents/design.md +1 -1
- package/src/core/agents/devops.md +2 -2
- package/src/core/agents/documentation.md +1 -1
- package/src/core/agents/epic-planner.md +4 -4
- package/src/core/agents/integrations.md +3 -3
- package/src/core/agents/mentor.md +6 -6
- package/src/core/agents/mobile.md +1 -1
- package/src/core/agents/monitoring.md +1 -1
- package/src/core/agents/performance.md +1 -1
- package/src/core/agents/product.md +3 -3
- package/src/core/agents/qa.md +1 -1
- package/src/core/agents/refactor.md +1 -1
- package/src/core/agents/security.md +4 -4
- package/src/core/agents/testing.md +2 -2
- package/src/core/agents/ui.md +129 -44
- package/src/core/commands/babysit.md +137 -0
- package/src/core/commands/blockers.md +3 -3
- package/src/core/commands/configure.md +88 -1
- package/src/core/commands/context/export.md +99 -0
- package/src/core/commands/context/full.md +172 -0
- package/src/core/commands/context/note.md +128 -0
- package/src/core/commands/research/ask.md +453 -0
- package/src/core/commands/research/import.md +287 -0
- package/src/core/commands/research/list.md +93 -0
- package/src/core/commands/research/view.md +113 -0
- package/src/core/experts/research/expertise.yaml +2 -2
- package/src/core/commands/context.md +0 -417
- package/src/core/commands/research.md +0 -124
package/src/core/agents/ui.md
CHANGED
|
@@ -79,7 +79,7 @@ node .agileflow/scripts/obtain-context.js ui
|
|
|
79
79
|
- AG-API: Check status.json for API dependencies, mark blocked if endpoints missing
|
|
80
80
|
- AG-CI: Coordinate on test infrastructure (axe-core, jest-axe)
|
|
81
81
|
- AG-DEVOPS: Request dependency updates via /agileflow:packages or bus message
|
|
82
|
-
- RESEARCH: Check docs/10-research/ before implementing, use /agileflow:
|
|
82
|
+
- RESEARCH: Check docs/10-research/ before implementing, use /agileflow:research:ask
|
|
83
83
|
- Bus format: {"ts":"ISO","from":"AG-UI","type":"status|blocked|question","story":"US-####","text":"..."}
|
|
84
84
|
|
|
85
85
|
**First Action Protocol**:
|
|
@@ -628,7 +628,7 @@ SLASH COMMANDS (Proactive Use)
|
|
|
628
628
|
AG-UI can directly invoke AgileFlow commands to streamline workflows:
|
|
629
629
|
|
|
630
630
|
**Research & Planning**:
|
|
631
|
-
- `/agileflow:
|
|
631
|
+
- `/agileflow:research:ask TOPIC=...` → Generate research prompt for unfamiliar UI patterns, design systems, animation libraries
|
|
632
632
|
|
|
633
633
|
**Quality & Review**:
|
|
634
634
|
- `/agileflow:ai-code-review` → Review component code before marking in-review
|
|
@@ -666,7 +666,7 @@ AGENT COORDINATION
|
|
|
666
666
|
- Performance issues → Request impact analysis
|
|
667
667
|
|
|
668
668
|
- **RESEARCH** (Technical research):
|
|
669
|
-
- Unfamiliar pattern → Request research via `/agileflow:
|
|
669
|
+
- Unfamiliar pattern → Request research via `/agileflow:research:ask`
|
|
670
670
|
- Check docs/10-research/ for existing UI/design research before starting
|
|
671
671
|
|
|
672
672
|
- **MENTOR** (Guidance):
|
|
@@ -683,7 +683,7 @@ RESEARCH INTEGRATION
|
|
|
683
683
|
**Before Starting Implementation**:
|
|
684
684
|
1. Check docs/10-research/ for relevant UI/design system research
|
|
685
685
|
2. Search for topics: design tokens, component patterns, styling approach, accessibility
|
|
686
|
-
3. If no research exists or research is stale (>90 days), suggest: `/agileflow:
|
|
686
|
+
3. If no research exists or research is stale (>90 days), suggest: `/agileflow:research:ask TOPIC=...`
|
|
687
687
|
|
|
688
688
|
**After User Provides Research**:
|
|
689
689
|
- Offer to save to docs/10-research/<YYYYMMDD>-<slug>.md
|
|
@@ -1059,51 +1059,136 @@ DEPENDENCY HANDLING (Critical for AG-UI)
|
|
|
1059
1059
|
|
|
1060
1060
|
FIRST ACTION
|
|
1061
1061
|
|
|
1062
|
-
**
|
|
1063
|
-
|
|
1064
|
-
Before ANY work, read your expertise file:
|
|
1065
|
-
```
|
|
1066
|
-
packages/cli/src/core/experts/ui/expertise.yaml
|
|
1067
|
-
```
|
|
1068
|
-
|
|
1069
|
-
This contains your mental model of:
|
|
1070
|
-
- Component file locations
|
|
1071
|
-
- Component registry (variants, props)
|
|
1072
|
-
- Styling approach (Tailwind, CSS modules, etc.)
|
|
1073
|
-
- UI patterns and conventions
|
|
1074
|
-
- Recent learnings from past work
|
|
1075
|
-
|
|
1076
|
-
**Validate expertise against actual code** - expertise is your memory, code is the source of truth.
|
|
1077
|
-
|
|
1078
|
-
**Proactive Knowledge Loading** (do this BEFORE asking user):
|
|
1079
|
-
1. **READ EXPERTISE FILE FIRST** (packages/cli/src/core/experts/ui/expertise.yaml)
|
|
1062
|
+
**Proactive Knowledge Loading** (before asking user):
|
|
1063
|
+
1. Read `packages/cli/src/core/experts/ui/expertise.yaml` - your persistent memory
|
|
1080
1064
|
2. Read docs/09-agents/status.json → Find READY stories where owner==AG-UI
|
|
1081
1065
|
3. Check for blocked UI stories waiting on AG-API
|
|
1082
1066
|
4. Read docs/09-agents/bus/log.jsonl (last 10 messages) → Check for unblock messages
|
|
1083
1067
|
5. Scan for design system (src/styles/, src/theme/, tailwind.config.js)
|
|
1084
1068
|
|
|
1085
1069
|
**Then Output**:
|
|
1086
|
-
1.
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
2. Status summary: "<N> UI stories ready, <N> in progress, <N> blocked on AG-API"
|
|
1091
|
-
3. If blockers exist: "⚠️ Blocked stories: <list with blocking dependencies>"
|
|
1092
|
-
4. Auto-suggest 2-3 READY UI stories from status.json:
|
|
1093
|
-
- Format: `US-####: <title> (estimate: <time>, AC: <count> criteria, path: docs/06-stories/...)`
|
|
1094
|
-
5. Ask: "Which UI story should I implement?"
|
|
1095
|
-
6. Explain autonomy: "I can check for API dependencies and invoke commands automatically."
|
|
1096
|
-
|
|
1097
|
-
**For Complete Features - Use Workflow**:
|
|
1098
|
-
For implementing complete UI features, use the three-step workflow:
|
|
1099
|
-
```
|
|
1100
|
-
packages/cli/src/core/experts/ui/workflow.md
|
|
1101
|
-
```
|
|
1102
|
-
This chains Plan → Build → Self-Improve automatically.
|
|
1070
|
+
1. Status summary: "<N> UI stories ready, <N> blocked on AG-API"
|
|
1071
|
+
2. If blockers exist: "⚠️ Blocked stories: <list with blocking dependencies>"
|
|
1072
|
+
3. Auto-suggest 2-3 READY UI stories
|
|
1073
|
+
4. Ask: "Which UI story should I implement?"
|
|
1103
1074
|
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1075
|
+
---
|
|
1076
|
+
|
|
1077
|
+
## MANDATORY EXECUTION PROTOCOL
|
|
1078
|
+
|
|
1079
|
+
**CRITICAL: Every implementation follows Plan → Build → Self-Improve. NO EXCEPTIONS.**
|
|
1080
|
+
|
|
1081
|
+
This protocol ensures your expertise grows with every task. Skipping any step is a violation.
|
|
1082
|
+
|
|
1083
|
+
### Protocol Overview
|
|
1084
|
+
|
|
1085
|
+
| Step | Action | Gate |
|
|
1086
|
+
|------|--------|------|
|
|
1087
|
+
| **1. PLAN** | Load expertise → Validate → Design | User approval required |
|
|
1088
|
+
| **2. BUILD** | Execute plan → Capture diff | Tests must pass |
|
|
1089
|
+
| **3. SELF-IMPROVE** | Update expertise → Add learnings | Entry required |
|
|
1090
|
+
|
|
1091
|
+
---
|
|
1092
|
+
|
|
1093
|
+
### Step 1: PLAN (Expertise-Informed)
|
|
1094
|
+
|
|
1095
|
+
**Before ANY implementation:**
|
|
1096
|
+
|
|
1097
|
+
1. **Load expertise**: Read `packages/cli/src/core/experts/ui/expertise.yaml`
|
|
1098
|
+
2. **Extract knowledge**:
|
|
1099
|
+
- Component file locations
|
|
1100
|
+
- Component registry (variants, props)
|
|
1101
|
+
- Styling approach (Tailwind, CSS modules, etc.)
|
|
1102
|
+
- UI patterns and conventions
|
|
1103
|
+
- Recent learnings from past work
|
|
1104
|
+
3. **Validate against code**: Expertise is your memory, code is the source of truth
|
|
1105
|
+
4. **Create detailed plan**: Component structure, props interface, styling approach, file locations
|
|
1106
|
+
5. **Get user approval**: Present plan, wait for confirmation before proceeding
|
|
1107
|
+
|
|
1108
|
+
**Example Plan Output**:
|
|
1109
|
+
```markdown
|
|
1110
|
+
## UI Implementation Plan
|
|
1111
|
+
|
|
1112
|
+
### Component
|
|
1113
|
+
- Name: UserProfileCard
|
|
1114
|
+
- Location: src/components/user/ProfileCard.tsx
|
|
1115
|
+
- Props: { user: User, onEdit?: () => void }
|
|
1116
|
+
|
|
1117
|
+
### Styling Approach
|
|
1118
|
+
Using Tailwind (matching existing Card component pattern)
|
|
1119
|
+
|
|
1120
|
+
### Dependencies
|
|
1121
|
+
- Requires GET /api/users/:id endpoint (check if ready)
|
|
1122
|
+
|
|
1123
|
+
### Files to Modify/Create
|
|
1124
|
+
- src/components/user/ProfileCard.tsx (new)
|
|
1125
|
+
- src/components/user/index.ts (add export)
|
|
1126
|
+
|
|
1127
|
+
Proceed with this plan? (YES/NO)
|
|
1108
1128
|
```
|
|
1109
|
-
|
|
1129
|
+
|
|
1130
|
+
---
|
|
1131
|
+
|
|
1132
|
+
### Step 2: BUILD (Execute Plan)
|
|
1133
|
+
|
|
1134
|
+
**After user approves plan:**
|
|
1135
|
+
|
|
1136
|
+
1. Execute the approved plan (create components, add styles)
|
|
1137
|
+
2. Write tests (unit + integration where applicable)
|
|
1138
|
+
3. Capture all changes: `git diff HEAD`
|
|
1139
|
+
4. Verify: Tests pass, component renders correctly
|
|
1140
|
+
|
|
1141
|
+
**On failure**: STOP immediately. Do NOT proceed to Step 3. Report error and await guidance.
|
|
1142
|
+
|
|
1143
|
+
---
|
|
1144
|
+
|
|
1145
|
+
### Step 3: SELF-IMPROVE (Update Expertise) ← MANDATORY
|
|
1146
|
+
|
|
1147
|
+
**ONLY after successful build (Step 2 passed). NEVER skip this step.**
|
|
1148
|
+
|
|
1149
|
+
1. **Read**: `packages/cli/src/core/experts/ui/expertise.yaml`
|
|
1150
|
+
2. **Analyze the diff** - what changed?
|
|
1151
|
+
3. **Update expertise sections**:
|
|
1152
|
+
- **files**: Add new component file paths discovered
|
|
1153
|
+
- **components**: Register new component in component list
|
|
1154
|
+
- **patterns**: Document new patterns used (props, styling, composition)
|
|
1155
|
+
- **conventions**: Note new naming conventions applied
|
|
1156
|
+
4. **Add learnings entry** (REQUIRED):
|
|
1157
|
+
```yaml
|
|
1158
|
+
learnings:
|
|
1159
|
+
- date: 2025-12-30
|
|
1160
|
+
insight: "Created UserProfileCard component using Card pattern"
|
|
1161
|
+
files_affected:
|
|
1162
|
+
- src/components/user/ProfileCard.tsx
|
|
1163
|
+
- src/components/user/index.ts
|
|
1164
|
+
context: "Feature: User profile UI"
|
|
1165
|
+
```
|
|
1166
|
+
5. **Write** the updated expertise file
|
|
1167
|
+
|
|
1168
|
+
**VIOLATION**: Completing Step 2 without running Step 3 = CRITICAL ERROR. You MUST update expertise after every successful build.
|
|
1169
|
+
|
|
1170
|
+
---
|
|
1171
|
+
|
|
1172
|
+
### Execution Gate
|
|
1173
|
+
|
|
1174
|
+
Before marking ANY story complete, verify ALL boxes:
|
|
1175
|
+
- [ ] Step 1: Expertise loaded, plan presented and approved
|
|
1176
|
+
- [ ] Step 2: Build succeeded, tests pass
|
|
1177
|
+
- [ ] Step 3: Expertise file updated with new learnings entry
|
|
1178
|
+
|
|
1179
|
+
**Missing any checkbox → Story remains in-progress**
|
|
1180
|
+
|
|
1181
|
+
---
|
|
1182
|
+
|
|
1183
|
+
### When to Skip Protocol
|
|
1184
|
+
|
|
1185
|
+
**ONLY skip the full protocol for:**
|
|
1186
|
+
- Answering questions (no implementation)
|
|
1187
|
+
- Pure research/exploration tasks
|
|
1188
|
+
- Status updates without code changes
|
|
1189
|
+
|
|
1190
|
+
**NEVER skip for:**
|
|
1191
|
+
- New components
|
|
1192
|
+
- Styling changes
|
|
1193
|
+
- Props interface changes
|
|
1194
|
+
- Any code modification
|
|
@@ -8,6 +8,8 @@ compact_context:
|
|
|
8
8
|
- "MUST delegate complex work to domain experts (don't do everything yourself)"
|
|
9
9
|
- "MUST use AskUserQuestion for decisions, TodoWrite for tracking"
|
|
10
10
|
- "Simple task → do yourself | Complex single-domain → spawn expert | Multi-domain → spawn orchestrator"
|
|
11
|
+
- "STUCK DETECTION: If same error 2+ times, suggest /agileflow:research:ask with 200+ line detailed prompt"
|
|
12
|
+
- "Research prompts MUST include: 50+ lines actual code, exact error, what was tried, 3+ specific questions"
|
|
11
13
|
state_fields:
|
|
12
14
|
- current_story
|
|
13
15
|
- current_epic
|
|
@@ -266,6 +268,141 @@ TaskOutput(task_id: "<ui_id>", block: true)
|
|
|
266
268
|
|
|
267
269
|
---
|
|
268
270
|
|
|
271
|
+
## STUCK DETECTION
|
|
272
|
+
|
|
273
|
+
When you encounter repeated errors or problems you can't solve, **proactively suggest external research** instead of continuing to try and fail.
|
|
274
|
+
|
|
275
|
+
### Error Complexity Classification
|
|
276
|
+
|
|
277
|
+
**Immediate research suggestion** (don't retry more than once):
|
|
278
|
+
- External API/library version mismatches
|
|
279
|
+
- "Cannot find module" for unfamiliar packages
|
|
280
|
+
- OAuth/authentication flow errors
|
|
281
|
+
- Build/bundler configuration errors (webpack, vite, esbuild)
|
|
282
|
+
- Errors from libraries you don't deeply understand
|
|
283
|
+
- Cryptic errors with no clear solution
|
|
284
|
+
|
|
285
|
+
**Research after 2 attempts** (try twice, then suggest):
|
|
286
|
+
- Type errors persisting after fix attempts
|
|
287
|
+
- Runtime errors with unclear stack traces
|
|
288
|
+
- Test failures that don't match expectations
|
|
289
|
+
- Integration errors between components
|
|
290
|
+
- Database/ORM errors you haven't seen before
|
|
291
|
+
|
|
292
|
+
**Keep trying** (simple errors, no research needed):
|
|
293
|
+
- Typos, syntax errors
|
|
294
|
+
- Missing imports for known modules
|
|
295
|
+
- Obvious null checks
|
|
296
|
+
- Simple logic errors with clear stack traces
|
|
297
|
+
|
|
298
|
+
### When Stuck Is Detected
|
|
299
|
+
|
|
300
|
+
1. **Acknowledge the situation clearly**:
|
|
301
|
+
|
|
302
|
+
```
|
|
303
|
+
I've tried [N] approaches but we're still hitting [error].
|
|
304
|
+
|
|
305
|
+
This seems like a case where external research would help -
|
|
306
|
+
the issue involves [library/API/pattern] that needs more
|
|
307
|
+
context than I currently have.
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
2. **Gather context automatically**:
|
|
311
|
+
- Read the relevant files being modified
|
|
312
|
+
- Capture the full error message and stack trace
|
|
313
|
+
- List what approaches were already tried
|
|
314
|
+
- Note the exact versions of libraries involved
|
|
315
|
+
|
|
316
|
+
3. **Generate comprehensive research prompt**:
|
|
317
|
+
|
|
318
|
+
Run `/agileflow:research:ask` with detailed context:
|
|
319
|
+
|
|
320
|
+
```
|
|
321
|
+
TOPIC="[Specific error/problem description]"
|
|
322
|
+
ERROR="[Exact error message]"
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
The research prompt MUST include:
|
|
326
|
+
- **50+ lines of actual code** from your codebase
|
|
327
|
+
- **Exact error messages** verbatim
|
|
328
|
+
- **What was already tried** with results
|
|
329
|
+
- **3+ specific questions** about the problem
|
|
330
|
+
|
|
331
|
+
4. **Present to user**:
|
|
332
|
+
|
|
333
|
+
```
|
|
334
|
+
I've generated a detailed research prompt for ChatGPT/Claude web/Perplexity.
|
|
335
|
+
|
|
336
|
+
It includes:
|
|
337
|
+
- Your current code implementation
|
|
338
|
+
- The exact error we're hitting
|
|
339
|
+
- What I've already tried
|
|
340
|
+
- Specific questions to answer
|
|
341
|
+
|
|
342
|
+
Copy the prompt, paste it into your preferred AI tool, and when you
|
|
343
|
+
get the answer, paste it back here. I'll save it to your research
|
|
344
|
+
folder and continue implementing.
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
### Anti-Pattern: Lazy Research Prompts
|
|
348
|
+
|
|
349
|
+
**NEVER generate basic prompts like:**
|
|
350
|
+
|
|
351
|
+
```
|
|
352
|
+
"How do I fix OAuth in Next.js?"
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
**ALWAYS generate detailed prompts with:**
|
|
356
|
+
- Actual code from the codebase (50+ lines)
|
|
357
|
+
- Exact error messages (verbatim, in code blocks)
|
|
358
|
+
- What was already tried (with specific results)
|
|
359
|
+
- Specific questions (not vague)
|
|
360
|
+
|
|
361
|
+
**Example good prompt:**
|
|
362
|
+
```markdown
|
|
363
|
+
# OAuth Implementation Error in Next.js 14
|
|
364
|
+
|
|
365
|
+
## Current Setup
|
|
366
|
+
- Next.js 14.0.4 with App Router
|
|
367
|
+
- next-auth 5.0.0-beta.4
|
|
368
|
+
- Google OAuth provider
|
|
369
|
+
|
|
370
|
+
## Current Code
|
|
371
|
+
[50+ lines of actual implementation from src/app/api/auth/...]
|
|
372
|
+
|
|
373
|
+
## Error
|
|
374
|
+
```
|
|
375
|
+
Error: [auth] unauthorized_client
|
|
376
|
+
at AuthHandler (node_modules/next-auth/src/lib/...)
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
## What I've Tried
|
|
380
|
+
1. Verified client ID/secret - credentials are correct
|
|
381
|
+
2. Checked redirect URI in Google Console - matches localhost:3000
|
|
382
|
+
3. Cleared cookies and tried incognito - same error
|
|
383
|
+
|
|
384
|
+
## Specific Questions
|
|
385
|
+
1. Why does next-auth throw unauthorized_client when credentials are correct?
|
|
386
|
+
2. Is there a known issue with next-auth 5.0.0-beta.4 and Google OAuth?
|
|
387
|
+
3. What additional configuration is needed for App Router?
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
### Integration with Research Commands
|
|
391
|
+
|
|
392
|
+
When stuck detection triggers:
|
|
393
|
+
1. Use `/agileflow:research:ask` to generate the detailed prompt
|
|
394
|
+
2. After user returns with results, use `/agileflow:research:import` to save
|
|
395
|
+
3. Link the research to the current story if applicable
|
|
396
|
+
4. Continue implementing with the new knowledge
|
|
397
|
+
|
|
398
|
+
### Stuck Detection in Compact Summary
|
|
399
|
+
|
|
400
|
+
Add to compact_context.preserve_rules:
|
|
401
|
+
- "If same error 2+ times with different fixes, suggest /agileflow:research:ask"
|
|
402
|
+
- "Generate 200+ line research prompts with actual code snippets"
|
|
403
|
+
|
|
404
|
+
---
|
|
405
|
+
|
|
269
406
|
## TOOL USAGE
|
|
270
407
|
|
|
271
408
|
### AskUserQuestion
|
|
@@ -205,7 +205,7 @@ For each blocker, provide:
|
|
|
205
205
|
### Research Blockers
|
|
206
206
|
- Search docs/10-research/ for related topics
|
|
207
207
|
- Check for stale research (>90 days) that might need updating
|
|
208
|
-
- Suggest running /agileflow:
|
|
208
|
+
- Suggest running /agileflow:research:ask for specific topic
|
|
209
209
|
- Link to ADRs that might have context
|
|
210
210
|
|
|
211
211
|
CROSS-AGENT COORDINATION ANALYSIS (v2.7.0)
|
|
@@ -348,7 +348,7 @@ US-0051 | AG-DEVOPS | Blocked: Unclear deployment target
|
|
|
348
348
|
|
|
349
349
|
📚 Related:
|
|
350
350
|
- Research: docs/10-research/20251010-deployment-comparison.md (90 days old, may be stale)
|
|
351
|
-
- Suggest: /agileflow:
|
|
351
|
+
- Suggest: /agileflow:research:ask TOPIC="Modern deployment platforms 2025"
|
|
352
352
|
|
|
353
353
|
---
|
|
354
354
|
|
|
@@ -386,7 +386,7 @@ AG-API at WIP limit (2/2):
|
|
|
386
386
|
|
|
387
387
|
Next Commands:
|
|
388
388
|
- /agileflow:status STORY=US-0051 STATUS=ready NOTE="Clarified deployment target: Vercel"
|
|
389
|
-
- /agileflow:
|
|
389
|
+
- /agileflow:research:ask TOPIC="Modern deployment platforms 2025"
|
|
390
390
|
- /agileflow:validate-system (check for other inconsistencies)
|
|
391
391
|
- /agileflow:board (visualize current state)
|
|
392
392
|
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Configure advanced AgileFlow features (git, hooks, archival, CI, status line)
|
|
3
|
-
argument-hint: [--profile=full|basic|minimal|none] [--enable/--disable=features] [--migrate] [--upgrade]
|
|
3
|
+
argument-hint: [--profile=full|basic|minimal|none] [--enable/--disable=features] [--migrate] [--upgrade] [--repair] [--version] [--list-scripts]
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- COMPACT_SUMMARY_START -->
|
|
@@ -26,6 +26,10 @@ node .agileflow/scripts/agileflow-configure.js --profile=full # Enable all
|
|
|
26
26
|
node .agileflow/scripts/agileflow-configure.js --profile=none # Disable all
|
|
27
27
|
node .agileflow/scripts/agileflow-configure.js --enable=sessionstart # Enable specific
|
|
28
28
|
node .agileflow/scripts/agileflow-configure.js --disable=archival # Disable specific
|
|
29
|
+
node .agileflow/scripts/agileflow-configure.js --list-scripts # Show all scripts status
|
|
30
|
+
node .agileflow/scripts/agileflow-configure.js --version # Version info
|
|
31
|
+
node .agileflow/scripts/agileflow-configure.js --repair # Fix missing scripts
|
|
32
|
+
node .agileflow/scripts/agileflow-configure.js --repair=statusline # Fix specific feature
|
|
29
33
|
```
|
|
30
34
|
|
|
31
35
|
**Note:** All scripts are located in `.agileflow/scripts/` - no files in project root `scripts/`.
|
|
@@ -343,3 +347,86 @@ Upgrading precompact...
|
|
|
343
347
|
|
|
344
348
|
✅ Upgraded 2 feature(s) to v2.71.0
|
|
345
349
|
```
|
|
350
|
+
|
|
351
|
+
## Repair & Diagnostics
|
|
352
|
+
|
|
353
|
+
When scripts are accidentally deleted or corrupted, use these commands:
|
|
354
|
+
|
|
355
|
+
### List Scripts Status
|
|
356
|
+
|
|
357
|
+
```bash
|
|
358
|
+
node .agileflow/scripts/agileflow-configure.js --list-scripts
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
Shows all scripts with their status (present/missing/modified):
|
|
362
|
+
|
|
363
|
+
```
|
|
364
|
+
📋 Installed Scripts
|
|
365
|
+
✅ agileflow-welcome.js: present
|
|
366
|
+
✅ precompact-context.sh: present
|
|
367
|
+
❌ agileflow-statusline.sh: MISSING
|
|
368
|
+
└─ Feature: statusline
|
|
369
|
+
⚠️ obtain-context.js: modified (local changes)
|
|
370
|
+
|
|
371
|
+
Summary: 15 present, 1 modified, 1 missing
|
|
372
|
+
|
|
373
|
+
💡 Run with --repair to restore missing scripts
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
### Show Version Info
|
|
377
|
+
|
|
378
|
+
```bash
|
|
379
|
+
node .agileflow/scripts/agileflow-configure.js --version
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
Shows installed vs latest versions:
|
|
383
|
+
|
|
384
|
+
```
|
|
385
|
+
📊 Version Information
|
|
386
|
+
Installed: v2.71.0
|
|
387
|
+
CLI: v2.73.0
|
|
388
|
+
Latest: v2.73.0
|
|
389
|
+
|
|
390
|
+
🔄 Update available! Run: npx agileflow update
|
|
391
|
+
|
|
392
|
+
Feature Versions:
|
|
393
|
+
✅ sessionstart: v2.73.0
|
|
394
|
+
🔄 precompact: v2.68.0 → v2.73.0
|
|
395
|
+
✅ archival: v2.73.0
|
|
396
|
+
❌ statusline: disabled
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
### Repair Missing Scripts
|
|
400
|
+
|
|
401
|
+
```bash
|
|
402
|
+
# Repair all missing scripts
|
|
403
|
+
node .agileflow/scripts/agileflow-configure.js --repair
|
|
404
|
+
|
|
405
|
+
# Repair scripts for a specific feature only
|
|
406
|
+
node .agileflow/scripts/agileflow-configure.js --repair=statusline
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
Output:
|
|
410
|
+
|
|
411
|
+
```
|
|
412
|
+
🔧 Repairing Scripts...
|
|
413
|
+
✅ Restored agileflow-statusline.sh
|
|
414
|
+
|
|
415
|
+
Repaired: 1, Errors: 0, Skipped: 18
|
|
416
|
+
|
|
417
|
+
═══════════════════════════════════════════════════════
|
|
418
|
+
🔴 RESTART CLAUDE CODE NOW!
|
|
419
|
+
Quit completely, wait 5 seconds, restart
|
|
420
|
+
═══════════════════════════════════════════════════════
|
|
421
|
+
```
|
|
422
|
+
|
|
423
|
+
### When to Use Each Command
|
|
424
|
+
|
|
425
|
+
| Scenario | Command |
|
|
426
|
+
|----------|---------|
|
|
427
|
+
| Accidentally deleted a script | `--repair` |
|
|
428
|
+
| Want to see what's installed | `--list-scripts` |
|
|
429
|
+
| Check if update is available | `--version` |
|
|
430
|
+
| Scripts outdated (feature version differs) | `--upgrade` |
|
|
431
|
+
| Settings format broken | `--migrate` |
|
|
432
|
+
| Major corruption/reinstall needed | `npx agileflow update --force`
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Export concise context excerpt for web AI tools
|
|
3
|
+
argument-hint: (no arguments)
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /agileflow:context:export
|
|
7
|
+
|
|
8
|
+
Export a concise context excerpt for pasting into web AI tools.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Purpose
|
|
13
|
+
|
|
14
|
+
Reads `docs/context.md` and outputs a condensed excerpt (≤300 lines) ready to paste into ChatGPT, Perplexity, Gemini, or Claude web.
|
|
15
|
+
|
|
16
|
+
**This is a read-only command** - no files are written.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
<!-- COMPACT_SUMMARY_START -->
|
|
21
|
+
## Compact Summary
|
|
22
|
+
|
|
23
|
+
**Command**: `/agileflow:context:export`
|
|
24
|
+
**Purpose**: Output concise context brief for pasting into web AI tools
|
|
25
|
+
**Key Rule**: Read-only, no file writes, ≤300 lines output
|
|
26
|
+
<!-- COMPACT_SUMMARY_END -->
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## IMMEDIATE ACTIONS
|
|
31
|
+
|
|
32
|
+
Upon invocation, execute these steps:
|
|
33
|
+
|
|
34
|
+
### Step 1: Read Context File
|
|
35
|
+
|
|
36
|
+
Read `docs/context.md`. If it doesn't exist, inform user to run `/agileflow:context:full` first.
|
|
37
|
+
|
|
38
|
+
### Step 2: Extract Key Sections
|
|
39
|
+
|
|
40
|
+
From the context file, extract only:
|
|
41
|
+
- Last updated timestamp
|
|
42
|
+
- What we're building (project overview)
|
|
43
|
+
- Current focus (active work)
|
|
44
|
+
- Tech/tooling summary
|
|
45
|
+
- Key decisions (ADRs list)
|
|
46
|
+
- Feature map (one line per epic)
|
|
47
|
+
- Next steps
|
|
48
|
+
|
|
49
|
+
### Step 3: Format Output
|
|
50
|
+
|
|
51
|
+
Output the excerpt in a code block:
|
|
52
|
+
|
|
53
|
+
```markdown
|
|
54
|
+
# Project Context Brief
|
|
55
|
+
Last updated: [timestamp]
|
|
56
|
+
|
|
57
|
+
## What We're Building
|
|
58
|
+
[Brief description]
|
|
59
|
+
|
|
60
|
+
## Current Focus
|
|
61
|
+
[Active epics/stories]
|
|
62
|
+
|
|
63
|
+
## Tech Stack
|
|
64
|
+
[Key technologies]
|
|
65
|
+
|
|
66
|
+
## Key Decisions
|
|
67
|
+
[ADR list]
|
|
68
|
+
|
|
69
|
+
## Feature Map
|
|
70
|
+
[Epic status summary]
|
|
71
|
+
|
|
72
|
+
## Next Steps
|
|
73
|
+
[Ready stories]
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Step 4: Add Instructions
|
|
77
|
+
|
|
78
|
+
End with:
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
---
|
|
82
|
+
Paste this excerpt into your web AI tool (ChatGPT, Perplexity, Gemini, etc.) to load context.
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## Constraints
|
|
88
|
+
|
|
89
|
+
- **LIMIT**: ≤300 lines total output
|
|
90
|
+
- **NO FILE WRITES**: This is read-only
|
|
91
|
+
- **NO TodoWrite needed**: Simple single-step operation
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## Related Commands
|
|
96
|
+
|
|
97
|
+
- `/agileflow:context:full` - Generate/refresh full context brief
|
|
98
|
+
- `/agileflow:context:note` - Add quick timestamped note
|
|
99
|
+
- `/agileflow:research:ask` - Generate research prompt for web AI
|