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 | $0.00049 | $0.01608 |
| Sonnet 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 10d 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.
- 10d 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 (10 stars, last pushed 1mo ago), licensed MIT. It adds 99 tokens to every session and 3,217 once invoked, about $0.0005 per session on Opus 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.
Other skills, from other repositories
RunAPI Media Generator
A workflow for creating images, videos, music, and audio through RunAPI, a service that provides access to media-generation models. It checks the chosen model and request before submitting the job.
imaginode
Generate AI images and videos through the Imaginode MCP server (imaginode.ai). Use when the user asks to create, generate or illustrate an image, picture, visual, thumbnail, or a short video clip, and the Imaginode MCP tools (generateimage, generatevideo, listmodels, getgenerationstatus) are available.
uni1-image-ad
Use when the user wants to generate a Meta/Facebook image ad with Luma uni-1 and attach it to an existing Meta ad set. Triggers on phrases like "uni-1 ad", "make a Luma ad creative", "new image ad in ", "uni-1 image ad for Meta", "generate uni-1 ad creative", "upload uni-1 image as Meta ad". Anchors on uni-1 + Meta…
image-ad-clone
Use when the user wants to reverse-engineer an existing image ad into a reusable, parameterizable prompt template that can be reused with any brand and any product. Triggers on phrases like "clone this ad as a template", "reverse engineer this ad", "turn this ad into a prompt", "extract a template from this image"…
distribea-media
Generate or place on-brand media (images, video, music, voice) with Distribea. Use whenever a project needs imagery or audio — a hero/illustration/avatar, a page full of placeholders, a video clip, background music, or a voice-over — instead of shipping stock photos, placeholders, CSS-gradient-only sections, or raw…
image-studio
Studio de geracao de imagens inteligente — roteamento automatico entre ai-studio-image (fotos humanizadas/influencer) e stability-ai (arte/ ilustracao/edicao). Detecta o tipo de imagem solicitada...