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
@@ -72,7 +72,7 @@ What to document:
72
72
  - MENTOR/EPIC-PLANNER: Suggest CI setup stories if missing
73
73
 
74
74
  **Slash Commands**:
75
- - `/agileflow:context MODE=research` → Research test frameworks, CI platforms
75
+ - `/agileflow:research:ask` → Research test frameworks, CI platforms
76
76
  - `/agileflow:ai-code-review` → Review CI config before in-review
77
77
  - `/agileflow:adr-new` → Document CI/testing decisions
78
78
  <!-- COMPACT_SUMMARY_END -->
@@ -363,7 +363,7 @@ SLASH COMMANDS (Proactive Use)
363
363
  AG-CI can directly invoke AgileFlow commands to streamline workflows:
364
364
 
365
365
  **Research & Planning**:
366
- - `/agileflow:context MODE=research TOPIC=...` → Research test frameworks, CI platforms, code quality tools
366
+ - `/agileflow:research:ask TOPIC=...` → Research test frameworks, CI platforms, code quality tools
367
367
 
368
368
  **Quality & Review**:
369
369
  - `/agileflow:ai-code-review` → Review CI configuration before marking in-review
@@ -412,7 +412,7 @@ RESEARCH INTEGRATION
412
412
  **Before Starting Implementation**:
413
413
  1. Check docs/10-research/ for relevant CI/testing research
414
414
  2. Search for topics: test frameworks, CI platforms, code quality tools, E2E testing
415
- 3. If no research exists or research is stale (>90 days), suggest: `/agileflow:context MODE=research TOPIC=...`
415
+ 3. If no research exists or research is stale (>90 days), suggest: `/agileflow:research:ask TOPIC=...`
416
416
 
417
417
  **After User Provides Research**:
418
418
  - Offer to save to docs/10-research/<YYYYMMDD>-<slug>.md
@@ -398,7 +398,7 @@ COORDINATION WITH AG-SECURITY
398
398
 
399
399
  SLASH COMMANDS
400
400
 
401
- - `/agileflow:context MODE=research TOPIC=...` → Research compliance requirements
401
+ - `/agileflow:research:ask TOPIC=...` → Research compliance requirements
402
402
  - `/agileflow:ai-code-review` → Review for compliance issues
403
403
  - `/agileflow:adr-new` → Document compliance decisions
404
404
  - `/agileflow:status STORY=... STATUS=...` → Update status
@@ -72,7 +72,7 @@ node .agileflow/scripts/obtain-context.js database
72
72
 
73
73
  **Common Commands**:
74
74
  - `/agileflow:verify US-XXXX` - Run tests for story
75
- - `/agileflow:context MODE=research TOPIC=...` - Research schema patterns
75
+ - `/agileflow:research:ask TOPIC=...` - Research schema patterns
76
76
  - `/agileflow:adr-new` - Document major schema decisions
77
77
  - `/agileflow:tech-debt` - Document performance debt
78
78
  - `/agileflow:impact-analysis` - Analyze schema change impact
@@ -366,12 +366,12 @@ RESEARCH INTEGRATION
366
366
  3. Check if similar queries already exist
367
367
 
368
368
  **Suggest Research**:
369
- - `/agileflow:context MODE=research TOPIC="Database schema normalization for [domain]"`
370
- - `/agileflow:context MODE=research TOPIC="Query optimization techniques for [database type]"`
369
+ - `/agileflow:research:ask TOPIC="Database schema normalization for [domain]"`
370
+ - `/agileflow:research:ask TOPIC="Query optimization techniques for [database type]"`
371
371
 
372
372
  SLASH COMMANDS
373
373
 
374
- - `/agileflow:context MODE=research TOPIC=...` → Research schema patterns, optimization techniques
374
+ - `/agileflow:research:ask TOPIC=...` → Research schema patterns, optimization techniques
375
375
  - `/agileflow:ai-code-review` → Review migration and query changes
376
376
  - `/agileflow:adr-new` → Document major schema decisions
377
377
  - `/agileflow:tech-debt` → Document performance debt (slow queries, missing indexes)
@@ -457,23 +457,8 @@ Before approval:
457
457
 
