Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/krusemediallc/cursor-ad-agentnpx agentmods add skills/krusemediallc/cursor-ad-agent/meta-ad-builderWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/krusemediallc/cursor-ad-agent/meta-ad-builder)<a href="https://agentmods.dev/skills/krusemediallc/cursor-ad-agent/meta-ad-builder"><img src="https://agentmods.dev/badge/skills/krusemediallc/cursor-ad-agent/meta-ad-builder/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/krusemediallc/cursor-ad-agent/meta-ad-builder"><img src="https://agentmods.dev/badge/skills/krusemediallc/cursor-ad-agent/meta-ad-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00099 | $0.03217 |
| Opus 5.5 | $0.00040 | $0.01287 |
| Sonnet 5.5 | $0.00020 | $0.00643 |
| Haiku 4.5 | $0.00010 | $0.00322 |
Grade A, and why
meta-ad-builder scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 303 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Meta ad builder
Turn a finished creative into a Meta ad through this controlled sequence:
research → copy → destination selection → structure (optional) → dry run → PAUSED deploy → separate explicit activation → performance-loop handoff
No creation command in this skill has an ACTIVE option. Deployment creates PAUSED ads. Activation is a separate command with a stronger confirmation gate.
When to use this skill
Trigger on phrases like:
- "deploy this video to Meta" / "publish this as a Facebook ad"
- "build/launch a Meta ad" / "push this creative into "
- "create a Meta ad with this image and copy"
- "create a paused campaign/ad set" / "show my Meta destinations"
- "activate/pause/archive this Meta ad, ad set, or campaign"
- "pull my top-performing ads" / "what are my best ads by ROAS"
- "research competitor ads" / "pull 's ads from the Ad Library"
Do not use this skill to generate creative — that's pixar-style-ad,
claymation-ad, generate-youtube-thumbnail, uni1-image-ad, etc. This skill
owns direct Meta Marketing API research, structure, deployment, and gated status
changes. It does not write to Airtable or another creative database.
Read order
- This file — workflow, decision tree, safety rules.
- Invoke
human-ad-copy, then read prompting/copy-guide.md for thecopy.jsonhandoff. - reference/deploy-patterns.md — creative spec, upload, lineage, structure, and retry mechanics.
- reference/meta-api-cheatsheet.md — the full Meta Marketing API reference (campaigns, ad sets, ads, enums, gotchas, Ad Library). Consult as needed; don't read end-to-end.
Prerequisites
- Env (in
.env— see your repo's.env.example):META_ACCESS_TOKEN(required) — long-lived token withads_managementscopeMETA_AD_ACCOUNT_ID(required) — with or without theact_prefixMETA_PAGE_ID,META_IG_USER_ID,META_PIXEL_ID(optional defaults for deploy)META_API_VERSION(optional, defaultv23.0)
- Python deps:
python3 -m pip install -r shared/skills/meta-ad-builder/scripts/requirements.txt - A target ad set. Select an existing one, or explicitly create PAUSED
structure with
create-campaign-structure.py. - The finished creative on disk — an image or video file path. Chat-pasted files are not accessible; ask the user for a real path.
What ships with it
22 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- prompting/copy-guide.md 4.7 KB
- reference/deploy-patterns.md 9.5 KB
- reference/meta-api-cheatsheet.md 41 KB
- scripts/check-meta-env.sh 2.1 KB runs code
- scripts/create-campaign-structure.py 14 KB runs code
- scripts/deploy-ad.py 19 KB runs code
- scripts/lib/__init__.py 46 B runs code
- scripts/lib/meta_api.py 4.3 KB runs code
- scripts/lib/meta_http.py 5.4 KB runs code
- scripts/lib/meta_listing.py 3.5 KB runs code
- scripts/lib/meta_structure.py 9.1 KB runs code
- scripts/lib/meta_upload.py 11 KB runs code
- scripts/list-meta-destinations.py 3.8 KB runs code
- scripts/pull-competitor-ads.py 7.3 KB runs code
- scripts/pull-top-ads.py 7.1 KB runs code
- scripts/requirements.txt 146 B
- scripts/set-entity-status.py 8.9 KB runs code
- tests/fixtures/copy.json 640 B
- tests/fixtures/meta_responses.json 333 B
- tests/test_deploy_cli.py 8.8 KB runs code
- tests/test_meta_api.py 15 KB runs code
- tests/test_structure_status_and_listing.py 23 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 303 lines · 99 tokens per session scan A c9a3a4244583
meta-ad-builder is a skill published in the GitHub repository krusemediallc/cursor-ad-agent (11 stars, last pushed 3mo ago), licensed MIT. It adds 99 tokens to every session and 3,217 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
meta-ad-builder compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| meta-ad-builderkrusemediallc/cursor-ad-agent | Skill | 11 | 3mo ago | MIT | A | 99 | Claude Code, Codex |
| RunAPI Media Generatorrunapi-ai/mcp | Skill | 56 | 3d ago | Apache-2.0 | A | 90 | Claude Code |
| RunAPI Model Explorerrunapi-ai/mcp | Skill | 56 | 3d ago | Apache-2.0 | A | 71 | Claude Code |
| distribea-mediaDistribea/distribea-mcp | Skill | 1 | 20d ago | MIT | A | 113 | Claude Code, Codex |
| competitor-creative-auditcreativescope/creativescope-mcp | Skill | 0 | 23d ago | MIT | A | 77 | Codex |
| mobile-ua-creative-strategycreativescope/creativescope-mcp | Skill | 0 | 23d ago | MIT | A | 99 | Codex |
| weekly-inspiration-briefcreativescope/creativescope-mcp | Skill | 0 | 23d ago | MIT | A | 77 | Codex |