meta-ad-builder

meta-ad-builder is a skill for Claude Code, Codex from krusemediallc/cursor-ad-agent. It costs 99 tokens per session (3,217 once invoked), scanned A, original, MIT.

A controlled workflow for researching, building, and deploying finished ads to Meta, the company behind Facebook and Instagram, through its Marketing API.

In plain words
What is it for?
It helps choose destinations, optionally create campaign structure, upload images or videos, add text variations, deploy paused ads, change their status, research competitor ads, and review performance data.
Why use it?
It reduces the risk of sending an ad live by using dry runs, recording where creatives came from, and creating campaigns and ads as paused until activation is separately confirmed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 skills/human-ad-copy/scripts/validate_copy.py copy.json.

Good fit It helps choose destinations, optionally create campaign structure, upload images or videos, add text variations, deploy paused ads, change their status, research competitor ads, and review performance data.

Compare 6 skills from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/krusemediallc/cursor-ad-agent
agentmods
npx agentmods add skills/krusemediallc/cursor-ad-agent/meta-ad-builder

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for meta-ad-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/krusemediallc/cursor-ad-agent/meta-ad-builder/github.svg)](https://agentmods.dev/skills/krusemediallc/cursor-ad-agent/meta-ad-builder)
Your own site
<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.

agentmods 80×15 button for meta-ad-builder

Your own site · 80×15
<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>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,217 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 10d ago against content hash c9a3a4244583, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 16 executable files (scripts/check-meta-env.sh, scripts/create-campaign-structure.py, scripts/deploy-ad.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

shared/skills/meta-ad-builder/SKILL.md · 303 lines

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

  1. This file — workflow, decision tree, safety rules.
  2. Invoke human-ad-copy, then read prompting/copy-guide.md for the copy.json handoff.
  3. reference/deploy-patterns.md — creative spec, upload, lineage, structure, and retry mechanics.
  4. 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 with ads_management scope
    • META_AD_ACCOUNT_ID (required) — with or without the act_ prefix
    • META_PAGE_ID, META_IG_USER_ID, META_PIXEL_ID (optional defaults for deploy)
    • META_API_VERSION (optional, default v23.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.

Read the full file on GitHub · 303 lines

Changes

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.

  1. 10d ago First seen · 303 lines · 99 tokens per session scan A c9a3a4244583

Subscribe to this mod's changes

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.

Related

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.

runapi-ai/mcp · 90 tokens

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.

Frankhoubre/imaginode-mcp · 72 tokens

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…

krusemediallc/uni1-image-ad · 138 tokens

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"…

krusemediallc/uni1-image-ad · 126 tokens

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…

Distribea/distribea-mcp · 113 tokens

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...

ratnesh-maurya/cursor-claude-personas · 51 tokens