458
458
  FIRST ACTION
459
459
 
460
- **CRITICAL: Load Expertise First (Agent Expert Protocol)**
461
-
462
- Before ANY work, read your expertise file:
463
- ```
464
- packages/cli/src/core/experts/database/expertise.yaml
465
- ```
466
-
467
- This contains your mental model of:
468
- - Schema file locations (Prisma, Drizzle, TypeORM paths)
469
- - Table relationships you've learned
470
- - Query patterns and conventions
471
- - Recent learnings from past work
472
-
473
- **Validate expertise against actual code** - expertise is your memory, code is the source of truth.
474
-
475
- **Proactive Knowledge Loading**:
476
- 1. **READ EXPERTISE FILE FIRST** (packages/cli/src/core/experts/database/expertise.yaml)
460
+ **Proactive Knowledge Loading** (before asking user):
461
+ 1. Read `packages/cli/src/core/experts/database/expertise.yaml` - your persistent memory
477
462
  2. Read docs/09-agents/status.json for database-related stories
478
463
  3. Check CLAUDE.md for database type and ORM
479
464
  4. Check docs/10-research/ for schema design patterns
@@ -483,21 +468,121 @@ This contains your mental model of:
483
468
  **Then Output**:
484
469
  1. Database summary: "Database: [type], ORM: [name]"
485
470
  2. Outstanding work: "[N] stories ready for schema design"
486
- 3. Performance issues: "[N] slow queries, [N] missing indexes"
487
- 4. Suggest stories: "Ready for implementation: [list]"
488
- 5. Ask: "Which story needs database work first?"
489
- 6. Explain autonomy: "I'll design schemas, create migrations, optimize queries, and coordinate with AG-API"
471
+ 3. Suggest stories: "Ready for implementation: [list]"
472
+ 4. Ask: "Which story needs database work first?"
490
473
 
491
- **For Complete Features - Use Workflow**:
492
- For implementing complete database features, use the three-step workflow:
493
- ```
494
- packages/cli/src/core/experts/database/workflow.md
495
- ```
496
- This chains Plan → Build → Self-Improve automatically.
474
+ ---
497
475
 
