agileflow 2.42.0 → 2.44.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 (75) hide show
  1. package/package.json +2 -1
  2. package/scripts/generate-all.sh +77 -0
  3. package/scripts/generators/agent-registry.js +167 -0
  4. package/scripts/generators/command-registry.js +135 -0
  5. package/scripts/generators/index.js +87 -0
  6. package/scripts/generators/inject-babysit.js +167 -0
  7. package/scripts/generators/inject-help.js +109 -0
  8. package/scripts/generators/inject-readme.js +156 -0
  9. package/scripts/generators/skill-registry.js +144 -0
  10. package/src/core/agents/accessibility.md +8 -0
  11. package/src/core/agents/adr-writer.md +8 -0
  12. package/src/core/agents/analytics.md +8 -0
  13. package/src/core/agents/api.md +8 -2
  14. package/src/core/agents/ci.md +8 -0
  15. package/src/core/agents/compliance.md +8 -0
  16. package/src/core/agents/configuration/archival.md +23 -1
  17. package/src/core/agents/configuration/attribution.md +22 -1
  18. package/src/core/agents/configuration/ci.md +23 -1
  19. package/src/core/agents/configuration/git-config.md +23 -1
  20. package/src/core/agents/configuration/hooks.md +22 -1
  21. package/src/core/agents/configuration/precompact.md +8 -0
  22. package/src/core/agents/configuration/status-line.md +93 -13
  23. package/src/core/agents/configuration/verify.md +23 -1
  24. package/src/core/agents/database.md +8 -2
  25. package/src/core/agents/datamigration.md +8 -0
  26. package/src/core/agents/design.md +8 -0
  27. package/src/core/agents/devops.md +8 -2
  28. package/src/core/agents/documentation.md +8 -0
  29. package/src/core/agents/epic-planner.md +8 -0
  30. package/src/core/agents/integrations.md +8 -0
  31. package/src/core/agents/mentor.md +8 -3
  32. package/src/core/agents/mobile.md +8 -0
  33. package/src/core/agents/monitoring.md +8 -0
  34. package/src/core/agents/multi-expert.md +8 -0
  35. package/src/core/agents/performance.md +8 -2
  36. package/src/core/agents/product.md +8 -0
  37. package/src/core/agents/qa.md +8 -0
  38. package/src/core/agents/readme-updater.md +8 -0
  39. package/src/core/agents/refactor.md +8 -2
  40. package/src/core/agents/research.md +8 -0
  41. package/src/core/agents/security.md +8 -2
  42. package/src/core/agents/testing.md +8 -0
  43. package/src/core/agents/ui.md +8 -2
  44. package/src/core/commands/adr.md +2 -13
  45. package/src/core/commands/agent.md +2 -13
  46. package/src/core/commands/assign.md +2 -13
  47. package/src/core/commands/auto.md +2 -13
  48. package/src/core/commands/babysit.md +94 -88
  49. package/src/core/commands/baseline.md +2 -13
  50. package/src/core/commands/blockers.md +4 -13
  51. package/src/core/commands/board.md +4 -13
  52. package/src/core/commands/context.md +141 -5
  53. package/src/core/commands/deps.md +4 -15
  54. package/src/core/commands/docs.md +2 -15
  55. package/src/core/commands/epic.md +4 -15
  56. package/src/core/commands/help.md +3 -14
  57. package/src/core/commands/metrics.md +4 -15
  58. package/src/core/commands/packages.md +3 -14
  59. package/src/core/commands/pr.md +4 -13
  60. package/src/core/commands/readme-sync.md +7 -24
  61. package/src/core/commands/research.md +3 -14
  62. package/src/core/commands/retro.md +4 -15
  63. package/src/core/commands/sprint.md +8 -0
  64. package/src/core/commands/status.md +5 -14
  65. package/src/core/commands/story-validate.md +3 -14
  66. package/src/core/commands/story.md +17 -17
  67. package/src/core/commands/template.md +2 -15
  68. package/src/core/commands/tests.md +2 -15
  69. package/src/core/commands/update.md +2 -15
  70. package/src/core/commands/validate-expertise.md +2 -15
  71. package/src/core/commands/velocity.md +4 -15
  72. package/src/core/commands/verify.md +4 -15
  73. package/src/core/templates/agileflow-configure.js +123 -2
  74. package/src/core/templates/agileflow-metadata.json +12 -0
  75. package/src/core/templates/agileflow-statusline.sh +238 -44
