Community研究与数据分析github.com

LeoYeAI/openclaw-marketing-skills

连接到 Meta 营销 API,拉取真实的 Facebook 和 Instagram 广告数据——包括广告系列效果、创意疲劳度、受众饱和度、广告组 ROAS、频次分析和学习阶段状态。当用户想要审计其 Meta/Facebook/Instagram 广告、诊断创意疲劳、发现浪费的预算或获取数据驱动的优化建议时使用。通过真实 Meta 数据增强付费广告和广告创意技能。触发关键词:'审计我的 Facebook 广告'、'Instagram 广告效果'、'Meta 广告转化不佳'。

openclaw-marketing-skills 是什么?

该技能使 AI 代理能够直接连接到用户的 Meta 广告账户(包括 Facebook 和 Instagram),执行深入的付费社交分析。它不仅仅是提供通用的 Meta 建议,而是基于真实数据提取广告系列、广告组和创意素材的表现指标。支持的平台包括 Claude Code、Cursor 等支持技能系统的 AI 代理。功能涵盖创意疲劳诊断(使用频次、点击率、流失率等)、学习阶段问题排查(区分“学习中”和“学习受限”状态)、受众重叠检测(识别广告组间的预算竞争)以及广告账户整体健康评分。该技能使用本地 JSON 文件进行凭证存储和数据缓存,并提供一组有限的、安全的操作(如暂停广告、调整预算)以避免破坏性更改。它与其他技能(如付费广告、广告创意和 AB 测试设置)无缝集成,以实现基于真实账户数据的、数据驱动的优化建议。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/LeoYeAI/openclaw-marketing-skills/tree/main/skills/meta-ads-connect

Installed? Explore more 研究与数据分析 skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Meta Ads 连接器

你是一位具备直接访问用户 Meta 广告账户权限的付费社交分析师。你将拉取真实的广告系列、广告组和创意素材数据,用以诊断性能问题并推荐可执行的操作——而非泛泛的 Meta 通用建议。

初始设置(首次使用)

检查是否存在 .agents/meta-ads-credentials.json 文件。如果缺失,请执行以下步骤:

步骤 1:获取 Meta 访问令牌

  1. 前往 Meta for Developers
  2. 创建一个应用 → 选择“商业”类型
  3. 添加 Marketing API 产品
  4. 生成一个系统用户令牌,并授予以下权限:
    • ads_read
    • ads_management(仅当用户希望应用更改时)
    • business_management
  5. 从 Meta 广告管理工具获取你的广告账户 ID(格式:act_XXXXXXXXXX)

步骤 2:保存凭证

将凭证保存到 .agents/meta-ads-credentials.json 文件中:

{
  "access_token": "EAAxxxxxxxxxx...",
  "ad_account_id": "act_XXXXXXXXXX",
  "app_id": "...",
  "app_secret": "..."
}

令牌刷新

Meta 令牌会过期。如需长期使用:

python skills/meta-ads-connect/scripts/refresh_token.py

数据拉取

python skills/meta-ads-connect/scripts/audit.py \
  --account act_XXXXXXXXXX \
  --days 30 \
  --output .agents/meta-ads-data.json

获取的数据(默认最近 30 天):

  • 广告系列表现:花费、覆盖人数、展示次数、点击次数、购买次数、ROAS、CPM、CPC、CPP
  • 广告组细分:按受众、投放位置、优化目标划分的表现
  • 广告/创意表现:CTR、钩子率、保持率、广告创意的拇指暂停率
  • 频次:每个用户看到每条广告的平均次数(疲劳度指标)
  • 学习阶段状态:哪些广告组处于“学习中”/“学习受限”状态
  • 受众重叠:定位相同用户的广告组(预算竞争)
  • 像素健康度:事件是否正确触发,匹配质量评分

分析框架

7 维度健康检查(针对 Meta 调优)

维度健康警告严重
像素 + CAPI 健康度所有事件正常触发,EMQ > 7部分事件缺失像素失效
归因明确的归因窗口已设置混合窗口未设置归因
广告系列结构清晰的 CBO 或 ABO 意图混合结构预算碎片化
创意健康度CTR > 1%,使用未满 3 周CTR 下降,使用 3-6 周疲劳,CTR < 0.5%
受众策略广泛 + LAL + 再营销缺少再营销仅一种受众类型
花费效率ROAS ≥ 目标,CPP 呈下降趋势ROAS 接近目标ROAS 低于目标,CPP 上升
扩展准备度学习完成,CPA 稳定仍在学习学习受限

创意疲劳诊断

当出现以下情况时标记为创意疲劳:

  • 最近 7 天频次 > 3.0(同一用户看到同一广告次数过多)
  • 同一创意的 CTR 逐周下降(持续投放 3 周以上)
  • 钩子率下降(少于 3 秒的观看人数减少)
  • CPM 升高且受众规模未变(算法降低广告优先级)

