meta-ads-expert

$npx mdskill add Varnan-Tech/opendirectory/meta-ads-expert

Manage Meta Ads accounts, campaigns, and insights via CLI.

  • Lists ad accounts, campaigns, ad sets, and ads.
  • Uses Meta Ads CLI with system user access token.
  • Maps user intent to appropriate CLI commands.
  • Outputs structured JSON for analysis and automation.

SKILL.md

.github/skills/meta-ads-expertView on GitHub ↗
---
name: meta-ads-expert
description: Use when interacting with the Meta Ads CLI to manage accounts, campaigns, ads, and insights. Act as an Expert Media Buyer.
---

# Meta Ads Expert Skill

**Persona:** You are an Expert Media Buyer. This skill acts as a router, providing high-level instructions and linking to detailed references for interacting with the Meta Ads API via the `meta-ads` CLI.

## Authentication & Setup

The Meta Ads CLI uses a **System User Access Token** for authentication.

### Environment Variables
Ensure the following environment variables are set in the environment where the CLI is executed:
- `ACCESS_TOKEN`: Your Meta System User Access Token.
- `AD_ACCOUNT_ID`: Your target Ad Account ID (e.g., `act_123456789`).

**CRITICAL:** NEVER use inline tokens in commands (e.g., `meta ads --token <TOKEN>`). Always rely on environment variables or pre-configured config files.

## CLI Routing

Map your intent to the following `meta-ads` CLI commands:

| Intent | CLI Command |
|---|---|
| List Ad Accounts | `meta ads account list` |
| List Campaigns | `meta ads campaign list` |
| List Ad Sets | `meta ads adset list` |
| List Ads | `meta ads ad list` |
| Get Insights | `meta ads insights get` |
| Create Campaign | `meta ads campaign create` |

## Strict Guardrails

### Command Execution
- **JSON Output**: ALWAYS use `--output json` for all read operations to ensure structured data for analysis.
- **No Input**: ALWAYS use `--no-input` (or equivalent) to prevent the Bash tool from hanging on interactive prompts.
- **Creation Safety**: ALWAYS use `--status PAUSED` for all creation commands unless the user explicitly requests an active status.

### Date Ranges & Pagination
To prevent context window overflow and API rate limits:
- **Pagination Limits**: When listing items, cap the limit parameter (e.g., `--limit 10`) initially. Only expand if explicitly required.
- **Date Ranges**: For insights, ALWAYS default to `--time-range last_7d`. Do NOT request larger ranges unless instructed by the user.

## Safety Guardrails (State-Changing Actions)

You MUST require explicit user confirmation before executing any state-changing commands (e.g., `campaign create`, `campaign update`).

1. Present the exact CLI command and parameters to the user.
2. Ask for explicit approval.
3. Only proceed if approved.

## Orchestration Workflows

For complex orchestrations (e.g., CPA spike analysis), see [references/workflows.md](references/workflows.md).

For reporting standards and output templates, see [references/report_templates.md](references/report_templates.md).

More from Varnan-Tech/opendirectory

SkillDescription
app-store-review-arbitrageFetches low-star App Store and Google Play reviews, clusters them into broken-promise patterns, and generates a ranked copy brief with positioning opportunities.
blog-cover-generatorUse when the user asks to generate a blog cover image, thumbnail, or article header. Automatically uses modern typography, brand logos, and Google Search grounding to create beautiful 16:9 images with Gemini 3.1 Flash Image Preview.
brand-alchemyWorld-class brand strategist and naming expert. Uses an interrogation-led discovery phase to extract your brand's DNA, then applies scientific naming frameworks (Phonosemantics) and automated multi-TLD domain checking.
claude-md-generatorUse when the user asks to generate or update a project's CLAUDE or AGENTS context file from a codebase scan. Writes a focused file under 100 lines containing only the non-obvious build commands, conventions, and gotchas Claude Code needs.
cold-email-verifierUse when the user wants to verify cold emails, enrich a lead list, or autonomously guess email addresses from a CSV using ValidEmail.co or the open-source Reacher engine.
company-radarCompetitive intelligence orchestrator tracking companies across 8+ platforms (GitHub, Twitter, Reddit, HN, PH, YC Jobs) with heat scores and AI briefings.
competitor-pr-finderGive it your product URL or description. It finds your top 5 competitors, runs three-track PR research across all of them (editorial, podcasts, communities), identifies which channels appear most frequently, looks up the journalist or host for each, and returns a tiered outreach list with story angles and ready-to-send cold pitch drafts tailored to your product. Use when asked to find PR opportunities, discover where competitors got featured, build a media outreach list, find which journalists cover my space, or get pitch templates for press coverage.
cook-the-blogGenerate high-converting, deep-dive growth case studies in MDX format. Use this skill when asked to write a case study or blog post about a company's growth, tech stack, or product-led strategy. It handles the full pipeline (researching the company via Tavily, generating a 16:9 cover image, quality checking the draft, uploading assets to cloud storage, and pushing directly to the target repository).
dependency-update-botScans your project for outdated npm, pip, Cargo, Go, or Ruby packages. Runs a CVE security audit. Fetches changelogs, summarizes breaking changes with Gemini, and opens one PR per risk group (patch, minor, major). Includes Diagnosis Mode for install conflicts. Use when asked to update dependencies, check for outdated packages, open dependency PRs, scan for package updates, audit for CVEs, or flag breaking changes in upgrades. Trigger when a user says "check for outdated packages", "update my dependencies", "open PRs for dependency updates", "scan for CVEs", or "which packages need upgrading".
docs-from-codeGenerates and updates README.md and API reference docs by reading your codebase's functions, routes, types, schemas, and architecture. Uses graphify to build a knowledge graph first, then writes accurate docs from it. Use when asked to write docs, generate a README, document an API, update stale docs, create an API reference from code, add an architecture section, or document a project in any language. Trigger when a user says their docs are missing, outdated, or wants to document their codebase without writing it manually.