Communitygithub.com

mardab96/tiktok-ads-claude-skills

将TikTok Shop和GMV Max报告转化为单个产品的成本堆叠分类账,包含退款、联盟佣金、卖家优惠券、推荐费、广告支出、COGS和卖家承担的运费,使用gmv_profit.py标记任何不完整的成本堆叠(T09)。

tiktok-ads-claude-skills 是什么?

此技能旨在解决TikTok Shop卖家和媒体买家面临的常见问题:GMV Max报告显示的ROI看似良好,但实际利润可能为负。它通过将GMV Max报告转化为详细的单产品利润分类账,整合了所有关键成本项,包括退款、联盟佣金、卖家优惠券、推荐费、广告支出、COGS和卖家承担的运费,从而揭示真实盈利状况。该技能基于gmv_profit.py脚本工作,要求用户提供来自TikTok Seller Center和Ads Manager的导出数据,并确保每个成本行都已填写,否则会标记为“needs_data”(T09)。输出包括一个完整的分类账表格、平台视图与分类账的对比、决策表以及数据缺失项列表,帮助用户判断哪些SKU需要更多预算、是否需要调整ROI目标,或是否需要排除特定产品。支持平台包括Claude Code、Cursor、Codex等AI代理工具,适用于TikTok Shop卖家。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/mardab96/tiktok-ads-claude-skills/tree/HEAD/gmv-max-profit-check-tiktok-ads

在你喜欢的 AI 中提问

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

文档

GMV Max 利润检查:TikTok 广告

使用此技能的时机

GMV Max 报告的是总商品价值(GMV)和广告支出平台回报率。除非你的报告另有说明,否则两者均为毛值:它们均不显示决定利润率的退款、联盟佣金、卖家优惠券、推荐费、产品成本以及卖家承担的运费。此技能为每个产品构建一个分类账,当任何成本行缺失时(T09),它会拒绝做出利润声明,并说明买家可以得出和不能得出的结论。基于 Seller Center 和 Ads Manager 的导出文件工作;TikTok for Business 连接器在 Claude 中是可选项。

典型请求:

  • "GMV Max 显示ROI强劲。财务部说我们在Shop上亏损。谁是对的?"
  • "哪些SKU应该获得更多GMV Max预算?"
  • "联盟创作者驱动了大部分销售。扣除佣金后还剩多少?"
  • "退款激增。这对上个月的数字有什么影响?"
  • "我们能降低ROI目标但仍然盈利吗?"

请勿使用此技能的时机:

  • 问题涉及的是网站像素购买而非Shop订单。请运行 pixel-events-api-check-tiktok-ads 或 attribution-gap-check-tiktok-ads。
  • 预算规模和投放节奏是边际确定后的决策事项。请运行 budget-scaling-planner-tiktok-ads。
  • 需要审查竞价或ROI目标机制。请运行 bid-strategy-check-tiktok-ads,并附上此分类账。
  • 范围涉及更广泛的、无Shop账户的情况。请运行 account-triage-tiktok-ads。

必需的输入数据

每个成本行均来自提供的导出文件或企业自有数据。空行保持缺失状态,绝不会被视为零。

为每个时间段构建一个CSV文件,使用以下精确的列标题,每行对应一个产品或SKU:

product, revenue, refunds, affiliate_commission, coupons, referral_fees, ad_spend

其中各列的数据来源(Seller Center 中的名称因市场而异,请以你账户中的标注为准):

列典型来源备注
revenueSeller Center 订单 或 财务 结算报告扣除退款前的产品总收入
refunds订单 退货与退款,或结算调整需与订单日期间隔一致
affiliate_commission联盟 佣金报告使用已结算或估算值,并注明使用的是哪一种
coupons促销活动 报告仅限卖家承担的部分
referral_fees财务 结算费用行平台佣金或推荐费(按报告中的标注)
ad_spendAds Manager 中的 GMV Max 广告系列报告,如有可能,按产品级别需覆盖相同的日期和货币

利润声明还需以下数据:每个产品的单位COGS和销售单位数,以及每个产品或订单的卖家承担运费。同时需要:时间段、市场、货币,以及数据是基于订单日期还是结算日期。