钩子率 = 3 秒视频观看次数 / 展示次数 保持率 = ThruPlay / 3 秒观看次数 拇指暂停率 = 3 秒观看次数 / 展示次数

健康基准:

指标目标
CTR(链接)> 1.0%
钩子率> 25%
保持率> 40%
频次(7 天)< 3.0
CPM取决于行业,需跟踪趋势

学习阶段排查

  • 学习中:正常——广告组的优化事件数少于 50。不要修改它。
  • 学习受限:有问题——无法获取足够的事件进行优化。修复选项:
    • 扩大受众(当前过窄)
    • 增加预算(当前过低,不足以产生事件)
    • 简化优化目标
    • 合并相似的广告组
  • 活跃中:健康——数据充足,算法正在优化

受众重叠检测

如果两个广告组的受众重叠度 > 20%:

  • 它们在竞价中相互竞争
  • 你在跟自己竞价 = 更高的 CPM
  • 修复:在广告组之间排除受众,或合并为一个广告组

输出格式

账户评分卡

账户:[名称] | 广告账户:act_XXXXXXXXXX
期间:最近 30 天 | 花费:$X,XXX | 购买次数:XX | ROAS:X.Xx | CPP:$XX

评分卡:
┌──────────────────────┬──────────┬──────────────────────────────┐
│ 维度                 │ 状态     │ 摘要                        │
├──────────────────────┼──────────┼──────────────────────────────┤
│ 像素 + CAPI 健康度   │ ✅ 正常  │ X 个事件,EMQ 评分 X.X      │
│ 归因                 │ ✅ 正常  │ 已设置 7 天点击归因窗口    │
│ 广告系列结构         │ ⚠️ 警告  │ 混合 CBO/ABO,X 个广告系列 │
│ 创意健康度           │ 🔴 严重  │ X 个创意疲劳(频次 >3)    │
│ 受众策略             │ ⚠️ 警告  │ 缺少再营销层               │
│ 花费效率             │ ✅ 正常  │ ROAS X.Xx vs 目标 X.Xx      │
│ 扩展准备度           │ ⚠️ 警告  │ X 个广告组处于学习受限     │
└──────────────────────┴──────────┴──────────────────────────────┘

前三项行动建议

始终输出以下内容:

  1. 暂停疲劳创意 — [广告名称列表],频次 X.X,CTR 在过去 3 周内下降 XX%

    • 影响:降低 CPM,提高相关性评分
    • 下一步:构思 X 个新的创意变体(使用广告创意技能)
  2. 修复学习受限问题 — [广告组名称] 已处于学习受限状态 X 天

    • 原因:受众过窄(XX,XXX 人)/ 预算过低(每天 $XX 用于 X 转化目标)
    • 修复:[具体的受众扩展或预算增加方案]
  3. 添加再营销广告系列 — 未检测到再营销。网站访客未被重新捕获。

    • 设置:3 个广告组——7 天访客、30 天访客、购物车放弃者
    • 预估 ROAS:3-5 倍(再营销通常优于新客拓展)

执行(可选)

变更操作有意限制——仅限安全、可逆的操作:

python skills/meta-ads-connect/scripts/mutate.py \
  --pause-ad "ad_id_1,ad_id_2" \
  --pause-adset "adset_id" \
  --update-adset-budget "adset_id:50" \
  --update-campaign-budget "campaign_id:200"

非自动化(改为引导至 Meta 广告管理工具操作):

  • 创建新广告系列、广告组或广告
  • 编辑受众或定位
  • 上传创意素材
  • 更改优化目标

始终在执行前确认:

"我将暂停 2 个疲劳广告并增加 1 个学习受限广告组的预算。是否确认?"

所有更改记录到 .agents/meta-ads-changes.json。


与其他技能的集成

  • 付费广告:用账户特定数据替换通用 Meta 策略
  • 广告创意:使用真实的钩子率/CTR 数据来构思更好的创意——了解什么有效
  • AB 测试设置:基于真实表现差距设计结构化的创意测试
  • 分析跟踪:将 Meta 转化数据与 GA4 进行交叉验证,以进行归因合理性检查

参考


相关技能

  • 付费广告:跨所有平台的完整付费广告策略
  • google-ads-connect:配合使用以获得付费搜索 + 付费社交的完整视图
  • 广告创意:用于在检测到疲劳时生成新的创意
  • 分析跟踪:用于像素设置和转化事件配置
  • AB 测试设置:用于结构化的创意和受众测试

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

LeoYeAI/openclaw-marketing-skills

When the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," or "how long should I run this test." Use this whenever someone is comparing two approaches and wants to measure which performs better. For tracking implementation, see analytics-tra

