claude-ads
CLAUDE.md92 starsChanged 7 months agoMITView on GitHub
This repository contains Claude Ads, a Tier 4 Claude Code skill focused on the 3 base advertising platforms where 95% of ad spend lives: Meta, Google, TikTok. It follows the Agent Skills open standard and the 3-layer architecture (directive, orchestration, execution). After the v2.4.0 guided-onboarding refactor, the skill has 19 sub-skills, 7 agents (3 audit + 4 creative), 8 industry templates, ~158 weighted audit checks + 3 cross-platform checks, plus a guided first-run wizard (/ads start) and a continuous coach…
- Commits and pushes
In this repository20 other files it gives its agents.
- adsSkill
- ads-auditSkill
- ads-budgetSkill
- ads-competitorSkill
- ads-createSkill
- ads-creativeSkill
- ads-dnaSkill
- ads-generateSkill
- ads-googleSkill
- ads-landingSkill
- ads-mathSkill
- ads-metaSkill
- ads-nextSkill
- ads-photoshootSkill
- ads-planSkill
- ads-publishSkill
- ads-startSkill
- ads-testSkill
- ads-tiktokSkill
- ads-updateSkill
The file
We split this CLAUDE.md into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 96
Keep SKILL.md files under 500 lines / 5000 tokens
- Distinctive: line 99
Follow kebab-case naming for all skill directories
- Distinctive: line 101
No hardcoded credentials; use MCP servers for external API access
- Very specific: line 102
Every audit-* agent must emit both <platform>-audit-results.md (human-readable) and <platform>-audit-results.json (validates against …
- Distinctive: line 106
Every platform audit must offer three free-first data tiers in this order:
- Very specific: line 110
All adapters in scripts/api/ are pure-stdlib (Python 3.10+, no external dependencies).
- Distinctive: line 116
Before merging a change that touches skills, agents, references, or scripts, run:
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Claude Ads: Free-first Paid Advertising Audit & Optimization Skill
Project Overview
This repository contains Claude Ads, a Tier 4 Claude Code skill focused on the
3 base advertising platforms where 95% of ad spend lives: Meta, Google, TikTok.
It follows the Agent Skills open standard and the 3-layer architecture (directive,
orchestration, execution). After the v2.4.0 guided-onboarding refactor, the skill has
19 sub-skills, 7 agents (3 audit + 4 creative), 8 industry templates, ~158 weighted
audit checks + 3 cross-platform checks, plus a guided first-run wizard (/ads start)
and a continuous coach (/ads next) backed by a persistent user profile + audit
history at ~/.claude-ads/.
Architecture
claude-ads/
CLAUDE.md # Project instructions (this file)
ads/ # Main orchestrator skill
SKILL.md # Entry point, routing table, core rules
references/ # On-demand knowledge files
skills/ # 19 specialized sub-skills (v2.4.0)
ads-start/SKILL.md # NEW v2.4.0 — guided first-run wizard
ads-next/SKILL.md # NEW v2.4.0 — continuous coach
ads-audit/SKILL.md # Full multi-platform audit
ads-google/SKILL.md # Google Ads deep analysis (includes YouTube)
ads-meta/SKILL.md # Meta/Facebook Ads analysis — MCP-wired
ads-tiktok/SKILL.md # TikTok Ads analysis
ads-creative/SKILL.md # Cross-platform creative quality
ads-landing/SKILL.md # Landing page analysis
ads-budget/SKILL.md # Budget allocation optimization
ads-plan/SKILL.md # Strategic ad planning by industry
ads-competitor/SKILL.md # Competitor ad research
ads-dna/SKILL.md # Brand DNA extraction
ads-create/SKILL.md # Campaign briefs / copy decks
ads-generate/SKILL.md # AI image generation
ads-photoshoot/SKILL.md # Product photography (5 styles)
ads-math/SKILL.md # PPC calculator
ads-test/SKILL.md # A/B test design
ads-update/SKILL.md # Self-refresh platform references
ads-publish/SKILL.md # Zernio publishing (first 2 accounts free)
agents/ # 7 agents (3 audit + 4 creative)
audit-google.md # Google Ads audit (80 checks, includes YouTube)
audit-meta.md # Meta Ads audit (50 checks, MCP-wired)
audit-tiktok.md # TikTok Ads audit (28 checks, NEW in v2.3.0)
creative-strategist.md # Campaign concept agent
visual-designer.md # Image generation agent
copy-writer.md # Copy generation agent
format-adapter.md # Asset dimension validation
scripts/api/ # Capa-2 direct-API adapters (NEW in v2.3.0)
meta_fetch.py · google_fetch.py · tiktok_fetch.py · README.md
scripts/profile.py # NEW v2.4.0 — profile + audit history CLI (stdlib)
install.sh / install.ps1 # Cross-platform installers
uninstall.sh / uninstall.ps1 # Cross-platform uninstallers
# User-local state (NEW in v2.4.0, never in the repo):
~/.claude-ads/profile.json # validates against ads/references/profile-schema.json
~/.claude-ads/history/index.json # validates against ads/references/audit-history-schema.json
~/.claude-ads/history/<platform>-<YYYYMMDDhhmmss>.jsonCommands
| Command | Purpose |
/ads start | First-run wizard (NEW v2.4.0) — context capture + step-by-step OAuth/MCP setup + profile persistence |
/ads next | Continuous coach (NEW v2.4.0) — top 3 Quick Wins from audits + regression detection |
/ads audit | Full multi-platform audit with 3 parallel agents (Meta, Google, TikTok) |
/ads google | Google Ads deep analysis (includes YouTube video campaigns) |
/ads meta | Meta/Facebook Ads analysis (MCP-wired to claude.ai Facebook) |
/ads tiktok | TikTok Ads analysis (Smart+, Shop, Symphony, GMV Max) |
/ads creative | Creative quality and fatigue assessment |
/ads landing | Landing page conversion analysis |
/ads budget | Budget allocation optimization |
/ads plan <type> | Strategic ad planning by industry |
/ads competitor | Competitor ad research |
/ads math | PPC financial calculator (CPA, ROAS, break-even, LTV:CAC) |
/ads test | A/B test design (hypothesis, significance, sample size) |
/ads report | PDF audit report generation for client deliverables |
/ads update <plat|all> | Refresh per-platform references with last 30 days of changes |
/ads publish | Publish generated creatives to 14+ social networks via Zernio (first 2 accounts free) |
Removed in v2.3.0
The fork upstream covered 7 platforms; v2.3.0 refocuses on the 3 base. Removed:
ads-apple/— no MCP exists for Apple Ads; partner-API setup high-friction.ads-linkedin/— LinkedIn Marketing Developer Platform partner approval is a barrier; paid MCPs only.ads-microsoft/— lower advertiser usage; effort not justified.ads-youtube/— YouTube video campaigns live inside Google Ads; covered via/ads googleandaudit-googlechecks G-DG*, G-CTV*.
Also removed: cross-platform audit agents (audit-creative, audit-tracking, audit-budget, audit-compliance) — merged into audit-tiktok.md. Industry templates saas, b2b-enterprise, info-products, mobile-app deleted (depended on removed platforms).
Development Rules
- Keep SKILL.md files under 500 lines / 5000 tokens
- Reference files should be focused and under 200 lines (enforced by
tests/test_references.py) - Scripts must have docstrings, CLI interface, and JSON output
- Follow kebab-case naming for all skill directories
- Agents invoked via Task tool with
context: fork, never via Bash - No hardcoded credentials; use MCP servers for external API access
- Every
audit-*agent must emit both<platform>-audit-results.md(human-readable) and<platform>-audit-results.json(validates againstads/references/audit-output-schema.json). The orchestrator parses the JSON to aggregate scores; markdown is for human consumption only. - Platform sub-skills (
ads-google,ads-meta,ads-tiktok) declare only their platform-specific data-collection step, then delegate the 7-step audit process toads/references/audit-methodology.md. Do not restate the generic process. - Sub-skill frontmatter is canonically:
name(matches directory),description,user-invokable: false. Skills with command arguments addargument-hint. Skills that need extra permissions addallowed-tools. - New MCP integrations follow the canonical pattern documented in
ads/references/mcp-integration.mdand templated inads/references/mcp-meta-integration.md: tools declared in the agent'stools:frontmatter, amcp-<platform>-integration.mdmapping checks↔tools, SKILL.md step 1 is MCP-first with manual fallback. - Every platform audit must offer three free-first data tiers in this order:
- Capa 1 — MCP (server-based, recommended when one exists).
- Capa 2 — Direct API (script in
scripts/api/<platform>_fetch.py, free, OAuth setup once). - Capa 3 — Manual exports (always works, no setup).
All adapters in
scripts/api/are pure-stdlib (Python 3.10+, no external dependencies). Seescripts/api/README.mdfor per-platform OAuth setup.
- Paid integrations (Adspirer for Meta MCP; Zernio for
/ads publish) are documented as optional Tier 3. Never make a paid SaaS a required dependency. - Profile-first rule (NEW v2.4.0): Any new user-facing command must check
~/.claude-ads/profile.jsonfor context before asking inline. Runpython3 scripts/profile.py getfirst; on exit 2, surface a one-line tip to run/ads startbut allow the user to proceed inline. Never store secrets (tokens, API keys) in the profile — only*_present: true/falseflags. Usescripts/profile.py setto update fields so validation againstprofile-schema.jsonstays consistent.
Quality Gates
Before merging a change that touches skills, agents, references, or scripts, run:
pytest tests/ # all must pass
find ads/references -name "*.md" -exec wc -l {} \; | awk '$1 > 200' # must be empty
python3 -c "import json; json.load(open('ads/references/audit-output-schema.json'))"
bash -n install.sh && bash -n uninstall.shCI runs all of the above on every push and PR (.github/workflows/ci.yml).
Releases
Cut releases via git tag vX.Y.Z and gh release create vX.Y.Z. Update CHANGELOG.md first. Bump version in .claude-plugin/plugin.json, .claude-plugin/marketplace.json, CITATION.cff, and the README version badges (both EN and ES). Install scripts compute the asset counts dynamically — no manual bump needed there.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

