agileflow 3.2.1 → 3.4.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/CHANGELOG.md +10 -0
- package/README.md +6 -6
- package/lib/feature-flags.js +32 -4
- package/lib/skill-loader.js +0 -1
- package/package.json +1 -1
- package/scripts/agileflow-statusline.sh +81 -0
- package/scripts/babysit-clear-restore.js +154 -0
- package/scripts/claude-tmux.sh +120 -24
- package/scripts/claude-watchdog.sh +225 -0
- package/scripts/generators/agent-registry.js +14 -1
- package/scripts/generators/inject-babysit.js +22 -9
- package/scripts/generators/inject-help.js +19 -9
- package/scripts/lib/README-portable-tasks.md +424 -0
- package/scripts/lib/audit-cleanup.js +250 -0
- package/scripts/lib/audit-registry.js +248 -0
- package/scripts/lib/configure-detect.js +20 -0
- package/scripts/lib/feature-catalog.js +13 -2
- package/scripts/lib/gate-enforcer.js +295 -0
- package/scripts/lib/model-profiles.js +98 -0
- package/scripts/lib/signal-detectors.js +1 -1
- package/scripts/lib/skill-catalog.js +557 -0
- package/scripts/lib/skill-recommender.js +311 -0
- package/scripts/lib/tdd-phase-manager.js +455 -0
- package/scripts/lib/team-events.js +76 -8
- package/scripts/lib/tmux-group-colors.js +113 -0
- package/scripts/messaging-bridge.js +209 -1
- package/scripts/spawn-audit-sessions.js +549 -0
- package/scripts/team-manager.js +37 -16
- package/scripts/tmux-close-windows.sh +180 -0
- package/scripts/tmux-restore-window.sh +67 -0
- package/scripts/tmux-save-closed-window.sh +35 -0
- package/src/core/agents/ads-audit-budget.md +181 -0
- package/src/core/agents/ads-audit-compliance.md +169 -0
- package/src/core/agents/ads-audit-creative.md +164 -0
- package/src/core/agents/ads-audit-google.md +226 -0
- package/src/core/agents/ads-audit-meta.md +183 -0
- package/src/core/agents/ads-audit-tracking.md +197 -0
- package/src/core/agents/ads-consensus.md +322 -0
- package/src/core/agents/brainstorm-analyzer-features.md +169 -0
- package/src/core/agents/brainstorm-analyzer-growth.md +161 -0
- package/src/core/agents/brainstorm-analyzer-integration.md +172 -0
- package/src/core/agents/brainstorm-analyzer-market.md +147 -0
- package/src/core/agents/brainstorm-analyzer-ux.md +167 -0
- package/src/core/agents/brainstorm-consensus.md +237 -0
- package/src/core/agents/completeness-analyzer-api.md +190 -0
- package/src/core/agents/completeness-analyzer-conditional.md +201 -0
- package/src/core/agents/completeness-analyzer-handlers.md +159 -0
- package/src/core/agents/completeness-analyzer-imports.md +159 -0
- package/src/core/agents/completeness-analyzer-routes.md +182 -0
- package/src/core/agents/completeness-analyzer-state.md +188 -0
- package/src/core/agents/completeness-analyzer-stubs.md +198 -0
- package/src/core/agents/completeness-consensus.md +286 -0
- package/src/core/agents/perf-consensus.md +2 -2
- package/src/core/agents/security-consensus.md +2 -2
- package/src/core/agents/seo-analyzer-content.md +167 -0
- package/src/core/agents/seo-analyzer-images.md +187 -0
- package/src/core/agents/seo-analyzer-performance.md +206 -0
- package/src/core/agents/seo-analyzer-schema.md +176 -0
- package/src/core/agents/seo-analyzer-sitemap.md +172 -0
- package/src/core/agents/seo-analyzer-technical.md +144 -0
- package/src/core/agents/seo-consensus.md +289 -0
- package/src/core/agents/test-consensus.md +2 -2
- package/src/core/commands/ads/audit.md +375 -0
- package/src/core/commands/ads/budget.md +97 -0
- package/src/core/commands/ads/competitor.md +112 -0
- package/src/core/commands/ads/creative.md +85 -0
- package/src/core/commands/ads/google.md +112 -0
- package/src/core/commands/ads/landing.md +119 -0
- package/src/core/commands/ads/linkedin.md +112 -0
- package/src/core/commands/ads/meta.md +91 -0
- package/src/core/commands/ads/microsoft.md +115 -0
- package/src/core/commands/ads/plan.md +321 -0
- package/src/core/commands/ads/tiktok.md +129 -0
- package/src/core/commands/ads/youtube.md +124 -0
- package/src/core/commands/ads.md +128 -0
- package/src/core/commands/babysit.md +250 -1344
- package/src/core/commands/code/completeness.md +466 -0
- package/src/core/commands/{audit → code}/legal.md +26 -16
- package/src/core/commands/{audit → code}/logic.md +27 -16
- package/src/core/commands/{audit → code}/performance.md +30 -20
- package/src/core/commands/{audit → code}/security.md +32 -19
- package/src/core/commands/{audit → code}/test.md +30 -20
- package/src/core/commands/{discovery → ideate}/brief.md +12 -12
- package/src/core/commands/{discovery/new.md → ideate/discover.md} +13 -13
- package/src/core/commands/ideate/features.md +435 -0
- package/src/core/commands/seo/audit.md +373 -0
- package/src/core/commands/seo/competitor.md +174 -0
- package/src/core/commands/seo/content.md +107 -0
- package/src/core/commands/seo/geo.md +229 -0
- package/src/core/commands/seo/hreflang.md +140 -0
- package/src/core/commands/seo/images.md +96 -0
- package/src/core/commands/seo/page.md +198 -0
- package/src/core/commands/seo/plan.md +163 -0
- package/src/core/commands/seo/programmatic.md +131 -0
- package/src/core/commands/seo/references/cwv-thresholds.md +64 -0
- package/src/core/commands/seo/references/eeat-framework.md +110 -0
- package/src/core/commands/seo/references/quality-gates.md +91 -0
- package/src/core/commands/seo/references/schema-types.md +102 -0
- package/src/core/commands/seo/schema.md +183 -0
- package/src/core/commands/seo/sitemap.md +97 -0
- package/src/core/commands/seo/technical.md +100 -0
- package/src/core/commands/seo.md +107 -0
- package/src/core/commands/skill/list.md +68 -212
- package/src/core/commands/skill/recommend.md +216 -0
- package/src/core/commands/tdd-next.md +238 -0
- package/src/core/commands/tdd.md +210 -0
- package/src/core/experts/_core-expertise.yaml +105 -0
- package/src/core/experts/analytics/expertise.yaml +5 -99
- package/src/core/experts/codebase-query/expertise.yaml +3 -72
- package/src/core/experts/compliance/expertise.yaml +6 -72
- package/src/core/experts/database/expertise.yaml +9 -52
- package/src/core/experts/documentation/expertise.yaml +7 -140
- package/src/core/experts/integrations/expertise.yaml +7 -127
- package/src/core/experts/mentor/expertise.yaml +8 -35
- package/src/core/experts/monitoring/expertise.yaml +7 -49
- package/src/core/experts/performance/expertise.yaml +1 -26
- package/src/core/experts/security/expertise.yaml +9 -34
- package/src/core/experts/ui/expertise.yaml +6 -36
- package/src/core/knowledge/ads/ad-audit-checklist-scoring.md +424 -0
- package/src/core/knowledge/ads/ad-optimization-logic.md +590 -0
- package/src/core/knowledge/ads/ad-technical-specifications.md +385 -0
- package/src/core/knowledge/ads/definitive-advertising-reference-2026.md +506 -0
- package/src/core/knowledge/ads/paid-advertising-research-2026.md +445 -0
- package/src/core/templates/agileflow-metadata.json +15 -1
- package/tools/cli/installers/ide/_base-ide.js +42 -5
- package/tools/cli/installers/ide/claude-code.js +13 -4
- package/tools/cli/lib/content-injector.js +160 -12
- package/tools/cli/lib/docs-setup.js +1 -1
- package/src/core/commands/skill/create.md +0 -698
- package/src/core/commands/skill/delete.md +0 -316
- package/src/core/commands/skill/edit.md +0 -359
- package/src/core/commands/skill/test.md +0 -394
- package/src/core/commands/skill/upgrade.md +0 -552
- package/src/core/templates/skill-template.md +0 -117
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Multi-agent analysis for forgotten features, dead handlers, stub code, and incomplete implementations
|
|
3
|
+
argument-hint: "[file|directory] [DEPTH=quick|deep|ultradeep] [FOCUS=handlers|routes|api|stubs|state|imports|conditional|all] [MODEL=haiku|sonnet|opus]"
|
|
4
|
+
compact_context:
|
|
5
|
+
priority: high
|
|
6
|
+
preserve_rules:
|
|
7
|
+
- "ACTIVE COMMAND: /agileflow:code:completeness - Multi-agent forgotten features analysis"
|
|
8
|
+
- "CRITICAL: Deploy analyzers IN PARALLEL in ONE message with multiple Task calls"
|
|
9
|
+
- "CRITICAL: Wait for all results before running consensus (use TaskOutput with block=true)"
|
|
10
|
+
- "CRITICAL: Severity scale: BROKEN > INCOMPLETE > PLACEHOLDER > DORMANT"
|
|
11
|
+
- "CRITICAL: Confidence scoring: CONFIRMED (2+ agree), LIKELY (1 with evidence), INVESTIGATE (1 weak)"
|
|
12
|
+
- "MUST parse arguments: TARGET (file/dir), DEPTH (quick/deep/ultradeep), FOCUS (handlers|routes|api|stubs|state|imports|conditional|all)"
|
|
13
|
+
- "Pass consensus all analyzer outputs, let it synthesize the final report"
|
|
14
|
+
state_fields:
|
|
15
|
+
- target_path
|
|
16
|
+
- depth
|
|
17
|
+
- focus_areas
|
|
18
|
+
- analyzers_deployed
|
|
19
|
+
- findings_collected
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
# /agileflow:code:completeness
|
|
23
|
+
|
|
24
|
+
Deploy multiple specialized completeness analyzers in parallel to find forgotten features, dead handlers, stub code, and incomplete implementations, then synthesize results through consensus voting into a prioritized Completeness Audit Report.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Quick Reference
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
/agileflow:code:completeness app/ # Analyze app directory (quick, core 5 analyzers)
|
|
32
|
+
/agileflow:code:completeness . DEPTH=deep # Deep analysis - all 7 analyzers
|
|
33
|
+
/agileflow:code:completeness src/ FOCUS=handlers,routes # Focus on specific areas
|
|
34
|
+
/agileflow:code:completeness . DEPTH=deep FOCUS=all # Comprehensive full audit
|
|
35
|
+
/agileflow:code:completeness components/ FOCUS=stubs,state # Check stubs and unused state
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## How It Works
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
44
|
+
│ /agileflow:code:completeness │
|
|
45
|
+
│ │
|
|
46
|
+
│ 1. Parse arguments (target, depth, focus) │
|
|
47
|
+
│ 2. Deploy analyzers IN PARALLEL │
|
|
48
|
+
│ 3. Collect all findings │
|
|
49
|
+
│ 4. Run consensus coordinator to validate & prioritize │
|
|
50
|
+
│ 5. Generate actionable Completeness Audit Report │
|
|
51
|
+
└─────────────────────────────────────────────────────────────┘
|
|
52
|
+
|
|
53
|
+
┌──────────┐ ┌────────┐ ┌─────┐ ┌───────┐ ┌───────┐
|
|
54
|
+
│ Handlers │ │ Routes │ │ API │ │ Stubs │ │ State │
|
|
55
|
+
└────┬─────┘ └───┬────┘ └──┬──┘ └───┬───┘ └───┬───┘
|
|
56
|
+
│ │ │ │ │
|
|
57
|
+
┌────┴───┐ ┌─────┴──────┐ (deep only)
|
|
58
|
+
│Imports │ │Conditional │
|
|
59
|
+
└────┬───┘ └─────┬──────┘
|
|
60
|
+
│ │
|
|
61
|
+
└─────┬─────┘
|
|
62
|
+
▼
|
|
63
|
+
┌──────────────────────┐
|
|
64
|
+
│ Consensus Coordinator │
|
|
65
|
+
│ (validates, votes, │
|
|
66
|
+
│ generates report) │
|
|
67
|
+
└──────────────────────┘
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Arguments
|
|
73
|
+
|
|
74
|
+
| Argument | Values | Default | Description |
|
|
75
|
+
|----------|--------|---------|-------------|
|
|
76
|
+
| TARGET | file/directory | `.` | What to analyze |
|
|
77
|
+
| DEPTH | quick, deep, ultradeep | quick | quick = core 5, deep = all 7, ultradeep = separate tmux sessions |
|
|
78
|
+
| FOCUS | handlers,routes,api,stubs,state,imports,conditional,all | all | Which analyzers to deploy |
|
|
79
|
+
| MODEL | haiku, sonnet, opus | haiku | Model for analyzer subagents. Default preserves existing behavior. |
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Severity Scale (Production Readiness)
|
|
84
|
+
|
|
85
|
+
| Severity | Definition | Example |
|
|
86
|
+
|----------|------------|---------|
|
|
87
|
+
| **BROKEN** | Visibly broken in production - user encounters crash or non-functional element | Empty onClick handler, API call to non-existent endpoint |
|
|
88
|
+
| **INCOMPLETE** | Feature exists but silently does nothing or loses data | Form submits but handler is noop, state set but never read |
|
|
89
|
+
| **PLACEHOLDER** | Development stub shipped to production | `TODO: implement`, `throw new Error('Not implemented')`, hardcoded mock data |
|
|
90
|
+
| **DORMANT** | Unused code that should be alive or removed | Dead export, hardcoded false feature flag, commented-out feature |
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## Step-by-Step Process
|
|
95
|
+
|
|
96
|
+
### STEP 1: Parse Arguments
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
TARGET = first argument or current directory
|
|
100
|
+
DEPTH = quick (default) or deep
|
|
101
|
+
FOCUS = all (default) or comma-separated list
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
**Analyzer Selection**:
|
|
105
|
+
|
|
106
|
+
| Condition | Analyzers Deployed |
|
|
107
|
+
|-----------|-------------------|
|
|
108
|
+
| `DEPTH=quick` + `FOCUS=all` | handlers, routes, api, stubs, state (core 5) |
|
|
109
|
+
| `DEPTH=deep` + `FOCUS=all` | All 7 analyzers |
|
|
110
|
+
| `FOCUS=handlers` | completeness-analyzer-handlers only |
|
|
111
|
+
| `FOCUS=routes` | completeness-analyzer-routes only |
|
|
112
|
+
| `FOCUS=api` | completeness-analyzer-api only |
|
|
113
|
+
| `FOCUS=stubs` | completeness-analyzer-stubs only |
|
|
114
|
+
| `FOCUS=state` | completeness-analyzer-state only |
|
|
115
|
+
| `FOCUS=imports` | completeness-analyzer-imports only |
|
|
116
|
+
| `FOCUS=conditional` | completeness-analyzer-conditional only |
|
|
117
|
+
| `FOCUS=handlers,routes` | Comma-separated: deploy specified analyzers |
|
|
118
|
+
|
|
119
|
+
**DEPTH behavior**:
|
|
120
|
+
- `quick` (default): Deploy core 5 analyzers. Focus on BROKEN/INCOMPLETE issues only.
|
|
121
|
+
- `deep`: Deploy all 7 analyzers. Include PLACEHOLDER/DORMANT findings.
|
|
122
|
+
- `ultradeep`: Spawn each analyzer as a separate Claude Code session in tmux. Requires tmux. Uses model profiles from metadata. Falls back to `deep` if tmux unavailable.
|
|
123
|
+
|
|
124
|
+
**ULTRADEEP mode** (DEPTH=ultradeep):
|
|
125
|
+
1. Show cost estimate: `node .agileflow/scripts/spawn-audit-sessions.js --audit=completeness --target=TARGET --focus=FOCUS --model=MODEL --dry-run`
|
|
126
|
+
2. Confirm with user before launching
|
|
127
|
+
3. Spawn sessions: `node .agileflow/scripts/spawn-audit-sessions.js --audit=completeness --target=TARGET --focus=FOCUS --model=MODEL`
|
|
128
|
+
4. Monitor sentinel files in `docs/09-agents/ultradeep/{trace_id}/` for completion
|
|
129
|
+
5. Collect all findings and run consensus coordinator (same as deep mode)
|
|
130
|
+
6. If tmux unavailable, fall back to `DEPTH=deep` with warning
|
|
131
|
+
|
|
132
|
+
### STEP 2: Deploy Analyzers in Parallel
|
|
133
|
+
|
|
134
|
+
**CRITICAL**: Deploy ALL selected analyzers in a SINGLE message with multiple Task calls.
|
|
135
|
+
|
|
136
|
+
**Prompt template for each analyzer**:
|
|
137
|
+
|
|
138
|
+
```
|
|
139
|
+
TASK: Analyze the following code for {COMPLETENESS_DOMAIN} issues.
|
|
140
|
+
|
|
141
|
+
TARGET: {file_path or directory}
|
|
142
|
+
DEPTH: {quick|deep}
|
|
143
|
+
|
|
144
|
+
{For quick depth}: Focus on BROKEN and INCOMPLETE severity issues only. Skip PLACEHOLDER and DORMANT.
|
|
145
|
+
{For deep depth}: Be comprehensive. Include PLACEHOLDER and DORMANT findings.
|
|
146
|
+
|
|
147
|
+
Read the target files and apply your analysis methodology.
|
|
148
|
+
|
|
149
|
+
OUTPUT your findings in your standard format (FINDING-N with location, severity, confidence, code, explanation, remediation).
|
|
150
|
+
|
|
151
|
+
If no issues found, output: "No {COMPLETENESS_DOMAIN} issues found in {TARGET}"
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
**Example deployment (DEPTH=quick, FOCUS=all - deploys core 5)**:
|
|
155
|
+
|
|
156
|
+
```xml
|
|
157
|
+
<invoke name="Task">
|
|
158
|
+
<parameter name="description">Dead handler analysis</parameter>
|
|
159
|
+
<parameter name="prompt">TASK: Analyze the following code for DEAD/EMPTY EVENT HANDLER issues.
|
|
160
|
+
TARGET: src/
|
|
161
|
+
DEPTH: quick
|
|
162
|
+
Focus on BROKEN and INCOMPLETE severity issues only...
|
|
163
|
+
...</parameter>
|
|
164
|
+
<parameter name="subagent_type">completeness-analyzer-handlers</parameter>
|
|
165
|
+
<parameter name="run_in_background">true</parameter>
|
|
166
|
+
</invoke>
|
|
167
|
+
|
|
168
|
+
<invoke name="Task">
|
|
169
|
+
<parameter name="description">Dead route analysis</parameter>
|
|
170
|
+
<parameter name="prompt">TASK: Analyze the following code for DEAD NAVIGATION AND BROKEN LINK issues.
|
|
171
|
+
TARGET: src/
|
|
172
|
+
DEPTH: quick
|
|
173
|
+
...</parameter>
|
|
174
|
+
<parameter name="subagent_type">completeness-analyzer-routes</parameter>
|
|
175
|
+
<parameter name="run_in_background">true</parameter>
|
|
176
|
+
</invoke>
|
|
177
|
+
|
|
178
|
+
<invoke name="Task">
|
|
179
|
+
<parameter name="description">API endpoint mismatch analysis</parameter>
|
|
180
|
+
<parameter name="prompt">TASK: Analyze the following code for FRONTEND-BACKEND ENDPOINT MISMATCH issues.
|
|
181
|
+
TARGET: src/
|
|
182
|
+
DEPTH: quick
|
|
183
|
+
...</parameter>
|
|
184
|
+
<parameter name="subagent_type">completeness-analyzer-api</parameter>
|
|
185
|
+
<parameter name="run_in_background">true</parameter>
|
|
186
|
+
</invoke>
|
|
187
|
+
|
|
188
|
+
<invoke name="Task">
|
|
189
|
+
<parameter name="description">Stub code analysis</parameter>
|
|
190
|
+
<parameter name="prompt">TASK: Analyze the following code for PLACEHOLDER/STUB CODE issues.
|
|
191
|
+
TARGET: src/
|
|
192
|
+
DEPTH: quick
|
|
193
|
+
...</parameter>
|
|
194
|
+
<parameter name="subagent_type">completeness-analyzer-stubs</parameter>
|
|
195
|
+
<parameter name="run_in_background">true</parameter>
|
|
196
|
+
</invoke>
|
|
197
|
+
|
|
198
|
+
<invoke name="Task">
|
|
199
|
+
<parameter name="description">Unused state analysis</parameter>
|
|
200
|
+
<parameter name="prompt">TASK: Analyze the following code for UNUSED STATE DECLARATION issues.
|
|
201
|
+
TARGET: src/
|
|
202
|
+
DEPTH: quick
|
|
203
|
+
...</parameter>
|
|
204
|
+
<parameter name="subagent_type">completeness-analyzer-state</parameter>
|
|
205
|
+
<parameter name="run_in_background">true</parameter>
|
|
206
|
+
</invoke>
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
**For DEPTH=deep, also deploy**:
|
|
210
|
+
|
|
211
|
+
```xml
|
|
212
|
+
<invoke name="Task">
|
|
213
|
+
<parameter name="description">Dead import/export analysis</parameter>
|
|
214
|
+
<parameter name="prompt">TASK: Analyze the following code for DEAD EXPORT AND MODULE issues...
|
|
215
|
+
...</parameter>
|
|
216
|
+
<parameter name="subagent_type">completeness-analyzer-imports</parameter>
|
|
217
|
+
<parameter name="run_in_background">true</parameter>
|
|
218
|
+
</invoke>
|
|
219
|
+
|
|
220
|
+
<invoke name="Task">
|
|
221
|
+
<parameter name="description">Dead feature branch analysis</parameter>
|
|
222
|
+
<parameter name="prompt">TASK: Analyze the following code for DEAD FEATURE BRANCH issues...
|
|
223
|
+
...</parameter>
|
|
224
|
+
<parameter name="subagent_type">completeness-analyzer-conditional</parameter>
|
|
225
|
+
<parameter name="run_in_background">true</parameter>
|
|
226
|
+
</invoke>
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
### STEP 3: Collect Results
|
|
230
|
+
|
|
231
|
+
Wait for all analyzers to complete:
|
|
232
|
+
|
|
233
|
+
```xml
|
|
234
|
+
<invoke name="TaskOutput">
|
|
235
|
+
<parameter name="task_id">{handlers_id}</parameter>
|
|
236
|
+
<parameter name="block">true</parameter>
|
|
237
|
+
</invoke>
|
|
238
|
+
|
|
239
|
+
<invoke name="TaskOutput">
|
|
240
|
+
<parameter name="task_id">{routes_id}</parameter>
|
|
241
|
+
<parameter name="block">true</parameter>
|
|
242
|
+
</invoke>
|
|
243
|
+
|
|
244
|
+
<!-- ... collect all results ... -->
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
### STEP 4: Run Consensus Coordinator
|
|
248
|
+
|
|
249
|
+
Pass all analyzer outputs to the consensus coordinator:
|
|
250
|
+
|
|
251
|
+
```xml
|
|
252
|
+
<invoke name="Task">
|
|
253
|
+
<parameter name="description">Completeness audit consensus</parameter>
|
|
254
|
+
<parameter name="prompt">You are the Completeness Consensus Coordinator.
|
|
255
|
+
|
|
256
|
+
TARGET: {target_path}
|
|
257
|
+
DEPTH: {depth}
|
|
258
|
+
|
|
259
|
+
## Analyzer Outputs
|
|
260
|
+
|
|
261
|
+
### Handlers Analyzer Results:
|
|
262
|
+
{handlers_output}
|
|
263
|
+
|
|
264
|
+
### Routes Analyzer Results:
|
|
265
|
+
{routes_output}
|
|
266
|
+
|
|
267
|
+
### API Analyzer Results:
|
|
268
|
+
{api_output}
|
|
269
|
+
|
|
270
|
+
### Stubs Analyzer Results:
|
|
271
|
+
{stubs_output}
|
|
272
|
+
|
|
273
|
+
### State Analyzer Results:
|
|
274
|
+
{state_output}
|
|
275
|
+
|
|
276
|
+
{If deep depth, also include:}
|
|
277
|
+
### Imports Analyzer Results:
|
|
278
|
+
{imports_output}
|
|
279
|
+
|
|
280
|
+
### Conditional Analyzer Results:
|
|
281
|
+
{conditional_output}
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
Follow your consensus process:
|
|
286
|
+
1. Detect project type from the codebase
|
|
287
|
+
2. Parse all findings into normalized structure
|
|
288
|
+
3. Group related findings by location
|
|
289
|
+
4. Vote on confidence (CONFIRMED if 2+ agree, LIKELY if 1 with evidence)
|
|
290
|
+
5. Apply intentionality filtering (exclude test stubs, abstract methods, generated code)
|
|
291
|
+
6. Classify user impact (user-blocking, user-confusing, data-silent, developer-only)
|
|
292
|
+
7. Filter by project type relevance
|
|
293
|
+
8. Generate the final Completeness Audit Report
|
|
294
|
+
9. Save report to docs/08-project/completeness-audits/completeness-audit-{YYYYMMDD}.md
|
|
295
|
+
</parameter>
|
|
296
|
+
<parameter name="subagent_type">completeness-consensus</parameter>
|
|
297
|
+
</invoke>
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
### STEP 5: Present Results
|
|
301
|
+
|
|
302
|
+
After consensus completes, show the report summary and offer next steps:
|
|
303
|
+
|
|
304
|
+
```xml
|
|
305
|
+
<invoke name="AskUserQuestion">
|
|
306
|
+
<parameter name="questions">[{
|
|
307
|
+
"question": "Completeness audit complete: [N] findings ([broken] Broken, [incomplete] Incomplete). [files_count] files analyzed. Project type: [type].",
|
|
308
|
+
"header": "Next steps",
|
|
309
|
+
"multiSelect": false,
|
|
310
|
+
"options": [
|
|
311
|
+
{"label": "Fix [broken] Broken issues now (Recommended)", "description": "[top_issue_summary] - most impactful for users"},
|
|
312
|
+
{"label": "Create stories for all findings", "description": "Track [broken] broken + [incomplete] incomplete items in backlog"},
|
|
313
|
+
{"label": "Re-run with DEPTH=deep on [target]", "description": "Current was quick (5 analyzers) - deep adds Imports, Conditional"},
|
|
314
|
+
{"label": "Save report and done", "description": "Report saved to docs/08-project/completeness-audits/"}
|
|
315
|
+
]
|
|
316
|
+
}]</parameter>
|
|
317
|
+
</invoke>
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
---
|
|
321
|
+
|
|
322
|
+
## Example Output
|
|
323
|
+
|
|
324
|
+
```
|
|
325
|
+
🔍 Completeness Audit: app/
|
|
326
|
+
══════════════════════════════════════════════════════════════
|
|
327
|
+
|
|
328
|
+
Deploying 5 completeness analyzers (quick mode)...
|
|
329
|
+
✓ Handlers Analyzer
|
|
330
|
+
✓ Routes Analyzer
|
|
331
|
+
✓ API Analyzer
|
|
332
|
+
✓ Stubs Analyzer
|
|
333
|
+
✓ State Analyzer
|
|
334
|
+
|
|
335
|
+
Running consensus...
|
|
336
|
+
✓ Consensus complete
|
|
337
|
+
✓ Project type detected: Full-stack Web Application
|
|
338
|
+
|
|
339
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
340
|
+
📊 COMPLETENESS SUMMARY
|
|
341
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
342
|
+
|
|
343
|
+
| Severity | Count | User Impact |
|
|
344
|
+
|-------------|-------|------------------------|
|
|
345
|
+
| Broken | 2 | user-blocking |
|
|
346
|
+
| Incomplete | 3 | user-confusing |
|
|
347
|
+
| Placeholder | 1 | data-silent |
|
|
348
|
+
| Dormant | 4 | developer-only |
|
|
349
|
+
|
|
350
|
+
Total: 10 findings (3 intentional exclusions)
|
|
351
|
+
|
|
352
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
353
|
+
🚨 SHIP BLOCKERS
|
|
354
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
355
|
+
|
|
356
|
+
1. Empty onClick handler on "Delete Account" button [CONFIRMED by Handlers, Stubs]
|
|
357
|
+
Location: components/Settings.tsx:45
|
|
358
|
+
Severity: BROKEN | Impact: user-blocking
|
|
359
|
+
Remediation: Complete → implement delete API call | Remove → hide button
|
|
360
|
+
|
|
361
|
+
2. fetch('/api/payments') but no /api/payments route exists [CONFIRMED by API, Routes]
|
|
362
|
+
Location: pages/checkout.tsx:28 → app/api/ (missing)
|
|
363
|
+
Severity: BROKEN | Impact: user-blocking
|
|
364
|
+
Remediation: Complete → create API route | Remove → disable checkout
|
|
365
|
+
|
|
366
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
367
|
+
⚠️ FIX BEFORE RELEASE
|
|
368
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
369
|
+
|
|
370
|
+
3. Form onSubmit only sets loading state, never calls API [LIKELY - Handlers]
|
|
371
|
+
Location: components/ContactForm.tsx:22
|
|
372
|
+
Severity: INCOMPLETE | Impact: user-confusing
|
|
373
|
+
|
|
374
|
+
4. useState for `searchResults` - setter called but value never rendered [LIKELY - State]
|
|
375
|
+
Location: pages/search.tsx:8
|
|
376
|
+
Severity: INCOMPLETE | Impact: data-silent
|
|
377
|
+
|
|
378
|
+
5. "TODO: implement pagination" in production component [LIKELY - Stubs]
|
|
379
|
+
Location: components/UserList.tsx:67
|
|
380
|
+
Severity: PLACEHOLDER | Impact: user-confusing
|
|
381
|
+
|
|
382
|
+
[Full report saved to docs/08-project/completeness-audits/completeness-audit-20260220.md]
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
---
|
|
386
|
+
|
|
387
|
+
<!-- COMPACT_SUMMARY_START -->
|
|
388
|
+
## Compact Summary
|
|
389
|
+
|
|
390
|
+
**Command**: `/agileflow:code:completeness` - Multi-agent forgotten features analysis with consensus
|
|
391
|
+
|
|
392
|
+
**Quick Usage**:
|
|
393
|
+
```
|
|
394
|
+
/agileflow:code:completeness app/ # Quick scan (core 5 analyzers)
|
|
395
|
+
/agileflow:code:completeness . DEPTH=deep # All 7 analyzers
|
|
396
|
+
/agileflow:code:completeness src/ FOCUS=handlers,routes # Specific areas
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
**What It Does**: Deploy completeness analyzers in parallel -> Each finds different incomplete implementation classes -> Consensus coordinator validates, filters by project type, classifies user impact -> Actionable Completeness Audit Report
|
|
400
|
+
|
|
401
|
+
**Analyzers (Core 5 - quick mode)**:
|
|
402
|
+
- `completeness-analyzer-handlers` - Dead/empty event handlers, console-only handlers
|
|
403
|
+
- `completeness-analyzer-routes` - Dead navigation, broken links, missing pages
|
|
404
|
+
- `completeness-analyzer-api` - Frontend-backend endpoint mismatches, orphaned endpoints
|
|
405
|
+
- `completeness-analyzer-stubs` - TODO/FIXME, empty function bodies, mock data in production
|
|
406
|
+
- `completeness-analyzer-state` - Unused useState/useReducer, orphaned context providers
|
|
407
|
+
|
|
408
|
+
**Analyzers (Deep mode adds 2 more)**:
|
|
409
|
+
- `completeness-analyzer-imports` - Dead exports, unused dependencies, orphaned modules
|
|
410
|
+
- `completeness-analyzer-conditional` - Dead feature flags, unreachable code, commented-out features
|
|
411
|
+
|
|
412
|
+
**Severity Scale** (production readiness):
|
|
413
|
+
- BROKEN: Visibly broken in production (crash or non-functional element)
|
|
414
|
+
- INCOMPLETE: Feature silently does nothing or loses data
|
|
415
|
+
- PLACEHOLDER: Dev stub shipped to production
|
|
416
|
+
- DORMANT: Unused code that should be alive or removed
|
|
417
|
+
|
|
418
|
+
**Confidence Levels**:
|
|
419
|
+
- CONFIRMED: 2+ analyzers agree -> High priority
|
|
420
|
+
- LIKELY: 1 analyzer with evidence -> Medium priority
|
|
421
|
+
- INVESTIGATE: 1 analyzer, weak evidence -> Low priority
|
|
422
|
+
|
|
423
|
+
**Output**: `docs/08-project/completeness-audits/completeness-audit-{YYYYMMDD}.md`
|
|
424
|
+
<!-- COMPACT_SUMMARY_END -->
|
|
425
|
+
|
|
426
|
+
---
|
|
427
|
+
|
|
428
|
+
## Boundary Rules (No Overlap)
|
|
429
|
+
|
|
430
|
+
- **vs code:security**: No vulnerabilities, XSS, injection, auth bypass - those are security domain
|
|
431
|
+
- **vs code:logic**: No race conditions, type bugs, edge cases, control flow - those are logic domain
|
|
432
|
+
- **vs code:performance**: No slow queries, memory leaks, bundle size - those are performance domain
|
|
433
|
+
- **vs code:test**: No missing tests, weak assertions, test patterns - those are test domain
|
|
434
|
+
- **vs code:legal**: No compliance, GDPR, licensing - those are legal domain
|
|
435
|
+
- **This audit asks**: Are features fully wired up? Do buttons work? Is stub code shipped?
|
|
436
|
+
|
|
437
|
+
---
|
|
438
|
+
|
|
439
|
+
## Integration with Babysit
|
|
440
|
+
|
|
441
|
+
When `/agileflow:babysit` completes implementation, it can run a quick completeness audit:
|
|
442
|
+
|
|
443
|
+
```
|
|
444
|
+
📍 Implementation complete. Running quick completeness audit...
|
|
445
|
+
|
|
446
|
+
🔍 Completeness Audit Results:
|
|
447
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
448
|
+
✅ No broken features found
|
|
449
|
+
⚠️ 1 INCOMPLETE issue detected:
|
|
450
|
+
- components/Settings.tsx:45 - onClick handler only logs, no API call
|
|
451
|
+
Severity: INCOMPLETE | Confidence: CONFIRMED (Handlers + Stubs)
|
|
452
|
+
|
|
453
|
+
Fix before merging? [Y/n]
|
|
454
|
+
```
|
|
455
|
+
|
|
456
|
+
---
|
|
457
|
+
|
|
458
|
+
## Related Commands
|
|
459
|
+
|
|
460
|
+
- `/agileflow:code:security` - Security vulnerability analysis (similar architecture)
|
|
461
|
+
- `/agileflow:code:logic` - Logic bug analysis (similar architecture)
|
|
462
|
+
- `/agileflow:code:performance` - Performance bottleneck analysis (similar architecture)
|
|
463
|
+
- `/agileflow:code:test` - Test quality analysis (similar architecture)
|
|
464
|
+
- `/agileflow:code:legal` - Legal compliance analysis (similar architecture)
|
|
465
|
+
- `/agileflow:review` - Code review (includes some completeness checks)
|
|
466
|
+
- `/agileflow:multi-expert` - General multi-expert analysis
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Multi-agent legal risk analysis with consensus voting for finding compliance gaps
|
|
3
|
-
argument-hint: "[file|directory] [DEPTH=quick|deep] [FOCUS=privacy|terms|a11y|licensing|consumer|security|ai|content|international|all]"
|
|
3
|
+
argument-hint: "[file|directory] [DEPTH=quick|deep|ultradeep] [FOCUS=privacy|terms|a11y|licensing|consumer|security|ai|content|international|all] [MODEL=haiku|sonnet|opus]"
|
|
4
4
|
compact_context:
|
|
5
5
|
priority: high
|
|
6
6
|
preserve_rules:
|
|
7
|
-
- "ACTIVE COMMAND: /agileflow:
|
|
7
|
+
- "ACTIVE COMMAND: /agileflow:code:legal - Multi-agent legal risk analysis"
|
|
8
8
|
- "CRITICAL: Deploy analyzers IN PARALLEL in ONE message with multiple Task calls"
|
|
9
9
|
- "CRITICAL: Wait for all results before running consensus (use TaskOutput with block=true)"
|
|
10
10
|
- "CRITICAL: Confidence scoring: CONFIRMED (2+ agree), LIKELY (1 with evidence), INVESTIGATE (1 weak)"
|
|
11
|
-
- "MUST parse arguments: TARGET (file/dir), DEPTH (quick/deep), FOCUS (privacy|terms|a11y|licensing|consumer|security|ai|content|international|all)"
|
|
11
|
+
- "MUST parse arguments: TARGET (file/dir), DEPTH (quick/deep/ultradeep), FOCUS (privacy|terms|a11y|licensing|consumer|security|ai|content|international|all)"
|
|
12
12
|
- "Pass consensus all analyzer outputs, let it synthesize the final report"
|
|
13
13
|
state_fields:
|
|
14
14
|
- target_path
|
|
@@ -18,7 +18,7 @@ compact_context:
|
|
|
18
18
|
- findings_collected
|
|
19
19
|
---
|
|
20
20
|
|
|
21
|
-
# /agileflow:
|
|
21
|
+
# /agileflow:code:legal
|
|
22
22
|
|
|
23
23
|
Deploy multiple specialized legal risk analyzers in parallel to find compliance gaps, then synthesize results through consensus voting into a prioritized Legal Risk Report.
|
|
24
24
|
|
|
@@ -27,11 +27,11 @@ Deploy multiple specialized legal risk analyzers in parallel to find compliance
|
|
|
27
27
|
## Quick Reference
|
|
28
28
|
|
|
29
29
|
```
|
|
30
|
-
/agileflow:
|
|
31
|
-
/agileflow:
|
|
32
|
-
/agileflow:
|
|
33
|
-
/agileflow:
|
|
34
|
-
/agileflow:
|
|
30
|
+
/agileflow:code:legal app/ # Analyze app directory (quick, core 5 analyzers)
|
|
31
|
+
/agileflow:code:legal . DEPTH=deep # Deep analysis - all 9 analyzers
|
|
32
|
+
/agileflow:code:legal src/ FOCUS=privacy,a11y # Focus on specific areas
|
|
33
|
+
/agileflow:code:legal . DEPTH=deep FOCUS=all # Comprehensive full audit
|
|
34
|
+
/agileflow:code:legal app/page.tsx FOCUS=ai # Check single file for AI compliance
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
---
|
|
@@ -40,7 +40,7 @@ Deploy multiple specialized legal risk analyzers in parallel to find compliance
|
|
|
40
40
|
|
|
41
41
|
```
|
|
42
42
|
┌─────────────────────────────────────────────────────────────┐
|
|
43
|
-
│ /agileflow:
|
|
43
|
+
│ /agileflow:code:legal │
|
|
44
44
|
│ │
|
|
45
45
|
│ 1. Parse arguments (target, depth, focus) │
|
|
46
46
|
│ 2. Deploy analyzers IN PARALLEL │
|
|
@@ -73,8 +73,9 @@ Deploy multiple specialized legal risk analyzers in parallel to find compliance
|
|
|
73
73
|
| Argument | Values | Default | Description |
|
|
74
74
|
|----------|--------|---------|-------------|
|
|
75
75
|
| TARGET | file/directory | `.` | What to analyze |
|
|
76
|
-
| DEPTH | quick, deep | quick | quick = core 5
|
|
76
|
+
| DEPTH | quick, deep, ultradeep | quick | quick = core 5, deep = all 9, ultradeep = separate tmux sessions |
|
|
77
77
|
| FOCUS | privacy,terms,a11y,licensing,consumer,security,ai,content,international,all | all | Which analyzers to deploy |
|
|
78
|
+
| MODEL | haiku, sonnet, opus | haiku | Model for analyzer subagents. Default preserves existing behavior. |
|
|
78
79
|
|
|
79
80
|
---
|
|
80
81
|
|
|
@@ -108,6 +109,15 @@ FOCUS = all (default) or comma-separated list
|
|
|
108
109
|
**DEPTH behavior**:
|
|
109
110
|
- `quick` (default): Deploy core 5 analyzers. Focus on CRITICAL/HIGH issues only.
|
|
110
111
|
- `deep`: Deploy all 9 analyzers. Include MEDIUM/LOW findings.
|
|
112
|
+
- `ultradeep`: Spawn each analyzer as a separate Claude Code session in tmux. Requires tmux. Uses model profiles from metadata. Falls back to `deep` if tmux unavailable.
|
|
113
|
+
|
|
114
|
+
**ULTRADEEP mode** (DEPTH=ultradeep):
|
|
115
|
+
1. Show cost estimate: `node .agileflow/scripts/spawn-audit-sessions.js --audit=legal --target=TARGET --focus=FOCUS --model=MODEL --dry-run`
|
|
116
|
+
2. Confirm with user before launching
|
|
117
|
+
3. Spawn sessions: `node .agileflow/scripts/spawn-audit-sessions.js --audit=legal --target=TARGET --focus=FOCUS --model=MODEL`
|
|
118
|
+
4. Monitor sentinel files in `docs/09-agents/ultradeep/{trace_id}/` for completion
|
|
119
|
+
5. Collect all findings and run consensus coordinator (same as deep mode)
|
|
120
|
+
6. If tmux unavailable, fall back to `DEPTH=deep` with warning
|
|
111
121
|
|
|
112
122
|
### STEP 2: Deploy Analyzers in Parallel
|
|
113
123
|
|
|
@@ -379,13 +389,13 @@ Total: 10 findings (3 false positives excluded)
|
|
|
379
389
|
<!-- COMPACT_SUMMARY_START -->
|
|
380
390
|
## Compact Summary
|
|
381
391
|
|
|
382
|
-
**Command**: `/agileflow:
|
|
392
|
+
**Command**: `/agileflow:code:legal` - Multi-agent legal risk analysis with consensus
|
|
383
393
|
|
|
384
394
|
**Quick Usage**:
|
|
385
395
|
```
|
|
386
|
-
/agileflow:
|
|
387
|
-
/agileflow:
|
|
388
|
-
/agileflow:
|
|
396
|
+
/agileflow:code:legal app/ # Quick scan (core 5 analyzers)
|
|
397
|
+
/agileflow:code:legal . DEPTH=deep # All 9 analyzers
|
|
398
|
+
/agileflow:code:legal src/ FOCUS=privacy,a11y # Specific areas
|
|
389
399
|
```
|
|
390
400
|
|
|
391
401
|
**What It Does**: Deploy legal analyzers in parallel → Each finds different compliance gaps → Consensus coordinator validates, filters by project type, prioritizes → Actionable Legal Risk Report
|
|
@@ -440,7 +450,7 @@ Fix before launch? [Y/n]
|
|
|
440
450
|
|
|
441
451
|
## Related Commands
|
|
442
452
|
|
|
443
|
-
- `/agileflow:
|
|
453
|
+
- `/agileflow:code:logic` - Logic bug analysis (similar architecture)
|
|
444
454
|
- `/agileflow:review` - Code review (includes some compliance checks)
|
|
445
455
|
- `/agileflow:multi-expert` - General multi-expert analysis
|
|
446
456
|
- `/agileflow:verify` - Run tests
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Multi-agent logic analysis with consensus voting for finding logic bugs
|
|
3
|
-
argument-hint: "[file|directory] [DEPTH=quick|deep] [FOCUS=edge|invariant|flow|type|race|all]"
|
|
3
|
+
argument-hint: "[file|directory] [DEPTH=quick|deep|ultradeep] [FOCUS=edge|invariant|flow|type|race|all] [MODEL=haiku|sonnet|opus]"
|
|
4
4
|
compact_context:
|
|
5
5
|
priority: high
|
|
6
6
|
preserve_rules:
|
|
7
|
-
- "ACTIVE COMMAND: /agileflow:
|
|
7
|
+
- "ACTIVE COMMAND: /agileflow:code:logic - Multi-agent logic analysis"
|
|
8
8
|
- "CRITICAL: Deploy analyzers IN PARALLEL in ONE message with multiple Task calls"
|
|
9
9
|
- "CRITICAL: Wait for all results before running consensus (use TaskOutput with block=true)"
|
|
10
10
|
- "CRITICAL: Confidence scoring: CONFIRMED (2+ agree), LIKELY (1 with evidence), INVESTIGATE (1 weak)"
|
|
11
|
-
- "MUST parse arguments: TARGET (file/dir), DEPTH (quick/deep), FOCUS (edge/invariant/flow/type/race/all)"
|
|
11
|
+
- "MUST parse arguments: TARGET (file/dir), DEPTH (quick/deep/ultradeep), FOCUS (edge/invariant/flow/type/race/all)"
|
|
12
12
|
- "Pass consensus all analyzer outputs, let it synthesize the final report"
|
|
13
13
|
state_fields:
|
|
14
14
|
- target_path
|
|
@@ -18,7 +18,7 @@ compact_context:
|
|
|
18
18
|
- findings_collected
|
|
19
19
|
---
|
|
20
20
|
|
|
21
|
-
# /agileflow:
|
|
21
|
+
# /agileflow:code:logic
|
|
22
22
|
|
|
23
23
|
Deploy multiple specialized logic analyzers in parallel to find bugs, then synthesize results through consensus voting.
|
|
24
24
|
|
|
@@ -27,10 +27,12 @@ Deploy multiple specialized logic analyzers in parallel to find bugs, then synth
|
|
|
27
27
|
## Quick Reference
|
|
28
28
|
|
|
29
29
|
```
|
|
30
|
-
/agileflow:
|
|
31
|
-
/agileflow:
|
|
32
|
-
/agileflow:
|
|
33
|
-
/agileflow:
|
|
30
|
+
/agileflow:code:logic src/utils.js # Analyze single file
|
|
31
|
+
/agileflow:code:logic src/ DEPTH=deep # Deep analysis of directory
|
|
32
|
+
/agileflow:code:logic . FOCUS=race,type # Focus on race conditions and type issues
|
|
33
|
+
/agileflow:code:logic src/cart.js DEPTH=quick # Quick scan of specific file
|
|
34
|
+
/agileflow:code:logic . DEPTH=ultradeep # Each analyzer in its own tmux session
|
|
35
|
+
/agileflow:code:logic src/ MODEL=sonnet # Use Sonnet for all analyzers
|
|
34
36
|
```
|
|
35
37
|
|
|
36
38
|
---
|
|
@@ -39,7 +41,7 @@ Deploy multiple specialized logic analyzers in parallel to find bugs, then synth
|
|
|
39
41
|
|
|
40
42
|
```
|
|
41
43
|
┌─────────────────────────────────────────────────────────────┐
|
|
42
|
-
│ /agileflow:
|
|
44
|
+
│ /agileflow:code:logic │
|
|
43
45
|
│ │
|
|
44
46
|
│ 1. Parse arguments (target, depth, focus) │
|
|
45
47
|
│ 2. Deploy 5 analyzers IN PARALLEL │
|
|
@@ -69,8 +71,9 @@ Deploy multiple specialized logic analyzers in parallel to find bugs, then synth
|
|
|
69
71
|
| Argument | Values | Default | Description |
|
|
70
72
|
|----------|--------|---------|-------------|
|
|
71
73
|
| TARGET | file/directory | `.` | What to analyze |
|
|
72
|
-
| DEPTH | quick, deep | quick | quick = high-impact only, deep = comprehensive |
|
|
74
|
+
| DEPTH | quick, deep, ultradeep | quick | quick = high-impact only, deep = comprehensive, ultradeep = separate tmux sessions |
|
|
73
75
|
| FOCUS | edge,invariant,flow,type,race,all | all | Which analyzers to deploy |
|
|
76
|
+
| MODEL | haiku, sonnet, opus | haiku | Model for analyzer subagents. Default preserves existing behavior. |
|
|
74
77
|
|
|
75
78
|
---
|
|
76
79
|
|
|
@@ -80,10 +83,18 @@ Deploy multiple specialized logic analyzers in parallel to find bugs, then synth
|
|
|
80
83
|
|
|
81
84
|
```
|
|
82
85
|
TARGET = first argument or current directory
|
|
83
|
-
DEPTH = quick (default) or
|
|
86
|
+
DEPTH = quick (default), deep, or ultradeep
|
|
84
87
|
FOCUS = all (default) or comma-separated list
|
|
85
88
|
```
|
|
86
89
|
|
|
90
|
+
**ULTRADEEP mode** (DEPTH=ultradeep):
|
|
91
|
+
1. Show cost estimate: `node .agileflow/scripts/spawn-audit-sessions.js --audit=logic --target=TARGET --focus=FOCUS --model=MODEL --dry-run`
|
|
92
|
+
2. Confirm with user before launching
|
|
93
|
+
3. Spawn sessions: `node .agileflow/scripts/spawn-audit-sessions.js --audit=logic --target=TARGET --focus=FOCUS --model=MODEL`
|
|
94
|
+
4. Monitor sentinel files in `docs/09-agents/ultradeep/{trace_id}/` for completion
|
|
95
|
+
5. Collect all findings and run consensus coordinator (same as deep mode)
|
|
96
|
+
6. If tmux unavailable, fall back to `DEPTH=deep` with warning
|
|
97
|
+
|
|
87
98
|
**Analyzer Selection by FOCUS**:
|
|
88
99
|
|
|
89
100
|
| FOCUS | Analyzers |
|
|
@@ -307,13 +318,13 @@ Total: 7 findings (2 false positives excluded)
|
|
|
307
318
|
<!-- COMPACT_SUMMARY_START -->
|
|
308
319
|
## Compact Summary
|
|
309
320
|
|
|
310
|
-
**Command**: `/agileflow:
|
|
321
|
+
**Command**: `/agileflow:code:logic` - Multi-agent logic analysis with consensus
|
|
311
322
|
|
|
312
323
|
**Quick Usage**:
|
|
313
324
|
```
|
|
314
|
-
/agileflow:
|
|
315
|
-
/agileflow:
|
|
316
|
-
/agileflow:
|
|
325
|
+
/agileflow:code:logic src/utils.js # Single file
|
|
326
|
+
/agileflow:code:logic src/ DEPTH=deep # Deep analysis
|
|
327
|
+
/agileflow:code:logic . FOCUS=race,type # Specific analyzers
|
|
317
328
|
```
|
|
318
329
|
|
|
319
330
|
**What It Does**: Deploy 5 logic analyzers in parallel → Each finds different bug classes → Consensus coordinator validates and prioritizes → Actionable report
|
|
@@ -354,7 +365,7 @@ Proceed with tests? [Y/n]
|
|
|
354
365
|
|
|
355
366
|
To integrate with babysit, add to implementation workflow:
|
|
356
367
|
1. Complete implementation
|
|
357
|
-
2. Run `/agileflow:
|
|
368
|
+
2. Run `/agileflow:code:logic {changed_files} DEPTH=quick`
|
|
358
369
|
3. If critical issues → block, show findings
|
|
359
370
|
4. If no critical → proceed to tests
|
|
360
371
|
|