LeoYeAI/openclaw-marketing-skills

When the user wants to generate, iterate, or scale ad creative — headlines, descriptions, primary text, or full ad variations — for any paid advertising platform. Also use when the user mentions 'ad copy variations,' 'ad creative,' 'generate headlines,' 'RSA headlines,' 'bulk ad copy,' 'ad iterations,' 'creative testing,' 'ad performance optimization,' 'write me some ads,' 'Facebook ad copy,' 'Google ad headlines,' 'LinkedIn ad text,' or 'I need more ad variations.' Use this whenever someone needs to produce ad copy at scale or iterate on existing ads. For campaign strategy and targeting, see paid-ads. For landing page copy, see copywriting.

LeoYeAI/openclaw-marketing-skills

When the user wants to optimize content for AI search engines, get cited by LLMs, or appear in AI-generated answers. Also use when the user mentions 'AI SEO,' 'AEO,' 'GEO,' 'LLMO,' 'answer engine optimization,' 'generative engine optimization,' 'LLM optimization,' 'AI Overviews,' 'optimize for ChatGPT,' 'optimize for Perplexity,' 'AI citations,' 'AI visibility,' 'zero-click search,' 'how do I show up in AI answers,' 'LLM mentions,' or 'optimize for Claude/Gemini.' Use this whenever someone wants their content to be cited or surfaced by AI assistants and AI search engines. For traditional technical and on-page SEO audits, see seo-audit. For structured data implementation, see schema-markup.

LeoYeAI/openclaw-marketing-skills

When the user wants to set up, improve, or audit analytics tracking and measurement. Also use when the user mentions "set up tracking," "GA4," "Google Analytics," "conversion tracking," "event tracking," "UTM parameters," "tag manager," "GTM," "analytics implementation," "tracking plan," "how do I measure this," "track conversions," "attribution," "Mixpanel," "Segment," "are my events firing," or "analytics isn't working." Use this whenever someone asks how to know if something is working or wan

LeoYeAI/openclaw-marketing-skills

When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies. Also use when the user mentions 'churn,' 'cancel flow,' 'offboarding,' 'save offer,' 'dunning,' 'failed payment recovery,' 'win-back,' 'retention,' 'exit survey,' 'pause subscription,' 'involuntary churn,' 'people keep canceling,' 'churn rate is too high,' 'how do I keep users,' or 'customers are leaving.' Use this whenever someone is losing subscribers o

LeoYeAI/openclaw-marketing-skills

Write B2B cold emails and follow-up sequences that get replies. Use when the user wants to write cold outreach emails, prospecting emails, cold email campaigns, sales development emails, or SDR emails. Also use when the user mentions "cold outreach," "prospecting email," "outbound email," "email to leads," "reach out to prospects," "sales email," "follow-up email sequence," "nobody's replying to my emails," or "how do I write a cold email." Covers subject lines, opening lines, body copy, CTAs, p

LeoYeAI/openclaw-marketing-skills

When the user wants to create competitor comparison or alternative pages for SEO and sales enablement. Also use when the user mentions 'alternative page,' 'vs page,' 'competitor comparison,' 'comparison page,' '[Product] vs [Product],' '[Product] alternative,' 'competitive landing pages,' 'how do we compare to X,' 'battle card,' or 'competitor teardown.' Use this for any content that positions your product against competitors. Covers four formats: singular alternative, plural alternatives, you v

LeoYeAI/openclaw-marketing-skills

When the user wants to plan a content strategy, decide what content to create, or figure out what topics to cover. Also use when the user mentions "content strategy," "what should I write about," "content ideas," "blog strategy," "topic clusters," "content planning," "editorial calendar," "content marketing," "content roadmap," "what content should I create," "blog topics," "content pillars," or "I don't know what to write." Use this whenever someone needs help deciding what content to produce,

LeoYeAI/openclaw-marketing-skills

When the user wants to edit, review, or improve existing marketing copy. Also use when the user mentions 'edit this copy,' 'review my copy,' 'copy feedback,' 'proofread,' 'polish this,' 'make this better,' 'copy sweep,' 'tighten this up,' 'this reads awkwardly,' 'clean up this text,' 'too wordy,' or 'sharpen the messaging.' Use this when the user already has copy and wants it improved rather than rewritten from scratch. For writing new copy, see copywriting.

LeoYeAI/openclaw-marketing-skills

When the user wants to write, rewrite, or improve marketing copy for any page — including homepage, landing pages, pricing pages, feature pages, about pages, or product pages. Also use when the user says "write copy for," "improve this copy," "rewrite this page," "marketing copy," "headline help," "CTA copy," "value proposition," "tagline," "subheadline," "hero section copy," "above the fold," "this copy is weak," "make this more compelling," or "help me describe my product." Use this whenever s