@@ -12,6 +12,14 @@ tools:
12
12
  model: haiku
13
13
  ---
14
14
 
15
+ ## STEP 0: Gather Context
16
+
17
+ ```bash
18
+ node scripts/obtain-context.js configuration-hooks
19
+ ```
20
+
21
+ ---
22
+
15
23
  # Configuration Agent: Hooks System
16
24
 
17
25
  Configure hooks system for event-driven automation in Claude Code.
@@ -20,7 +28,20 @@ Configure hooks system for event-driven automation in Claude Code.
20
28
 
21
29
  ROLE: Hooks System Configurator
22
30
 
23
- 🔴 **AskUserQuestion Format**: NEVER ask users to "type" anything. Use proper options with XML invoke format. See `docs/02-practices/ask-user-question.md`.
31
+ 🔴 **AskUserQuestion Format**: NEVER ask users to "type" anything. Use proper options:
32
+ ```xml
33
+ <invoke name="AskUserQuestion">
34
+ <parameter name="questions">[{
35
+ "question": "Which hooks do you want to enable?",
36
+ "header": "Hooks",
37
+ "multiSelect": true,
38
+ "options": [
39
+ {"label": "SessionStart", "description": "Display info on session start"},
40
+ {"label": "PreCompact", "description": "Preserve context before compact"}
41
+ ]
42
+ }]</parameter>
43
+ </invoke>
44
+ ```
24
45
 
25
46
  OBJECTIVE
26
47
  Set up the hooks system that enables event-driven automation in Claude Code. Hooks automatically execute shell commands when Claude Code lifecycle events occur (SessionStart, PreCompact, UserPromptSubmit, Stop).
@@ -12,6 +12,14 @@ tools:
12
12
  model: haiku
13
13
  ---
14
14
 
15
+ ## STEP 0: Gather Context
16
+
17
+ ```bash
18
+ node scripts/obtain-context.js configuration-precompact
19
+ ```
20
+
21
+ ---
22
+
15
23
  # PreCompact Configuration Agent
16
24
 
17
25
  Configures the PreCompact hook to preserve critical project context when Claude Code compacts conversations.
@@ -11,6 +11,14 @@ tools:
11
11
  model: haiku
12
12
  ---
13
13
 
14
+ ## STEP 0: Gather Context
15
+
16
+ ```bash
17
+ node scripts/obtain-context.js configuration-status-line
18
+ ```
19
+
20
+ ---
21
+
14
22
  # Configuration Agent: Status Line
15
23
 
16
24
  Configure a custom status line for Claude Code that displays AgileFlow project context.
@@ -19,7 +27,21 @@ Configure a custom status line for Claude Code that displays AgileFlow project c
19
27
 
20
28
  ROLE: Status Line Configurator
21
29
 
22
- 🔴 **AskUserQuestion Format**: NEVER ask users to "type" anything. Use proper multi-select options with XML invoke format. See `docs/02-practices/ask-user-question.md`.
30
+ 🔴 **AskUserQuestion Format**: NEVER ask users to "type" anything. Use proper options:
31
+ ```xml
32
+ <invoke name="AskUserQuestion">
33
+ <parameter name="questions">[{
34
+ "question": "Which components do you want in the status line?",
35
+ "header": "Components",
36
+ "multiSelect": true,
37
+ "options": [
38
+ {"label": "Git branch", "description": "Show current branch name"},
39
+ {"label": "Current story", "description": "Show active story ID"},
40
+ {"label": "WIP count", "description": "Show in-progress story count"}
41
+ ]
42
+ }]</parameter>
43
+ </invoke>
44
+ ```
23
45
 
24
46
  OBJECTIVE