498
- **After Completing Work - Self-Improve**:
499
- After ANY database changes (new tables, migrations, queries), run self-improve:
500
- ```
501
- packages/cli/src/core/experts/database/self-improve.md
476
+ ## MANDATORY EXECUTION PROTOCOL
477
+
478
+ **CRITICAL: Every implementation follows Plan → Build → Self-Improve. NO EXCEPTIONS.**
479
+
480
+ This protocol ensures your expertise grows with every task. Skipping any step is a violation.
481
+
482
+ ### Protocol Overview
483
+
484
+ | Step | Action | Gate |
485
+ |------|--------|------|
486
+ | **1. PLAN** | Load expertise → Validate → Design | User approval required |
487
+ | **2. BUILD** | Execute plan → Capture diff | Tests must pass |
488
+ | **3. SELF-IMPROVE** | Update expertise → Add learnings | Entry required |
489
+
490
+ ---
491
+
492
+ ### Step 1: PLAN (Expertise-Informed)
493
+
494
+ **Before ANY implementation:**
495
+
496
+ 1. **Load expertise**: Read `packages/cli/src/core/experts/database/expertise.yaml`
497
+ 2. **Extract knowledge**:
498
+ - Schema file locations (Prisma, Drizzle, TypeORM paths)
499
+ - Table relationships you've learned
500
+ - Query patterns and conventions
501
+ - Recent learnings from past work
502
+ 3. **Validate against code**: Expertise is your memory, code is the source of truth
503
+ 4. **Create detailed plan**: Specific tables, columns, migrations, files to modify
504
+ 5. **Get user approval**: Present plan, wait for confirmation before proceeding
505
+
506
+ **Example Plan Output**:
507
+ ```markdown
508
+ ## Database Implementation Plan
509
+
510
+ ### Schema Changes
511
+ 1. sessions table - id, user_id (FK), token, ip_address, user_agent, expires_at, created_at
512
+
513
+ ### Migration Strategy
514
+ - File: prisma/migrations/20251230_add_sessions
515
+ - Rollback: DROP TABLE sessions;
516
+
517
+ ### Pattern to Follow
518
+ Using timestamps pattern from users table (created_at, updated_at)
519
+
520
+ Proceed with this plan? (YES/NO)
502
521
  ```
503
- This updates your expertise with what you learned, so you're faster next time.
522
+
523
+ ---
524
+
525
+ ### Step 2: BUILD (Execute Plan)
526
+
527
+ **After user approves plan:**
528
+
529
+ 1. Execute the approved plan (create migration, modify schema)
530
+ 2. Run migration: `npx prisma migrate dev` or equivalent
531
+ 3. Capture all changes: `git diff HEAD`
532
+ 4. Verify: Tests pass, migration succeeded
533
+
534
+ **On failure**: STOP immediately. Do NOT proceed to Step 3. Report error and await guidance.
535
+
536
+ ---
537
+
538
+ ### Step 3: SELF-IMPROVE (Update Expertise) ← MANDATORY
539
+
540
+ **ONLY after successful build (Step 2 passed). NEVER skip this step.**
541
+
542
+ 1. **Read**: `packages/cli/src/core/experts/database/expertise.yaml`
543
+ 2. **Analyze the diff** - what changed?
544
+ 3. **Update expertise sections**:
545
+ - **files**: Add new migration/schema file paths discovered
546
+ - **relationships**: Record new table relationships (FKs, joins)
547
+ - **patterns**: Document new patterns used (soft deletes, timestamps)
548
+ - **conventions**: Note new naming conventions applied
549
+ 4. **Add learnings entry** (REQUIRED):
550
+ ```yaml
551
+ learnings:
552
+ - date: 2025-12-30
553
+ insight: "Added sessions table for user login tracking"
554
+ files_affected:
555
+ - prisma/migrations/20251230_add_sessions
556
+ - prisma/schema.prisma
557
+ context: "Feature: User session management"
558
+ ```
559
+ 5. **Write** the updated expertise file
560
+
561
+ **VIOLATION**: Completing Step 2 without running Step 3 = CRITICAL ERROR. You MUST update expertise after every successful build.
562
+
563
+ ---
564
+
565
+ ### Execution Gate
566
+
567
+ Before marking ANY story complete, verify ALL boxes:
568
+ - [ ] Step 1: Expertise loaded, plan presented and approved
569
+ - [ ] Step 2: Build succeeded, migration ran, tests pass
570
+ - [ ] Step 3: Expertise file updated with new learnings entry
571
+
572
+ **Missing any checkbox → Story remains in-progress**
573
+
574
+ ---
575
+
576
+ ### When to Skip Protocol
577
+
578
+ **ONLY skip the full protocol for:**
579
+ - Answering questions (no implementation)
580
+ - Pure research/exploration tasks
581
+ - Status updates without code changes
582
+
583
+ **NEVER skip for:**
584
+ - New tables or columns
585
+ - Migrations
586
+ - Query changes
587
+ - Index additions
588
+ - Any code modification
@@ -559,7 +559,7 @@ COORDINATION WITH OTHER AGENTS
559
559
 
560
560
  SLASH COMMANDS
561
561
 
562
- - `/agileflow:context MODE=research TOPIC=...` → Research migration best practices
562
+ - `/agileflow:research:ask TOPIC=...` → Research migration best practices
563
563
  - `/agileflow:ai-code-review` → Review migration code for safety
564
564
  - `/agileflow:adr-new` → Document migration decisions
565
565
  - `/agileflow:status STORY=... STATUS=...` → Update status
@@ -392,7 +392,7 @@ COORDINATION WITH OTHER AGENTS
392
392
 
393
393
  SLASH COMMANDS
394
394
 
395
- - `/agileflow:context MODE=research TOPIC=...` → Research design system best practices
395
+ - `/agileflow:research:ask TOPIC=...` → Research design system best practices
396
396
  - `/agileflow:ai-code-review` → Review design specs for completeness
397
397
  - `/agileflow:adr-new` → Document design decisions
398
398
  - `/agileflow:status STORY=... STATUS=...` → Update status
@@ -308,7 +308,7 @@ AG-DEVOPS can directly invoke AgileFlow commands to streamline workflows:
308
308
  - `/agileflow:agent-feedback` → Collect retrospective feedback
309
309
 
310
310
  **Research & Documentation**:
311
- - `/agileflow:context MODE=research TOPIC=...` → Research DevOps tools, deployment strategies
311
+ - `/agileflow:research:ask TOPIC=...` → Research DevOps tools, deployment strategies
312
312
  - `/agileflow:adr-new` → Document infrastructure/deployment decisions
313
313
 
314
314
  **Coordination**:
@@ -344,7 +344,7 @@ RESEARCH INTEGRATION
344
344
  **Before Starting Implementation**:
345
345
  1. Check docs/10-research/ for relevant DevOps/deployment research
346
346
  2. Search for topics: CI/CD platforms, deployment strategies, monitoring tools
347
- 3. If no research exists or research is stale (>90 days), suggest: `/agileflow:context MODE=research TOPIC=...`
347
+ 3. If no research exists or research is stale (>90 days), suggest: `/agileflow:research:ask TOPIC=...`
348
348
 
349
349
  **After User Provides Research**:
350
350
  - Offer to save to docs/10-research/<YYYYMMDD>-<slug>.md
@@ -227,7 +227,7 @@ COORDINATION WITH OTHER AGENTS
227
227
 
228
228
  SLASH COMMANDS
229
229
 
230
- - `/agileflow:context MODE=research TOPIC=...` → Research documentation best practices
230
+ - `/agileflow:research:ask TOPIC=...` → Research documentation best practices
231
231
  - `/agileflow:ai-code-review` → Review documentation for clarity and completeness
232
232
  - `/agileflow:adr-new` → Document documentation decisions
233
233
  - `/agileflow:status STORY=... STATUS=...` → Update status
@@ -136,7 +136,7 @@ SLASH COMMANDS (Proactive Use)
136
136
  EPIC-PLANNER can directly invoke AgileFlow commands:
137
137
 
138
138
  **Research**:
139
- - `/agileflow:context MODE=research TOPIC=...` → Research unfamiliar technologies before planning
139
+ - `/agileflow:research:ask TOPIC=...` → Research unfamiliar technologies before planning
140
140
 
141
141
  **Documentation**:
142
142
  - `/agileflow:adr-new` → Create ADR if epic involves architectural decision
@@ -162,7 +162,7 @@ RESEARCH INTEGRATION
162
162
 
163
163
  **Before Planning**:
164
164
  1. Check docs/10-research/ for relevant research on the feature
165
- 2. If technology is unfamiliar, invoke `/agileflow:context MODE=research TOPIC=...`
165
+ 2. If technology is unfamiliar, invoke `/agileflow:research:ask TOPIC=...`
166
166
  3. Check docs/03-decisions/ for architectural constraints
167
167
  4. Check docs/08-project/roadmap.md for priority context
168
168
 
@@ -232,7 +232,7 @@ Tests: `src/models/__tests__/user.test.ts` [Source: architecture/testing-strateg
232
232
  WORKFLOW
233
233
  1. **[KNOWLEDGE LOADING]** Before planning:
234
234
  - Read CLAUDE.md for project architecture and conventions
235
- - Check docs/10-research/ for relevant research (or invoke `/agileflow:context MODE=research`)
235
+ - Check docs/10-research/ for relevant research (or invoke `/agileflow:research:ask`)
236
236
  - Check docs/03-decisions/ for relevant ADRs and constraints
237
237
  - Check docs/08-project/roadmap.md for priorities
238
238
  - Review docs/09-agents/status.json for current team capacity
@@ -348,7 +348,7 @@ This updates your expertise with what you learned, so you're faster next time.
348
348
  **After User Describes Feature**:
349
349
  1. Clarify scope and constraints
350
350
  2. Check docs/03-decisions/ for relevant ADRs (architectural constraints)
351
- 3. Check docs/10-research/ for relevant research (or suggest `/agileflow:context MODE=research`)
351
+ 3. Check docs/10-research/ for relevant research (or suggest `/agileflow:research:ask`)
352
352
  4. Propose epic structure:
353
353
  - Epic goal + success metrics
354
354
  - 3-8 stories with clear AC, estimates, owners, dependencies
@@ -428,8 +428,8 @@ RESEARCH INTEGRATION
428
428
  5. Check webhook/event capabilities
429
429
 
430
430
  **Suggest Research**:
431
- - `/agileflow:context MODE=research TOPIC="[Service] best practices and gotchas"`
432
- - `/agileflow:context MODE=research TOPIC="Webhook signature validation for [Service]"`
431
+ - `/agileflow:research:ask TOPIC="[Service] best practices and gotchas"`
432
+ - `/agileflow:research:ask TOPIC="Webhook signature validation for [Service]"`
433
433
 
434
434
  COORDINATION WITH AG-API
435
435
 
@@ -447,7 +447,7 @@ COORDINATION WITH AG-API
447
447
 
448
448
  SLASH COMMANDS
449
449
 
450
- - `/agileflow:context MODE=research TOPIC=...` → Research service documentation, best practices
450
+ - `/agileflow:research:ask TOPIC=...` → Research service documentation, best practices
451
451
  - `/agileflow:ai-code-review` → Review integration code for security, error handling
452
452
  - `/agileflow:adr-new` → Document integration choice decisions
453
453
  - `/agileflow:tech-debt` → Document integration debt (incomplete error handling, untested webhooks)
@@ -62,7 +62,7 @@ This section is extracted by the PreCompact hook to preserve essential context a
62
62
  - `/agileflow:status STORY=... STATUS=...` - Update story status
63
63
  - `/agileflow:ai-code-review` - Review code before PR
64
64
  - `/agileflow:impact-analysis` - Before major changes
65
- - `/agileflow:context MODE=research TOPIC="..."` - Generate research prompts
65
+ - `/agileflow:research:ask TOPIC="..."` - Generate research prompts
66
66
 
67
67
  ### Key Files
68
68
 
@@ -206,11 +206,11 @@ SUGGESTIONS ENGINE
206
206
  After reading knowledge, propose 3–7 prioritized next actions:
207
207
  - Format: [Type: Story/Epic/Spike/Research] • ID/title • why-now • expected impact • link
208
208
  - Rank by: READY status, blocked-but-clear next step, roadmap priority, README TODOs, near-complete epics, research gaps
209
- - If research is missing/outdated: add tip "Run /agileflow:context MODE=research TOPIC=\"...\""
209
+ - If research is missing/outdated: add tip "Run /agileflow:research:ask TOPIC=\"...\""
210
210
 
211
211
  RESEARCH INTEGRATION
212
212
  - If relevant note exists in docs/10-research/: summarize 5–8 bullets + path; apply caveats to plan
213
- - If none/stale (>90 days)/conflicting: propose /agileflow:context MODE=research TOPIC="..."
213
+ - If none/stale (>90 days)/conflicting: propose /agileflow:research:ask TOPIC="..."
214
214
  - After user pastes research results, offer to save:
215
215
  - docs/10-research/<YYYYMMDD>-<slug>.md (Title, Summary, Key Findings, Steps, Risks, Sources)
216
216
  - Update docs/10-research/README.md index table
@@ -252,7 +252,7 @@ You are an autonomous agent. When a slash command is the best way to accomplish
252
252
  - `/agileflow:stakeholder-update` - Create executive summary for completed epics
253
253
  - `/agileflow:tech-debt` - Document debt discovered during implementation
254
254
  - `/agileflow:adr-new` - Document architectural decisions
255
- - `/agileflow:context MODE=research` - Generate research prompts for unknowns
255
+ - `/agileflow:research:ask` - Generate research prompts for unknowns
256
256
 
257
257
  **Workflow orchestration example** (autonomous execution):
258
258
  ```
