Category: GTM Intelligence · Version:
0.0.1 · Author: opendirectory · Compatibility: All targets (claude, codex, opencode, gemini, anti-gravity, openclaw, hermes)Overview
The Meta Ads Skill is a comprehensive, production-ready skill designed to give LLMs and AI agents expert-level capabilities to orchestrate the official Meta Ads Python CLI. By using this skill, an agent transforms into an Expert Media Buyer. It will know exactly how to explore ad structures, troubleshoot campaign performance (like CPA spikes), discover new audiences, and format massive Meta APIs JSON payloads into beautiful, readable markdown reports.Install
- npx CLI (Recommended)
- skills.sh
- Claude Code Native
- Claude Desktop
- Manus AI
For Agents: How to Use This Skill Efficiently
This skill is designed using a Progressive Disclosure (Hub-and-Spoke) architecture to maximize context window efficiency:- The Hub (
SKILL.md): The primary entry point. It provides strict guardrails, safety protocols, and the authentication troubleshooting workflow. - The Spokes (
references/):- When you need to perform a specific task (e.g., investigating a CPA spike), read
references/workflows.mdfor the exact step-by-step orchestration strategy. - When presenting data to the user, read
references/report_templates.mdto strictly follow the required Markdown layout.
- When you need to perform a specific task (e.g., investigating a CPA spike), read
Strict Agent Guardrails
- Context Protection: ALWAYS default to
time_range="last_7d"for insights. ALWAYS uselimit=10for listing campaigns/adsets initially. - Safety First: NEVER execute state-changing tools (
create_campaign,update_campaign) without explicitly showing the parameters to the user and waiting for their affirmative confirmation.
Setup
To use this skill, you must install the official Meta Ads CLI and configure your credentials.1. Set up the CLI
The skill relies on themeta-ads Python package:
2. Authentication (System User Token)
The CLI uses a System User Access Token for authentication.- Generate a System User Token in your Meta Business Suite.
- Ensure the token has
ads_management,ads_read, andread_insightspermissions. - Set the following environment variables on your machine:
Skill Repository Structure
When you deploy this skill, the structure will look like this:Supported Commands
This skill orchestrates themeta-ads CLI using a noun-verb structure:
- Campaigns:
meta ads campaign list,meta ads campaign create - Ad Sets:
meta ads adset list - Ads:
meta ads ad list - Insights:
meta ads insights get