可选输入数据

  • 平台GMV和ROI,如GMV Max报告中所示,用于与分类账进行对比。
  • 退款窗口或退货政策期限,以判断近期订单的成熟度。
  • 发送给联盟创作者的样品订单或样品成本(如果企业有记录)。

分析前的准备工作

  1. 确定分析单位:产品、SKU或GMV Max广告系列。在所有导出文件之间保持一个统一的键,以便行能够干净地连接。
  2. 询问联盟驱动订单和广告驱动订单在店铺报告中的重叠情况。如果一个订单同时产生联盟佣金和GMV Max信用,则在该行中保留两项成本;即使信用是共享的,成本也是真实发生的。
  3. 询问每项促销活动的出资方。平台出资和卖家出资的折扣可能在同一报告列中。
  4. 确认每个市场的退货窗口期限和今天的日期,以便在阅读结果前了解该时间段中订单的未成熟部分。
  5. 记录广告支出是产品级别还是广告系列级别。按GMV份额分摊到产品上的广告系列级别支出属于分配,应标记为 hypothesis。

分析工作流程

  1. 在每次导出文件中对齐时间段、市场和货币。标记每个来源是基于订单日期还是结算日期;混合使用两者的分类账将显示来自不同订单的费用和收入。

  2. 运行脚本前规范化数字。gmv_profit.py 会去除 $ 符号,并将逗号或非有限值视为缺失。将小数点逗号(12,50)转换为小数点(12.50),并移除千位分隔符(1.234,56 变为 1234.56)。移除其他货币符号或代码(EUR、GBP、PLN),否则该行将保持不完整。

  3. 使用上述精确标题构建CSV文件。真实零值输入 0;未知单元格留空,使其保持缺失状态。

  4. 从此技能文件夹运行辅助脚本:

    python3 ../tiktok-ads-shared/scripts/gmv_profit.py shop_ledger.csv
    

    如果从已安装的副本运行,请使用 ~/.claude/skills/tiktok-ads-shared/scripts/gmv_profit.py。合成样本文件位于 ../tiktok-ads-shared/examples/data/gmv_profit.csv。

  5. 读取制表符分隔的输出。列包括:product、revenue、cost_stack、contribution_before_cogs、status、missing_columns。cost_stack 是退款、联盟佣金、优惠券、推荐费和广告支出的绝对值总和,因此结算导出文件中的负号是安全的。complete_cost_stack 表示每个可见单元格都已成功解析。incomplete_cost_stack / needs_data 打印 n/a 并列出每个缺失的列(T09)。退出代码为2且显示 ERROR: 行表示文件无法打开或缺少必需的标题。

  6. 对于状态为 complete_cost_stack 的行,手动添加COGS和卖家承担的运费:COGS和运费后的贡献 = contribution_before_cogs 减去 COGS 再减去卖家运费。如果没有这两项输入,则仅报告COGS前的贡献,并将利润标记为 needs_data。

  7. 将分类账与平台数据进行对比。并排显示每个产品的平台GMV、平台ROI、COGS前贡献以及COGS和运费后的贡献。

  8. 检查退款成熟度。仍在退货窗口内的订单未来仍可能发生退款;当退款窗口尚未关闭时,将最近的时间段标记为不成熟。

  9. 生成一个行动清单:需要收集哪些成本行,哪些产品在预算或目标讨论中应标记为 monitor、hold 或 approval_needed。

决策规则

条件证据结论下一步操作
收入、退款、联盟佣金、优惠券、推荐费或广告支出中的任何一项空白或不可解析(T09)shop_export + 脚本状态needs_data收集命名的列;无法得出利润或规模的结论
可见成本堆叠完整,但COGS或卖家运费缺失(T09)脚本输出needs_data(利润相关)仅报告COGS前的贡献
对于承担了显著GMV Max支出的产品,其COGS和运费后的贡献为负分类账approval_needed由负责人决定目标、预算或产品排除;转至 bid-strategy-check-tiktok-ads
贡献为正,退款窗口已关闭分类账monitor 或 approval_needed(用于扩展)转至 budget-scaling-planner-tiktok-ads
贡献为正,退款窗口仍开放分类账 + 退货政策hold等待窗口关闭后重新检查
订单日期和结算日期的来源混合导出文件元数据needs_data基于单一基准重建
联盟佣金为估算值,而非已结算值联盟报告possible标记为估算;等待结算后重新检查

