Communitygithub.com

mardab96/tiktok-ads-claude-skills

診斷 TikTok CPA 的跳升,透過將 CPA 分解為 CPM、CTR 和 CVR 的變動(在基準期和當前窗口之間),再依序檢查追蹤、變更、混和、素材和到達頁面。

tiktok-ads-claude-skills 是什麼?

此技能專為 TikTok 廣告買家設計,用於系統性地診斷每次行動成本 (CPA) 的異常跳升。它會將 CPA 的變動分解為三個核心因素:千次曝光成本 (CPM)、點擊率 (CTR) 和轉換率 (CVR),並利用 `cpa_decompose.py` 輔助腳本進行計算,給出 T04 分診標籤(如 escalate、insufficient_volume)。分析流程遵循嚴格的依賴順序:首先確認跳升是真實的(窗口內至少有 10 次轉換,且已排除轉換滯後期),然後依序檢查事件追蹤(T10 模式)、變更記錄、廣告組合的投放佔比、素材疲勞(CTR 變動主導時)和到達頁面問題(CVR 變動主導時)。腳本支援 Claude Code 等平台,輸入需為包含 `period`(僅接受 baseline 或 current)、`cost`、`impressions`、`clicks`、`conversions` 欄位的 CSV 檔案。輸出會以結構化報表呈現,包含算術分解、原因樹狀圖、已排除原因、未解釋殘差以及有序的待辦行動清單,避免僅憑算術結果妄下結論。此技能強烈依賴於實際的匯出數據和螢幕截圖,整合 TikTok for Business MCP 連接器則為可選功能。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/mardab96/tiktok-ads-claude-skills/tree/HEAD/cpa-spike-diagnosis-tiktok-ads

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

CPA 突升診斷

使用時機

當買家需要透過算術來理解 CPA 變動時使用。此技能將變動分解為投放成本 (CPM)、點擊吸引力 (CTR) 和點擊後轉換 (CVR),套用 T04 作為分診標籤,然後按依賴順序排查原因。它絕不會僅根據算術結果就指出原因。

常見要求:

  • "CPA 週對週翻倍了。發生了什麼?"
  • "每次潛在客戶成本上升了 45%。是追蹤、素材,還是市場因素?"
  • "CPM 沒問題,CTR 沒問題,但 CVR 崩了。接下來呢?"
  • "今天零轉換,但這個廣告活動通常都有轉換。"
  • "客戶問為什麼 TikTok 變貴了。今天就需要答案。"

不適用於以下情況:

  • 事件或像素設定審查,但沒有 CPA 問題:pixel-events-api-check-tiktok-ads。
  • 平台報告與獨立數據的比對:attribution-gap-check-tiktok-ads。
  • 找出浪費花費的項目:wasted-spend-finder-tiktok-ads。
  • 帳戶尚未映射:account-triage-tiktok-ads。

必要輸入

使用貼上的匯出資料和螢幕截圖進行分析。Claude 的 TikTok for Business MCP 連接器為可選。

必要項目

  • CSV 檔案,包含 period、cost、impressions、clicks、conversions 欄位。period 的值必須為全小寫的 baseline 或 current。腳本會將每個時期的多行數據(例如每日數據)加總。
  • 兩個長度相同、週末佔比相似且均已超過轉換滯後期的成熟時間窗口。
  • 主要事件名稱、歸因設定、時區、貨幣、目標 CPA。
  • 涵蓋基準期和當前窗口的有日期變更記錄。
  • Events Manager 診斷報告截圖。
  • 到達頁面和網站發布日期。

可選項目

  • 按廣告活動、廣告組或廣告細分的相同匯出數據,用於檢查投放佔比。
  • frequency、素材上線日期、受眾編輯記錄。
  • 相同日期區間的獨立訂單或潛在客戶報告。

匯出路徑:報表 在廣告活動、廣告組或廣告層級並選擇日期細分,然後查看變更記錄或廣告活動歷史記錄。請參閱 ../tiktok-ads-shared/references/getting-your-data.md。切勿僅根據圖表推斷變更事件。

分析前準備

  1. 確認跳升是真實的。每個窗口至少需要 10 次報告轉換,T04 才能升級;低於此數量腳本會輸出 insufficient_volume。
  2. 確認兩個窗口使用相同的主要事件、目標和歸因設定。定義改變會使兩個 CPA 無法比較。
  3. 排除轉換滯後期內的天數以及任何不完整的一天。仍在收集轉換數據的近期窗口是最常見的假性跳升原因。
  4. 標記在當前窗口內啟動的廣告組。這些廣告組對學習期敏感 (T05),可能在不影響其他項目的情況下提高 CPA。
  5. 兩個窗口一致使用「點擊」欄位,因為 CTR 和 CVR 都取決於匯出的點擊計數。

