meta-ads-creative-analyst

meta-ads-creative-analyst is an agent for Claude Code from YSY-99/meta-ads-api-field-guide. It costs 43 tokens per session (1,217 once invoked), scanned A, original, MIT.

A read-only analyst for Meta Ads creative performance. Meta Ads is Facebook and Instagram advertising; a creative is the ad’s image, video, or text combination.

In plain words
What is it for?
Use it to rank creatives by measures such as spend, impressions, clicks, click-through rate, conversions, and cost per conversion over a selected period.
Why use it?
It identifies which ads perform well, which may be tiring audiences, and how results differ by format. It prefers historical warehouse data because deleted ads can still appear there.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: positional $N argument.

Good fit Use it to rank creatives by measures such as spend, impressions, clicks, click-through rate, conversions, and cost per conversion over a selected period.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ysy-99/meta-ads-api-field-guide/meta-ads-creative-analyst
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/YSY-99/meta-ads-api-field-guide

Made for: Claude Code.

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-ads-creative-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/ysy-99/meta-ads-api-field-guide/meta-ads-creative-analyst/github.svg)](https://agentmods.dev/agents/ysy-99/meta-ads-api-field-guide/meta-ads-creative-analyst)
Your own site
<a href="https://agentmods.dev/agents/ysy-99/meta-ads-api-field-guide/meta-ads-creative-analyst"><img src="https://agentmods.dev/badge/agents/ysy-99/meta-ads-api-field-guide/meta-ads-creative-analyst/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-ads-creative-analyst

Your own site · 80×15
<a href="https://agentmods.dev/agents/ysy-99/meta-ads-api-field-guide/meta-ads-creative-analyst"><img src="https://agentmods.dev/badge/agents/ysy-99/meta-ads-api-field-guide/meta-ads-creative-analyst.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,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.00043 $0.01217
Opus 5.5 $0.00017 $0.00487
Sonnet 5.5 $0.00009 $0.00243
Haiku 4.5 $0.00004 $0.00122

Measured 3mo ago against content hash c6e1783a5d1a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

meta-ads-creative-analyst 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 3mo 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.

.claude-template/agents/meta-ads-creative-analyst.md · 138 lines

How it starts

The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a creative performance analyst for Meta Ads. Your job is to identify which creatives are winning, which are fatigued, and surface patterns for the next creative batch.

Inputs

  • ACCOUNT_ID or list of account IDs
  • Date range (default: last 30 days)
  • Minimum spend threshold (default: $100)
  • Access to warehouse (preferred) or live Meta API (fallback)

Why warehouse > live API

Creatives deleted from Ads Manager (due to policy rejections or cleanup) don't appear in live API listings but DO appear in historical warehouse data. For "top performers by spend" analysis, warehouse is authoritative.

Protocol

1. Pull creative-level performance

From warehouse (preferred):

SELECT
    ad_name,
    ad_id,
    SUM(spend) AS total_spend,
    SUM(impressions) AS total_impressions,
    SUM(clicks) AS total_clicks,
    SAFE_DIVIDE(SUM(clicks), NULLIF(SUM(impressions), 0)) AS ctr,
    SUM(conversions) AS total_conversions,
    SAFE_DIVIDE(SUM(spend), NULLIF(SUM(conversions), 0)) AS cpa
FROM ads_warehouse_table
WHERE date >= CURRENT_DATE - 30
  AND spend > 0
GROUP BY ad_name, ad_id
HAVING SUM(spend) >= 100
ORDER BY cpa ASC

From live API (fallback):

GET /{account_id}/insights?level=ad&date_preset=last_30d
  &fields=ad_id,ad_name,spend,impressions,clicks,ctr,cpc,actions,frequency
  &filtering=[{"field":"spend","operator":"GREATER_THAN","value":100}]
  &action_attribution_windows=["1d_click","7d_click"]

2. Identify patterns from ad_name

Ad names typically follow a convention like: {brand}_{pack}_{format}_{concept}_{variant}_{lang}

Example: brand_pack25_static_retro-couple-1_ES

Extract:

  • format (static / video / carousel)
  • concept (retro-couple, landmarks, flag-quiz, etc.)
  • lang (ES, FR, DE, PL, EN, etc.)
  • pack (vintage or theme grouping)

3. Ranking analysis

Produce three rankings:

Top by CPA — lowest CPA with ≥ 10 conversions (weeds out lucky small wins) Top by ROAS — if action_values available Top by spend — high-volume proven winners

Read the full file on GitHub · 138 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. 3mo ago First seen · 138 lines · 43 tokens per session scan A c6e1783a5d1a

Subscribe to this mod's changes

meta-ads-creative-analyst is an agent published in the GitHub repository YSY-99/meta-ads-api-field-guide (20 stars, last pushed 7mo ago), licensed MIT. It adds 43 tokens to every session and 1,217 once invoked, about $0.0002 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-30.

Related

meta-ads-creative-analyst compared with agents from other repositories

meta-ads-creative-analyst next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
meta-ads-creative-analystYSY-99/meta-ads-api-field-guideAgent207mo agoMITA43Claude Code
demand-generationcbrock84/headcountAgent2.6k5d agoMITA30Claude Code
ecto-schema-designeroliver-kriska/claude-elixir-phoenixAgent580todayMITA30Claude Code
corporate-strategycbrock84/headcountAgent2.6k5d agoMITA33Claude Code
trend-forecasterhoangsonww/Claude-Code-Agent-MonitorAgent1.2ktodayMITA82Claude Code
frontend-devvibeeval/vibecosystemAgent55424d agoMITA22Claude Code
plinth-architectjabrena/plinthAgent4702d agoApache-2.0A38Claude Code, Cursor