agileflow 3.3.0 → 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 (121) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/README.md +6 -6
  3. package/lib/skill-loader.js +0 -1
  4. package/package.json +1 -1
  5. package/scripts/agileflow-statusline.sh +81 -0
  6. package/scripts/claude-tmux.sh +113 -22
  7. package/scripts/claude-watchdog.sh +225 -0
  8. package/scripts/generators/agent-registry.js +14 -1
  9. package/scripts/generators/inject-babysit.js +22 -9
  10. package/scripts/generators/inject-help.js +19 -9
  11. package/scripts/lib/audit-cleanup.js +250 -0
  12. package/scripts/lib/audit-registry.js +248 -0
  13. package/scripts/lib/feature-catalog.js +3 -3
  14. package/scripts/lib/gate-enforcer.js +295 -0
  15. package/scripts/lib/model-profiles.js +98 -0
  16. package/scripts/lib/signal-detectors.js +1 -1
  17. package/scripts/lib/skill-catalog.js +557 -0
  18. package/scripts/lib/skill-recommender.js +311 -0
  19. package/scripts/lib/tdd-phase-manager.js +455 -0
  20. package/scripts/lib/team-events.js +34 -3
  21. package/scripts/lib/tmux-group-colors.js +113 -0
  22. package/scripts/messaging-bridge.js +209 -1
  23. package/scripts/spawn-audit-sessions.js +549 -0
  24. package/scripts/team-manager.js +37 -16
  25. package/scripts/tmux-close-windows.sh +180 -0
  26. package/src/core/agents/ads-audit-budget.md +181 -0
  27. package/src/core/agents/ads-audit-compliance.md +169 -0
  28. package/src/core/agents/ads-audit-creative.md +164 -0
  29. package/src/core/agents/ads-audit-google.md +226 -0
  30. package/src/core/agents/ads-audit-meta.md +183 -0
  31. package/src/core/agents/ads-audit-tracking.md +197 -0
  32. package/src/core/agents/ads-consensus.md +322 -0
  33. package/src/core/agents/brainstorm-analyzer-features.md +169 -0
  34. package/src/core/agents/brainstorm-analyzer-growth.md +161 -0
  35. package/src/core/agents/brainstorm-analyzer-integration.md +172 -0
  36. package/src/core/agents/brainstorm-analyzer-market.md +147 -0
  37. package/src/core/agents/brainstorm-analyzer-ux.md +167 -0
  38. package/src/core/agents/brainstorm-consensus.md +237 -0
  39. package/src/core/agents/completeness-consensus.md +5 -5
  40. package/src/core/agents/perf-consensus.md +2 -2
  41. package/src/core/agents/security-consensus.md +2 -2
  42. package/src/core/agents/seo-analyzer-content.md +167 -0
  43. package/src/core/agents/seo-analyzer-images.md +187 -0
  44. package/src/core/agents/seo-analyzer-performance.md +206 -0
  45. package/src/core/agents/seo-analyzer-schema.md +176 -0
  46. package/src/core/agents/seo-analyzer-sitemap.md +172 -0
  47. package/src/core/agents/seo-analyzer-technical.md +144 -0
  48. package/src/core/agents/seo-consensus.md +289 -0
  49. package/src/core/agents/test-consensus.md +2 -2
  50. package/src/core/commands/ads/audit.md +375 -0
  51. package/src/core/commands/ads/budget.md +97 -0
  52. package/src/core/commands/ads/competitor.md +112 -0
  53. package/src/core/commands/ads/creative.md +85 -0
  54. package/src/core/commands/ads/google.md +112 -0
  55. package/src/core/commands/ads/landing.md +119 -0
  56. package/src/core/commands/ads/linkedin.md +112 -0
  57. package/src/core/commands/ads/meta.md +91 -0
  58. package/src/core/commands/ads/microsoft.md +115 -0
  59. package/src/core/commands/ads/plan.md +321 -0
  60. package/src/core/commands/ads/tiktok.md +129 -0
  61. package/src/core/commands/ads/youtube.md +124 -0
  62. package/src/core/commands/ads.md +128 -0
  63. package/src/core/commands/babysit.md +249 -1284
  64. package/src/core/commands/{audit → code}/completeness.md +35 -25
  65. package/src/core/commands/{audit → code}/legal.md +26 -16
  66. package/src/core/commands/{audit → code}/logic.md +27 -16
  67. package/src/core/commands/{audit → code}/performance.md +30 -20
  68. package/src/core/commands/{audit → code}/security.md +32 -19
  69. package/src/core/commands/{audit → code}/test.md +30 -20
  70. package/src/core/commands/{discovery → ideate}/brief.md +12 -12
  71. package/src/core/commands/{discovery/new.md → ideate/discover.md} +13 -13
  72. package/src/core/commands/ideate/features.md +435 -0
  73. package/src/core/commands/seo/audit.md +373 -0
  74. package/src/core/commands/seo/competitor.md +174 -0
  75. package/src/core/commands/seo/content.md +107 -0
  76. package/src/core/commands/seo/geo.md +229 -0
  77. package/src/core/commands/seo/hreflang.md +140 -0
  78. package/src/core/commands/seo/images.md +96 -0
  79. package/src/core/commands/seo/page.md +198 -0
  80. package/src/core/commands/seo/plan.md +163 -0
  81. package/src/core/commands/seo/programmatic.md +131 -0
  82. package/src/core/commands/seo/references/cwv-thresholds.md +64 -0
  83. package/src/core/commands/seo/references/eeat-framework.md +110 -0
  84. package/src/core/commands/seo/references/quality-gates.md +91 -0
  85. package/src/core/commands/seo/references/schema-types.md +102 -0
  86. package/src/core/commands/seo/schema.md +183 -0
  87. package/src/core/commands/seo/sitemap.md +97 -0
  88. package/src/core/commands/seo/technical.md +100 -0
  89. package/src/core/commands/seo.md +107 -0
  90. package/src/core/commands/skill/list.md +68 -212
  91. package/src/core/commands/skill/recommend.md +216 -0
  92. package/src/core/commands/tdd-next.md +238 -0
  93. package/src/core/commands/tdd.md +210 -0
  94. package/src/core/experts/_core-expertise.yaml +105 -0
  95. package/src/core/experts/analytics/expertise.yaml +5 -99
  96. package/src/core/experts/codebase-query/expertise.yaml +3 -72
  97. package/src/core/experts/compliance/expertise.yaml +6 -72
  98. package/src/core/experts/database/expertise.yaml +9 -52
  99. package/src/core/experts/documentation/expertise.yaml +7 -140
  100. package/src/core/experts/integrations/expertise.yaml +7 -127
  101. package/src/core/experts/mentor/expertise.yaml +8 -35
  102. package/src/core/experts/monitoring/expertise.yaml +7 -49
  103. package/src/core/experts/performance/expertise.yaml +1 -26
  104. package/src/core/experts/security/expertise.yaml +9 -34
  105. package/src/core/experts/ui/expertise.yaml +6 -36
  106. package/src/core/knowledge/ads/ad-audit-checklist-scoring.md +424 -0
  107. package/src/core/knowledge/ads/ad-optimization-logic.md +590 -0
  108. package/src/core/knowledge/ads/ad-technical-specifications.md +385 -0
  109. package/src/core/knowledge/ads/definitive-advertising-reference-2026.md +506 -0
  110. package/src/core/knowledge/ads/paid-advertising-research-2026.md +445 -0
  111. package/src/core/templates/agileflow-metadata.json +15 -1
  112. package/tools/cli/installers/ide/_base-ide.js +42 -5
  113. package/tools/cli/installers/ide/claude-code.js +3 -3
  114. package/tools/cli/lib/content-injector.js +160 -12
  115. package/tools/cli/lib/docs-setup.js +1 -1
  116. package/src/core/commands/skill/create.md +0 -698
  117. package/src/core/commands/skill/delete.md +0 -316
  118. package/src/core/commands/skill/edit.md +0 -359
  119. package/src/core/commands/skill/test.md +0 -394
  120. package/src/core/commands/skill/upgrade.md +0 -552
  121. package/src/core/templates/skill-template.md +0 -117