分析流程

  1. 說明兩個窗口的日期和長度。如果長度不等或處於滯後期內,則停止並顯示 needs_data。
  2. 從技能資料夾執行輔助腳本: python3 ../tiktok-ads-shared/scripts/cpa_decompose.py cpa.csv
  3. 讀取等式。CPA 等於 CPM 除以 1000,再除以 CTR 乘以 CVR。此處的 CVR 是轉換數除以點擊數。計算當前值與基準值的比值:CPM、CTR(倒數)、CVR(倒數);這三個值相乘等於 CPA 比值。
  4. 將每個因素表示為 CPA 變動的佔比:因素比值的自然對數除以 CPA 比值的自然對數。當某個因素抵消了漲幅時,佔比可能為負值,且它們僅描述算術關係。
  5. 讀取腳本輸出的 T04 標籤(參見決策規則)。
  6. 首先檢查追蹤:T10 模式、診斷結果、事件變更、網站發布。若所有廣告活動均出現均勻下降,則問題可能在於衡量環節而非投放環節。
  7. 將變更記錄與變動開始的日期進行比對:預算、出價策略、受眾、素材和事件編輯,並確認影響是否集中在被編輯的實體上。
  8. 使用轉換產出來檢查投放佔比,切勿使用算術上的花費加權平均 CPA。令 w_i 為細分 i 在基準期的花費佔比,y_i 為其當前轉換數除以當前花費。反事實 CPA = 1 / sum(w_i * y_i)。有花費但零轉換的細分 y_i = 0;無當前花費的細分則無法觀察產出,需請求可比較的數據。若加權總產出為零,則 CPA 未定義,需要檢查追蹤。將此固定佔比 CPA 與基準期和實際當前 CPA 進行比較:接近基準期表示佔比轉移所致;接近當前表示細分內部惡化。舉例說明:細分 CPA 不變,分別為 20 和 80,基準期花費 800/800,當前花費 400/1600,則基準期 CPA 為 32,當前 CPA 為 50,固定佔比 CPA 為 32,因此上升來自佔比轉移。
  9. 檢查素材(由 CTR 主導的變動),然後檢查到達頁面(由 CVR 主導且 CTR 穩定),最後檢查競價環境(由 CPM 主導的變動)。若廣告活動為自動化,請使用 Smart+ 分配說明。
  10. 說明未解釋的殘差以及有序的行動清單,並指出應暫緩的事項。

決策規則

腳本合約:唯一參數是 CSV 路徑。它會為每個窗口輸出一行,包含 cost、impressions、clicks、conversions、cpm、ctr、cvr、cpa,然後是 cpa_change_pct、T04_verdict 和一行說明。忽略其他 period 值的行。如果缺少 baseline 或 current 窗口,程式會報錯退出。退出碼 2 表示檔案無法讀取或缺少欄位。

輸出 T04 標籤含義判定下一步
escalate當前 CPA 至少比基準期高出 30%,且每個窗口至少有 10 次轉換 (T04)likely 真正的變動,原因未知依序檢查追蹤、變更記錄、佔比、素材、頁面
below_rule變動低於 30%,或 CPA 下降monitor保留窗口,下個週期重新執行
insufficient_volume某個窗口轉換次數少於 10 次needs_data擴大窗口,切勿進行診斷
check_tracking當前轉換數為零,CPA 顯示 n/aneeds_data擷取 Events Manager 和診斷資料;不可僅憑 CPA 就斷定是追蹤問題
因素模式優先測試領域若無證據時的判定下一步
轉換下降至少 30%,且點擊數波動在 10% 以內 (T10)事件投放possiblepixel-events-api-check-tiktok-ads
CVR 主導,CTR 和 CPM 穩定到達頁面、優惠、結帳流程、事件possible確認追蹤無誤後,執行 landing-page-match-tiktok-ads
CTR 主導,CVR 穩定素材吸引力、受眾possiblecreative-fatigue-detector-tiktok-ads (T01 門檻)、hook-rate-scorer-tiktok-ads
CPM 主導,CTR 和 CVR 穩定競價壓力、受眾或版位佔比possibleplacement-review-tiktok-ads (T08)、季節性檢查
各細分 CPA 穩定,但花費權重轉移投放佔比重新加權後顯示為 likely變更記錄中的預算或受眾編輯
在變動開始前幾天內有日期變更,且影響集中在該實體人為編輯當記錄和影響同時出現時為 confirmed在還原操作前執行 learning-phase-guard-tiktok-ads
窗口內有新的廣告組學習期 (T05)monitor在學習期結束前暫緩最佳化編輯
平台報告有變動,但獨立報告無變化歸因possibleattribution-gap-check-tiktok-ads (T07)

算術上的陳述可標記為 confirmed(例如,CPM 下降,因此競價成本並非此次上升的原因)。原因的陳述需要一個有日期的記錄、一份診斷截圖或一個發布日期;否則應保持 possible 或 likely。相較於列出完整的可能原因清單,更傾向於給出少數幾個已確認的原因,並標明殘差。

輸出格式

填入以下模板。

## CPA 診斷: [廣告活動或帳戶]、[貨幣]、[時區]
基準期: [日期,n 天] | 當前窗口: [日期,n 天] | 已排除滯後期: [是/否] | 事件: [名稱]
執行指令: [確切指令]

