agileflow 2.45.0 → 2.47.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agileflow",
3
- "version": "2.45.0",
3
+ "version": "2.47.0",
4
4
  "description": "AI-driven agile development system for Claude Code, Cursor, Windsurf, and more",
5
5
  "keywords": [
6
6
  "agile",
@@ -46,14 +46,14 @@ Multi-Expert Orchestrator that spawns 3-5 domain experts in parallel to analyze
46
46
  - Recommended Actions - prioritized next steps
47
47
 
48
48
  ### Key Domain Mappings
49
- - database/schema/SQL → AgileFlow:database
50
- - API/endpoint/REST → AgileFlow:api
51
- - component/UI/frontend → AgileFlow:ui
52
- - test/spec/coverage → AgileFlow:testing
53
- - security/auth/JWT → AgileFlow:security
54
- - performance/cache/optimize → AgileFlow:performance
55
- - CI/workflow/pipeline → AgileFlow:ci
56
- - deploy/infrastructure/Docker → AgileFlow:devops
49
+ - database/schema/SQL → agileflow:database
50
+ - API/endpoint/REST → agileflow:api
51
+ - component/UI/frontend → agileflow:ui
52
+ - test/spec/coverage → agileflow:testing
53
+ - security/auth/JWT → agileflow:security
54
+ - performance/cache/optimize → agileflow:performance
55
+ - CI/workflow/pipeline → agileflow:ci
56
+ - deploy/infrastructure/Docker → agileflow:devops
57
57
 
58
58
  ### Key Files
59
59
  - Expert expertise definitions: `packages/cli/src/core/experts/{domain}/expertise.yaml`
@@ -95,14 +95,14 @@ DOMAIN DETECTION
95
95
 
96
96
  | Keywords | Expert to Spawn |
97
97
  |----------|-----------------|
98
- | database, schema, table, SQL, query | AgileFlow:database |
99
- | API, endpoint, REST, route, controller | AgileFlow:api |
100
- | component, UI, frontend, style | AgileFlow:ui |
101
- | test, spec, coverage, mock | AgileFlow:testing |
102
- | security, auth, JWT, vulnerability | AgileFlow:security |
103
- | performance, cache, optimize, slow | AgileFlow:performance |
104
- | CI, workflow, pipeline, build | AgileFlow:ci |
105
- | deploy, infrastructure, Docker | AgileFlow:devops |
98
+ | database, schema, table, SQL, query | agileflow:database |
99
+ | API, endpoint, REST, route, controller | agileflow:api |
100
+ | component, UI, frontend, style | agileflow:ui |
101
+ | test, spec, coverage, mock | agileflow:testing |
102
+ | security, auth, JWT, vulnerability | agileflow:security |
103
+ | performance, cache, optimize, slow | agileflow:performance |
104
+ | CI, workflow, pipeline, build | agileflow:ci |
105
+ | deploy, infrastructure, Docker | agileflow:devops |
106
106
 
107
107
  WORKFLOW
108
108
 
@@ -121,14 +121,14 @@ CRITICAL: Use run_in_background: true for ALL experts
121
121
  Task(
122
122
  description: "Security analysis",
123
123
  prompt: "FIRST: Read packages/cli/src/core/experts/security/expertise.yaml\n\nQUESTION: ...",
124
- subagent_type: "AgileFlow:security",
124
+ subagent_type: "agileflow:security",
125
125
  run_in_background: true
126
126
  )
127
127
 
128
128
  Task(
129
129
  description: "API analysis",
130
130
  prompt: "FIRST: Read packages/cli/src/core/experts/api/expertise.yaml\n\nQUESTION: ...",
131
- subagent_type: "AgileFlow:api",
131
+ subagent_type: "agileflow:api",
132
132
  run_in_background: true
133
133
  )
134
134
 
@@ -82,7 +82,7 @@ ACTIONS
82
82
  # Validate status.json after modification
83
83
  if ! jq empty docs/09-agents/status.json 2>/dev/null; then
84
84
  echo "❌ ERROR: status.json is now invalid JSON!"
85
- echo "Run: bash scripts/validate-json.sh docs/09-agents/status.json"
85
+ echo "Fix: Use jq to validate and repair the JSON structure"
86
86
  exit 1
87
87
  fi
88
88
  ```
@@ -436,7 +436,7 @@ AGENT SPAWNING - FOR COMPLEX TASKS
436
436
  Task(
437
437
  description: "Brief 3-5 word description",
438
438
  prompt: "Detailed task for the agent",
439
- subagent_type: "AgileFlow:<agent-name>"
439
+ subagent_type: "agileflow:<agent-name>"
440
440
  )
441
441
  ```
442
442
 
@@ -449,14 +449,14 @@ Use `run_in_background: true` when tasks can run in parallel:
449
449
  Task(
450
450
  description: "Create API endpoint",
451
451
  prompt: "Implement /api/users endpoint with CRUD operations",
452
- subagent_type: "AgileFlow:api",
452
+ subagent_type: "agileflow:api",
453
453
  run_in_background: true
454
454
  )
455
455
 
456
456
  Task(
457
457
  description: "Create user form component",
458
458
  prompt: "Build UserForm component with validation",
459
- subagent_type: "AgileFlow:ui",
459
+ subagent_type: "agileflow:ui",
460
460
  run_in_background: true
461
461
  )
462
462
 
@@ -475,8 +475,8 @@ Task(
475
475
  User: "Add user profile feature with API and UI"
476
476
 
477
477
  Babysit thinking:
478
- - This has API work → spawn AgileFlow:api
479
- - This has UI work → spawn AgileFlow:ui
478
+ - This has API work → spawn agileflow:api
479
+ - This has UI work → spawn agileflow:ui
480
480
  - These are independent → run in parallel!
481
481
 
482
482
  Babysit action:
@@ -492,17 +492,17 @@ Babysit action:
492
492
 
493
493
  | Complex Task Type | Agent to Spawn | Async? |
494
494
  |-------------------|----------------|--------|
495
- | Multi-file UI feature | `AgileFlow:ui` | Yes if API also needed |
496
- | New API endpoints | `AgileFlow:api` | Yes if UI also needed |
497
- | Schema design/migrations | `AgileFlow:database` | Usually yes |
498
- | Test suite creation | `AgileFlow:testing` | Yes alongside impl |
499
- | CI/CD setup | `AgileFlow:ci` | Yes |
500
- | Security audit/impl | `AgileFlow:security` | Yes |
501
- | Performance optimization | `AgileFlow:performance` | Yes |
502
- | Large documentation | `AgileFlow:documentation` | Yes |
503
- | Technical research | `AgileFlow:research` | Yes |
504
- | Epic/story breakdown | `AgileFlow:epic-planner` | No (need result) |
505
- | Architecture decisions | `AgileFlow:adr-writer` | Yes |
495
+ | Multi-file UI feature | `agileflow:ui` | Yes if API also needed |
496
+ | New API endpoints | `agileflow:api` | Yes if UI also needed |
497
+ | Schema design/migrations | `agileflow:database` | Usually yes |
498
+ | Test suite creation | `agileflow:testing` | Yes alongside impl |
499
+ | CI/CD setup | `agileflow:ci` | Yes |
500
+ | Security audit/impl | `agileflow:security` | Yes |
501
+ | Performance optimization | `agileflow:performance` | Yes |
502
+ | Large documentation | `agileflow:documentation` | Yes |
503
+ | Technical research | `agileflow:research` | Yes |
504
+ | Epic/story breakdown | `agileflow:epic-planner` | No (need result) |
505
+ | Architecture decisions | `agileflow:adr-writer` | Yes |
506
506
 
507
507
  **PARALLEL PATTERNS** (for complex multi-domain tasks):
508
508
  - `api` + `ui` → Full-stack feature in parallel
@@ -537,29 +537,29 @@ When analyzing the user's request, identify keywords and spawn the matching expe
537
537
 
538
538
  | Keywords Detected | Expert to Spawn | Reason |
539
539
  |-------------------|-----------------|--------|
540
- | database, schema, migration, SQL, query, table, model | `AgileFlow:database` | Database schema/query work |
541
- | API, endpoint, REST, GraphQL, route, controller | `AgileFlow:api` | Backend API work |
542
- | component, UI, frontend, button, form, style, CSS | `AgileFlow:ui` | Frontend/UI work |
543
- | test, spec, coverage, mock, fixture, assertion | `AgileFlow:testing` | Test implementation |
544
- | CI, workflow, GitHub Actions, pipeline, build | `AgileFlow:ci` | CI/CD configuration |
545
- | deploy, infrastructure, Docker, Kubernetes, env | `AgileFlow:devops` | DevOps/deployment |
546
- | security, auth, JWT, OAuth, vulnerability, XSS | `AgileFlow:security` | Security implementation |
547
- | performance, optimize, cache, latency, profiling | `AgileFlow:performance` | Performance optimization |
548
- | accessibility, ARIA, a11y, screen reader, WCAG | `AgileFlow:accessibility` | Accessibility work |
549
- | docs, README, documentation, JSDoc, comment | `AgileFlow:documentation` | Documentation work |
550
- | refactor, cleanup, technical debt, code smell | `AgileFlow:refactor` | Code refactoring |
551
- | mobile, React Native, Flutter, iOS, Android | `AgileFlow:mobile` | Mobile development |
552
- | webhook, integration, third-party, API client | `AgileFlow:integrations` | Third-party integrations |
553
- | analytics, tracking, metrics, event, dashboard | `AgileFlow:analytics` | Analytics implementation |
554
- | logging, monitoring, alerting, observability | `AgileFlow:monitoring` | Monitoring/observability |
555
- | compliance, GDPR, HIPAA, audit, privacy | `AgileFlow:compliance` | Compliance work |
556
- | data migration, ETL, transform, import, export | `AgileFlow:datamigration` | Data migration |
557
- | design system, tokens, theme, Figma, mockup | `AgileFlow:design` | Design system work |
558
- | product, requirements, user story, AC, acceptance | `AgileFlow:product` | Product/requirements |
559
- | QA, quality, regression, test plan, release | `AgileFlow:qa` | QA/quality assurance |
560
- | ADR, architecture decision, trade-off | `AgileFlow:adr-writer` | Architecture decisions |
561
- | research, investigate, best practices, docs | `AgileFlow:research` | Technical research |
562
- | epic, story, breakdown, planning, estimate | `AgileFlow:epic-planner` | Epic/story planning |
540
+ | database, schema, migration, SQL, query, table, model | `agileflow:database` | Database schema/query work |
541
+ | API, endpoint, REST, GraphQL, route, controller | `agileflow:api` | Backend API work |
542
+ | component, UI, frontend, button, form, style, CSS | `agileflow:ui` | Frontend/UI work |
543
+ | test, spec, coverage, mock, fixture, assertion | `agileflow:testing` | Test implementation |
544
+ | CI, workflow, GitHub Actions, pipeline, build | `agileflow:ci` | CI/CD configuration |
545
+ | deploy, infrastructure, Docker, Kubernetes, env | `agileflow:devops` | DevOps/deployment |
546
+ | security, auth, JWT, OAuth, vulnerability, XSS | `agileflow:security` | Security implementation |
547
+ | performance, optimize, cache, latency, profiling | `agileflow:performance` | Performance optimization |
548
+ | accessibility, ARIA, a11y, screen reader, WCAG | `agileflow:accessibility` | Accessibility work |
549
+ | docs, README, documentation, JSDoc, comment | `agileflow:documentation` | Documentation work |
550
+ | refactor, cleanup, technical debt, code smell | `agileflow:refactor` | Code refactoring |
551
+ | mobile, React Native, Flutter, iOS, Android | `agileflow:mobile` | Mobile development |
552
+ | webhook, integration, third-party, API client | `agileflow:integrations` | Third-party integrations |
553
+ | analytics, tracking, metrics, event, dashboard | `agileflow:analytics` | Analytics implementation |
554
+ | logging, monitoring, alerting, observability | `agileflow:monitoring` | Monitoring/observability |
555
+ | compliance, GDPR, HIPAA, audit, privacy | `agileflow:compliance` | Compliance work |
556
+ | data migration, ETL, transform, import, export | `agileflow:datamigration` | Data migration |
557
+ | design system, tokens, theme, Figma, mockup | `agileflow:design` | Design system work |
558
+ | product, requirements, user story, AC, acceptance | `agileflow:product` | Product/requirements |
559
+ | QA, quality, regression, test plan, release | `agileflow:qa` | QA/quality assurance |
560
+ | ADR, architecture decision, trade-off | `agileflow:adr-writer` | Architecture decisions |
561
+ | research, investigate, best practices, docs | `agileflow:research` | Technical research |
562
+ | epic, story, breakdown, planning, estimate | `agileflow:epic-planner` | Epic/story planning |
563
563
 
564
564
  **AUTO-SPAWN WORKFLOW**:
565
565
 
@@ -582,7 +582,7 @@ Babysit Response:
582
582
  Task(
583
583
  description: "Add sessions table",
584
584
  prompt: "FIRST: Read your expertise file at packages/cli/src/core/experts/database/expertise.yaml to understand current schema patterns. Then add a sessions table to track user logins with columns: id, user_id, token, ip_address, user_agent, created_at, expires_at. Follow existing schema conventions.",
585
- subagent_type: "AgileFlow:database"
585
+ subagent_type: "agileflow:database"
586
586
  )
587
587
  ```
588
588
 
@@ -242,14 +242,14 @@ For features needing extra user input, spawn specialized agents:
242
242
  ```javascript
243
243
  // CI/CD - needs provider and commands
244
244
  Task({
245
- subagent_type: "AgileFlow:agents:configuration:ci",
245
+ subagent_type: "agileflow:configuration:ci",
246
246
  description: "Configure CI/CD",
247
247
  prompt: "Set up CI/CD workflow. Ask for provider (GitHub Actions, GitLab CI, CircleCI) and commands."
248
248
  })
249
249
 
250
250
  // Git config - needs remote URL
251
251
  Task({
252
- subagent_type: "AgileFlow:agents:configuration:git-config",
252
+ subagent_type: "agileflow:configuration:git-config",
253
253
  description: "Configure git",
254
254
  prompt: "Set up git remote. Ask for URL."
255
255
  })
@@ -4,14 +4,6 @@ description: System health diagnostics
4
4
 
5
5
  # diagnose
6
6
 
7
- <!-- STEP 0: ACTIVATION -->
8
- <function_calls>
9
- <invoke name="Bash">
10
- <parameter name="command">node /home/coder/AgileFlow/scripts/activate-command.js diagnose</parameter>
11
- <parameter name="description">Activate diagnose command and show compact summary</parameter>
12
- </invoke>
13
- </function_calls>
14
-
15
7
  Run comprehensive AgileFlow system health checks to identify potential issues before they cause failures.
16
8
 
17
9
  ## Prompt
@@ -250,9 +242,9 @@ else
250
242
  echo "⚠️ Found $JSON_ERRORS issue(s) that need attention."
251
243
  echo ""
252
244
  echo "Next steps:"
253
- echo "1. Fix JSON validation errors using: bash scripts/validate-json.sh <file>"
245
+ echo "1. Fix JSON validation errors using: jq empty <file> to check, then repair manually"
254
246
  echo "2. Add missing files to .gitignore if needed"
255
- echo "3. Run archival if status.json is too large: bash scripts/archive-completed-stories.sh 7"
247
+ echo "3. Run archival if status.json is too large: bash scripts/archive-completed-stories.sh"
256
248
  echo "4. Re-run diagnostics after fixes: /agileflow:diagnose"
257
249
  exit 1
258
250
  fi
@@ -21,7 +21,7 @@ node scripts/obtain-context.js help
21
21
  **PURPOSE**: Immediately load full context before executing any logic.
22
22
 
23
23
  **ACTIONS**:
24
- 1. Read `/home/coder/AgileFlow/packages/cli/src/core/commands/help.md` (this file) in its entirety
24
+ 1. Read this command file (`.agileflow/commands/help.md`) in its entirety
25
25
  2. Absorb all instructions, rules, and examples
26
26
  3. Proceed to execution phase with complete context
27
27
 
@@ -79,16 +79,16 @@ Analyze the user's question/task to identify relevant domains.
79
79
 
80
80
  | Domain | Keywords | Expert |
81
81
  |--------|----------|--------|
82
- | Database | schema, table, query, migration, SQL, model | AgileFlow:database |
83
- | API | endpoint, REST, GraphQL, route, controller, backend | AgileFlow:api |
84
- | UI | component, frontend, button, form, style, CSS | AgileFlow:ui |
85
- | Testing | test, spec, coverage, mock, assertion | AgileFlow:testing |
86
- | Security | auth, JWT, OAuth, vulnerability, XSS, CSRF | AgileFlow:security |
87
- | Performance | optimize, cache, latency, profiling, slow | AgileFlow:performance |
88
- | CI/CD | workflow, pipeline, build, deploy, GitHub Actions | AgileFlow:ci |
89
- | DevOps | infrastructure, Docker, Kubernetes, env | AgileFlow:devops |
90
- | Accessibility | ARIA, a11y, screen reader, WCAG | AgileFlow:accessibility |
91
- | Architecture | design, pattern, structure, decision | AgileFlow:adr-writer |
82
+ | Database | schema, table, query, migration, SQL, model | agileflow:database |
83
+ | API | endpoint, REST, GraphQL, route, controller, backend | agileflow:api |
84
+ | UI | component, frontend, button, form, style, CSS | agileflow:ui |
85
+ | Testing | test, spec, coverage, mock, assertion | agileflow:testing |
86
+ | Security | auth, JWT, OAuth, vulnerability, XSS, CSRF | agileflow:security |
87
+ | Performance | optimize, cache, latency, profiling, slow | agileflow:performance |
88
+ | CI/CD | workflow, pipeline, build, deploy, GitHub Actions | agileflow:ci |
89
+ | DevOps | infrastructure, Docker, Kubernetes, env | agileflow:devops |
90
+ | Accessibility | ARIA, a11y, screen reader, WCAG | agileflow:accessibility |
91
+ | Architecture | design, pattern, structure, decision | agileflow:adr-writer |
92
92
 
93
93
  **Selection Rules**:
94
94
  - Select 3-5 experts maximum (balance coverage vs. overhead)
@@ -116,21 +116,21 @@ Analyze this from your {domain1} perspective:
116
116
  4. Confidence level (High/Medium/Low) and why?
117
117
 
118
118
  Be specific with file paths and code references.",
119
- subagent_type: "AgileFlow:{domain1}",
119
+ subagent_type: "agileflow:{domain1}",
120
120
  run_in_background: true
121
121
  )
122
122
 
123
123
  Task(
124
124
  description: "[Domain 2] analysis",
125
125
  prompt: "...",
126
- subagent_type: "AgileFlow:{domain2}",
126
+ subagent_type: "agileflow:{domain2}",
127
127
  run_in_background: true
128
128
  )
129
129
 
130
130
  Task(
131
131
  description: "[Domain 3] analysis",
132
132
  prompt: "...",
133
- subagent_type: "AgileFlow:{domain3}",
133
+ subagent_type: "agileflow:{domain3}",
134
134
  run_in_background: true
135
135
  )
136
136
  ```
@@ -220,10 +220,10 @@ Analyze all expert responses and synthesize:
220
220
 
221
221
  **Step 2 - Deploy Experts**:
222
222
  ```
223
- Task(subagent_type: "AgileFlow:security", prompt: "Analyze auth security...", run_in_background: true)
224
- Task(subagent_type: "AgileFlow:api", prompt: "Analyze auth API implementation...", run_in_background: true)
225
- Task(subagent_type: "AgileFlow:testing", prompt: "Analyze auth test coverage...", run_in_background: true)
226
- Task(subagent_type: "AgileFlow:database", prompt: "Analyze credential storage...", run_in_background: true)
223
+ Task(subagent_type: "agileflow:security", prompt: "Analyze auth security...", run_in_background: true)
224
+ Task(subagent_type: "agileflow:api", prompt: "Analyze auth API implementation...", run_in_background: true)
225
+ Task(subagent_type: "agileflow:testing", prompt: "Analyze auth test coverage...", run_in_background: true)
226
+ Task(subagent_type: "agileflow:database", prompt: "Analyze credential storage...", run_in_background: true)
227
227
  ```
228
228
 
229
229
  **Step 3 - Collect & Synthesize**:
@@ -21,7 +21,7 @@ node scripts/obtain-context.js packages
21
21
  **PURPOSE**: Immediately load full context before executing any logic.
22
22
 
23
23
  **ACTIONS**:
24
- 1. Read `/home/coder/AgileFlow/packages/cli/src/core/commands/packages.md` (this file) in its entirety
24
+ 1. Read this command file (`.agileflow/commands/packages.md`) in its entirety
25
25
  2. Absorb all instructions, rules, and examples
26
26
  3. Proceed to execution phase with complete context
27
27
 
@@ -22,7 +22,7 @@ node scripts/obtain-context.js readme-sync
22
22
  **PURPOSE**: Immediately load full context before executing any logic.
23
23
 
24
24
  **ACTIONS**:
25
- 1. Read `/home/coder/AgileFlow/packages/cli/src/core/commands/readme-sync.md` (this file) in its entirety
25
+ 1. Read this command file (`.agileflow/commands/readme-sync.md`) in its entirety
26
26
  2. Absorb all instructions, rules, and examples
27
27
  3. Proceed to execution phase with complete context
28
28
 
@@ -78,7 +78,7 @@ Task(
78
78
  4. Build new '## Contents' section
79
79
  5. Show diff and ask for confirmation
80
80
  6. Update if approved",
81
- subagent_type: "AgileFlow:readme-updater"
81
+ subagent_type: "agileflow:readme-updater"
82
82
  )
83
83
  ```
84
84
 
@@ -21,7 +21,7 @@ node scripts/obtain-context.js research
21
21
  **PURPOSE**: Immediately load full context before executing any logic.
22
22
 
23
23
  **ACTIONS**:
24
- 1. Read `/home/coder/AgileFlow/packages/cli/src/core/commands/research.md` (this file) in its entirety
24
+ 1. Read this command file (`.agileflow/commands/research.md`) in its entirety
25
25
  2. Absorb all instructions, rules, and examples
26
26
  3. Proceed to execution phase with complete context
27
27
 
@@ -24,7 +24,7 @@ This gathers git status, stories/epics, session state, and registers for PreComp
24
24
  **PURPOSE**: Immediately load full context before executing any logic.
25
25
 
26
26
  **ACTIONS**:
27
- 1. Read `/home/coder/AgileFlow/packages/cli/src/core/commands/status.md` (this file) in its entirety
27
+ 1. Read this command file (`.agileflow/commands/status.md`) in its entirety
28
28
  2. Absorb all instructions, rules, and examples
29
29
  3. Proceed to execution phase with complete context
30
30
 
@@ -48,7 +48,7 @@ This gathers git status, stories/epics, session state, and registers for PreComp
48
48
  - **Backup**: Restore from docs/09-agents/status.json.backup if validation fails
49
49
  - **Output**: Diff-first, then YES/NO confirmation
50
50
  - **Critical**: User text automatically escaped by jq
51
- - **Related**: docs/09-agents/status.json, bus/log.jsonl, scripts/validate-json.sh
51
+ - **Related**: docs/09-agents/status.json, bus/log.jsonl
52
52
  <!-- COMPACT_SUMMARY_END -->
53
53
 
54
54
  ---
@@ -69,7 +69,7 @@ ACTIONS
69
69
  # Validate status.json after modification
70
70
  if ! jq empty docs/09-agents/status.json 2>/dev/null; then
71
71
  echo "❌ ERROR: status.json is now invalid JSON after update!"
72
- echo "Run: bash scripts/validate-json.sh docs/09-agents/status.json"
72
+ echo "Fix: Use jq to validate and repair the JSON structure"
73
73
  exit 1
74
74
  fi
75
75
  ```
@@ -22,7 +22,7 @@ node scripts/obtain-context.js story-validate
22
22
  **PURPOSE**: Immediately load full context before executing any logic.
23
23
 
24
24
  **ACTIONS**:
25
- 1. Read `/home/coder/AgileFlow/packages/cli/src/core/commands/story-validate.md` (this file) in its entirety
25
+ 1. Read this command file (`.agileflow/commands/story-validate.md`) in its entirety
26
26
  2. Absorb all instructions, rules, and examples
27
27
  3. Proceed to execution phase with complete context
28
28
 
@@ -155,10 +155,10 @@ EXECUTION
155
155
  Run the validation script:
156
156
  ```bash
157
157
  # All domains
158
- bash .agileflow/scripts/validate-expertise.sh
158
+ bash scripts/validate-expertise.sh
159
159
 
160
160
  # Specific domain
161
- bash .agileflow/scripts/validate-expertise.sh database
161
+ bash scripts/validate-expertise.sh database
162
162
  ```
163
163
 
164
164
  Or manually check using Read tool on expertise files in:
@@ -101,7 +101,7 @@ class ClaudeCodeSetup extends BaseIdeSetup {
101
101
  true // Inject dynamic content for top-level commands
102
102
  );
103
103
 
104
- // Also install agents (they're in a separate directory in agileflowDir)
104
+ // Also install agents as slash commands (.claude/commands/agileflow/agents/)
105
105
  const agentsSource = path.join(agileflowDir, 'agents');
106
106
  const agentsTargetDir = path.join(agileflowCommandsDir, 'agents');
107
107
  const agentResult = await this.installCommandsRecursive(
@@ -111,6 +111,17 @@ class ClaudeCodeSetup extends BaseIdeSetup {
111
111
  false // No dynamic content for agents
112
112
  );
113
113
 
114
+ // ALSO install agents as spawnable subagents (.claude/agents/agileflow/)
115
+ // This allows Task tool to spawn them with subagent_type: "agileflow:ui"
116
+ const spawnableAgentsDir = path.join(claudeDir, 'agents', 'agileflow');
117
+ await this.installCommandsRecursive(
118
+ agentsSource,
119
+ spawnableAgentsDir,
120
+ agileflowDir,
121
+ false
122
+ );
123
+ console.log(chalk.dim(` - Spawnable agents: .claude/agents/agileflow/`));
124
+
114
125
  const totalCommands = commandResult.commands + agentResult.commands;
115
126
  const totalSubdirs = commandResult.subdirs + (agentResult.commands > 0 ? 1 : 0) + agentResult.subdirs;
116
127