@@ -261,7 +261,7 @@ User: "Implement payment processing"
261
261
  Orchestration steps (you execute automatically):
262
262
  1. Check roadmap/backlog → SlashCommand("/agileflow:epic-new") if missing
263
263
  2. Break into stories → SlashCommand("/agileflow:story-new") for each
264
- 3. Research approach → SlashCommand("/agileflow:context MODE=research TOPIC=\"payment-processing\"")
264
+ 3. Research approach → SlashCommand("/agileflow:research:ask TOPIC=\"payment-processing\"")
265
265
  4. Check dependencies → SlashCommand("/agileflow:packages ACTION=update")
266
266
  5. Analyze impact → SlashCommand("/agileflow:impact-analysis")
267
267
  6. Guide implementation (your core role)
@@ -280,7 +280,7 @@ You autonomously invoke all these commands - no manual user action needed.
280
280
  - Before refactoring: Invoke SlashCommand("/agileflow:impact-analysis") and SlashCommand("/agileflow:tech-debt")
281
281
  - After epic completion: Invoke SlashCommand("/agileflow:velocity"), SlashCommand("/agileflow:generate-changelog"), SlashCommand("/agileflow:stakeholder-update")
282
282
  - When discovering architectural decisions: Invoke SlashCommand("/agileflow:adr-new")
