/marketing-skills:paid-adsfrom marketing-skills
Plans, checks, and optimizes paid ad campaigns across Google, Meta, LinkedIn, X, and TikTok. Sizes audiences, checks budget fit, computes CPC/CPA/ROAS against targets, and reviews ad copy against platform specs.
Ships in marketing-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Campaign strategy, audience sizing, budget fit, performance checks and ad copy review across the major ad platforms. The scripts never invent numbers: an audience size, a benchmark or a target comes from you or from a named source, and anything else is reported as missing.
paid ads, PPC, pay-per-click, Google Ads, Meta Ads, Facebook Ads, Instagram Ads, LinkedIn Ads, Twitter Ads, X Ads, TikTok Ads, paid media, ROAS, CPA, CPC, CPM, audience targeting, audience size, retargeting, remarketing, budget optimization, bid strategy, ad campaigns, conversion tracking, lookalike audiences, campaign structure, ad performance, paid search, paid social, responsive search ads, ad copy
Before building the campaign, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
references/campaign-playbook.md).audience_sizer.py with that estimate, your daily budget and your CPM.ad_copy_scorer.py until it prints PASS.cpc_calculator.py with your target CPA / ROAS / gross margin.All four read your input (a JSON file, positional or --input/--file, or flags), take
--format text|json (--json is an alias), and use only the Python standard library.
scripts/audience_sizer.py)Sizes an audience only from numbers you supply and shows each step. Two sources:
platform_estimate (what the ad platform's audience tool shows) or base_population times
filter shares you give. With neither, the size is reported as UNKNOWN and the tool exits 1.
With daily_budget and cpm it computes impressions per person per week and flags an audience
too small for the budget (saturation) or a budget too thin for the audience, with the exact budget
or audience size that fixes it. Frequency thresholds are labelled heuristics; the LinkedIn 300-member
minimum is cited.
python3 scripts/audience_sizer.py assets/sample_audience.json
python3 scripts/audience_sizer.py --platform linkedin --platform-estimate 38000 --daily-budget 500 --cpm 48
python3 scripts/audience_sizer.py --base 120000 --filter "dental labs=40" --filter "200-1000 staff=25"
python3 scripts/audience_sizer.py assets/flawed_audience.json --format json
Usage: audience_sizer.py [input.json] [--input FILE] [--platform P] [--targeting TEXT] [--platform-estimate N] [--base N] [--filter NAME=PCT ...] [--daily-budget X] [--cpm X] [--flight-days N] [--format text|json] [--json]
scripts/cpc_calculator.py)Computes CPC, CPM, CTR, CVR, CPA, CPL and ROAS from your numbers. A metric whose inputs are
missing is listed as "not computed", never as 0. Judges only against your target_cpa,
target_roas and gross_margin_pct (break-even ROAS = 1 / margin). Each finding gives the
CVR, CPC, revenue or spend that would hit the target. Ships no industry benchmark table.
python3 scripts/cpc_calculator.py assets/sample_campaigns.json
python3 scripts/cpc_calculator.py --spend 5000 --clicks 1200 --conversions 45 --revenue 12000 --target-cpa 120 --gross-margin-pct 60
python3 scripts/cpc_calculator.py assets/flawed_campaigns.json --format json
Usage: cpc_calculator.py [input.json] [--input FILE] [--name N] [--platform P] [--spend X] [--impressions N] [--clicks N] [--conversions N] [--revenue X] [--leads N] [--target-cpa X] [--target-roas X] [--gross-margin-pct X] [--format text|json] [--json]
scripts/ad_copy_scorer.py)Checks headlines, descriptions and CTA against documented platform specs (Google RSA 30/90 character limits and 3-15 headline / 2-4 description counts; Meta, LinkedIn, TikTok and X lengths) and editorial rules (Google capitalisation, punctuation, exclamation in headlines, unverified superlatives; Meta personal attributes). Also flags gibberish and placeholder text, filler words, duplicates, copy with no number, and generic CTAs. No score: every finding quotes the line, cites its source or says "heuristic", and gives a rewrite built from your own words.
python3 scripts/ad_copy_scorer.py assets/sample_ads.json
python3 scripts/ad_copy_scorer.py --platform google --headline "Payroll for UK Restaurants" --headline "Run Payroll in 10 Minutes" --headline "From 4 GBP per Employee" --description "Run payroll for 50 staff in 10 minutes." --description "RTI filing built in. 30-day trial."
python3 scripts/ad_copy_scorer.py assets/flawed_ads.json --format json
Usage: ad_copy_scorer.py [input.json] [--input FILE] [--platform google|meta|linkedin|tiktok|x] [--headline TEXT ...] [--description TEXT ...] [--cta TEXT] [--format text|json] [--json]
scripts/linkedin_ads_checker.py)Reads a LinkedIn campaign/ad export (JSON or CSV) and checks each ad against LinkedIn's published
limits: intro text, headline and description length per format (hard limit vs the length where
the feed cuts the text off), CTA button names, the 300-member audience minimum, the minimum daily
budget, and objective/format fit. Performance (CTR, CPC, CPA) is judged only against YOUR baseline,
and only once the ad has enough impressions or clicks. Missing fields are listed as "not computed".
The limits live in references/linkedin-ad-specs.json with the source named; override any of them
with --limits FILE and re-check LinkedIn's current ad specs before a large launch.
python3 scripts/linkedin_ads_checker.py assets/sample_linkedin_ads.json
python3 scripts/linkedin_ads_checker.py export.csv --baseline-ctr 0.55 --baseline-cpa 140
python3 scripts/linkedin_ads_checker.py assets/flawed_linkedin_ads.json --format json
Usage: linkedin_ads_checker.py [input.json|input.csv] [--input FILE] [--limits FILE] [--baseline-ctr PCT] [--baseline-cpc X] [--baseline-cpa X] [--demo] [--format text|json] [--json]
Input shapes for all four are documented in each script's --help and shown in assets/.
LinkedIn targets by job title, seniority and company, so audiences are small and the checks differ from Google or Meta.
Workflow: launch a LinkedIn campaign
objective_formats in the spec file).audience_sizer.py --platform linkedin for budget fit.linkedin_ads_checker.py until it prints PASS.Workflow: judge a running campaign
linkedin_ads_checker.py export.csv --baseline-ctr N --baseline-cpa N with numbers from your own account.Most damaging mistakes
| Code | Meaning |
|---|---|
0 | Clean: size known and budget fits / every judged metric meets its target / no copy findings. Text output starts with PASS. |
1 | Findings to act on (including audience size UNKNOWN). Text output starts with FIX n issues. |
2 | Unusable input: missing or unreadable file, invalid JSON, negative numbers, a filter share over 100%, clicks above impressions, an ad with no text. One BLOCKED: line on stderr, no traceback. |
Samples: assets/sample_*.json (exit 0), assets/flawed_*.json (exit 1), assets/malformed_*.json
(exit 2), plus assets/unsized_audience.json (exit 1, size UNKNOWN). assets/contract.json declares
every run.
python3 scripts/audience_sizer.py assets/flawed_audience.json
FIX 2 issues
Read: platform=linkedin, targeting='Heads of procurement at mid-market dental labs in US', filters=2, platform_estimate=given, base=given, budget=given, cpm=given
Audience size: 9,000 (platform estimate)
Arithmetic:
base population (yours) = 2,000,000
2,000,000 x 20% (procurement function) = 400,000
400,000 x 10% (dental labs) = 40,000
assumes the filters are independent; overlapping filters make the true size larger
platform estimate (yours, from the LinkedIn Campaign Manager audience estimate) = 9,000
daily impressions = $400.00 / $40.00 CPM x 1000 = 10,000
impressions per person per week = 10,000 x 7 / 9,000 = 7.78
flight impressions = 10,000 x 30 days = 300,000
Findings:
1. [estimates-disagree] "platform estimate 9,000 vs your arithmetic 40,000"
The two sizes differ by 4.4x (heuristic threshold 3x). ...
2. [audience-too-small-for-budget] "$400.00/day at $40.00 CPM into 9,000 people"
7.8 impressions per person per week (heuristic ceiling 5). ...
Fix: Cut the daily budget to $102.86 (= 2 x 9,000 / 7 x $40.00 / 1000), or broaden the audience to about 35,000.
Same tool family for LinkedIn exports:
python3 scripts/linkedin_ads_checker.py assets/flawed_linkedin_ads.json --baseline-ctr 0.5
FIX 13 issues
Read: 2 ad(s) from assets/flawed_linkedin_ads.json; limits from linkedin-ad-specs.json
Northwind Payroll - overlong: ctr_pct=0.30, cpc=12.00, cpa=900.00
Northwind Payroll - text ad: ctr_pct=not computed, cpc=not computed, cpa=not computed; missing: clicks
Findings:
1. [text-over-limit] Northwind Payroll - overlong: intro_text 3041 chars: "Our revolutionary platform transforms how every finance team..."
Rule: single_image intro text allows 3000 characters. Source: LinkedIn Marketing Solutions ad specs, checked 2026-12-03; verify current specs.
Fix: Cut 41 characters; keep the claim and the number, drop the lead-in.
...
6. [objective-format-mismatch] Northwind Payroll - overlong: objective "video views" with format "single image"
Fix: Use one of: video, or change the objective.
The long-form strategy lives in references/campaign-playbook.md:
platform selection and decision tree, account structure and naming, targeting options per platform,
automated campaign types (Performance Max, Advantage+, Demand Gen), budget allocation by phase and
scaling rules, bid strategy ladder, retargeting windows and exclusions, the optimization decision
tree, creative fatigue signals, weekly routine, attribution and UTM standards.
The cost, budget and benchmark figures in that file are directional heuristics, not sourced statistics. Use your own account data as targets and feed it to the scripts.
audience_sizer.py (budget fit)ad_copy_scorer.py prints PASS for every ad| Symptom | Likely Cause | Fix |
|---|---|---|
| CPA above target with low CTR | Creative fatigue or audience mismatch | Refresh creative; run ad_copy_scorer.py on the new copy. |
| CPA above target with good CTR | Landing page conversion issue | cpc_calculator.py gives the CVR you need; audit message match, speed and form friction. |
| CTR dropping week over week | Creative fatigue / high frequency | Run audience_sizer.py with your budget and CPM; it gives the budget or audience size for about 2 impressions per person per week. |
| Budget not spending | Audience too narrow or bid too low | Check the platform estimate with audience_sizer.py; raise bid or widen targeting. |
| Platform reports inflated conversions | Attribution window too wide | Compare to GA4/CRM; use incrementality testing for true lift. |
| Performance Max underperforming | Too little or low-quality conversion data | Build conversion volume first (start with Search), optimize to a revenue-linked conversion, add brand exclusions and negatives. |
| CPA spikes after budget increase | Learning disrupted | Increase budget in small steps and wait several days between changes. |
| Audience size shows UNKNOWN | No number was supplied | Read the estimate in the ad platform and pass --platform-estimate. |
In scope: campaign strategy, platform selection, audience sizing from supplied numbers, budget fit, bid strategies, retargeting, performance checks against your targets, ad copy checks, attribution, pre-launch checklists.
Out of scope: creative design and production, marketing automation, CRM configuration, live platform data (the scripts read exports and numbers you paste; they make no network calls).
Limitations: the audience sizer cannot size a text description; it needs a platform estimate or a base count. Frequency and budget-fit thresholds are heuristics. Platform specs in the copy and LinkedIn checkers are cited with the year they were checked; platforms change them, so re-check the current spec page before a large launch.
README.md (opens in a new tab)assets/contract.json (opens in a new tab)assets/flawed_ads.json (opens in a new tab)assets/flawed_audience.json (opens in a new tab)assets/flawed_campaigns.json (opens in a new tab)assets/flawed_linkedin_ads.json (opens in a new tab)assets/malformed_ads.json (opens in a new tab)assets/malformed_audience.json (opens in a new tab)assets/malformed_campaigns.json (opens in a new tab)assets/malformed_linkedin_ads.json (opens in a new tab)assets/sample_ads.json (opens in a new tab)assets/sample_audience.json (opens in a new tab)assets/sample_campaigns.json (opens in a new tab)assets/sample_linkedin_ads.csv (opens in a new tab)assets/sample_linkedin_ads.json (opens in a new tab)assets/unsized_audience.json (opens in a new tab)references/campaign-playbook.md (opens in a new tab)references/linkedin-ad-specs.json (opens in a new tab)scripts/ad_copy_scorer.py (opens in a new tab)scripts/audience_sizer.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub borghei/claude-skills --plugin marketing-skills46 skills in this plugin
/ab-test-setupCalculates A/B test sample size and duration, writes a reviewable test plan, and analyzes conversion results (z-test, confidence interval, sample ratio check, ship/revert/inconclusive verdict). Use when setting up an A/B test, sizing an experiment, checking whether a test ran long enough, or deciding whether to ship a variant from visitor and conversion counts.
/ad-creativeDesign ad creative across Google, Meta, LinkedIn, Twitter/X, and TikTok with platform format specs, headline formulas, and A/B testing. Use when writing ad copy, generating headline variations, creating ad sets, or validating creative.
/aeoAnswer Engine Optimization (AEO): checks a page for the structures LLM answers quote (definition first, tables, numbered steps, sourced numbers, question headings, visible date), generates FAQ/HowTo JSON-LD from the page's own Q&A, and tallies brand mentions and cited URLs in saved LLM answers. Use when auditing a page for LLM citability, adding Q&A schema, or measuring whether ChatGPT, Claude, Perplexity or Gemini name your brand.
/ai-content-disclosureCheck AI-generated marketing content and reviews for required disclosures under the EU AI Act, FTC rules and platform AI-label policies. Use when you have a list of AI-made ads, deepfakes, chatbots, influencer posts or testimonials to clear before publishing, or a set of customer reviews to vet for fakes.
/ai-seoOptimize content to rank in AI search engines (AI Overviews, Perplexity, ChatGPT) via generative engine optimization (GEO), citability audits, and schema markup. Use when optimizing for AI search, generative search, or LLM visibility, when auditing a page for AI citability, when checking which passage answers a query, or when classifying keywords by intent for AI answers.
/analytics-trackingAnalytics implementation for web and SaaS (GA4, Google Tag Manager, event taxonomy, conversion tracking, UTM strategy) with three checkers: UTM links, event names/params/PII, and funnel drop-off. Use when building a tracking plan, validating a UTM sheet or event list before launch, finding where a funnel leaks, debugging missing events, or auditing existing analytics.
Other plugins' skills for the same job