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.
Files changed (134) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +6 -6
  3. package/lib/feature-flags.js +32 -4
  4. package/lib/skill-loader.js +0 -1
  5. package/package.json +1 -1
  6. package/scripts/agileflow-statusline.sh +81 -0
  7. package/scripts/babysit-clear-restore.js +154 -0
  8. package/scripts/claude-tmux.sh +120 -24
  9. package/scripts/claude-watchdog.sh +225 -0
  10. package/scripts/generators/agent-registry.js +14 -1
  11. package/scripts/generators/inject-babysit.js +22 -9
  12. package/scripts/generators/inject-help.js +19 -9
  13. package/scripts/lib/README-portable-tasks.md +424 -0
  14. package/scripts/lib/audit-cleanup.js +250 -0
  15. package/scripts/lib/audit-registry.js +248 -0
  16. package/scripts/lib/configure-detect.js +20 -0
  17. package/scripts/lib/feature-catalog.js +13 -2
  18. package/scripts/lib/gate-enforcer.js +295 -0
  19. package/scripts/lib/model-profiles.js +98 -0
  20. package/scripts/lib/signal-detectors.js +1 -1
  21. package/scripts/lib/skill-catalog.js +557 -0
  22. package/scripts/lib/skill-recommender.js +311 -0
  23. package/scripts/lib/tdd-phase-manager.js +455 -0
  24. package/scripts/lib/team-events.js +76 -8
  25. package/scripts/lib/tmux-group-colors.js +113 -0
  26. package/scripts/messaging-bridge.js +209 -1
  27. package/scripts/spawn-audit-sessions.js +549 -0
  28. package/scripts/team-manager.js +37 -16
  29. package/scripts/tmux-close-windows.sh +180 -0
  30. package/scripts/tmux-restore-window.sh +67 -0
  31. package/scripts/tmux-save-closed-window.sh +35 -0
  32. package/src/core/agents/ads-audit-budget.md +181 -0
  33. package/src/core/agents/ads-audit-compliance.md +169 -0
  34. package/src/core/agents/ads-audit-creative.md +164 -0
  35. package/src/core/agents/ads-audit-google.md +226 -0
  36. package/src/core/agents/ads-audit-meta.md +183 -0
  37. package/src/core/agents/ads-audit-tracking.md +197 -0
  38. package/src/core/agents/ads-consensus.md +322 -0
  39. package/src/core/agents/brainstorm-analyzer-features.md +169 -0
  40. package/src/core/agents/brainstorm-analyzer-growth.md +161 -0
  41. package/src/core/agents/brainstorm-analyzer-integration.md +172 -0
  42. package/src/core/agents/brainstorm-analyzer-market.md +147 -0
  43. package/src/core/agents/brainstorm-analyzer-ux.md +167 -0
  44. package/src/core/agents/brainstorm-consensus.md +237 -0
  45. package/src/core/agents/completeness-analyzer-api.md +190 -0
  46. package/src/core/agents/completeness-analyzer-conditional.md +201 -0
  47. package/src/core/agents/completeness-analyzer-handlers.md +159 -0
  48. package/src/core/agents/completeness-analyzer-imports.md +159 -0
  49. package/src/core/agents/completeness-analyzer-routes.md +182 -0
  50. package/src/core/agents/completeness-analyzer-state.md +188 -0
  51. package/src/core/agents/completeness-analyzer-stubs.md +198 -0
  52. package/src/core/agents/completeness-consensus.md +286 -0
  53. package/src/core/agents/perf-consensus.md +2 -2
  54. package/src/core/agents/security-consensus.md +2 -2
  55. package/src/core/agents/seo-analyzer-content.md +167 -0
  56. package/src/core/agents/seo-analyzer-images.md +187 -0
  57. package/src/core/agents/seo-analyzer-performance.md +206 -0
  58. package/src/core/agents/seo-analyzer-schema.md +176 -0
  59. package/src/core/agents/seo-analyzer-sitemap.md +172 -0
  60. package/src/core/agents/seo-analyzer-technical.md +144 -0
  61. package/src/core/agents/seo-consensus.md +289 -0
  62. package/src/core/agents/test-consensus.md +2 -2
  63. package/src/core/commands/ads/audit.md +375 -0
  64. package/src/core/commands/ads/budget.md +97 -0
  65. package/src/core/commands/ads/competitor.md +112 -0
  66. package/src/core/commands/ads/creative.md +85 -0
  67. package/src/core/commands/ads/google.md +112 -0
  68. package/src/core/commands/ads/landing.md +119 -0
  69. package/src/core/commands/ads/linkedin.md +112 -0
  70. package/src/core/commands/ads/meta.md +91 -0
  71. package/src/core/commands/ads/microsoft.md +115 -0
  72. package/src/core/commands/ads/plan.md +321 -0
  73. package/src/core/commands/ads/tiktok.md +129 -0
  74. package/src/core/commands/ads/youtube.md +124 -0
  75. package/src/core/commands/ads.md +128 -0
  76. package/src/core/commands/babysit.md +250 -1344
  77. package/src/core/commands/code/completeness.md +466 -0
  78. package/src/core/commands/{audit → code}/legal.md +26 -16
  79. package/src/core/commands/{audit → code}/logic.md +27 -16
  80. package/src/core/commands/{audit → code}/performance.md +30 -20
  81. package/src/core/commands/{audit → code}/security.md +32 -19
  82. package/src/core/commands/{audit → code}/test.md +30 -20
  83. package/src/core/commands/{discovery → ideate}/brief.md +12 -12
  84. package/src/core/commands/{discovery/new.md → ideate/discover.md} +13 -13
  85. package/src/core/commands/ideate/features.md +435 -0
  86. package/src/core/commands/seo/audit.md +373 -0
  87. package/src/core/commands/seo/competitor.md +174 -0
  88. package/src/core/commands/seo/content.md +107 -0
  89. package/src/core/commands/seo/geo.md +229 -0
  90. package/src/core/commands/seo/hreflang.md +140 -0
  91. package/src/core/commands/seo/images.md +96 -0
  92. package/src/core/commands/seo/page.md +198 -0
  93. package/src/core/commands/seo/plan.md +163 -0
  94. package/src/core/commands/seo/programmatic.md +131 -0
  95. package/src/core/commands/seo/references/cwv-thresholds.md +64 -0
  96. package/src/core/commands/seo/references/eeat-framework.md +110 -0
  97. package/src/core/commands/seo/references/quality-gates.md +91 -0
  98. package/src/core/commands/seo/references/schema-types.md +102 -0
  99. package/src/core/commands/seo/schema.md +183 -0
  100. package/src/core/commands/seo/sitemap.md +97 -0
  101. package/src/core/commands/seo/technical.md +100 -0
  102. package/src/core/commands/seo.md +107 -0
  103. package/src/core/commands/skill/list.md +68 -212
  104. package/src/core/commands/skill/recommend.md +216 -0
  105. package/src/core/commands/tdd-next.md +238 -0
  106. package/src/core/commands/tdd.md +210 -0
  107. package/src/core/experts/_core-expertise.yaml +105 -0
  108. package/src/core/experts/analytics/expertise.yaml +5 -99
  109. package/src/core/experts/codebase-query/expertise.yaml +3 -72
  110. package/src/core/experts/compliance/expertise.yaml +6 -72
  111. package/src/core/experts/database/expertise.yaml +9 -52
  112. package/src/core/experts/documentation/expertise.yaml +7 -140
  113. package/src/core/experts/integrations/expertise.yaml +7 -127
  114. package/src/core/experts/mentor/expertise.yaml +8 -35
  115. package/src/core/experts/monitoring/expertise.yaml +7 -49
  116. package/src/core/experts/performance/expertise.yaml +1 -26
  117. package/src/core/experts/security/expertise.yaml +9 -34
  118. package/src/core/experts/ui/expertise.yaml +6 -36
  119. package/src/core/knowledge/ads/ad-audit-checklist-scoring.md +424 -0
  120. package/src/core/knowledge/ads/ad-optimization-logic.md +590 -0
  121. package/src/core/knowledge/ads/ad-technical-specifications.md +385 -0
  122. package/src/core/knowledge/ads/definitive-advertising-reference-2026.md +506 -0
  123. package/src/core/knowledge/ads/paid-advertising-research-2026.md +445 -0
  124. package/src/core/templates/agileflow-metadata.json +15 -1
  125. package/tools/cli/installers/ide/_base-ide.js +42 -5
  126. package/tools/cli/installers/ide/claude-code.js +13 -4
  127. package/tools/cli/lib/content-injector.js +160 -12
  128. package/tools/cli/lib/docs-setup.js +1 -1
  129. package/src/core/commands/skill/create.md +0 -698
  130. package/src/core/commands/skill/delete.md +0 -316
  131. package/src/core/commands/skill/edit.md +0 -359
  132. package/src/core/commands/skill/test.md +0 -394
  133. package/src/core/commands/skill/upgrade.md +0 -552
  134. package/src/core/templates/skill-template.md +0 -117