283
- - When hitting unknowns: Invoke SlashCommand("/agileflow:context MODE=research TOPIC=\"...\"")
283
+ - When hitting unknowns: Invoke SlashCommand("/agileflow:research:ask TOPIC=\"...\"")
284
284
  - When seeing outdated dependencies: Invoke SlashCommand("/agileflow:packages ACTION=update")
285
285
 
286
286
  Be proactive - invoke commands when they're helpful, don't wait for user to ask.
@@ -384,7 +384,7 @@ COORDINATION WITH AG-UI
384
384
 
385
385
  SLASH COMMANDS
386
386
 
387
- - `/agileflow:context MODE=research TOPIC=...` → Research mobile patterns, native modules
387
+ - `/agileflow:research:ask TOPIC=...` → Research mobile patterns, native modules
388
388
  - `/agileflow:ai-code-review` → Review mobile code for platform-specific issues
389
389
  - `/agileflow:adr-new` → Document mobile platform decisions (React Native vs Flutter, etc)
390
390
  - `/agileflow:tech-debt` → Document mobile debt (platform-specific code, untested features)
@@ -424,7 +424,7 @@ COORDINATION WITH OTHER AGENTS
424
424
 
425
425
  SLASH COMMANDS
426
426
 
427
- - `/agileflow:context MODE=research TOPIC=...` → Research observability best practices
427
+ - `/agileflow:research:ask TOPIC=...` → Research observability best practices
428
428
  - `/agileflow:ai-code-review` → Review monitoring code for best practices
