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,321 @@
1
+ ---
2
+ description: Campaign planning with industry-specific templates, multi-step discovery, budget allocation, and platform recommendations
3
+ argument-hint: "[INDUSTRY=auto] [BUDGET=monthly] [GOAL=conversions]"
4
+ compact_context:
5
+ priority: medium
6
+ preserve_rules:
7
+ - "ACTIVE COMMAND: /agileflow:ads:plan - Campaign planning"
8
+ - "Use AskUserQuestion for multi-step discovery flow"
9
+ - "Apply industry-specific templates and platform recommendations"
10
+ - "Include budget allocation matrix and timeline"
11
+ state_fields:
12
+ - industry
13
+ - budget
14
+ - goal
15
+ - platforms
16
+ ---
17
+
18
+ # /agileflow:ads:plan
19
+
20
+ Generate a comprehensive paid advertising campaign plan with industry-specific templates, platform recommendations, budget allocation, and timeline.
21
+
22
+ ---
23
+
24
+ ## Quick Reference
25
+
26
+ ```
27
+ /agileflow:ads:plan # Interactive planning (recommended)
28
+ /agileflow:ads:plan INDUSTRY=saas BUDGET=5000 # Direct with parameters
29
+ /agileflow:ads:plan INDUSTRY=ecommerce GOAL=roas # E-commerce with ROAS goal
30
+ ```
31
+
32
+ ---
33
+
34
+ ## Multi-Step Discovery Flow
35
+
36
+ ### STEP 1: Business Discovery
37
+
38
+ ```xml
39
+ <invoke name="AskUserQuestion">
40
+ <parameter name="questions">[
41
+ {
42
+ "question": "What type of business are you advertising for?",
43
+ "header": "Industry",
44
+ "multiSelect": false,
45
+ "options": [
46
+ {"label": "SaaS / Software", "description": "Software product, free trials, demos, subscriptions"},
47
+ {"label": "E-commerce / Retail", "description": "Physical or digital products, online store"},
48
+ {"label": "Local Services", "description": "Service-area business, appointments, phone calls"},
49
+ {"label": "B2B / Enterprise", "description": "Long sales cycle, demos, enterprise deals"}
50
+ ]
51
+ },
52
+ {
53
+ "question": "What's your primary advertising goal?",
54
+ "header": "Goal",
55
+ "multiSelect": false,
56
+ "options": [
57
+ {"label": "Lead generation (Recommended for most)", "description": "Collect leads, demos, sign-ups"},
58
+ {"label": "Direct sales / ROAS", "description": "Drive purchases with measurable return"},
59
+ {"label": "Brand awareness", "description": "Reach and frequency for brand building"},
60
+ {"label": "App installs", "description": "Drive mobile app downloads"}
61
+ ]
62
+ },
63
+ {
64
+ "question": "What's your monthly advertising budget?",
65
+ "header": "Budget",
66
+ "multiSelect": false,
67
+ "options": [
68
+ {"label": "$1,000 - $5,000", "description": "Starter budget - focus on 1-2 platforms"},
69
+ {"label": "$5,000 - $20,000", "description": "Growth budget - 2-3 platforms recommended"},
70
+ {"label": "$20,000 - $100,000", "description": "Scale budget - multi-platform strategy"},
71
+ {"label": "$100,000+", "description": "Enterprise budget - full platform coverage"}
72
+ ]
73
+ }
74
+ ]</parameter>
75
+ </invoke>
76
+ ```
77
+
78
+ ### STEP 2: Platform Selection
79
+
80
+ Based on industry and budget, recommend platforms:
81
+
82
+ ```xml
83
+ <invoke name="AskUserQuestion">
84
+ <parameter name="questions">[{
85
+ "question": "Based on {industry} with ${budget}/mo budget, which platforms do you want to include?",
86
+ "header": "Platforms",
87
+ "multiSelect": true,
88
+ "options": [
89
+ {"label": "Google Ads (Recommended)", "description": "Search intent capture - best for {reason}"},
90
+ {"label": "Meta Ads (Recommended)", "description": "Prospecting and retargeting - {audience_size}"},
91
+ {"label": "LinkedIn Ads", "description": "B2B targeting - min $50/day recommended"},
92
+ {"label": "TikTok Ads", "description": "Younger demographics - min $50/day campaign"}
93
+ ]
94
+ }]</parameter>
95
+ </invoke>
96
+ ```
97
+
98
+ ### STEP 3: Generate Campaign Plan
99
+
100
+ Based on discoveries, generate the full plan.
101
+
102
+ ---
103
+
104
+ ## Industry Templates
105
+
106
+ ### SaaS / Software
107
+ ```markdown
108
+ ## Campaign Structure: SaaS
109
+
110
+ ### Google Ads (40% of budget)
111
+ - **Search - Brand**: Protect brand terms, tCPA bidding
112
+ - **Search - Non-Brand (High Intent)**: "buy", "pricing", "vs", "alternative" keywords
113
+ - **Search - Non-Brand (Research)**: "how to", "best", "what is" keywords
114
+ - **Performance Max**: Product feed + audience signals
115
+
116
+ ### Meta Ads (35% of budget)
117
+ - **Prospecting - Lookalike**: LAL from trial signups/demos
118
+ - **Prospecting - Interest**: Job titles, competitor interests
119
+ - **Retargeting - Website**: 30/60/90 day windows
120
+ - **Retargeting - Engagement**: Video viewers, page engagers
121
+
122
+ ### LinkedIn Ads (25% of budget)
123
+ - **Sponsored Content**: Thought leadership, case studies
124
+ - **Lead Gen Forms**: Direct lead capture (no landing page)
125
+ - **Retargeting**: Website visitors, engagement audiences
126
+
127
+ ### KPIs
128
+ | Metric | Target |
129
+ |--------|--------|
130
+ | CPL (MQL) | $50-150 |
131
+ | CPL (SQL) | $150-400 |
132
+ | Trial-to-Paid | 15-25% |
133
+ | ROAS (12mo LTV) | 5:1+ |
134
+ ```
135
+
136
+ ### E-commerce / Retail
137
+ ```markdown
138
+ ## Campaign Structure: E-commerce
139
+
140
+ ### Google Ads (50% of budget)
141
+ - **Shopping / PMax**: Product feed campaigns
142
+ - **Search - Brand**: Brand protection
143
+ - **Search - Non-Brand**: Product + category keywords
144
+ - **Dynamic Search Ads**: Keyword gap coverage
145
+
146
+ ### Meta Ads (40% of budget)
147
+ - **Advantage+ Shopping**: Automated catalog sales
148
+ - **Prospecting - Lookalike**: LAL from purchasers
149
+ - **Retargeting - DPA**: Dynamic product ads
150
+ - **Retargeting - Cart Abandonment**: 7/14/30 day
151
+
152
+ ### TikTok (10% of budget)
153
+ - **Spark Ads**: Boost organic UGC
154
+ - **Collection Ads**: Catalog-driven
155
+
156
+ ### KPIs
157
+ | Metric | Target |
158
+ |--------|--------|
159
+ | ROAS | 3:1 - 5:1 |
160
+ | CPA (Purchase) | < $30-80 |
161
+ | AOV:CPA | > 3:1 |
162
+ | Cart Abandonment Recovery | 10-15% |
163
+ ```
164
+
165
+ ### Local Services
166
+ ```markdown
167
+ ## Campaign Structure: Local Services
168
+
169
+ ### Google Ads (60% of budget)
170
+ - **Search - Service**: "[service] near me", "[service] [city]"
171
+ - **Search - Brand**: Brand protection
172
+ - **Local Service Ads**: Google Guaranteed (if eligible)
173
+ - **Call-Only Campaigns**: Direct phone calls
174
+
175
+ ### Meta Ads (30% of budget)
176
+ - **Prospecting - Radius**: 15-30 mile radius targeting
177
+ - **Retargeting - Website**: Visitors who didn't convert
178
+ - **Lead Gen Forms**: Quick contact form
179
+
180
+ ### Microsoft Ads (10% of budget)
181
+ - **Search Import**: Import Google campaigns
182
+
183
+ ### KPIs
184
+ | Metric | Target |
185
+ |--------|--------|
186
+ | CPL | $15-50 |
187
+ | Cost Per Call | $20-60 |
188
+ | Booking Rate | 25-40% |
189
+ | Customer LTV:CPA | > 5:1 |
190
+ ```
191
+
192
+ ### B2B / Enterprise
193
+ ```markdown
194
+ ## Campaign Structure: B2B
195
+
196
+ ### LinkedIn Ads (40% of budget)
197
+ - **Sponsored Content**: Whitepapers, case studies
198
+ - **Lead Gen Forms**: Gated content
199
+ - **ABM Campaigns**: Matched audiences for target accounts
200
+ - **Retargeting**: Website visitors
201
+
202
+ ### Google Ads (35% of budget)
203
+ - **Search - High Intent**: "enterprise [solution]", "[category] software"
204
+ - **Search - Competitor**: "[competitor] alternative"
205
+ - **Display - Remarketing**: Content downloaders
206
+ - **YouTube**: Product demos
207
+
208
+ ### Meta Ads (25% of budget)
209
+ - **Prospecting - LAL**: From CRM customer list
210
+ - **Retargeting**: Website + LinkedIn crossover
211
+ - **Content Distribution**: Webinar/event promotion
212
+
213
+ ### KPIs
214
+ | Metric | Target |
215
+ |--------|--------|
216
+ | CPL (MQL) | $100-300 |
217
+ | CPL (SQL) | $300-1000 |
218
+ | Pipeline Contribution | 30-50% |
219
+ | Deal Close Rate | 10-20% |
220
+ ```
221
+
222
+ ---
223
+
224
+ ## Budget Allocation Matrix
225
+
226
+ | Monthly Budget | Platforms | Allocation |
227
+ |---------------|-----------|------------|
228
+ | $1K-5K | 1-2 | 70% primary / 30% secondary |
229
+ | $5K-20K | 2-3 | 50% / 30% / 20% |
230
+ | $20K-100K | 3-4 | 40% / 25% / 20% / 15% |
231
+ | $100K+ | 4-6 | Proportional to ROAS by platform |
232
+
233
+ Within each platform:
234
+ - **70%** Proven campaigns (known performers)
235
+ - **20%** Testing (new audiences, creatives, keywords)
236
+ - **10%** Experimental (new platforms, formats, strategies)
237
+
238
+ ---
239
+
240
+ ## Output Format
241
+
242
+ ```markdown
243
+ # Paid Advertising Campaign Plan
244
+
245
+ **Industry**: {type}
246
+ **Monthly Budget**: ${amount}
247
+ **Goal**: {primary goal}
248
+ **Platforms**: {selected platforms}
249
+ **Timeline**: {3/6/12 month}
250
+
251
+ ---
252
+
253
+ ## Executive Summary
254
+ {2-3 sentences on the strategy}
255
+
256
+ ---
257
+
258
+ ## Platform Breakdown
259
+
260
+ ### {Platform 1} ({X}% - ${amount}/mo)
261
+ {Campaign structure from template}
262
+
263
+ ### {Platform 2} ({X}% - ${amount}/mo)
264
+ {Campaign structure from template}
265
+
266
+ ---
267
+
268
+ ## Launch Timeline
269
+
270
+ ### Week 1-2: Foundation
271
+ - [ ] Set up conversion tracking on all platforms
272
+ - [ ] Create audiences and upload customer lists
273
+ - [ ] Build campaign structures (no ads yet)
274
+
275
+ ### Week 3-4: Launch
276
+ - [ ] Launch brand campaigns first
277
+ - [ ] Activate retargeting campaigns
278
+ - [ ] Begin prospecting with proven audiences
279
+
280
+ ### Month 2: Optimize
281
+ - [ ] Review search terms, add negatives
282
+ - [ ] Identify winning/losing creatives
283
+ - [ ] Adjust bids based on early data
284
+
285
+ ### Month 3: Scale
286
+ - [ ] Scale winners (20% budget increase/week max)
287
+ - [ ] Pause underperformers (3x Kill Rule)
288
+ - [ ] Test new audiences and creatives
289
+
290
+ ---
291
+
292
+ ## Measurement Framework
293
+
294
+ | KPI | Target | Measurement |
295
+ |-----|--------|------------|
296
+ | {kpi} | {target} | {how to measure} |
297
+
298
+ ---
299
+
300
+ ## Budget Scaling Rules
301
+
302
+ 1. Only scale campaigns that have exited learning phase
303
+ 2. Maximum 20% budget increase per week
304
+ 3. 3x Kill Rule: Pause campaigns with CPA > 3x target
305
+ 4. Minimum 2 weeks of data before major changes
306
+ 5. Never scale and test simultaneously on same campaign
307
+ ```
308
+
309
+ ---
310
+
311
+ <!-- COMPACT_SUMMARY_START -->
312
+ ## Compact Summary
313
+
314
+ **Command**: `/agileflow:ads:plan` - Campaign planning with industry templates
315
+
316
+ **Input**: Industry + budget + goal (interactive discovery or parameters)
317
+
318
+ **Output**: Full campaign plan with platform allocation, structure, timeline, and KPIs
319
+
320
+ **Usage**: `/agileflow:ads:plan [INDUSTRY=auto] [BUDGET=monthly] [GOAL=conversions]`
321
+ <!-- COMPACT_SUMMARY_END -->
@@ -0,0 +1,129 @@
1
+ ---
2
+ description: TikTok Ads audit with 8 checks for learning phase management, budget minimums, creative safe zones, and platform-specific optimization
3
+ argument-hint: "<account-data>"
4
+ compact_context:
5
+ priority: medium
6
+ preserve_rules:
7
+ - "ACTIVE COMMAND: /agileflow:ads:tiktok - TikTok Ads audit"
8
+ - "Inline command - 8 checks, no separate agent needed"
9
+ - "Min budget: $50/day campaign, $20/day ad group"
10
+ - "Learning phase: 50 conversions in 7 days"
11
+ state_fields:
12
+ - tiktok_score
13
+ ---
14
+
15
+ # /agileflow:ads:tiktok
16
+
17
+ Run an inline audit on a TikTok Ads account with 8 focused checks. TikTok requires creative-first strategy and strict learning phase management.
18
+
19
+ ---
20
+
21
+ ## Quick Reference
22
+
23
+ ```
24
+ /agileflow:ads:tiktok <account-data> # TikTok Ads audit
25
+ ```
26
+
27
+ ---
28
+
29
+ ## The 8 Checks
30
+
31
+ | # | Check | Severity | Pass Criteria |
32
+ |---|-------|----------|---------------|
33
+ | TT-1 | TikTok Pixel installed | CRITICAL | Pixel on all pages, Events API preferred |
34
+ | TT-2 | Learning phase management | CRITICAL | 50 conversions in 7 days per ad group |
35
+ | TT-3 | Budget meets minimum | CRITICAL | $50/day campaign, $20/day ad group |
36
+ | TT-4 | Creative safe zones | HIGH | Key content within center 720x900px |
37
+ | TT-5 | Video-first creatives | HIGH | All ads are video (no static images) |
38
+ | TT-6 | UGC/authentic style | HIGH | Native-feeling content (not polished ads) |
39
+ | TT-7 | Sound-on design | MEDIUM | Audio is integral, not optional |
40
+ | TT-8 | Creative refresh < 14 days | HIGH | New creatives every 1-2 weeks |
41
+
42
+ ---
43
+
44
+ ## Process
45
+
46
+ ### STEP 1: Apply All 8 Checks
47
+
48
+ Review the account data against each check. For TikTok specifically:
49
+
50
+ **Learning phase is critical**:
51
+ - TikTok needs 50 conversions in 7 days per ad group to exit learning
52
+ - At $20/day minimum: $140/week = 50 conversions needed
53
+ - That requires CPA < $2.80 - often unrealistic
54
+ - **Solution**: Optimize for upper-funnel events (View Content, Add to Cart) until volume builds
55
+
56
+ **Creative safe zones**:
57
+ ```
58
+ +---------------------------+
59
+ | Username (130px) |
60
+ | |
61
+ | +----------------+ |
62
+ | | | |
63
+ | | SAFE ZONE | |
64
+ | | 720 x 900px | |
65
+ | | | |
66
+ | +----------------+ |
67
+ | |btns |
68
+ | CTA + Nav (170px) | |
69
+ +---------------------------+
70
+ ```
71
+
72
+ **Creative best practices**:
73
+ - First 3 seconds: Hook with pattern interrupt
74
+ - 15-30 second sweet spot for most objectives
75
+ - Vertical 9:16 only (no landscape)
76
+ - Captions/text overlay for sound-off viewing
77
+ - Trend-aware content outperforms polished ads
78
+
79
+ ### STEP 2: Score
80
+
81
+ ```
82
+ TikTok Score = 100 - sum(severity_deductions)
83
+ ```
84
+
85
+ Deductions: CRITICAL (-15), HIGH (-8), MEDIUM (-4), LOW (-2)
86
+
87
+ ### STEP 3: Output
88
+
89
+ ```markdown
90
+ ## TikTok Ads Audit
91
+
92
+ **TikTok Score**: {X}/100
93
+
94
+ | Check | Status | Notes |
95
+ |-------|--------|-------|
96
+ | TT-1 Pixel/Events API | PASS/FAIL | {details} |
97
+ | TT-2 Learning phase | PASS/FAIL | {conversion volume} |
98
+ | TT-3 Budget minimum | PASS/FAIL | ${daily}/day |
99
+ | TT-4 Safe zones | PASS/FAIL | {creative analysis} |
100
+ | TT-5 Video-first | PASS/FAIL | {format types} |
101
+ | TT-6 UGC style | PASS/FAIL | {creative style} |
102
+ | TT-7 Sound-on | PASS/FAIL | {audio strategy} |
103
+ | TT-8 Creative refresh | PASS/FAIL | {last refresh date} |
104
+
105
+ ### Key Recommendations
106
+ 1. {Top priority fix}
107
+ 2. {Second priority}
108
+ 3. {Third priority}
109
+
110
+ ### TikTok-Specific Tips
111
+ - "Don't make ads, make TikToks" - native > polished
112
+ - Spark Ads (boosting organic) often outperform traditional ads
113
+ - Creative fatigue hits faster on TikTok (7-14 days vs 30 on Meta)
114
+ - Use Creative Center for trending sounds and formats
115
+ ```
116
+
117
+ ---
118
+
119
+ <!-- COMPACT_SUMMARY_START -->
120
+ ## Compact Summary
121
+
122
+ **Command**: `/agileflow:ads:tiktok` - TikTok Ads audit
123
+
124
+ **Checks**: 8 (inline, no separate agent)
125
+
126
+ **Key**: $50/day min, 50 conv/7 days learning, video-only, UGC style
127
+
128
+ **Quick Usage**: `/agileflow:ads:tiktok <account-data>`
129
+ <!-- COMPACT_SUMMARY_END -->
@@ -0,0 +1,124 @@
1
+ ---
2
+ description: YouTube Ads audit for video campaign types, ad formats, targeting strategy, bidding optimization, and creative effectiveness
3
+ argument-hint: "<account-data>"
4
+ compact_context:
5
+ priority: medium
6
+ preserve_rules:
7
+ - "ACTIVE COMMAND: /agileflow:ads:youtube - YouTube Ads audit"
8
+ - "Inline command - check video formats, campaign types, targeting"
9
+ - "YouTube runs through Google Ads platform"
10
+ state_fields:
11
+ - youtube_score
12
+ ---
13
+
14
+ # /agileflow:ads:youtube
15
+
16
+ Run an inline audit on YouTube advertising campaigns (managed through Google Ads) focusing on video-specific optimization.
17
+
18
+ ---
19
+
20
+ ## Quick Reference
21
+
22
+ ```
23
+ /agileflow:ads:youtube <account-data> # YouTube Ads audit
24
+ ```
25
+
26
+ ---
27
+
28
+ ## The 8 Checks
29
+
30
+ | # | Check | Severity | Pass Criteria |
31
+ |---|-------|----------|---------------|
32
+ | YT-1 | Campaign type alignment | HIGH | Correct campaign type for objective |
33
+ | YT-2 | Video format coverage | HIGH | Multiple formats tested (skippable, bumper, shorts) |
34
+ | YT-3 | Targeting strategy | HIGH | Audience targeting refined beyond demographics |
35
+ | YT-4 | Bidding strategy | HIGH | CPV/CPM/tCPA based on objective |
36
+ | YT-5 | Creative hook in 5 seconds | CRITICAL | First 5 seconds grab attention (before skip) |
37
+ | YT-6 | Companion banner | MEDIUM | Companion banner uploaded for desktop |
38
+ | YT-7 | Frequency capping | HIGH | Frequency cap set (3-5 per week recommended) |
39
+ | YT-8 | Conversion tracking | CRITICAL | YouTube conversions tracked in Google Ads |
40
+
41
+ ---
42
+
43
+ ## Process
44
+
45
+ ### STEP 1: Apply All 8 Checks
46
+
47
+ Review the account data against each check. For YouTube specifically:
48
+
49
+ **Campaign types**:
50
+ | Type | Best For | Format |
51
+ |------|---------|--------|
52
+ | Video Reach | Awareness | Bumper (6s) + In-stream |
53
+ | Video Views | Consideration | Skippable in-stream + in-feed |
54
+ | Video Action | Conversions | Skippable in-stream with CTA |
55
+ | Shorts Ads | Awareness + young demo | Vertical 60s max |
56
+ | Demand Gen | Full-funnel | YouTube + Discover + Gmail |
57
+
58
+ **Creative best practices**:
59
+ - First 5 seconds: Brand + hook (many viewers skip at 5s)
60
+ - CTA overlay throughout (not just at end)
61
+ - Mobile-first: 70%+ YouTube watching is mobile
62
+ - Captions/subtitles: Many watch without sound
63
+ - 15-30 seconds optimal for action campaigns
64
+ - Shorts: Vertical 9:16, authentic style
65
+
66
+ **Targeting options**:
67
+ - Custom Intent: Based on Google search behavior
68
+ - Affinity: Interest-based broad reach
69
+ - In-Market: Active purchase intent
70
+ - Remarketing: Website visitors, video viewers
71
+ - Customer Match: Upload customer lists
72
+ - Topic/placement: Specific channels/videos
73
+
74
+ ### STEP 2: Score
75
+
76
+ ```
77
+ YouTube Score = 100 - sum(severity_deductions)
78
+ ```
79
+
80
+ Deductions: CRITICAL (-15), HIGH (-8), MEDIUM (-4), LOW (-2)
81
+
82
+ ### STEP 3: Output
83
+
84
+ ```markdown
85
+ ## YouTube Ads Audit
86
+
87
+ **YouTube Score**: {X}/100
88
+
89
+ | Check | Status | Notes |
90
+ |-------|--------|-------|
91
+ | YT-1 Campaign types | PASS/FAIL | {types in use} |
92
+ | YT-2 Video formats | PASS/FAIL | {formats tested} |
93
+ | YT-3 Targeting | PASS/FAIL | {targeting methods} |
94
+ | YT-4 Bidding | PASS/FAIL | {strategies used} |
95
+ | YT-5 5-second hook | PASS/FAIL | {creative analysis} |
96
+ | YT-6 Companion banner | PASS/FAIL | {banner status} |
97
+ | YT-7 Frequency cap | PASS/FAIL | {cap settings} |
98
+ | YT-8 Conversion tracking | PASS/FAIL | {tracking status} |
99
+
100
+ ### Key Recommendations
101
+ 1. {Top priority fix}
102
+ 2. {Second priority}
103
+ 3. {Third priority}
104
+
105
+ ### YouTube-Specific Tips
106
+ - Video Action campaigns drive most conversions (skippable in-stream with CTA)
107
+ - Custom Intent audiences (based on search) are YouTube's secret weapon
108
+ - Always create Shorts versions of successful long-form ads
109
+ - Test bumper ads (6s) for remarketing - cheap and high frequency
110
+ ```
111
+
112
+ ---
113
+
114
+ <!-- COMPACT_SUMMARY_START -->
115
+ ## Compact Summary
116
+
117
+ **Command**: `/agileflow:ads:youtube` - YouTube Ads audit
118
+
119
+ **Checks**: 8 (inline, no separate agent)
120
+
121
+ **Key**: 5-second hook, campaign types, Custom Intent targeting, frequency caps
122
+
123
+ **Quick Usage**: `/agileflow:ads:youtube <account-data>`
124
+ <!-- COMPACT_SUMMARY_END -->
@@ -0,0 +1,128 @@
1
+ ---
2
+ description: Paid advertising audit & planning toolkit - multi-platform account audits, campaign planning, budget optimization, and competitive intelligence
3
+ argument-hint: "[subcommand] [account-data]"
4
+ compact_context:
5
+ priority: medium
6
+ preserve_rules:
7
+ - "ACTIVE COMMAND: /agileflow:ads - Paid advertising router"
8
+ - "Route to the appropriate sub-command based on user intent"
9
+ - "If no sub-command specified, show the quick reference guide"
10
+ state_fields:
11
+ - subcommand
12
+ - platforms
13
+ ---
14
+
15
+ # /agileflow:ads
16
+
17
+ Paid advertising audit & planning toolkit for multi-platform account optimization. Routes to specialized sub-commands.
18
+
19
+ ---
20
+
21
+ ## Quick Reference
22
+
23
+ ```
24
+ /agileflow:ads:audit <account-data> # Full multi-platform audit (6 parallel analyzers)
25
+ /agileflow:ads:plan # Campaign planning with industry templates
26
+ /agileflow:ads:google <account-data> # Google Ads deep-dive (74 checks)
27
+ /agileflow:ads:meta <account-data> # Meta/Facebook audit (46 checks)
28
+ /agileflow:ads:creative <account-data> # Cross-platform creative review (21 checks)
29
+ /agileflow:ads:budget <account-data> # Budget allocation & bidding strategy
30
+ /agileflow:ads:landing <URL> # Landing page optimization
31
+ /agileflow:ads:competitor <industry> # Competitive intelligence
32
+ /agileflow:ads:linkedin <account-data> # LinkedIn audit (9 checks)
33
+ /agileflow:ads:tiktok <account-data> # TikTok audit (8 checks)
34
+ /agileflow:ads:microsoft <account-data> # Microsoft Ads audit (7 checks)
35
+ /agileflow:ads:youtube <account-data> # YouTube audit
36
+ ```
37
+
38
+ ---
39
+
40
+ ## Sub-Commands
41
+
42
+ | Command | Purpose | When to Use |
43
+ |---------|---------|-------------|
44
+ | **audit** | Full multi-platform audit with Ads Health Score | Starting point for any account |
45
+ | **plan** | Campaign planning with industry templates | New campaigns or restructuring |
46
+ | **google** | Google Ads deep-dive (74 checks) | Google-specific optimization |
47
+ | **meta** | Meta/Facebook audit (46 checks) | Meta-specific optimization |
48
+ | **creative** | Cross-platform creative quality | Creative strategy improvement |
49
+ | **budget** | Budget & bidding strategy | Spend optimization |
50
+ | **landing** | Landing page optimization | Conversion rate improvement |
51
+ | **competitor** | Competitive intelligence | Market positioning |
52
+ | **linkedin** | LinkedIn Ads audit | LinkedIn-specific optimization |
53
+ | **tiktok** | TikTok Ads audit | TikTok-specific optimization |
54
+ | **microsoft** | Microsoft Ads audit | Microsoft-specific optimization |
55
+ | **youtube** | YouTube Ads audit | Video campaign optimization |
56
+
57
+ ---
58
+
59
+ ## Account Data Formats
60
+
61
+ The ads commands accept account data in several formats:
62
+
63
+ 1. **Pasted text** - Copy/paste from ad platform exports (CSV, tables)
64
+ 2. **File path** - Point to exported CSV/JSON files
65
+ 3. **Structured description** - Describe your account setup in plain text
66
+ 4. **Screenshots** - Describe what you see in platform dashboards
67
+
68
+ For best results, include:
69
+ - Campaign names, types, and objectives
70
+ - Budget and spend data
71
+ - Conversion tracking setup
72
+ - Targeting settings
73
+ - Ad creative details
74
+ - Performance metrics (CPA, ROAS, CTR, CVR)
75
+
76
+ ---
77
+
78
+ ## Routing Logic
79
+
80
+ If the user provides data without a sub-command, determine intent:
81
+
82
+ 1. **"audit my ads"** -> `/agileflow:ads:audit`
83
+ 2. **"plan a campaign"** -> `/agileflow:ads:plan`
84
+ 3. **"check my Google Ads"** -> `/agileflow:ads:google`
85
+ 4. **"Meta" / "Facebook ads"** -> `/agileflow:ads:meta`
86
+ 5. **"creative review"** -> `/agileflow:ads:creative`
87
+ 6. **"budget" / "spend" / "bidding"** -> `/agileflow:ads:budget`
88
+ 7. **"landing page"** -> `/agileflow:ads:landing`
89
+ 8. **"competitor" / "competitive"** -> `/agileflow:ads:competitor`
90
+ 9. **"LinkedIn"** -> `/agileflow:ads:linkedin`
91
+ 10. **"TikTok"** -> `/agileflow:ads:tiktok`
92
+ 11. **"Microsoft" / "Bing"** -> `/agileflow:ads:microsoft`
93
+ 12. **"YouTube" / "video ads"** -> `/agileflow:ads:youtube`
94
+ 13. **Unclear** -> Show the quick reference and ask which analysis they want
95
+
96
+ ---
97
+
98
+ ## If No Sub-Command Specified
99
+
100
+ Show the quick reference table above and ask:
101
+
102
+ ```xml
103
+ <invoke name="AskUserQuestion">
104
+ <parameter name="questions">[{
105
+ "question": "Which advertising analysis would you like to run?",
106
+ "header": "Ads Analysis",
107
+ "multiSelect": false,
108
+ "options": [
109
+ {"label": "Full multi-platform audit (Recommended)", "description": "Comprehensive 6-analyzer audit with Ads Health Score 0-100"},
110
+ {"label": "Campaign planning", "description": "Industry-specific campaign templates with budget allocation"},
111
+ {"label": "Platform-specific audit", "description": "Deep-dive into Google, Meta, LinkedIn, TikTok, Microsoft, or YouTube"},
112
+ {"label": "Budget & bidding strategy", "description": "Optimize spend allocation and bidding across platforms"}
113
+ ]
114
+ }]</parameter>
115
+ </invoke>
116
+ ```
117
+
118
+ ---
119
+
120
+ <!-- COMPACT_SUMMARY_START -->
121
+ ## Compact Summary
122
+
123
+ **Command**: `/agileflow:ads` - Paid advertising audit & planning router
124
+
125
+ **Sub-commands**: audit, plan, google, meta, creative, budget, landing, competitor, linkedin, tiktok, microsoft, youtube
126
+
127
+ **Quick start**: `/agileflow:ads:audit <account-data>` for full analysis
128
+ <!-- COMPACT_SUMMARY_END -->