25
47
  Set up a custom AgileFlow status line that displays contextual information at the bottom of Claude Code. The status line shows current story, work-in-progress count, context usage, session cost, and git branch.
@@ -30,25 +52,43 @@ The status line is a customizable bar at the bottom of Claude Code (similar to h
30
52
 
31
53
  **Example AgileFlow Status Line** (when working on a story):
32
54
  ```
33
- [Opus] 📋 US-0003: Login API | 📦 EP-0001: 5/6 (83%) | WIP: 1/3 | 45% ctx | $0.42 | main
55
+ agileflow v2.42.0 │ [Opus] US-0003: Login API EP-0001 5/6 WIP 1 45% $0.42 main
34
56
  ```
35
57
 
36
58
  **Example** (when no story in progress - shows next suggestion):
37
59
  ```
38
- [Opus] 🔴 Next: US-0007 | WIP: 0/3 | 45% ctx | $0.42 | main
60
+ agileflow v2.42.0 │ [Opus] Next: US-0007 WIP 0 45% $0.42 main
61
+ ```
62
+
63
+ **Example** (with update available):
64
+ ```
65
+ agileflow v2.41.0 ↑2.42.0 │ [Opus] │ US-0003: Login API │ 45% │ main
39
66
  ```
40
67
 
41
- ## Available Data Points
68
+ ## Available Components
42
69
 
43
- The status line can display:
44
- 1. **Model name** - Current AI model (Opus, Sonnet, etc.)
45
- 2. **Current story** - From `docs/09-agents/status.json` with 📋 icon
46
- 3. **Epic progress** - Shows completion like "EP-0001: 5/6 (83%)" with 📦 icon
47
- 4. **Next story suggestion** - When idle, shows highest priority READY story with priority color (🔴 high, 🟡 medium, 🟢 low)
48
- 5. **WIP count** - Work in progress vs limit (e.g., 1/3)
49
- 6. **Context usage %** - How much context window is used
50
- 7. **Session cost** - Total cost in USD
51
- 8. **Git branch** - Current branch name
70
+ The status line can display (all individually toggleable):
71
+
72
+ | Component | Description | Example |
73
+ |-----------|-------------|---------|
74
+ | `agileflow` | AgileFlow branding with version + update check | `agileflow v2.42.0` or `agileflow v2.41.0 ↑2.42.0` |
75
+ | `model` | Current AI model | `[Opus]` |
76
+ | `story` | Current story or next suggestion | `US-0007: Login API` or `Next: US-0008` |
77
+ | `epic` | Epic progress | `EP-0001 5/6` |
78
+ | `wip` | Work in progress count | `WIP 2` |
79
+ | `context` | Context window usage % | `45%` (color-coded: green < 40%, yellow 40-60%, red > 80%) |
80
+ | `cost` | Session cost in USD | `$0.42` |
81
+ | `git` | Current branch (color-coded by type) | `main` (green), `feature/foo` (cyan), `fix/bar` (red) |
82
+
83
+ ## Color Scheme
84
+
85
+ The status line uses semantic colors:
86
+ - **Brand orange** (#e8683a): AgileFlow branding
87
+ - **Green**: main/master branch, low context usage, healthy WIP
88
+ - **Cyan**: feature branches
89
+ - **Yellow**: develop branch, medium context usage, WIP at limit
90
+ - **Red**: fix/hotfix branches, high context usage, WIP over limit
91
+ - **Magenta**: release branches, epic progress
52
92
 
53
93
  ## Configuration Steps
54
94
 
@@ -463,6 +503,46 @@ console.log('Updated metadata with statusline version 2.40.0');
463
503
  "
464
504
  ```
465
505
 
506
+ ## Component Configuration
507
+
508
+ Components can be toggled individually using the configure script:
509
+
510
+ ```bash
511
+ # List current component status
512
+ node scripts/agileflow-configure.js --components
513
+
514
+ # Show specific components
515
+ node scripts/agileflow-configure.js --show=agileflow,context,git
516
+
517
+ # Hide specific components
518
+ node scripts/agileflow-configure.js --hide=model,cost,wip
519
+
520
+ # Minimal statusline (just branding and context)
521
+ node scripts/agileflow-configure.js --hide=model,story,epic,wip,cost,git
522
+ ```
523
+
524
+ Components are stored in `docs/00-meta/agileflow-metadata.json`:
525
+
526
+ ```json
527
+ {
528
+ "features": {
529
+ "statusline": {
530
+ "enabled": true,
531
+ "components": {
532
+ "agileflow": true,
533
+ "model": true,
534
+ "story": true,
535
+ "epic": true,
536
+ "wip": true,
537
+ "context": true,
538
+ "cost": true,
539
+ "git": true
540
+ }
541
+ }
542
+ }
543
+ }
544
+ ```
545
+
466
546
  ## Rules
467
547
 
468
548
  - Always use AskUserQuestion for component selection
@@ -12,6 +12,14 @@ tools:
12
12
  model: haiku
13
13
  ---
14
14
 
15
+ ## STEP 0: Gather Context
16
+
17
+ ```bash
18
+ node scripts/obtain-context.js configuration-verify
19
+ ```
20
+
21
+ ---
22
+
15
23
  # Configuration Agent: Verification Helper
16
24
 
17
25
  Verify that configurations work and handle authentication for private repositories.
@@ -20,7 +28,21 @@ Verify that configurations work and handle authentication for private repositori
20
28
 
21
29
  ROLE: Configuration Verification Specialist
22
30
 
23
- 🔴 **AskUserQuestion Format**: NEVER ask users to "type" anything. Use proper options with XML invoke format. See `docs/02-practices/ask-user-question.md`.
31
+ 🔴 **AskUserQuestion Format**: NEVER ask users to "type" anything. Use proper options:
32
+ ```xml
33
+ <invoke name="AskUserQuestion">
34
+ <parameter name="questions">[{
35
+ "question": "Which configurations should we verify?",
36
+ "header": "Verify",
37
+ "multiSelect": true,
38
+ "options": [
39
+ {"label": "Hooks", "description": "Test hook scripts execute correctly"},
40
+ {"label": "Git remote", "description": "Verify git push/pull works"},
41
+ {"label": "CI workflow", "description": "Check GitHub Actions syntax"}
42
+ ]
43
+ }]</parameter>
44
+ </invoke>
45
+ ```
24
46
 
25
47
  OBJECTIVE
26
48
  Verify that configurations actually work by running test commands and checking results. Handle authentication tokens securely for private repositories.
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: haiku
6
6
  ---
7
7
 
8
+ ## STEP 0: Gather Context
9
+
10
+ ```bash
11
+ node scripts/obtain-context.js database
12
+ ```
13
+
14
+ ---
15
+
8
16
  <!-- COMPACT_SUMMARY_START -->
9
17
  ## Compact Summary
10
18
 
@@ -372,8 +380,6 @@ SLASH COMMANDS
372
380
 
373
381
  PLAN MODE FOR DATABASE CHANGES (CRITICAL)
374
382
 
375
- **Reference**: `@docs/02-practices/plan-mode.md`
376
-
377
383
  **Database changes are high-risk**. Always plan before schema modifications:
378
384
 
379
385
  | Situation | Action |
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: haiku
6
6
  ---
7
7
 
8
+ ## STEP 0: Gather Context
9
+
10
+ ```bash
11
+ node scripts/obtain-context.js datamigration
12
+ ```
13
+
14
+ ---
15
+
8
16
  <!-- COMPACT_SUMMARY_START -->
9
17
  # AG-DATAMIGRATION Quick Reference
10
18
 
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: haiku
6
6
  ---
7
7
 
8
+ ## STEP 0: Gather Context
9
+
10
+ ```bash
11
+ node scripts/obtain-context.js design
12
+ ```
13
+
14
+ ---
15
+
8
16
  <!-- COMPACT_SUMMARY_START -->
9
17
  COMPACT SUMMARY - AG-DESIGN (Design Specialist)
10
18
 
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep, WebFetch, WebSearch
5
5
  model: haiku
6
6
  ---
7
7
 
8
+ ## STEP 0: Gather Context
9
+
10
+ ```bash
11
+ node scripts/obtain-context.js devops
12
+ ```
13
+
14
+ ---
15
+
8
16
  You are AG-DEVOPS, the DevOps & Automation Agent for AgileFlow projects.
9
17
 
10
18
  <!-- COMPACT_SUMMARY_START -->
@@ -352,8 +360,6 @@ RESEARCH INTEGRATION
352
360
 
353
361
  PLAN MODE FOR INFRASTRUCTURE CHANGES
354
362
 
355
- **Reference**: `@docs/02-practices/plan-mode.md`
356
-
357
363
  **Infrastructure changes affect production**. Plan before deploying:
358
364
 
359
365
  | Situation | Action |
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: haiku
6
6
  ---
7
7
 
8
+ ## STEP 0: Gather Context
9
+
10
+ ```bash
11
+ node scripts/obtain-context.js documentation
12
+ ```
13
+
14
+ ---
15
+
8
16
  <!-- COMPACT_SUMMARY_START -->
9
17
  COMPACT SUMMARY - AG-DOCUMENTATION (Documentation Specialist)
10
18
 
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Glob, Grep
5
5
  model: sonnet
6
6
  ---
7
7
 
8
+ ## STEP 0: Gather Context
9
+
10
+ ```bash
11
+ node scripts/obtain-context.js epic-planner
12
+ ```
13
+
14
+ ---
15
+
8
16
  <!-- COMPACT_SUMMARY_START
9
17
  This section is extracted by the PreCompact hook to preserve essential context across conversation compacts.
10
18
  -->
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: haiku
6
6
  ---
7
7
 
8
+ ## STEP 0: Gather Context
9
+
10
+ ```bash
11
+ node scripts/obtain-context.js integrations
12
+ ```
13
+
14
+ ---
15
+
8
16
  <!-- COMPACT_SUMMARY_START -->
9
17
  COMPACT SUMMARY - AG-INTEGRATIONS (Integration Specialist)
10
18
 
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: sonnet
6
6
  ---
7
7
 
8
+ ## STEP 0: Gather Context
9
+
10
+ ```bash
11
+ node scripts/obtain-context.js mentor
12
+ ```
13
+
14
+ ---
15
+
8
16
  <!-- COMPACT_SUMMARY_START
9
17
  This section is extracted by the PreCompact hook to preserve essential context across conversation compacts.
10
18
  -->
@@ -68,7 +76,6 @@ This section is extracted by the PreCompact hook to preserve essential context a
68
76
  - `packages/cli/src/core/experts/mentor/self-improve.md` - Update expertise after work
69
77
 
70
78
  **Planning**:
71
- - `docs/02-practices/plan-mode.md` - When to use EnterPlanMode/ExitPlanMode
72
79
  - `docs/08-project/{roadmap,backlog,milestones,risks}.md` - Priorities
73
80
  - `docs/05-epics/*.md` - Existing epics
74
81
  - `docs/06-stories/**/US-*.md` - User stories
@@ -318,8 +325,6 @@ IMPLEMENTATION FLOW
318
325
 
319
326
  PLAN MODE FOR COMPLEX IMPLEMENTATIONS
320
327
 
321
- **Reference**: `@docs/02-practices/plan-mode.md`
322
-
323
328
  Before implementing, evaluate task complexity:
324
329
 
325
330
  | Situation | Action |
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: haiku
6
6
  ---
7
7
 
8
+ ## STEP 0: Gather Context
9
+
10
+ ```bash
11
+ node scripts/obtain-context.js mobile
12
+ ```
13
+
14
+ ---
15
+
8
16
  <!-- COMPACT_SUMMARY_START -->
9
17
  COMPACT SUMMARY - AG-MOBILE (Mobile Specialist)
10
18
 
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: haiku
6
6
  ---
7
7
 
8
+ ## STEP 0: Gather Context
9
+
10
+ ```bash
11
+ node scripts/obtain-context.js monitoring
12
+ ```
13
+
14
+ ---
15
+
8
16
  <!-- COMPACT_SUMMARY_START -->
9
17
  COMPACT SUMMARY - AG-MONITORING (Monitoring & Observability Specialist)
10
18
 
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep, Task, TaskOutput
5
5
  model: sonnet
6
6
  ---
7
7
 
8
+ ## STEP 0: Gather Context
9
+
10
+ ```bash
11
+ node scripts/obtain-context.js multi-expert
12
+ ```
13
+
14
+ ---
15
+
8
16
  <!-- COMPACT_SUMMARY_START
9
17
  This section is extracted by the PreCompact hook to preserve essential context across conversation compacts.
10
18
  -->
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: haiku
6
6
  ---
7
7
 
8
+ ## STEP 0: Gather Context
9
+
10
+ ```bash
11
+ node scripts/obtain-context.js performance
12
+ ```
13
+
14
+ ---
15
+
8
16
  <!-- COMPACT_SUMMARY_START -->
9
17
  COMPACT SUMMARY - AG-PERFORMANCE (Performance Specialist)
10
18
 
@@ -391,8 +399,6 @@ SLASH COMMANDS
391
399
 
392
400
  PLAN MODE FOR PERFORMANCE OPTIMIZATION
393
401
 
394
- **Reference**: `@docs/02-practices/plan-mode.md`
395
-
396
402
  **Performance work requires measurement first**. Always plan before optimizing:
397
403
 
398
404
  | Situation | Action |
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: haiku
6
6
  ---
7
7
 
8
+ ## STEP 0: Gather Context
9
+
10
+ ```bash
11
+ node scripts/obtain-context.js product
12
+ ```
13
+
14
+ ---
15
+
8
16
  <!-- COMPACT_SUMMARY_START -->
9
17
 
10
18
  WHO: AG-PRODUCT - Product Specialist
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: haiku
6
6
  ---
7
7
 
8
+ ## STEP 0: Gather Context
9
+
10
+ ```bash
11
+ node scripts/obtain-context.js qa
12
+ ```
13
+
14
+ ---
15
+
8
16
  <!-- COMPACT_SUMMARY_START -->
9
17
 
10
18
  WHO: AG-QA - Quality Assurance Specialist
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: haiku
6
6
  ---
7
7
 
8
+ ## STEP 0: Gather Context
9
+
10
+ ```bash
11
+ node scripts/obtain-context.js readme-updater
12
+ ```
13
+
14
+ ---
15
+
8
16
  <!-- COMPACT_SUMMARY_START -->
9
17
 
10
18
  WHO: AG-README-UPDATER - README & Documentation Specialist
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: haiku
6
6
  ---
7
7
 
8
+ ## STEP 0: Gather Context
9
+
10
+ ```bash
11
+ node scripts/obtain-context.js refactor
12
+ ```
13
+
14
+ ---
15
+
8
16
  <!-- COMPACT_SUMMARY_START -->
9
17
 
10
18
  WHO: AG-REFACTOR - Refactoring Specialist
@@ -454,8 +462,6 @@ SLASH COMMANDS
454
462
 
455
463
  PLAN MODE FOR REFACTORING (ALWAYS USE)
456
464
 
457
- **Reference**: `@docs/02-practices/plan-mode.md`
458
-
459
465
  **Refactoring REQUIRES planning**. Always enter plan mode before refactoring:
460
466
 
461
467
  | Situation | Action |
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Glob, Grep, WebFetch, WebSearch
5
5
  model: haiku
6
6
  ---
7
7
 
8
+ ## STEP 0: Gather Context
9
+
10
+ ```bash
11
+ node scripts/obtain-context.js research
12
+ ```
13
+
14
+ ---
15
+
8
16
  <!-- COMPACT_SUMMARY_START -->
9
17
 
10
18
  WHO: RESEARCH - Research Agent
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: haiku
6
6
  ---
7
7
 
8
+ ## STEP 0: Gather Context
9
+
10
+ ```bash
11
+ node scripts/obtain-context.js security
12
+ ```
13
+
14
+ ---
15
+
8
16
  You are AG-SECURITY, the Security & Vulnerability Specialist for AgileFlow projects.
9
17
 
10
18
  <!-- COMPACT_SUMMARY_START -->
@@ -373,8 +381,6 @@ AGENT COORDINATION
373
381
 
374
382
  PLAN MODE FOR SECURITY IMPLEMENTATIONS
375
383
 
376
- **Reference**: `@docs/02-practices/plan-mode.md`
377
-
378
384
  **Security changes require careful planning**. Always plan before implementing:
379
385
 
380
386
  | Situation | Action |
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: haiku
6
6
  ---
7
7
 
8
+ ## STEP 0: Gather Context
9
+
10
+ ```bash
11
+ node scripts/obtain-context.js testing
12
+ ```
13
+
14
+ ---
15
+
8
16
  You are AG-TESTING, the Testing Specialist for AgileFlow projects.
9
17
 
10
18
  <!-- COMPACT_SUMMARY_START -->
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: haiku
6
6
  ---
7
7
 
8
+ ## STEP 0: Gather Context
9
+
10
+ ```bash
11
+ node scripts/obtain-context.js ui
12
+ ```
13
+
14
+ ---
15
+
8
16
  <!-- COMPACT_SUMMARY_START -->
9
17
  **AG-UI COMPACT SUMMARY**
10
18
 
@@ -691,8 +699,6 @@ RESEARCH INTEGRATION
691
699
 
692
700
  PLAN MODE FOR COMPLEX UI WORK
693
701
 
694
- **Reference**: `@docs/02-practices/plan-mode.md`
695
-
696
702
  Before implementing, evaluate complexity:
697
703
 
698
704
  | Situation | Action |
@@ -7,21 +7,10 @@ argument-hint: NUMBER=<4-digit> TITLE=<text> CONTEXT=<text> DECISION=<text> CONS
7
7
 
8
8
  Create a new Architecture Decision Record.
9
9
 
10
- ## STEP 0: Activate Command
10
+ ## STEP 0: Gather Context
11
11
 
12
12
  ```bash
13
- node -e "
14
- const fs = require('fs');
15
- const path = 'docs/09-agents/session-state.json';
16
- if (fs.existsSync(path)) {
17
- const state = JSON.parse(fs.readFileSync(path, 'utf8'));
18
- const cmd = { name: 'adr', activated_at: new Date().toISOString(), state: {} };
19
- state.active_commands = state.active_commands || [];
20
- if (!state.active_commands.some(c => c.name === cmd.name)) state.active_commands.push(cmd);
21
- fs.writeFileSync(path, JSON.stringify(state, null, 2) + '\n');
22
- console.log('✅ adr command activated');
23
- }
24
- "
13
+ node scripts/obtain-context.js adr
25
14
  ```
26
15
 
27
16
  <!-- COMPACT_SUMMARY_START -->
@@ -7,21 +7,10 @@ argument-hint: AGENT_ID=<id> ROLE=<role> [TOOLS=<list>] [SCOPE=<dirs>]
7
7
 
8
8
  Onboard a new agent with profile and system prompt.
9
9
 
10
- ## STEP 0: Activate Command
10
+ ## STEP 0: Gather Context
11
11
 
12
12
  ```bash
13
- node -e "
14
- const fs = require('fs');
15
- const path = 'docs/09-agents/session-state.json';
16
- if (fs.existsSync(path)) {
17
- const state = JSON.parse(fs.readFileSync(path, 'utf8'));
18
- const cmd = { name: 'agent', activated_at: new Date().toISOString(), state: {} };
19
- state.active_commands = state.active_commands || [];
20
- if (!state.active_commands.some(c => c.name === cmd.name)) state.active_commands.push(cmd);
21
- fs.writeFileSync(path, JSON.stringify(state, null, 2) + '\n');
22
- console.log('✅ agent command activated');
23
- }
24
- "
13
+ node scripts/obtain-context.js agent
25
14
  ```
26
15
 
27
16
  <!-- COMPACT_SUMMARY_START -->