@@ -0,0 +1,375 @@
1
+ ---
2
+ description: Full multi-platform paid advertising audit with 6 parallel analyzers, industry detection, weighted Ads Health Score 0-100, and prioritized action plan
3
+ argument-hint: "<account-data> [PLATFORMS=all]"
4
+ compact_context:
5
+ priority: high
6
+ preserve_rules:
7
+ - "ACTIVE COMMAND: /agileflow:ads:audit - Full paid advertising audit"
8
+ - "CRITICAL: Deploy 6 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: Weighted scoring - Tracking 25%, Wasted Spend 20%, Structure 15%, Creative 15%, Budget 15%, Compliance 10%"
11
+ - "MUST detect industry type before deploying analyzers"
12
+ - "Pass all analyzer outputs to ads-consensus for final report"
13
+ - "Quality Gates: No optimization without tracking, 3x Kill Rule, Broad Match needs Smart Bidding"
14
+ state_fields:
15
+ - platforms
16
+ - industry_type
17
+ - analyzers_deployed
18
+ - health_score
19
+ ---
20
+
21
+ # /agileflow:ads:audit
22
+
23
+ Deploy 6 specialized advertising analyzers in parallel to audit ad accounts, then synthesize results through consensus into a weighted Ads Health Score (0-100) with prioritized action plan.
24
+
25
+ ---
26
+
27
+ ## Quick Reference
28
+
29
+ ```
30
+ /agileflow:ads:audit <account-data> # Full audit (all platforms detected)
31
+ /agileflow:ads:audit <account-data> PLATFORMS=google,meta # Specific platforms only
32
+ ```
33
+
34
+ ---
35
+
36
+ ## How It Works
37
+
38
+ ```
39
+ +-----------------------------------------------------------------+
40
+ | /agileflow:ads:audit |
41
+ | |
42
+ | 1. Parse account data (pasted, file, or described) |
43
+ | 2. Detect industry type and active platforms |
44
+ | 3. Deploy 6 analyzers IN PARALLEL |
45
+ | 4. Collect all results |
46
+ | 5. Run consensus -> weighted Ads Health Score |
47
+ | 6. Generate Ads Audit Report + action plan |
48
+ +-----------------------------------------------------------------+
49
+
50
+ +----------+ +----------+ +-----------+
51
+ | Google | | Meta | | Budget |
52
+ | 74 chks | | 46 chks | | 24 chks |
53
+ +----+-----+ +----+-----+ +-----+-----+
54
+ | | |
55
+ +----+-----+ +----+-----+ +----+------+
56
+ | Creative | | Tracking | | Compliance|
57
+ | 21 chks | | 7 chks | | 18 chks |
58
+ +----+-----+ +----+-----+ +-----+-----+
59
+ | | |
60
+ +------------+-------------+
61
+ |
62
+ +------+------+
63
+ | Ads |
64
+ | Consensus |
65
+ | (weighted |
66
+ | scoring) |
67
+ +-------------+
68
+ ```
69
+
70
+ ---
71
+
72
+ ## Arguments
73
+
74
+ | Argument | Values | Default | Description |
75
+ |----------|--------|---------|-------------|
76
+ | account-data | Text, file path, or description | Required | Account data to audit |
77
+ | PLATFORMS | google,meta,linkedin,tiktok,microsoft,youtube | all detected | Limit to specific platforms |
78
+
79
+ ---
80
+
81
+ ## Step-by-Step Process
82
+
83
+ ### STEP 1: Parse Account Data
84
+
85
+ Accept data in any format:
86
+ - **Pasted CSV/text** - Parse columns and metrics
87
+ - **File path** - Read CSV/JSON export files
88
+ - **Plain description** - Extract account details from narrative
89
+ - **Multiple sources** - Combine data from different platforms
90
+
91
+ If no data provided, ask:
92
+ ```xml
93
+ <invoke name="AskUserQuestion">
94
+ <parameter name="questions">[{
95
+ "question": "Please provide your ad account data. What format works best?",
96
+ "header": "Account Data",
97
+ "multiSelect": false,
98
+ "options": [
99
+ {"label": "Paste account data (Recommended)", "description": "Copy/paste from Google Ads, Meta Ads Manager, etc."},
100
+ {"label": "Describe my setup", "description": "I'll describe my campaigns, targeting, and results"},
101
+ {"label": "Point to exported files", "description": "I have CSV/JSON exports from ad platforms"}
102
+ ]
103
+ }]</parameter>
104
+ </invoke>
105
+ ```
106
+
107
+ ### STEP 2: Detect Industry & Platforms
108
+
109
+ From the account data, identify:
110
+ - **Industry**: SaaS, E-commerce, Local Services, B2B, Healthcare, Finance, Education
111
+ - **Active platforms**: Which ad platforms have campaigns
112
+ - **Account maturity**: New (< 3 months), Growing (3-12 months), Mature (12+ months)
113
+
114
+ ### STEP 3: Deploy 6 Analyzers in Parallel
115
+
116
+ **CRITICAL**: Deploy ALL 6 analyzers in a SINGLE message with multiple Task calls.
117
+
118
+ ```xml
119
+ <invoke name="Task">
120
+ <parameter name="description">Google Ads audit analysis</parameter>
121
+ <parameter name="prompt">TASK: Audit Google Ads account data.
122
+
123
+ INDUSTRY: {detected industry}
124
+ ACCOUNT DATA:
125
+ {google_ads_data}
126
+
127
+ Apply all 74 checks across 6 categories: Conversion Tracking (25%), Wasted Spend (25%), Account Structure (15%), Keyword Strategy (15%), Ad Copy Quality (10%), Campaign Settings (10%).
128
+
129
+ Enforce quality gates: tracking required, no Broad Match without Smart Bidding, 3x Kill Rule.
130
+
131
+ OUTPUT your findings with Google Ads Score X/100.</parameter>
132
+ <parameter name="subagent_type">ads-audit-google</parameter>
133
+ <parameter name="run_in_background">true</parameter>
134
+ </invoke>
135
+
136
+ <invoke name="Task">
137
+ <parameter name="description">Meta Ads audit analysis</parameter>
138
+ <parameter name="prompt">TASK: Audit Meta/Facebook Ads account data.
139
+
140
+ INDUSTRY: {detected industry}
141
+ ACCOUNT DATA:
142
+ {meta_ads_data}
143
+
144
+ Apply all 46 checks across 4 categories: Pixel & CAPI (30%), Creative Strategy (25%), Account Structure (25%), Audience Targeting (20%).
145
+
146
+ Enforce quality gates: Pixel required, domain verification, learning phase, Special Ad Categories.
147
+
148
+ OUTPUT your findings with Meta Ads Score X/100.</parameter>
149
+ <parameter name="subagent_type">ads-audit-meta</parameter>
150
+ <parameter name="run_in_background">true</parameter>
151
+ </invoke>
152
+
153
+ <invoke name="Task">
154
+ <parameter name="description">Budget and bidding audit</parameter>
155
+ <parameter name="prompt">TASK: Audit budget allocation and bidding strategy.
156
+
157
+ INDUSTRY: {detected industry}
158
+ PLATFORMS: {active platforms}
159
+ ACCOUNT DATA:
160
+ {all_budget_data}
161
+
162
+ Apply all 24 checks across 4 categories: Budget Allocation (35%), Bidding Strategy (30%), Scaling & Pacing (20%), Platform Mix (15%).
163
+
164
+ Enforce platform minimums and scaling rules.
165
+
166
+ OUTPUT your findings with Budget Score X/100.</parameter>
167
+ <parameter name="subagent_type">ads-audit-budget</parameter>
168
+ <parameter name="run_in_background">true</parameter>
169
+ </invoke>
170
+
171
+ <invoke name="Task">
172
+ <parameter name="description">Creative quality audit</parameter>
173
+ <parameter name="prompt">TASK: Audit creative quality across platforms.
174
+
175
+ INDUSTRY: {detected industry}
176
+ PLATFORMS: {active platforms}
177
+ ACCOUNT DATA:
178
+ {creative_data}
179
+
180
+ Apply all 21 checks across 4 categories: Ad Copy Effectiveness (30%), Visual & Format Compliance (25%), Platform Requirements (25%), Performance & Testing (20%).
181
+
182
+ Check safe zones, character limits, and restricted content.
183
+
184
+ OUTPUT your findings with Creative Score X/100.</parameter>
185
+ <parameter name="subagent_type">ads-audit-creative</parameter>
186
+ <parameter name="run_in_background">true</parameter>
187
+ </invoke>
188
+
189
+ <invoke name="Task">
190
+ <parameter name="description">Conversion tracking audit</parameter>
191
+ <parameter name="prompt">TASK: Audit conversion tracking across all platforms.
192
+
193
+ PLATFORMS: {active platforms}
194
+ ACCOUNT DATA:
195
+ {tracking_data}
196
+
197
+ Apply all 7 critical tracking checks: tags installed, events defined, deduplication, attribution, freshness, privacy, server-side.
198
+
199
+ This is the FOUNDATION check - all other optimizations depend on tracking accuracy.
200
+
201
+ OUTPUT your findings with Tracking Score X/100.</parameter>
202
+ <parameter name="subagent_type">ads-audit-tracking</parameter>
203
+ <parameter name="run_in_background">true</parameter>
204
+ </invoke>
205
+
206
+ <invoke name="Task">
207
+ <parameter name="description">Compliance and benchmarks audit</parameter>
208
+ <parameter name="prompt">TASK: Audit compliance and performance benchmarks.
209
+
210
+ INDUSTRY: {detected industry}
211
+ PLATFORMS: {active platforms}
212
+ ACCOUNT DATA:
213
+ {compliance_data}
214
+
215
+ Apply all 18 checks across 4 categories: Platform Policy (35%), Regulatory Compliance (30%), Performance Benchmarks (20%), Account Health (15%).
216
+
217
+ Flag any legal risk items explicitly.
218
+
219
+ OUTPUT your findings with Compliance Score X/100.</parameter>
220
+ <parameter name="subagent_type">ads-audit-compliance</parameter>
221
+ <parameter name="run_in_background">true</parameter>
222
+ </invoke>
223
+ ```
224
+
225
+ ### STEP 4: Collect Results
226
+
227
+ Wait for all analyzers to complete using TaskOutput with block=true. Collect all 6 outputs:
228
+
229
+ ```xml
230
+ <invoke name="TaskOutput">
231
+ <parameter name="task_id">{google_task_id}</parameter>
232
+ <parameter name="block">true</parameter>
233
+ <parameter name="timeout">120000</parameter>
234
+ </invoke>
235
+
236
+ <invoke name="TaskOutput">
237
+ <parameter name="task_id">{meta_task_id}</parameter>
238
+ <parameter name="block">true</parameter>
239
+ <parameter name="timeout">120000</parameter>
240
+ </invoke>
241
+
242
+ <invoke name="TaskOutput">
243
+ <parameter name="task_id">{budget_task_id}</parameter>
244
+ <parameter name="block">true</parameter>
245
+ <parameter name="timeout">120000</parameter>
246
+ </invoke>
247
+
248
+ <invoke name="TaskOutput">
249
+ <parameter name="task_id">{creative_task_id}</parameter>
250
+ <parameter name="block">true</parameter>
251
+ <parameter name="timeout">120000</parameter>
252
+ </invoke>
253
+
254
+ <invoke name="TaskOutput">
255
+ <parameter name="task_id">{tracking_task_id}</parameter>
256
+ <parameter name="block">true</parameter>
257
+ <parameter name="timeout">120000</parameter>
258
+ </invoke>
259
+
260
+ <invoke name="TaskOutput">
261
+ <parameter name="task_id">{compliance_task_id}</parameter>
262
+ <parameter name="block">true</parameter>
263
+ <parameter name="timeout">120000</parameter>
264
+ </invoke>
265
+ ```
266
+
267
+ Store each output for the consensus step.
268
+
269
+ ### STEP 5: Run Consensus Coordinator
270
+
271
+ Pass all analyzer outputs to the consensus coordinator:
272
+
273
+ ```xml
274
+ <invoke name="Task">
275
+ <parameter name="description">Ads audit consensus and scoring</parameter>
276
+ <parameter name="prompt">You are the Ads Consensus Coordinator.
277
+
278
+ INDUSTRY: {detected industry}
279
+ PLATFORMS: {active platforms}
280
+ ACCOUNT MATURITY: {maturity}
281
+
282
+ ## Analyzer Outputs
283
+
284
+ ### Google Ads Results:
285
+ {google_output}
286
+
287
+ ### Meta Ads Results:
288
+ {meta_output}
289
+
290
+ ### Budget & Bidding Results:
291
+ {budget_output}
292
+
293
+ ### Creative Quality Results:
294
+ {creative_output}
295
+
296
+ ### Conversion Tracking Results:
297
+ {tracking_output}
298
+
299
+ ### Compliance Results:
300
+ {compliance_output}
301
+
302
+ ---
303
+
304
+ Follow your consensus process:
305
+ 1. Confirm industry classification
306
+ 2. Parse all findings into normalized structure
307
+ 3. Calculate category scores (each out of 100)
308
+ 4. Apply weights: Tracking 25%, Wasted Spend 20%, Structure 15%, Creative 15%, Budget 15%, Compliance 10%
309
+ 5. Compute overall Ads Health Score 0-100
310
+ 6. Enforce quality gates (tracking, 3x kill rule, compliance)
311
+ 7. Cross-reference findings flagged by multiple analyzers
312
+ 8. Prioritize: Critical -> High -> Medium -> Low
313
+ 9. Generate action plan with quick wins and estimated impact
314
+ 10. Save report to docs/08-project/ads-audits/ads-audit-{YYYYMMDD}.md</parameter>
315
+ <parameter name="subagent_type">ads-consensus</parameter>
316
+ </invoke>
317
+ ```
318
+
319
+ ### STEP 6: Present Results
320
+
321
+ After consensus completes, show summary and offer next steps:
322
+
323
+ ```xml
324
+ <invoke name="AskUserQuestion">
325
+ <parameter name="questions">[{
326
+ "question": "Ads Audit complete: Health Score {X}/100 ({grade}). Industry: {type}. {N} findings ({critical} critical, {high} high). Est. monthly waste: ${amount}.",
327
+ "header": "Next steps",
328
+ "multiSelect": false,
329
+ "options": [
330
+ {"label": "Fix {critical} Critical issues now (Recommended)", "description": "{top_issue_summary}"},
331
+ {"label": "Deep-dive into {platform} ({lowest_score}/100)", "description": "Lowest scoring platform needs attention"},
332
+ {"label": "Optimize budget allocation", "description": "Run /agileflow:ads:budget for detailed reallocation plan"},
333
+ {"label": "Plan new campaign strategy", "description": "Run /agileflow:ads:plan for industry-specific templates"}
334
+ ]
335
+ }]</parameter>
336
+ </invoke>
337
+ ```
338
+
339
+ ---
340
+
341
+ ## Scoring System
342
+
343
+ **Health Score**: `100 - (Critical*5.0 + High*3.0 + Medium*1.5 + Low*0.5)` per category
344
+
345
+ **Grades**: A (90-100), B (80-89), C (70-79), D (60-69), F (<60)
346
+
347
+ **Category Weights**: Tracking 25%, Wasted Spend 20%, Structure 15%, Creative 15%, Budget 15%, Compliance 10%
348
+
349
+ ---
350
+
351
+ <!-- COMPACT_SUMMARY_START -->
352
+ ## Compact Summary
353
+
354
+ **Command**: `/agileflow:ads:audit` - Full multi-platform ads audit with 6 parallel analyzers
355
+
356
+ **Quick Usage**:
357
+ ```
358
+ /agileflow:ads:audit <account-data> # Full audit
359
+ /agileflow:ads:audit <data> PLATFORMS=google,meta # Specific platforms
360
+ ```
361
+
362
+ **What It Does**: Parse data -> Detect industry -> Deploy 6 analyzers in parallel -> Consensus weights scores -> Ads Health Score 0-100 -> Prioritized action plan
363
+
364
+ **Analyzers (all 6 deploy in parallel)**:
365
+ - `ads-audit-google` - 74 checks: tracking, spend, structure, keywords, ads, settings
366
+ - `ads-audit-meta` - 46 checks: Pixel/CAPI, creative, structure, audience
367
+ - `ads-audit-budget` - 24 checks: allocation, bidding, scaling, platform mix
368
+ - `ads-audit-creative` - 21 checks: copy, visuals, platform specs, testing
369
+ - `ads-audit-tracking` - 7 checks: tags, events, dedup, attribution, privacy
370
+ - `ads-audit-compliance` - 18 checks: policy, regulatory, benchmarks, health
371
+
372
+ **Category Weights**: Tracking 25%, Wasted Spend 20%, Structure 15%, Creative 15%, Budget 15%, Compliance 10%
373
+
374
+ **Output**: `docs/08-project/ads-audits/ads-audit-{YYYYMMDD}.md`
375
+ <!-- COMPACT_SUMMARY_END -->
@@ -0,0 +1,97 @@
1
+ ---
2
+ description: Budget allocation and bidding strategy optimizer with industry benchmarks, platform minimums, scaling rules, and reallocation recommendations
3
+ argument-hint: "<account-data>"
4
+ compact_context:
5
+ priority: medium
6
+ preserve_rules:
7
+ - "ACTIVE COMMAND: /agileflow:ads:budget - Budget & bidding strategy"
8
+ - "Delegate to ads-audit-budget agent for 24 checks"
9
+ - "Include platform minimums and scaling rules"
10
+ state_fields:
11
+ - budget_score
12
+ - total_spend
13
+ ---
14
+
15
+ # /agileflow:ads:budget
16
+
17
+ Run a budget allocation and bidding strategy audit using the `ads-audit-budget` agent with 24 checks, including industry benchmarks and specific reallocation recommendations.
18
+
19
+ ---
20
+
21
+ ## Quick Reference
22
+
23
+ ```
24
+ /agileflow:ads:budget <account-data> # Full budget audit
25
+ ```
26
+
27
+ ---
28
+
29
+ ## Process
30
+
31
+ ### STEP 1: Validate Input
32
+
33
+ If no data provided, ask for:
34
+ - Monthly spend per platform
35
+ - Campaign-level budgets and performance
36
+ - Bid strategies in use
37
+ - Conversion data (volume, CPA, ROAS)
38
+ - Industry and target metrics
39
+
40
+ ### STEP 2: Deploy Budget Analyzer
41
+
42
+ ```xml
43
+ <invoke name="Task">
44
+ <parameter name="description">Budget and bidding audit</parameter>
45
+ <parameter name="prompt">TASK: Audit budget allocation and bidding strategy.
46
+
47
+ ACCOUNT DATA:
48
+ {budget_data}
49
+
50
+ Apply ALL 24 checks across 4 categories:
51
+ - Budget Allocation (35%) - 8 checks
52
+ - Bidding Strategy (30%) - 8 checks
53
+ - Scaling & Pacing (20%) - 4 checks
54
+ - Platform Mix (15%) - 4 checks
55
+
56
+ Enforce platform minimums, scaling rules, and 3x Kill Rule.
57
+ Include specific dollar reallocation recommendations.
58
+
59
+ OUTPUT: Full findings with Budget Score X/100</parameter>
60
+ <parameter name="subagent_type">ads-audit-budget</parameter>
61
+ </invoke>
62
+ ```
63
+
64
+ ### STEP 3: Present Results
65
+
66
+ Show Budget Score with specific reallocation recommendations.
67
+
68
+ ---
69
+
70
+ ## Platform Minimums
71
+
72
+ | Platform | Campaign Minimum | Ad Set/Group Minimum |
73
+ |----------|-----------------|---------------------|
74
+ | Google Ads | $10/day | $5/day |
75
+ | Meta Ads | $20/day | $10/day |
76
+ | LinkedIn Ads | $50/day | $25/day |
77
+ | TikTok Ads | $50/day campaign | $20/day ad group |
78
+ | Microsoft Ads | $10/day | $5/day |
79
+
80
+ ## Scaling Rules
81
+
82
+ 1. Max 20% budget increase per week
83
+ 2. Only scale campaigns that exited learning phase
84
+ 3. 3x Kill Rule: Pause if CPA > 3x target
85
+ 4. Minimum 2 weeks data before major changes
86
+
87
+ ---
88
+
89
+ <!-- COMPACT_SUMMARY_START -->
90
+ ## Compact Summary
91
+
92
+ **Command**: `/agileflow:ads:budget` - Budget & bidding strategy audit
93
+
94
+ **Agent**: `ads-audit-budget` (24 checks, 4 categories)
95
+
96
+ **Quick Usage**: `/agileflow:ads:budget <account-data>`
97
+ <!-- COMPACT_SUMMARY_END -->
@@ -0,0 +1,112 @@
1
+ ---
2
+ description: Competitive intelligence for paid advertising - market positioning, messaging gaps, ad copy analysis, and strategic recommendations
3
+ argument-hint: "<industry-or-competitors>"
4
+ compact_context:
5
+ priority: medium
6
+ preserve_rules:
7
+ - "ACTIVE COMMAND: /agileflow:ads:competitor - Competitive intelligence"
8
+ - "Use WebSearch for competitor research"
9
+ - "Focus on ad-specific competitive factors"
10
+ state_fields:
11
+ - industry
12
+ - competitors
13
+ ---
14
+
15
+ # /agileflow:ads:competitor
16
+
17
+ Analyze competitive landscape for paid advertising, including competitor ad strategies, messaging positioning, and market gaps.
18
+
19
+ ---
20
+
21
+ ## Quick Reference
22
+
23
+ ```
24
+ /agileflow:ads:competitor "SaaS project management" # Industry research
25
+ /agileflow:ads:competitor "competitor1, competitor2" # Specific competitors
26
+ ```
27
+
28
+ ---
29
+
30
+ ## Process
31
+
32
+ ### STEP 1: Identify Competitors
33
+
34
+ If competitors not specified, use WebSearch to identify top advertisers in the space:
35
+ - Search for industry keywords and note who's advertising
36
+ - Look for "Sponsored" results on Google
37
+ - Check Meta Ad Library for active advertisers
38
+
39
+ ### STEP 2: Analyze Competitor Ads
40
+
41
+ For each competitor, research:
42
+
43
+ | Factor | How to Find | What to Note |
44
+ |--------|------------|-------------|
45
+ | **Ad copy themes** | Google search, Ad Library | Headlines, CTAs, value props |
46
+ | **Landing pages** | Click through ads | Page structure, offers, forms |
47
+ | **Platforms active** | Ad libraries, social | Which platforms they invest in |
48
+ | **Offer positioning** | Ad copy, landing pages | Free trial, discount, demo |
49
+ | **Audience signals** | LinkedIn ads, social targeting | Who they're targeting |
50
+ | **Creative style** | Ad Library | Video vs image, UGC, professional |
51
+
52
+ ### STEP 3: Gap Analysis
53
+
54
+ Identify opportunities the user can exploit:
55
+
56
+ ```markdown
57
+ ## Competitive Intelligence Report
58
+
59
+ ### Competitor Overview
60
+
61
+ | Competitor | Platforms | Key Message | Offer | Ad Style |
62
+ |-----------|-----------|------------|-------|---------|
63
+ | {name} | {platforms} | {message} | {offer} | {style} |
64
+
65
+ ### Messaging Gaps
66
+ {Where competitors are NOT messaging - opportunities for differentiation}
67
+
68
+ ### Ad Format Gaps
69
+ {Ad types/platforms competitors aren't using}
70
+
71
+ ### Positioning Recommendations
72
+ 1. **Differentiate on**: {unique angle}
73
+ 2. **Counter-position**: {how to position against top competitor}
74
+ 3. **Underserved keyword themes**: {keyword areas competitors miss}
75
+
76
+ ### Suggested Ad Copy Angles
77
+ - **Angle 1**: {headline idea} - Why: {competitive reason}
78
+ - **Angle 2**: {headline idea} - Why: {competitive reason}
79
+ - **Angle 3**: {headline idea} - Why: {competitive reason}
80
+ ```
81
+
82
+ ### STEP 4: Offer Next Steps
83
+
84
+ ```xml
85
+ <invoke name="AskUserQuestion">
86
+ <parameter name="questions">[{
87
+ "question": "Competitive analysis complete. {N} competitors analyzed, {M} messaging gaps found.",
88
+ "header": "Next steps",
89
+ "multiSelect": false,
90
+ "options": [
91
+ {"label": "Build campaign plan using these insights (Recommended)", "description": "Run /agileflow:ads:plan with competitive positioning"},
92
+ {"label": "Audit our current ads against findings", "description": "Compare your ads to competitor strategies"},
93
+ {"label": "Deep-dive into specific competitor", "description": "More detailed analysis of one competitor"},
94
+ {"label": "Generate ad copy based on gaps", "description": "Create ad copy exploiting found gaps"}
95
+ ]
96
+ }]</parameter>
97
+ </invoke>
98
+ ```
99
+
100
+ ---
101
+
102
+ <!-- COMPACT_SUMMARY_START -->
103
+ ## Compact Summary
104
+
105
+ **Command**: `/agileflow:ads:competitor` - Competitive intelligence for ads
106
+
107
+ **Input**: Industry or competitor names
108
+
109
+ **Output**: Competitor ad analysis, messaging gaps, positioning recommendations
110
+
111
+ **Quick Usage**: `/agileflow:ads:competitor <industry-or-competitors>`
112
+ <!-- COMPACT_SUMMARY_END -->
@@ -0,0 +1,85 @@
1
+ ---
2
+ description: Cross-platform creative quality review with 21 checks for ad copy effectiveness, visual compliance, format coverage, and performance testing
3
+ argument-hint: "<account-data>"
4
+ compact_context:
5
+ priority: medium
6
+ preserve_rules:
7
+ - "ACTIVE COMMAND: /agileflow:ads:creative - Creative quality review"
8
+ - "Delegate to ads-audit-creative agent for 21 checks"
9
+ state_fields:
10
+ - creative_score
11
+ ---
12
+
13
+ # /agileflow:ads:creative
14
+
15
+ Run a creative quality audit across all ad platforms using the `ads-audit-creative` agent with 21 checks.
16
+
17
+ ---
18
+
19
+ ## Quick Reference
20
+
21
+ ```
22
+ /agileflow:ads:creative <account-data> # Cross-platform creative review
23
+ ```
24
+
25
+ ---
26
+
27
+ ## Process
28
+
29
+ ### STEP 1: Validate Input
30
+
31
+ If no data provided, ask the user to share:
32
+ - Ad copy (headlines, descriptions, primary text)
33
+ - Creative assets (image specs, video details)
34
+ - Platform-specific formatting
35
+ - Performance metrics (CTR, CPC, frequency)
36
+
37
+ ### STEP 2: Deploy Creative Analyzer
38
+
39
+ ```xml
40
+ <invoke name="Task">
41
+ <parameter name="description">Creative quality audit</parameter>
42
+ <parameter name="prompt">TASK: Audit creative quality across all platforms.
43
+
44
+ ACCOUNT DATA:
45
+ {creative_data}
46
+
47
+ Apply ALL 21 checks across 4 categories:
48
+ - Ad Copy Effectiveness (30%) - 7 checks
49
+ - Visual & Format Compliance (25%) - 6 checks
50
+ - Platform-Specific Requirements (25%) - 4 checks
51
+ - Performance & Testing (20%) - 4 checks
52
+
53
+ Check safe zones (TikTok, Meta Stories), character limits, and restricted content.
54
+
55
+ OUTPUT: Full findings with Creative Score X/100</parameter>
56
+ <parameter name="subagent_type">ads-audit-creative</parameter>
57
+ </invoke>
58
+ ```
59
+
60
+ ### STEP 3: Present Results
61
+
62
+ Show Creative Score and offer actionable next steps.
63
+
64
+ ---
65
+
66
+ ## 21 Checks Overview
67
+
68
+ | Category | Weight | Checks | Focus |
69
+ |----------|--------|--------|-------|
70
+ | Ad Copy Effectiveness | 30% | 7 | Value prop, CTA, social proof, keyword alignment |
71
+ | Visual & Format | 25% | 6 | Resolution, text overlay, brand, mobile-first |
72
+ | Platform Requirements | 25% | 4 | Format coverage, native style, char limits, compliance |
73
+ | Performance & Testing | 20% | 4 | Diversity, winner ID, refresh cadence, A/B testing |
74
+
75
+ ---
76
+
77
+ <!-- COMPACT_SUMMARY_START -->
78
+ ## Compact Summary
79
+
80
+ **Command**: `/agileflow:ads:creative` - Cross-platform creative quality review
81
+
82
+ **Agent**: `ads-audit-creative` (21 checks, 4 categories)
83
+
84
+ **Quick Usage**: `/agileflow:ads:creative <account-data>`
85
+ <!-- COMPACT_SUMMARY_END -->