输出格式

## GMV Max 利润检查:[店铺]、[市场]、[时间段]、[货币]、[订单日期 / 结算日期基准]

**结论:** [共享结论标签],因为 [最强证据]
**脚本:** gmv_profit.py 处理 [文件名];完整行数:[n] / [n]

### 店铺经济学分类账
| 产品 | GMV(平台) | 收入 | 退款 | 联盟佣金 | 优惠券 | 推荐费 | 广告支出 | COGS前贡献 | COGS | 卖家运费 | COGS和运费后贡献 | 状态 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|

### 平台视图对比分类账
| 产品 | 平台ROI | 每单位广告支出的COGS和运费后贡献 | 差距解释 |
|---|---|---|---|

### 决策表
| 发现 | 证据 | 结论 | 严重程度 | 置信度 | 业务影响 | 下一步操作 |
|---|---|---|---|---|---|---|

### 需要收集的成本行
- [产品]:[列],来源:[报告],负责人:[姓名]

### 数据缺口
- [缺失项]:阻碍了 [结论]

实际示例

以下为合成样本文件中的说明性数字,并非基准值。在 ../tiktok-ads-shared/examples/data/gmv_profit.csv 上运行辅助脚本将返回:

product	revenue	cost_stack	contribution_before_cogs	status	missing_columns
入门套件	1000.00	445.00	555.00	complete_cost_stack
不完整的补充包	n/a	n/a	n/a	incomplete_cost_stack / needs_data	affiliate_commission

入门套件:收入 1,000,退款 50,联盟佣金 100,优惠券 75,推荐费 40,广告支出 180,因此成本堆叠为 445,COGS前贡献为 555。GMV Max 报告将显示 1,000 GMV 对应 180 支出。假设企业提供的COGS为 320,卖家运费为 90:则COGS和运费后的贡献为 145。结论为 monitor,待退款窗口关闭后转至 budget-scaling-planner-tiktok-ads 进行扩展讨论。

不完整的补充包:联盟佣金为空白。应用 T09 规则;结论为 needs_data,无利润声明,数据收集任务分配给负责联盟报告的人员。

常见误解

  • 将 GMV Max ROI 视为利润。如报告所示,它不包含费用、佣金、COGS 和运费堆叠,除非你的报告明确扣除了退款,否则也不包含退款。
  • 在 revenue 列中填入退款后的净收入,同时又填写了 refunds 列,这会导致重复扣除退款。
  • 将平台出资的优惠券计为卖家成本。只有卖家承担的部分才应计入 coupons 列。
  • 在空白的联盟佣金单元格中输入 0 以使脚本通过。这会将未知数变为虚假利润。
  • 使用带有小数点逗号的欧洲格式数字,脚本会将其解释为实际数值的一百倍。
  • 比较基于订单日期的收入导出文件和基于结算日期的费用导出文件。
  • 在退货窗口仍然开放的情况下评估上周的产品。
  • 按GMV份额将广告系列级别的广告支出分配到产品上,然后将产品利润呈现为测量值。

转至下一步骤

  • 分类账完整且贡献为正,正在讨论扩展:budget-scaling-planner-tiktok-ads,然后在任何实时编辑前运行 learning-phase-guard-tiktok-ads(T05)。
  • 对于以目标为导向的广告系列,分类账显示贡献为负:bid-strategy-check-tiktok-ads,并附上分类账。
  • 联盟创作者内容优于品牌内容:spark-vs-brand-ad-split-tiktok-ads。
  • 向客户提供Shop经济学摘要:weekly-client-report-tiktok-ads。

安全护栏

  • 请勿将GMV、平台ROI或COGS前贡献称为利润。
  • 请勿在没有标记 hypothesis 的情况下,将缺失的费用、退款或支出单元格填充为零或估算值。
  • 请勿更改GMV Max目标、预算、产品选择或Shop促销活动。输出仅停留在可供批准的建议层面。
  • 对于成本堆叠不完整(T09)的产品,请勿建议扩展。
  • 请勿将一个市场的费用类别应用于另一个市场。

Individual skills in this repo

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