LeoYeAI/openclaw-marketing-skills

When the user wants to create or optimize an email sequence, drip campaign, automated email flow, or lifecycle email program. Also use when the user mentions "email sequence," "drip campaign," "nurture sequence," "onboarding emails," "welcome sequence," "re-engagement emails," "email automation," "lifecycle emails," "trigger-based emails," "email funnel," "email workflow," "what emails should I send," "welcome series," or "email cadence." Use this for any multi-email automated flow. For cold out

LeoYeAI/openclaw-marketing-skills

When the user wants to optimize any form that is NOT signup/registration — including lead capture forms, contact forms, demo request forms, application forms, survey forms, or checkout forms. Also use when the user mentions "form optimization," "lead form conversions," "form friction," "form fields," "form completion rate," "contact form," "nobody fills out our form," "form abandonment," "too many fields," "demo request form," or "lead form isn't converting." Use this for any non-signup form tha

LeoYeAI/openclaw-marketing-skills

When the user wants to plan, evaluate, or build a free tool for marketing purposes — lead generation, SEO value, or brand awareness. Also use when the user mentions "engineering as marketing," "free tool," "marketing tool," "calculator," "generator," "interactive tool," "lead gen tool," "build a tool for leads," "free resource," "ROI calculator," "grader tool," "audit tool," "should I build a free tool," or "tools for lead gen." Use this whenever someone wants to build something useful and give

LeoYeAI/openclaw-marketing-skills

Connect GetXAPI to pull public X/Twitter marketing signals into OpenClaw workflows. Use when the user wants social listening, tweet search, reply search, user lookup, or monitor setup driven by a Bearer-auth search backend. Enhances social-content, paid-ads, ad-creative, content-strategy, launch-strategy, and competitor-alternatives with real public conversation data.

LeoYeAI/openclaw-marketing-skills

Connect to Google Ads API to pull real account data — campaign performance, keyword health, wasted spend, search terms, impression share. Use when the user wants to audit their Google Ads account, find wasted budget, optimize keywords, or get data-driven recommendations. Enhances paid-ads and ad-creative skills with real numbers instead of guesswork. Triggers on: 'audit my Google Ads', 'find wasted spend', 'why are my ads not converting', 'Google Ads performance', 'which keywords to pause', 'Goo

LeoYeAI/openclaw-marketing-skills

When the user wants to plan a product launch, feature announcement, or release strategy. Also use when the user mentions 'launch,' 'Product Hunt,' 'feature release,' 'announcement,' 'go-to-market,' 'beta launch,' 'early access,' 'waitlist,' 'product update,' 'how do I launch this,' 'launch checklist,' 'GTM plan,' or 'we're about to ship.' Use this whenever someone is preparing to release something publicly. For ongoing marketing after launch, see marketing-ideas.

LeoYeAI/openclaw-marketing-skills

When the user wants to create, plan, or optimize a lead magnet for email capture or lead generation. Also use when the user mentions "lead magnet," "gated content," "content upgrade," "downloadable," "ebook," "cheat sheet," "checklist," "template download," "opt-in," "freebie," "PDF download," "resource library," "content offer," "email capture content," "Notion template," "spreadsheet template," or "what should I give away for emails." Use this for planning what to create and how to distribute

LeoYeAI/openclaw-marketing-skills

When the user needs marketing ideas, inspiration, or strategies for their SaaS or software product. Also use when the user asks for 'marketing ideas,' 'growth ideas,' 'how to market,' 'marketing strategies,' 'marketing tactics,' 'ways to promote,' 'ideas to grow,' 'what else can I try,' 'I don't know how to market this,' 'brainstorm marketing,' or 'what marketing should I do.' Use this as a starting point whenever someone is stuck or looking for inspiration on how to grow. For specific channel execution, see the relevant skill (paid-ads, social-content, email-sequence, etc.).

LeoYeAI/openclaw-marketing-skills

When the user wants to apply psychological principles, mental models, or behavioral science to marketing. Also use when the user mentions 'psychology,' 'mental models,' 'cognitive bias,' 'persuasion,' 'behavioral science,' 'why people buy,' 'decision-making,' 'consumer behavior,' 'anchoring,' 'social proof,' 'scarcity,' 'loss aversion,' 'framing,' or 'nudge.' Use this whenever someone wants to understand or leverage how people think and make decisions in a marketing context.

LeoYeAI/openclaw-marketing-skills

When the user wants to optimize post-signup onboarding, user activation, first-run experience, or time-to-value. Also use when the user mentions "onboarding flow," "activation rate," "user activation," "first-run experience," "empty states," "onboarding checklist," "aha moment," "new user experience," "users aren't activating," "nobody completes setup," "low activation rate," "users sign up but don't use the product," "time to value," or "first session experience." Use this whenever users are si

相关技能