### 算術分解
| 時期 | 花費 | 曝光 | 點擊 | 轉換 | CPM | CTR | CVR | CPA |
|---|---|---|---|---|---|---|---|---|
T04 標籤: [標籤] | CPA 變動: [%] | 因素佔比: CPM [%]、CTR [%]、CVR [%]

### 原因樹狀圖 (按順序)
| 發現 | 證據 | 判定 | 嚴重性 | 信心度 | 商業影響 | 下一步行動 |
|---|---|---|---|---|---|---|

### 已排除原因
[被排除的原因以及排除它們的證據]

### 殘差
[仍未解釋的部分,切勿將其分散歸因於多個原因]

### 有序行動與暫緩清單
[按依賴順序排列的修復行動;需要等待的編輯及其前提條件]

### 數據缺口
[缺失的診斷資料、變更記錄、細分匯出數據,以及每項缺失會強化哪個判定]

實際範例

僅為說明性數字。兩個 7 天窗口,目標 CPA 50 USD。輸入列:baseline,4200,520000,5200,84 和 current,4500,600000,4800,56。

period    cost     impressions  clicks  conversions  cpm   ctr    cvr    cpa
baseline  4200.00  520000       5200    84.00        8.08  1.00%  1.62%  50.00
current   4500.00  600000       4800    56.00        7.50  0.80%  1.17%  80.36
cpa_change_pct:  60.7%
T04_verdict:     escalate

CPA 上升了 60.7%。因素比值:CPM 0.93,CTR 0.80,CVR 0.72。以自然對數佔比來看,CVR 約占變動的 69%,CTR 約占 47%,而更便宜的 CPM 抵消了約 16%。當一個因素抵消另一個因素時,總佔比可能超過 100%。

原因樹狀圖:CPM 下降,因此競價成本 confirmed 不是驅動因素。轉換下降 33%,而點擊僅下降 8%,符合 T10 模式,因此事件投放 possible,嚴重性高,影響衡量,且缺乏診斷資料 (needs_data)。一個產品頁面模板在當前窗口的第 3 天上線,一批新素材在第 1 天上線,因此對於 CVR 佔比部分,到達頁面 possible;對於 CTR 佔比部分,素材 possible(未匯出頻率數據)。

有序行動:首先擷取 Events Manager 並執行事件測試,然後按發布日期前後細分 CVR,接著對新批次執行 T01 檢查。在確認追蹤無誤前,暫緩預算和出價編輯。殘差:由於缺乏每日數據,尚未量化。

常見失敗模式

  • 將 escalate 解讀為診斷結果。T04 是分診標籤,而非原因。
  • 比較長度或週末佔比不同的窗口。
  • 包含轉換滯後期內的天數,這會誇大 CPA。
  • 僅從 CPA 就斷定追蹤有問題。T10 加上診斷資料才是證據。
  • 將因素佔比視為可加總的原因。一個因素背後可能有多個原因。
  • 當 CPM 沒有上升時,卻歸咎於競價環境。
  • 遺漏處於學習期的廣告組:新廣告組在探索期間會提高 CPA (T05)。
  • 將 Smart+ 歸咎於由事件變更引起的變動。先檢查事件。
  • 未經獨立比對,就將平台轉換數據視為銷售業績。

後續路徑

事件投放:pixel-events-api-check-tiktok-ads。報告與獨立數據差距:attribution-gap-check-tiktok-ads。素材:creative-fatigue-detector-tiktok-ads、hook-rate-scorer-tiktok-ads。頁面:landing-page-match-tiktok-ads。版位:placement-review-tiktok-ads。因學習期而暫緩的編輯:learning-phase-guard-tiktok-ads。浪費的項目:wasted-spend-finder-tiktok-ads。自動化廣告活動:smart-plus-audit-tiktok-ads。

防護措施

  • 不要對實際的帳戶、預算、出價、版位、追蹤、商店、頁面或素材進行任何變更。
  • 不要診斷處於轉換滯後期內或轉換次數少於 10 次的窗口。
  • 不要僅根據分解結果就指出原因。
  • 不要僅從 CPA 就斷定追蹤有問題;要求提供 Events Manager 的截圖。
  • 在尚未確認追蹤報表正確之前,不要建議對出價或預算做出反應。
  • 若未提供完整的成本結構,切勿將平台報告的轉換或 GMV 呈現為利潤。
  • 不要隱瞞缺失的日期、滯後期、歸因設定或轉換定義。
  • 在進行對照實驗之前,不要宣稱有結果。

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

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

Turns TikTok Shop and GMV Max reporting into a per-product cost-stack ledger with refunds, affiliate commissions, seller-funded coupons, referral fees, ad spend, COGS, and seller-borne shipping, using gmv_profit.py to flag any incomplete cost stack (T09). Use when a TikTok Shop seller or media buyer says "GMV Max ROI looks great but we are not making money", "is this product profitable on TikTok Shop", "check our TikTok Shop margins", "affiliate commissions are eating us", or before raising a GMV Max budget or ROI target.

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.

相關技能