mardab96/tiktok-ads-claude-skills

Runs an ordered, layer-by-layer triage of an unfamiliar TikTok Ads account (tracking, structure, learning, creative, bidding, landing page) and hands the first blocker to one named sibling skill. Use when the user inherits a TikTok account, onboards a client, asks where to start, says TikTok results dropped with no known cause, asks whether an account is ready to scale, or says "audit this TikTok account" without naming a problem.

mardab96/tiktok-ads-claude-skills

Reconciles TikTok Ads Manager conversions with GA4, Shopify, CRM, or app analytics using a baseline-ratio method, separating click-through from view-through credit, attribution window and timezone differences, and real tracking drift (T07). Use when a TikTok media buyer or client says "TikTok says 200 sales, Shopify says 90", "GA4 does not show our TikTok conversions", "TikTok ROAS looks too good", "the gap got bigger this month", or "which number do we report to the client".

mardab96/tiktok-ads-claude-skills

Checks whether a TikTok ad group's bidding strategy fits its goal, budget, and conversion volume using the labels TikTok currently lists (Maximum Results, Target Cost per Result, value options as shown in the account) and asks for a screenshot before mapping any legacy name. Use when someone types "Maximum Results or Target Cost per Result", "Cost Cap vs Lowest Cost on TikTok", "our target CPA is too low and delivery died", "bid strategy check", or "should we use hybrid bidding".

mardab96/tiktok-ads-claude-skills

Builds a staged TikTok budget plan with entry gates, one change per observation window, stop rules, and a recorded rollback, using T04, T05, T06, and T10 from the shared register. Use when someone types "can we scale this TikTok campaign", "double the budget on the winner", "how fast can I raise the daily budget", "scale before the sale", or "plan the budget increase for next week".

mardab96/tiktok-ads-claude-skills

Strips personal data from TikTok ad comments, clusters them into objections, questions, proof requests, and noise with counts, links each cluster to product facts, and drafts reply options and hook ideas for approval. Use when the user pastes TikTok comments and asks "what are people objecting to", "mine the comments for hooks", "draft replies to these comments", "what do viewers keep asking", or wants an FAQ and creative briefs built from comment themes.

mardab96/tiktok-ads-claude-skills

Diagnoses a TikTok CPA jump by splitting it into CPM, CTR, and CVR movement between a baseline and a current window with the cpa_decompose.py helper, then checking tracking, changes, mix, creative, and landing page in that order. Use when someone types "TikTok CPA doubled", "cost per purchase is up 40%", "why did CPA spike", "CVR dropped but clicks are fine", or "the client wants to know what broke".

mardab96/tiktok-ads-claude-skills

Detects whether a TikTok ad is tiring by comparing the last seven distinct dates with the preceding seven for frequency and CTR, using the bundled fatigue_scan.py script and a 14-date rule, then builds a control-versus-refresh queue. Use when the user asks "is this TikTok ad fatigued", says CTR is dropping while frequency climbs, wants to know when to refresh TikTok creative, or pastes a daily ad export and asks which ads to replace.

mardab96/tiktok-ads-claude-skills

Scores the opening seconds of TikTok ads by computing 2-second and 6-second view rates and a thumb-stop proxy from ad-level export columns, comparing them with like-for-like ads, and scoring the script opening on a five-point rubric. Use when the user asks "which TikTok hook is weak", "what's my hook rate", "why do people scroll past my ad", wants a hook test plan, or pastes a transcript of the first seconds next to video-view columns.

mardab96/tiktok-ads-claude-skills

Compares a TikTok ad's spoken and on-screen promise with what a phone user sees on the first mobile screen after the tap, then checks in-app browser load friction and form or checkout friction, and writes a repair brief. Use when a TikTok media buyer says "CTR is fine but nobody buys", "the ad says one thing and the page says another", "check this landing page against our TikTok ad", "landing page views are way below clicks", "our TikTok lead form converts badly", or before scaling a winning TikTok creative onto a new page.

mardab96/tiktok-ads-claude-skills

Sequences planned TikTok edits around the learning phase, separating urgent repairs from optimisation, naming which edits TikTok itself labels as affecting learning, and ordering one observable action at a time with rollback. Use when someone types "can I edit this ad group during learning", "will this reset the learning phase", "campaign is in learning, what can we change", "sequence these changes", or "the client wants five edits this week".