@@ -0,0 +1,91 @@
1
+ ---
2
+ description: Meta/Facebook Ads deep-dive audit with 46 deterministic checks across Pixel/CAPI tracking, creative strategy, account structure, and audience targeting
3
+ argument-hint: "<account-data>"
4
+ compact_context:
5
+ priority: medium
6
+ preserve_rules:
7
+ - "ACTIVE COMMAND: /agileflow:ads:meta - Meta Ads deep-dive"
8
+ - "Delegate to ads-audit-meta agent for 46 checks"
9
+ - "Quality gates: Pixel required, domain verified, learning phase, Special Ad Categories"
10
+ state_fields:
11
+ - meta_score
12
+ ---
13
+
14
+ # /agileflow:ads:meta
15
+
16
+ Run a deep-dive audit on a Meta/Facebook Ads account using the `ads-audit-meta` agent with 46 deterministic checks across 4 categories.
17
+
18
+ ---
19
+
20
+ ## Quick Reference
21
+
22
+ ```
23
+ /agileflow:ads:meta <account-data> # Full Meta Ads audit
24
+ ```
25
+
26
+ ---
27
+
28
+ ## Process
29
+
30
+ ### STEP 1: Validate Input
31
+
32
+ If no account data provided, ask the user to paste or describe their Meta Ads setup including:
33
+ - Pixel and CAPI setup
34
+ - Campaign objectives and structure
35
+ - Audience targeting (LAL, custom, interest)
36
+ - Creative assets and formats
37
+ - Budget and performance metrics
38
+
39
+ ### STEP 2: Deploy Meta Ads Analyzer
40
+
41
+ ```xml
42
+ <invoke name="Task">
43
+ <parameter name="description">Meta Ads deep-dive audit</parameter>
44
+ <parameter name="prompt">TASK: Run a comprehensive Meta/Facebook Ads audit.
45
+
46
+ ACCOUNT DATA:
47
+ {account_data}
48
+
49
+ Apply ALL 46 checks across 4 weighted categories:
50
+ - Pixel & CAPI Tracking (30%) - 12 checks
51
+ - Creative Strategy (25%) - 14 checks
52
+ - Account Structure (25%) - 10 checks
53
+ - Audience Targeting (20%) - 10 checks
54
+
55
+ Enforce ALL quality gates:
56
+ 1. Pixel installed and firing
57
+ 2. Domain verified
58
+ 3. Learning phase healthy (50 conversions/week)
59
+ 4. Special Ad Categories declared
60
+
61
+ OUTPUT: Full findings with Meta Ads Score X/100</parameter>
62
+ <parameter name="subagent_type">ads-audit-meta</parameter>
63
+ </invoke>
64
+ ```
65
+
66
+ ### STEP 3: Present Results
67
+
68
+ Show the Meta Ads Score and key findings, then offer next steps.
69
+
70
+ ---
71
+
72
+ ## 46 Checks Overview
73
+
74
+ | Category | Weight | Checks | Focus |
75
+ |----------|--------|--------|-------|
76
+ | Pixel & CAPI Tracking | 30% | 12 | Pixel, CAPI, EMQ, AEM, dedup, privacy |
77
+ | Creative Strategy | 25% | 14 | Diversity, video, formats, refresh, DCO |
78
+ | Account Structure | 25% | 10 | CBO, objectives, consolidation, learning phase |
79
+ | Audience Targeting | 20% | 10 | LAL, custom, overlap, retargeting, exclusions |
80
+
81
+ ---
82
+
83
+ <!-- COMPACT_SUMMARY_START -->
84
+ ## Compact Summary
85
+
86
+ **Command**: `/agileflow:ads:meta` - Meta/Facebook Ads deep-dive audit
87
+
88
+ **Agent**: `ads-audit-meta` (46 checks, 4 categories)
89
+
90
+ **Quick Usage**: `/agileflow:ads:meta <account-data>`
91
+ <!-- COMPACT_SUMMARY_END -->
@@ -0,0 +1,115 @@
1
+ ---
2
+ description: Microsoft Ads audit with 7 checks for search partner management, UET tag, LinkedIn targeting, and import quality from Google Ads
3
+ argument-hint: "<account-data>"
4
+ compact_context:
5
+ priority: medium
6
+ preserve_rules:
7
+ - "ACTIVE COMMAND: /agileflow:ads:microsoft - Microsoft Ads audit"
8
+ - "Inline command - 7 checks, no separate agent needed"
9
+ - "Often imported from Google - check import quality"
10
+ state_fields:
11
+ - microsoft_score
12
+ ---
13
+
14
+ # /agileflow:ads:microsoft
15
+
16
+ Run an inline audit on a Microsoft Ads (formerly Bing Ads) account with 7 focused checks. Microsoft Ads often runs as a Google import - verify it's optimized for the platform.
17
+
18
+ ---
19
+
20
+ ## Quick Reference
21
+
22
+ ```
23
+ /agileflow:ads:microsoft <account-data> # Microsoft Ads audit
24
+ ```
25
+
26
+ ---
27
+
28
+ ## The 7 Checks
29
+
30
+ | # | Check | Severity | Pass Criteria |
31
+ |---|-------|----------|---------------|
32
+ | MS-1 | UET tag installed | CRITICAL | Universal Event Tracking tag on all pages |
33
+ | MS-2 | Search partner performance | HIGH | Syndication partners monitored, disabled if poor |
34
+ | MS-3 | Import quality from Google | HIGH | No broken bid strategies or unsupported features |
35
+ | MS-4 | Bid adjustments set | MEDIUM | Microsoft-specific bids (not just Google copy) |
36
+ | MS-5 | LinkedIn profile targeting | HIGH | LinkedIn demographics used for B2B targeting |
37
+ | MS-6 | Audience ads opt-in reviewed | MEDIUM | Microsoft Audience Network reviewed for performance |
38
+ | MS-7 | Conversion goals defined | HIGH | Microsoft-native conversion tracking active |
39
+
40
+ ---
41
+
42
+ ## Process
43
+
44
+ ### STEP 1: Apply All 7 Checks
45
+
46
+ Review the account data against each check. For Microsoft Ads specifically:
47
+
48
+ **Import quality matters**:
49
+ - Google imports often bring unsupported features
50
+ - Automated bid strategies may not transfer correctly
51
+ - Negative keyword lists may not sync
52
+ - Review every imported campaign for Microsoft compatibility
53
+
54
+ **LinkedIn targeting advantage**:
55
+ - Microsoft Ads uniquely offers LinkedIn profile targeting
56
+ - Target by company, industry, job function
57
+ - Powerful for B2B campaigns not using LinkedIn Ads directly
58
+ - Can be layered on top of keyword targeting
59
+
60
+ **Search partners**:
61
+ - Microsoft Audience Network reaches Yahoo, AOL, DuckDuckGo
62
+ - Performance varies significantly by partner
63
+ - Review partner performance monthly
64
+ - Disable underperforming partners individually
65
+
66
+ ### STEP 2: Score
67
+
68
+ ```
69
+ Microsoft Score = 100 - sum(severity_deductions)
70
+ ```
71
+
72
+ Deductions: CRITICAL (-15), HIGH (-8), MEDIUM (-4), LOW (-2)
73
+
74
+ ### STEP 3: Output
75
+
76
+ ```markdown
77
+ ## Microsoft Ads Audit
78
+
79
+ **Microsoft Score**: {X}/100
80
+
81
+ | Check | Status | Notes |
82
+ |-------|--------|-------|
83
+ | MS-1 UET tag | PASS/FAIL | {details} |
84
+ | MS-2 Search partners | PASS/FAIL | {partner performance} |
85
+ | MS-3 Import quality | PASS/FAIL | {import issues found} |
86
+ | MS-4 Bid adjustments | PASS/FAIL | {Microsoft-specific bids} |
87
+ | MS-5 LinkedIn targeting | PASS/FAIL | {targeting usage} |
88
+ | MS-6 Audience Network | PASS/FAIL | {opt-in status} |
89
+ | MS-7 Conversion goals | PASS/FAIL | {goals defined} |
90
+
91
+ ### Key Recommendations
92
+ 1. {Top priority fix}
93
+ 2. {Second priority}
94
+ 3. {Third priority}
95
+
96
+ ### Microsoft-Specific Tips
97
+ - LinkedIn profile targeting is Microsoft's unique advantage
98
+ - Don't just "set and forget" Google imports - optimize for Microsoft
99
+ - Search partner performance varies - monitor and exclude poor performers
100
+ - Microsoft audience skews older and higher income than Google
101
+ ```
102
+
103
+ ---
104
+
105
+ <!-- COMPACT_SUMMARY_START -->
106
+ ## Compact Summary
107
+
108
+ **Command**: `/agileflow:ads:microsoft` - Microsoft Ads audit
109
+
110
+ **Checks**: 7 (inline, no separate agent)
111
+
112
+ **Key**: UET tag, import quality, LinkedIn targeting, search partners
113
+
114
+ **Quick Usage**: `/agileflow:ads:microsoft <account-data>`
115
+ <!-- COMPACT_SUMMARY_END -->
@@ -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 -->