429
429
  - `/agileflow:adr-new` → Document monitoring decisions
430
430
  - `/agileflow:status STORY=... STATUS=...` → Update status
@@ -390,7 +390,7 @@ COORDINATION WITH OTHER AGENTS
390
390
 
391
391
  SLASH COMMANDS
392
392
 
393
- - `/agileflow:context MODE=research TOPIC=...` → Research optimization techniques
393
+ - `/agileflow:research:ask TOPIC=...` → Research optimization techniques
394
394
  - `/agileflow:ai-code-review` → Review code for performance issues
395
395
  - `/agileflow:adr-new` → Document performance decisions
396
396
  - `/agileflow:tech-debt` → Document performance debt
@@ -282,7 +282,7 @@ COORDINATION WITH EPIC-PLANNER
282
282
 
283
283
  SLASH COMMANDS
284
284
 
285
- - `/agileflow:context MODE=research TOPIC=...` → Research user needs, competitive analysis
285
+ - `/agileflow:research:ask TOPIC=...` → Research user needs, competitive analysis
286
286
  - `/agileflow:adr-new` → Document product decisions
287
287
  - `/agileflow:tech-debt` → Document product debt (unclear requirements, scope creep)
288
288
  - `/agileflow:status STORY=... STATUS=...` → Update status
@@ -296,8 +296,8 @@ RESEARCH INTEGRATION
296
296
  4. Research industry standards
297
297
 
298
298
  **Suggest Research**:
299
- - `/agileflow:context MODE=research TOPIC="Best practices for [feature type]"`
300
- - `/agileflow:context MODE=research TOPIC="User needs analysis for [user type]"`
299
+ - `/agileflow:research:ask TOPIC="Best practices for [feature type]"`
300
+ - `/agileflow:research:ask TOPIC="User needs analysis for [user type]"`
301
301
 
302
302
  WORKFLOW
303
303
 
@@ -650,7 +650,7 @@ COORDINATION WITH OTHER AGENTS
650
650
 
651
651
  SLASH COMMANDS
652
652
 
653
- - `/agileflow:context MODE=research TOPIC=...` → Research QA best practices
653
+ - `/agileflow:research:ask TOPIC=...` → Research QA best practices
654
654
  - `/agileflow:ai-code-review` → Review test strategy for completeness
655
655
  - `/agileflow:adr-new` → Document QA decisions
656
656
  - `/agileflow:status STORY=... STATUS=...` → Update status
@@ -453,7 +453,7 @@ COORDINATION WITH OTHER AGENTS
453
453
 
454
454
  SLASH COMMANDS
455
455
 
456
- - `/agileflow:context MODE=research TOPIC=...` → Research refactoring patterns, modern approaches
456
+ - `/agileflow:research:ask TOPIC=...` → Research refactoring patterns, modern approaches
457
457
  - `/agileflow:ai-code-review` → Review refactored code for quality
458
458
  - `/agileflow:adr-new` → Document refactoring decisions
459
459
  - `/agileflow:tech-debt` → Track and manage technical debt
@@ -332,9 +332,9 @@ RESEARCH INTEGRATION
332
332
  4. Research common vulnerabilities in that tech stack
333
333
 
334
334
  **Suggest Research**:
335
- - `/agileflow:context MODE=research TOPIC="OWASP Top 10 for [framework] and how to prevent"`
336
- - `/agileflow:context MODE=research TOPIC="JWT best practices and token refresh strategy"`
337
- - `/agileflow:context MODE=research TOPIC="Input validation patterns for [language]"`
335
+ - `/agileflow:research:ask TOPIC="OWASP Top 10 for [framework] and how to prevent"`
336
+ - `/agileflow:research:ask TOPIC="JWT best practices and token refresh strategy"`
337
+ - `/agileflow:research:ask TOPIC="Input validation patterns for [language]"`
338
338
 
339
339
  THREAT MODELING (for major features)
340
340
 
@@ -349,7 +349,7 @@ When implementing significant features, consider:
349
349
  SLASH COMMANDS (Proactive Use)
350
350
 
351
351
  **Security Research & Analysis**:
352
- - `/agileflow:context MODE=research TOPIC=...` → Research security patterns, vulnerabilities, compliance
352
+ - `/agileflow:research:ask TOPIC=...` → Research security patterns, vulnerabilities, compliance
353
353
  - `/agileflow:impact-analysis` → Analyze security impact of code changes
354
354
 
355
355
  **Quality & Review**:
@@ -110,7 +110,7 @@ If tests failing but must proceed:
110
110
  - `/agileflow:verify US-XXXX` → Run tests for story (updates test_status)
111
111
  - `/agileflow:session:resume` → Load context and verify environment
112
112
  - `/agileflow:baseline "message"` → Create known-good baseline (requires passing tests)
113
- - `/agileflow:context MODE=research TOPIC=...` → Research test patterns
113
+ - `/agileflow:research:ask TOPIC=...` → Research test patterns
114
114
  - `/agileflow:ai-code-review` → Review test code for anti-patterns
115
115
  - `/agileflow:adr-new` → Document testing decisions
116
116
 
@@ -421,7 +421,7 @@ COORDINATION WITH OTHER AGENTS
421
421
 
422
422
  SLASH COMMANDS
423
423
 
424
- - `/agileflow:context MODE=research TOPIC=...` → Research test patterns, best practices
424
+ - `/agileflow:research:ask TOPIC=...` → Research test patterns, best practices
425
425
  - `/agileflow:ai-code-review` → Review test code for anti-patterns
426
426
  - `/agileflow:adr-new` → Document testing decisions
427
427
  - `/agileflow:tech-debt` → Document test debt (low coverage areas, flaky tests)