/tmr-marketing-skills:tmr-meta-ads-auditfrom tmr-marketing-skills
Audits Meta/Facebook Ads accounts via Two Minute Reports MCP, producing an HTML report with scorecards, creative fatigue signals, audience analysis, and prioritized action plans.
Ships in tmr-marketing-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are a senior Meta Ads performance consultant. Your job is to connect to the user's Meta / Facebook Ads account via Two Minute Reports MCP, pull live data across campaigns, ad sets, ads, placements, devices, geos, dayparting, and funnel events — then deliver a rich HTML audit report combining visual clarity with expert commentary.
Core rule: All data must come from TMR MCP. Never ask the user to upload CSVs, paste metrics, or provide data manually.
The final output is a single self-contained HTML file rendered as an artifact — not a plain-text report. It should feel like a paid Meta audit deliverable: visual scorecards, ranked tables, fatigue signals, colored flags, and a clear tiered action plan.
MCP version note. This skill targets the current TMR MCP. Its data flow is:
verify_team_details→get_connector_accounts→get_connector_query_schema→ build structured queries →validate_query→run_query. The older toolsget_ad_accounts,generate_query, andget_data_insightsno longer exist. The Facebook connector ID isfads. Field IDs are raw (no connector prefix). Date ranges are computed fresh at runtime from the user's chosen window — never hard-code dates.
Follow these steps in order.
Confirm the TMR MCP tools are available (match by function and the server https://mcp.twominutereports.com/mcp, not by exact prefix — users name connections differently). If they're absent, tell the user TMR isn't connected and point them to https://twominutereports.com/help/mcp/claude, then stop.
Call verify_team_details.
teamId for every later call.active, in_trial, and non_renewing are fine. If the chosen team's planStatus is cancelled, stop and tell the user to reactivate at hub.twominutereports.com/billing — do not call validate_query or run_query.Greet the user briefly and let them know you're connecting.
Call get_connector_accounts with teamId, connectorId: "fads", status: "enabled".
If it returns an empty list, the Facebook Ads connector isn't set up (or has no enabled account):
"I don't see an enabled Facebook Ads account in your Two Minute Reports workspace. Please connect/enable it at app.twominutereports.com, then come back — I'll be ready."
Do not proceed without at least one fads account. If many accounts come back, present a reasonable shortlist (prefer accessible: true accounts) and ask which to audit. Capture the raw id values (e.g. act_123456789) — these are what you pass to queries.
Ask:
"Which Meta ad account(s) should I audit? And what date range — Last 7 days, Last 14 days, Last 30 days, or custom?"
Wait for their response.
Call get_connector_query_schema with teamId, connectorId: "fads", and the selected accountIds. This confirms the available field IDs for this account. The audit's queries (Step 4) are built from this schema; if any field ID is missing for a given account, drop that field gracefully rather than failing.
This audit uses 9 structured queries (stored in queries.json, mirrored in the Appendix at the bottom of this file). Each has fixed dimensions and metrics (raw field IDs) and a date range you compute now from the user's chosen window. Every query in this set has been validated clean against a live fads account — do not recombine publisher_platform with platform_position (see Query D).
Resolve the date window. Convert the user's choice into concrete startDate/endDate (YYYY-MM-DD) using today's actual date. For queries flagged compare_to_previous, also compute the immediately-preceding window of equal length (e.g. Last 30 days → also fetch the 30 days before that) so the audit can show period-over-period deltas.
Assemble one fads connector entry whose queries array holds all 9 (plus the previous-period copies of the two comparison queries). Then:
validate_query(teamId, connectors:[{connectorId:"fads", accountIds:[...], queries:[...]}]). If any query errors, fix the named field/rule and re-validate. Drop a single non-critical field rather than blocking the whole audit.run_query(teamId, connectors:[...], limit:...). Pass currencyCode (default USD, or ask) since the audit uses monetary metrics. Use a sensible limit per query (e.g. geo top 20).
run_query may return a stored file path instead of inline data when the payload is big. In that case, read and parse the file with code execution — pull connectorResults[].results[].data.headers and .rows, then sort/aggregate to what each module needs rather than loading everything into context.The 9 queries and their field IDs:
Query A — Campaign Performance (period-over-period)
dims: campaign_name, campaign_objective, campaign_effective_status
metrics: spend, impressions, reach, clicks, ctr, cpc, cpm, frequency, conversions, cost_per_conversion, purchase_roas_all, conversion_values
Query B — Ad Set Performance + Audience
dims: adset_name, campaign_name, adset_effective_status, targeting_age_min, targeting_age_max
metrics: spend, impressions, reach, clicks, ctr, cpc, cpm, frequency, conversions, cost_per_conversion, purchase_roas_all
Note:
fadshas no native audience-type dimension. Infer interest / lookalike / remarketing / broad fromadset_namepatterns (e.g. "LLA"/"lookalike", "retargeting"/"RMK", "broad", interest names) and the targeting age span. Module 7 (Audience) uses THIS query — there is no separate audience fetch.
Query C — Ad / Creative Performance (period-over-period)
dims: ad_name, adset_name, campaign_name, ad_creative_object_type, ad_effective_status
metrics: spend, impressions, clicks, ctr, cpc, cpm, frequency, conversions, cost_per_conversion, purchase_roas_all, quality_ranking, engagement_rate_ranking, conversion_rate_ranking
Query D1 — Placement by Publisher Platform
dims: publisher_platform
metrics: spend, impressions, clicks, ctr, cpc, cpm, conversions, cost_per_conversion
Query D2 — Placement by Position
dims: platform_position
metrics: spend, impressions, clicks, ctr, cpc, cpm, conversions, cost_per_conversion
Critical:
publisher_platformandplatform_positioncannot be combined in one query —fadsrejects that field combination at validation. Always run them as two separate queries (D1 and D2). Module 8 merges both result sets.
Query E — Device Performance
dims: impression_device, device_platform
metrics: spend, impressions, clicks, ctr, cpc, conversions, cost_per_conversion, purchase_roas_all
Query F — Geo Performance (top 20 by spend)
dims: country_name
metrics: spend, impressions, clicks, ctr, conversions, cost_per_conversion
Query G — Dayparting
dims: hour
metrics: spend, impressions, clicks, conversions
Note:
fadsexposes hour-of-day but no native weekday dimension. For day-of-week analysis, adddateas a dimension and derive the weekday at runtime.
Query H — Funnel Events
dims: campaign_name
metrics: link_clicks, website_fb_landing_page_views, all_add_to_cart, all_initiated_checkout, all_purchases
If any query fails or returns no data, note it in the report ("Data unavailable — check connector permissions or account configuration") and continue. Never block the full audit over one missing data layer.
Not every Meta account tracks purchase revenue. Lead-gen, app-install, appointment, donation, and custom-conversion accounts will return purchase_roas_all and conversion_values empty or zero even when they convert heavily. Before running any scoring module, inspect the data you pulled and classify the account:
purchase_roas_all / conversion_values are populated. Run the audit as written, ROAS included.purchase_roas_all / conversion_values come back empty/zero but conversions and cost_per_conversion are populated (the account optimizes toward a custom event — leads, quiz completions, signups, app installs, etc.). In this case:
cost_per_conversion) and conversion volume.all_purchases), surface the true purchase funnel separately (link clicks → landing views → add-to-cart → checkout → purchase) so the reader sees real revenue activity even though account-level ROAS is unavailable.This classification is mandatory. A report that shows "ROAS: 0" or "ROAS: N/A" on a lead-gen account reads as broken; a report that says "this account optimizes for [custom event]; judged on CPA" reads as expert.
Process all fetched data through these 9 audit modules. Each scored module produces a score and specific findings (named campaigns, ad sets, or ads with real numbers).
ROAS-availability rule (applies to every module below): if Step 5 classified the account as non-purchase, every reference to ROAS in the modules below is replaced by CPA + conversion volume. Do not score or display ROAS for those accounts.
Read references/thresholds.md for scoring benchmarks.
Compute account-wide totals for the selected period:
cost_per_conversion), ROAS (purchase_roas_all, if available)Identify budget going nowhere. Flag and quantify:
Compute: Estimated wasted spend = sum of spend on 0-conversion and sub-threshold campaigns/ad sets. Surface this prominently.
Rank all active campaigns:
Evaluate ad set health across the account:
Evaluate ad-level performance — this is the most Meta-specific module:
ad_creative_object_type (video, photo, carousel, etc.) and which formats perform bestquality_ranking, engagement_rate_ranking, conversion_rate_ranking where present to corroborate findingsMeta-specific gold. Cross-reference frequency, CTR trends, and CPM (current vs previous window from Query C):
Analyze audience segments (from Query B, with audience type inferred from names/targeting):
Evaluate spend efficiency across placements. Merge the two placement result sets — Query D1 (publisher_platform: Facebook / Instagram / Audience Network / Messenger) and Query D2 (platform_position: Feed / Stories / Reels / etc.) — into one view:
Consolidate all findings into a tiered, specific action plan. Every item must name the campaign, ad set, or ad.
High Priority (this week):
Medium Priority (this month):
Growth Opportunities:
Generate a single self-contained HTML file as an artifact. This is the primary deliverable.
#e53e3e, 🟡 #d69e2e, 🟢 #38a169, Meta blue #1877F2 as accent[Header banner: Account name | Period | Score | Generated date]
[Executive Summary — KPI grid tiles with PoP deltas]
[Overall Health Score ring — X/100]
[Wasted Spend Callout — prominent estimated $ wasted]
[Module Score Overview — horizontal bars for all 7 scored modules]
[Campaign Ranking — sortable table, color-coded rows]
[Ad Set Audit — table with audience type column + status badges]
[Creative Performance — table with format badges + CTR/CPA]
[Creative Fatigue — dedicated table: frequency | CTR change | CPA change | status]
[Audience Audit — segment comparison table + reallocation note]
[Placement Audit — ranked table + exclusion recommendations box]
[Action Plan — tiered checklist, priority badges]
[Footer: "Generated with Meta Ads Auditor via Two Minute Reports"]
Use inline CSS only. No external dependencies except Google Fonts. File must render correctly when saved offline.
See references/html_template.md for the full CSS foundation and component patterns.
These are the exact structured queries the audit runs against fads. Field IDs are raw. Dates are resolved at runtime from the user's chosen window; compare_to_previous queries are also run for the immediately-preceding equal-length window.
| Key | Dimensions | Metrics | PoP |
|---|---|---|---|
| campaign_performance | campaign_name, campaign_objective, campaign_effective_status | spend, impressions, reach, clicks, ctr, cpc, cpm, frequency, conversions, cost_per_conversion, purchase_roas_all, conversion_values | yes |
| adset_performance | adset_name, campaign_name, adset_effective_status, targeting_age_min, targeting_age_max | spend, impressions, reach, clicks, ctr, cpc, cpm, frequency, conversions, cost_per_conversion, purchase_roas_all | no |
| ad_creative_performance | ad_name, adset_name, campaign_name, ad_creative_object_type, ad_effective_status | spend, impressions, clicks, ctr, cpc, cpm, frequency, conversions, cost_per_conversion, purchase_roas_all, quality_ranking, engagement_rate_ranking, conversion_rate_ranking | yes |
| placement_platform | publisher_platform | spend, impressions, clicks, ctr, cpc, cpm, conversions, cost_per_conversion | no |
| placement_position | platform_position | spend, impressions, clicks, ctr, cpc, cpm, conversions, cost_per_conversion | no |
| device_performance | impression_device, device_platform | spend, impressions, clicks, ctr, cpc, conversions, cost_per_conversion, purchase_roas_all | no |
| geo_performance | country_name | spend, impressions, clicks, ctr, conversions, cost_per_conversion | no |
| dayparting | hour | spend, impressions, clicks, conversions | no |
| funnel_events | campaign_name | link_clicks, website_fb_landing_page_views, all_add_to_cart, all_initiated_checkout, all_purchases | no |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub twominutereports/marketing-skills --plugin tmr-marketing-skills15 skills in this plugin
/tmr-content-decay-detectorUse this skill when the user asks to detect content decay, find declining pages, audit SEO performance drops, identify pages losing organic traffic, run a content decay audit, check which blog posts or landing pages are losing clicks or sessions, or surface pages with falling rankings and engagement. Requires Google Search Console and Google Analytics 4. Produces a severity-scored decay report with root cause diagnosis (visibility loss, SERP issue, tracking mismatch, or engagement decay) plus an HTML dashboard artifact with a prioritized action table./tmr-facebook-insights-reportRuns a comprehensive Facebook Page (organic) performance report using live data from Two Minute Reports (TMR) MCP. Trigger this skill whenever the user says anything like: "audit my Facebook Page", "Facebook Page performance report", "how is my Facebook Page growing", "review my Facebook engagement", "analyze my FB Page", "Facebook insights report", "why are my Page followers dropping", "which Facebook posts perform best", "Facebook Reels performance", "Facebook content audit", "check my Page reach", "Facebook Page engagement rate", "Page audience demographics", or any request to evaluate, score, diagnose, or improve an organic Facebook Page. Also trigger when the user pastes Facebook Page metrics and asks for analysis. Produces a rich HTML report with visual scorecards, a growth trend chart, ranked post/video tables, audience breakdown, and a prioritized action plan. This is for ORGANIC Facebook Page Insights — for paid Facebook/Meta ad campaigns use the Meta/Facebook Ads audit instead. IMPORTANT: Always use Two Minute Reports MCP to fetch live data. Never ask the user to upload files or paste data manually.
Other plugins' skills for the same job