agileflow 2.46.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 +1 -1
- package/src/core/agents/multi-expert.md +18 -18
- package/src/core/commands/babysit.md +40 -40
- package/src/core/commands/configure.md +2 -2
- package/src/core/commands/multi-expert.md +17 -17
- package/src/core/commands/readme-sync.md +1 -1
- package/tools/cli/installers/ide/claude-code.js +12 -1
package/package.json
CHANGED
|
@@ -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 →
|
|
50
|
-
- API/endpoint/REST →
|
|
51
|
-
- component/UI/frontend →
|
|
52
|
-
- test/spec/coverage →
|
|
53
|
-
- security/auth/JWT →
|
|
54
|
-
- performance/cache/optimize →
|
|
55
|
-
- CI/workflow/pipeline →
|
|
56
|
-
- deploy/infrastructure/Docker →
|
|
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 |
|
|
99
|
-
| API, endpoint, REST, route, controller |
|
|
100
|
-
| component, UI, frontend, style |
|
|
101
|
-
| test, spec, coverage, mock |
|
|
102
|
-
| security, auth, JWT, vulnerability |
|
|
103
|
-
| performance, cache, optimize, slow |
|
|
104
|
-
| CI, workflow, pipeline, build |
|
|
105
|
-
| deploy, infrastructure, Docker |
|
|
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: "
|
|
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: "
|
|
131
|
+
subagent_type: "agileflow:api",
|
|
132
132
|
run_in_background: true
|
|
133
133
|
)
|
|
134
134
|
|
|
@@ -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: "
|
|
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: "
|
|
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: "
|
|
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
|
|
479
|
-
- This has UI work → spawn
|
|
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 | `
|
|
496
|
-
| New API endpoints | `
|
|
497
|
-
| Schema design/migrations | `
|
|
498
|
-
| Test suite creation | `
|
|
499
|
-
| CI/CD setup | `
|
|
500
|
-
| Security audit/impl | `
|
|
501
|
-
| Performance optimization | `
|
|
502
|
-
| Large documentation | `
|
|
503
|
-
| Technical research | `
|
|
504
|
-
| Epic/story breakdown | `
|
|
505
|
-
| Architecture decisions | `
|
|
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 | `
|
|
541
|
-
| API, endpoint, REST, GraphQL, route, controller | `
|
|
542
|
-
| component, UI, frontend, button, form, style, CSS | `
|
|
543
|
-
| test, spec, coverage, mock, fixture, assertion | `
|
|
544
|
-
| CI, workflow, GitHub Actions, pipeline, build | `
|
|
545
|
-
| deploy, infrastructure, Docker, Kubernetes, env | `
|
|
546
|
-
| security, auth, JWT, OAuth, vulnerability, XSS | `
|
|
547
|
-
| performance, optimize, cache, latency, profiling | `
|
|
548
|
-
| accessibility, ARIA, a11y, screen reader, WCAG | `
|
|
549
|
-
| docs, README, documentation, JSDoc, comment | `
|
|
550
|
-
| refactor, cleanup, technical debt, code smell | `
|
|
551
|
-
| mobile, React Native, Flutter, iOS, Android | `
|
|
552
|
-
| webhook, integration, third-party, API client | `
|
|
553
|
-
| analytics, tracking, metrics, event, dashboard | `
|
|
554
|
-
| logging, monitoring, alerting, observability | `
|
|
555
|
-
| compliance, GDPR, HIPAA, audit, privacy | `
|
|
556
|
-
| data migration, ETL, transform, import, export | `
|
|
557
|
-
| design system, tokens, theme, Figma, mockup | `
|
|
558
|
-
| product, requirements, user story, AC, acceptance | `
|
|
559
|
-
| QA, quality, regression, test plan, release | `
|
|
560
|
-
| ADR, architecture decision, trade-off | `
|
|
561
|
-
| research, investigate, best practices, docs | `
|
|
562
|
-
| epic, story, breakdown, planning, estimate | `
|
|
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: "
|
|
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: "
|
|
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: "
|
|
252
|
+
subagent_type: "agileflow:configuration:git-config",
|
|
253
253
|
description: "Configure git",
|
|
254
254
|
prompt: "Set up git remote. Ask for URL."
|
|
255
255
|
})
|
|
@@ -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 |
|
|
83
|
-
| API | endpoint, REST, GraphQL, route, controller, backend |
|
|
84
|
-
| UI | component, frontend, button, form, style, CSS |
|
|
85
|
-
| Testing | test, spec, coverage, mock, assertion |
|
|
86
|
-
| Security | auth, JWT, OAuth, vulnerability, XSS, CSRF |
|
|
87
|
-
| Performance | optimize, cache, latency, profiling, slow |
|
|
88
|
-
| CI/CD | workflow, pipeline, build, deploy, GitHub Actions |
|
|
89
|
-
| DevOps | infrastructure, Docker, Kubernetes, env |
|
|
90
|
-
| Accessibility | ARIA, a11y, screen reader, WCAG |
|
|
91
|
-
| Architecture | design, pattern, structure, decision |
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
224
|
-
Task(subagent_type: "
|
|
225
|
-
Task(subagent_type: "
|
|
226
|
-
Task(subagent_type: "
|
|
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**:
|
|
@@ -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
|
|
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
|
|