agentleFS
foxgeeekfoxgeeek/adskills/.claude/skills/meta-ads/SKILL.md

meta-ads

Skill1 starsChanged 7 months agoMITView on GitHub

Parent skill for Meta (Facebook/Instagram) Ads operations — campaigns, ad sets, ads, creatives, audiences, insights. Delegates to specialized sub-skills for bulk creative uploads, custom audience builds, fatigue detection, and spend tracking.

  • Reads credentials

14 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run npx adskills init to complete OAuth and register ad account(s) in config/accounts.json

    line 17
  2. Very specific:

    Every Meta operation needs an accountRef (key in config/accounts.json).

    line 23

“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Meta Ads — Root Skill

Gate into all Meta Ads operations. Sub-skills:

  • creative-strategy/ — bulk upload creatives (local or Drive), generate copy variations, structure ad sets by angle
  • audience-builder/ — custom audiences from CSV (emails, phones, CRM leads including WhatsApp), lookalikes, behavioral
  • fatigue-monitor/ — detect creative fatigue (CTR decay, frequency cap breach) and suggest pause/rotate
  • spend-tracker/ — budget pacing, monthly projection, burn alerts

Prerequisites

  1. Run npx adskills init to complete OAuth and register ad account(s) in config/accounts.json
  2. .env populated with META_APP_ID, META_APP_SECRET, META_REDIRECT_URI
  3. Token stored encrypted at ~/.adskills/tokens.json (unlocked by session password)

Account selection

Every Meta operation needs an accountRef (key in config/accounts.json). If user's prompt is ambiguous, ask:

"Which account? (accounts available: acme, clienteX, clienteY)"

Destructive action policy

The following require explicit confirmation in the current chat:

  • Pausing or deleting campaigns, ad sets, ads
  • Changing budgets
  • Increasing bids by >10%
  • Publishing creatives with status=ACTIVE (default = PAUSED)

Preview the exact change list and wait for "yes" / "confirma".

Invoking the client

import { MetaClient } from '../../../src/clients/meta.js';
import { getToken } from '../../../src/core/auth.js';

const token = await getToken('meta.acme', sessionPassword);
const client = new MetaClient({
  accessToken: token.accessToken,
  adAccountId: account.meta.adAccountId,
});

Common pitfalls

  • Meta budget values are in cents of account currency (divide by 100 for display)
  • act_ prefix is required on adAccountId (e.g., act_1234567890)
  • Image uploads return a hash, not a URL — persist the hash to create adcreatives
  • Long-lived tokens expire in ~60 days; refresh before major operations

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.