Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

sparkx-ads-structure-analysis

БесплатноБез исполняемых скриптовНе проверен

Analyze how ad spend and efficiency break down across a structural dimension — campaign type (SP/SB/SD), marketplace/site, portfolio, weekday-vs-weekend…

infometaот infometa★ 475 звёзд на GitHub

Об этом скилле

Ads Structure Analysis

Scope: This Is an Orchestration Skill, Not a New MCP Tool

This skill does not map to a single MCP tool of its own — it orchestrates two existing read tools, each already covered by its own skill:

Dependency — install these two base skills alongside this one: sparkx-query-ads-performance, sparkx-query-entity-metadata. Skills install as sibling directories under your current agent's skills root (.claude/skills/<name>/ for Claude Code; the equivalent root for other agents — see the installation notes in README), which is exactly what the ../query-.../… links above (and elsewhere in this doc) resolve against — if a base skill isn't installed there, those links won't resolve and this skill can't run. Install both first.

Read those two SKILL.md files first (parameter formats, field-naming rules, the Ratio Metric Display Rule) plus references/platform-notes.md (auth flow, error handling, pagination, date-range limits, currency rules). This document only covers logic specific to structural analysis; it doesn't repeat what the base skills already document.

Rewritten against the new tool's conventions from the start — carries forward the same discipline established across sparkx-weekly-ads-report/sparkx-monthly-ads-report: full profileIds resolution rules, currency-aware thresholds, output-language adaptivity, disclosed sampling fallback, and zero-denominator handling.

Output Language: Always Match the User, Never Hard-Code Chinese or English

The worked examples and output templates below are written in Chinese (matching this product's primary customer base), but they are structural illustrations, not literal text to copy verbatim. Generate the actual report in whatever language the user asked in. When calling get_ads_perf, also set the language parameter (zh/en/ja) to match the customer's language. get_entity_metadata has no language parameter — it's not in that tool's documented parameter list. Localize its enum values using the returned {field}Text companion fields, or sparkx-query-entity-metadata's own enum-i18n.md if a given enum has no Text companion — don't pass language to get_entity_metadata expecting it to have the same effect as on get_ads_perf.

When to Use

Trigger phrases: 结构分析, 结构合理吗, 类型对比, 站点对比, SP/SB/SD 结构, SB 新客, 工作日 周末, 头部活动, 长尾要不要清, 活动太碎, structure analysis, campaign type breakdown

User roles: ads managers, account managers, ads ops doing a deep-dive (not a periodic report)

Core question: how is spend distributed across this dimension, is that distribution matched by efficiency, and where's the structural imbalance

Not for:

  • Periodic recaps (WoW/MoM cadence) → sparkx-weekly-ads-report / sparkx-monthly-ads-report
  • Single-campaign root-cause investigation → ACOS root-cause investigation example
  • Product-level diagnosis → sparkx-product-diagnosis; search-term diagnosis → sparkx-search-term-diagnosis (if installed)

Input Parameters

Parameter Type Required Default Description
profileIds array[long] No — See "Resolving profileIds" below
breakdownBy enum No campaignType campaignType | marketplace | portfolio | dayOfWeek | hourOfDay | campaignTier. See "Breakdown Dimensions" for how each is actually queried — some require client-side derivation, not a native groupBy
dateStart / dateEnd string (YYYY-MM-DD) No Trailing 30 days ending yesterday The analysis window. Must satisfy get_ads_perf's 90-day span / 15-month lookback caps like any other call
focusMetrics array[string] No ["Spend", "Sales", "ACOS", "ROAS", "CPA"] Which metrics drive the share/efficiency comparison. CPA is included by default alongside ACOS — the product's own canonical "Campaign Type Analysis" board treats them as equally core, not ACOS alone. Must be valid for the entities involved — check sparkx-query-ads-performance's Metrics × Entity Support Matrix
includeTrend bool No true Whether to include a per-segment trend view (Step 3) alongside the single-period snapshot — on by default, matching how the product's own dashboards present this analysis (trend lines, not just a static table). Set false for a lighter, snapshot-only response
subScenario enum No — spDeepDive | sbNtb | weekdayWeekend. See "Sub-Scenarios" below. sbvCreative (creative-type breakdown) is not offered — see Data Boundaries for why

Resolving profileIds

Always call `get

Полный SKILL.md на GitHub

Установить sparkx-ads-structure-analysis в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/platform-notes.md

FAQ

Что делает скилл sparkx-ads-structure-analysis?

Analyze how ad spend and efficiency break down across a structural dimension — campaign type (SP/SB/SD), marketplace/site, portfolio, weekday-vs-weekend, hour-of-day, or campaign size tiers (head vs long tail) — and diagnose where spend share and efficiency don't match (over-invested underperformers, under-invested strong performers). Optional sub-scenarios: SP deep-dive (manual vs auto targeting), SB new-to-brand focus. Use when the user asks "我 SP/SB/SD 结构合理吗", "各站点谁强", "SB 新客到底行不行", "工作日和周末哪个好", "structure analysis", "campaign type breakdown". Not for a single-entity trend/anomaly check (use sparkx-weekly-ads-report / sparkx-monthly-ads-report / a lighter ad-hoc analysis skill), product-level diagnosis (use sparkx-product-diagnosis), or search-term diagnosis (use sparkx-search-term-diagnosis).

Как установить скилл sparkx-ads-structure-analysis?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл sparkx-ads-structure-analysis запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить sparkx-ads-structure-analysis с