mardab96/tiktok-ads-claude-skills

Checks TikTok Pixel and Events API health from Events Manager screenshots and an Ads Manager export, covering event match signals, event_id deduplication between browser and server events, parameter completeness on value events, and primary-event drops against stable clicks (T10). Use when a TikTok media buyer says "purchases dropped but clicks are flat", "check our TikTok pixel", "is Events API deduplicating", "Events Manager shows a diagnostic warning", "TikTok value does not match our orders", or before any bid, budget, or scale call that depends on TikTok conversion data.

mardab96/tiktok-ads-claude-skills

Reviews TikTok Ads delivery split between the TikTok placement and Pangle or TikTok Ad Network inventory (as labelled in your Ads Manager), testing CPA and downstream quality per placement against T08 and keeping brand safety and suitability as a separate question. Use when a TikTok media buyer says "should we turn off Pangle", "where is our TikTok spend actually going", "automatic placement is eating budget", "network traffic converts badly", "is our TikTok ad showing next to unsafe content", or when a client asks for a placement and brand safety readout.

mardab96/tiktok-ads-claude-skills

Reviews TikTok Search Ads search terms and keywords and decides what to add as a keyword, add as a negative, or watch, with match handling as labelled in the account and a lag-aware waste floor. Use when someone types "review our TikTok search terms", "negative keyword list for TikTok Search Ads", "which queries should become keywords", "broad match is bringing junk", or "Search Ads spend with zero conversions".

mardab96/tiktok-ads-claude-skills

Audits a TikTok Smart+ campaign by mapping what Smart+ automates against what the media buyer still controls (creative supply, audience exclusions, conversion event, budget, bidding), then ranks the risks. Use when someone types "audit our Smart+ campaign", "what does Smart+ actually control", "Smart+ vs manual", "Smart+ spend is up but results are flat", or "can we trust Smart+ with this budget".

mardab96/tiktok-ads-claude-skills

Compares TikTok Spark Ads with brand-handle ads like-for-like by matching objective, optimization event, audience, offer, placements, bidding label, dates, and concept before any metric is read, then records authorization status and designs a matched test when no clean pair exists. Use when the user asks "do Spark ads perform better than our brand ads", "Spark vs non-Spark", "should we boost creator posts", "why is the creator ad cheaper", or pastes ad-level data with a format column and wants a verdict.

mardab96/tiktok-ads-claude-skills

Writes a complete creator-facing UGC brief for TikTok ads, with viewer situation, one message, three hook options, scene structure, claims allowed and forbidden, do and don't lists, disclosure, usage rights, and a Spark authorization note, plus an internal approval checklist. Use when the user says "write a UGC brief for TikTok", "brief a creator", "I need a creator script with approved claims", "what rights do I need to run this creator video as an ad", or has product facts and needs something a creator can film from.

mardab96/tiktok-ads-claude-skills

Finds mature TikTok campaigns, ad groups, and ads that spent past a CPA-based floor with zero reported conversions, after excluding rows still inside the conversion lag, using the wasted_spend.py helper. Use when someone types "where is the wasted spend on TikTok", "which ad groups burn budget with no conversions", "what can we cut before we scale", "zero conversion ads", or "clean this account before the client call".

mardab96/tiktok-ads-claude-skills

Writes the weekly TikTok Ads client report as a plain-language narrative, a scorecard against the client goal, and next-week decisions with owners and approvals, after an integrity check on tracking, lag, and learning status (T04, T05, T07, T10). Use when an agency or freelance TikTok media buyer says "write the weekly TikTok report", "client update is due", "explain this week's TikTok results to the client", "what do we tell the client about CPA going up", or "set up a repeatable TikTok report format".

mardab96/tiktok-ads-claude-skills

Turns one proven TikTok ad into N distinct angle scripts, each with hook, body beats, CTA, on-screen text, and a shot list, after deconstructing why the winner worked and checking every claim against product facts and rights. Use when the user says "remix my winning TikTok ad", "give me new angles on this winner", "I need five scripts like this one", "my best ad is wearing out, what next", or pastes a winning transcript and asks for variations.

相关技能