Ad-campaign command desk for cross-border e-commerce sellers. Aggregates Amazon, Meta, TikTok, and Google Ads performance, detects anomalies, and proposes bid/budget/negative-keyword adjustments for human approval.
Ships in mr-kelly-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.
![]() | ![]() |
| Overview Cross-platform ads board: blended ROAS/ACOS vs target, per-platform cards, spend vs revenue bars, and worst offenders. | Campaigns Campaign table with budget pace, spend, ROAS, and color-coded ACOS vs target across Amazon, Meta, TikTok, and Google. |
![]() | ![]() |
| Adjustment queue Agent-proposed bid, budget, and negative-keyword changes with evidence and expected impact, gated on approval. | Alerts Deterministic anomaly feed: ACOS breaches, budget burnouts, zero-conversion spend, CPC spikes, rejected ads. |
Use this skill as Kelly's ad-campaign command desk. It aggregates spend and
performance from Amazon Ads, Meta (FB/IG), TikTok Ads, and Google Ads into
one Busabase-backed App-in-Skill board (spend, impressions, clicks,
conversions, revenue, ROAS, ACOS per campaign), detects anomalies
deterministically (ACOS above target for N days, budget exhausted before day
end, high-spend zero-conversion search terms/creatives, sudden CPC spikes,
paused/rejected campaigns), and turns them into agent-proposed adjustment
cards with evidence and expected impact. The human approves; the agent
executes approved adjustments outside the app via the platform APIs. Report
ingestion (real ad-platform report pulls) and anomaly checks are genuine
external/trusted operations a browser cannot perform:
scripts/ingest_reports.mjs is the single write-path for performance data,
scripts/run_checks.mjs runs the anomaly rules and drafts adjustment cards,
and scripts/execute_decisions.mjs plans the concrete operation for an
approved card (and performs no external side effect itself). The AirApp
itself only reads Busabase and writes review decisions.
Default behavior is AirApp-first. Unless the user explicitly asks only for
explanation, ingest fresh reports and run checks when due, and give the user
the clickable AirApp URL (or the local preview URL when local preview is
explicitly requested). Use chat-only mode only when the user says "纯聊天",
"chat only", "不要打开 UI", or similar; then present numbered adjustment cards
(Adjustment #1) and take verdicts in chat.
The AirApp itself never calls an Amazon/Meta/TikTok/Google Ads API. It
reads and writes Busabase records only. All platform-report ingestion is
genuinely trusted-process-only: scripts/ingest_reports.mjs is the only
place performance data enters the system.
$kelly-app-skill-creator for product behavior, visual
quality, responsive layout, and the complete canonical content/kelly-ads-app/ artifact.$busabase for connection, target Space, node discovery,
ChangeRequests, review, and merge behavior.$busabase-app-creator for resource modeling, AirApp
runtime limits, security, validation, and deployment.If a dependency is unavailable, preserve this skill's local artifact and product contracts, stop before the unavailable Busabase operation, and report the exact missing dependency. Do not invent a second data backend.
scripts/ingest_reports.mjs. Nothing in this skill mutates a platform on its own.approved. scripts/execute_decisions.mjs is a dry-run planner, never an executor — it writes only an execution-status: "planned" marker onto the adjustment record and never flips its workflow status.done and records the real execution result directly on the adjustment record — the only write step in this workflow that is not scripted, because the actual platform mutation itself must never be automated..env files.Six Bases under one application Folder (kelly-ads), declared in
content/kelly-ads-app/app/js/config.js and the generated template sidecars under content/:
platforms: connected ad-platform roster (Amazon Ads, Meta, TikTok Ads, Google Ads) — display-safe account id, status, currency, last sync. Rollups (spend/revenue/ROAS/ACOS/campaign count) are derived client-side from campaigns, never stored.campaigns: one row per campaign — budget, status, ACOS target, and the daily spend/impressions/clicks/conversions/revenue series plus the search-term/audience/creative/asset-group targets (both JSON-encoded).anomalies: the deterministic anomaly feed (acos_breach/budget_exhausted/zero_conversion_spend/cpc_spike/rejected) with evidence, severity, state, and a link to the adjustment card when one exists.adjustments: the review queue — agent-proposed adjustment cards (negative_keyword/bid_down/bid_up/pause_target/budget_shift/creative_refresh) with reason, evidence, current/proposed value, expected impact, and the human verdict.sync-log: append-only feed of ingest runs, anomaly checks, and execution plans.settings: one row (record-id: "config") with ACOS/ROAS targets (default plus per-platform/per-product overrides), anomaly thresholds, currency rates, and CSV column mappings.Resources provision lazily through an idempotent Busabase ChangeRequest the
first time the app runs in a Space; see references/ads-schema.md for exact
field shapes. Derived values — totals_7d, trend, per-platform rollups,
and every top-level metric — are recomputed client-side from the stored
campaign rows on every read, so the board is always fresh regardless of when
a browser session loads it relative to the last ingest/check run.
On invocation, check the platforms and campaigns Bases. If both are
empty, guide setup before ingesting real data: ask, turn by turn, which
platforms are live and their display-safe account ids (Amazon
entity/profile, Meta act_…, TikTok advertiser id, Google customer id),
ACOS/ROAS targets (default plus per-platform or per-product overrides), and
anomaly thresholds (breach days, zero-conversion spend floor, CPC spike %,
budget pace). Ask for non-secret details only; the agent's own tooling holds
platform tokens, never Busabase or chat. Write the settings row and platform
roster with an initial ingest:
node skills/kelly-ads/scripts/ingest_reports.mjs payload.json --apply
Default behavior is AirApp-first — give the user the clickable AirApp URL.
Start pnpm --dir content/kelly-ads-app dev only when local preview/debugging is explicitly
requested.
Required app views (hash routes):
#/overview: ads command desk. Human-attention panel (adjustments to approve, critical anomalies, budget at risk today), KPI cards (spend MTD vs last month, blended ROAS, blended ACOS vs target, conversions), per-platform mini-cards with badges, a 14-day spend-vs-revenue daily bar chart (inline SVG, no chart library), a worst-offenders list (highest-spend zero-conversion targets), data freshness per platform, and recent sync activity.#/campaigns and #/campaigns/<id>: campaign table with name, platform badge, product/SKU, status (active/paused/rejected), daily budget + % spent today, spend 7d, ROAS, ACOS vs target (color-coded), and trend arrow. Detail shows the daily spend/ROAS series (inline SVG), the search terms/audiences/creatives table with per-row metrics, linked anomalies, and adjustment history.#/alerts: anomaly feed with severity badge, type badge (acos_breach/budget_exhausted/zero_conversion_spend/cpc_spike/rejected), campaign + platform, one-line evidence, age, state (open/actioned/dismissed/resolved), and a link to the adjustment card when one exists.#/adjustments and #/adjustments/<id>: the review queue with workflow states needs_review, changes_requested, approved, done, blocked. Each card shows a stable ref (Adjustment #1), type badge (negative_keyword/bid_down/bid_up/pause_target/budget_shift/creative_refresh), target, current → proposed value, reason with evidence, expected impact, an editable Review note, and decision buttons (approve / request changes / block / save note) that write the verdict directly onto the adjustment record through busabase-sdk.#/settings: sanitized config summary. Platform roster with display-safe account ids, ACOS/ROAS targets, anomaly thresholds, currency, and onboarding state. Never exposes secret values.Demo mode:
?demo=1 opens a deterministic mock command desk for documentation and screenshots.?demo=overview, ?demo=campaigns, ?demo=alerts, and ?demo=adjustments select named mock scenes (persona: "Nimbus Home", a home/kitchen gadget seller).lang=en or lang=zh forces UI chrome language; with lang=zh the demo reasons, evidence, impact estimates, and summaries are meaningfully localized for Chinese screenshots (campaign names may keep English product names).UI language: support English and Chinese chrome with Auto default. Keep
campaign names, search terms, SKUs, and platform data in their original
language.
Data collection is agent-driven on invocation — there is no cron and the app never fetches anything itself.
platforms/campaigns Bases. If both are empty, enter onboarding.node scripts/ingest_reports.mjs payload.json --apply — normalized JSON performance payload (shape documented in the script header and references/ads-schema.md).node scripts/ingest_reports.mjs --csv report.csv --platform amazon [--campaign <id>] --apply — raw platform CSV export, columns mapped via the Settings row's csv_mappings.<platform>; the built-in parser handles quoted fields with embedded commas.currency_rates, merges the daily series by campaign+date (idempotent re-ingest), updates platform last_sync_at, and appends a sync-log entry.--apply every script is a dry run that only prints what would change.node scripts/run_checks.mjs --apply to refresh anomalies and draft skeleton adjustment cards for new critical anomalies.node scripts/run_checks.mjs --apply. It reads thresholds from the Settings row and detects, deterministically:
acos_breach: campaign ACOS above target for N consecutive spend days (acos_breach_days).budget_exhausted: daily budget spent to budget_exhausted_pct before day end.zero_conversion_spend: an enabled target at or above zero_conversion_spend_floor in 14-day spend with 0 conversions.cpc_spike: latest-day CPC at least cpc_spike_pct above the trailing mean.rejected: campaign or creative rejected by the platform.dismissed stays dismissed. Re-running without data changes is idempotent.needs_review). Enrich each skeleton before asking for approval: re-ingest with better evidence, write the concrete current_value → proposed_value, and a numeric expected_impact via a direct Busabase field edit.#/adjustments (or by Adjustment #N in chat) and gives verdicts: approve, request changes (with a note), or block — written directly onto the adjustment record. From a standalone local preview the write merges immediately (trusted operator); from the deployed AirApp it creates a pending ChangeRequest for the trusted process to merge.request_changes leaves the card changes_requested with the reviewer's note on the record; revise the card (new evidence, resized proposal), then set it back to needs_review.node scripts/execute_decisions.mjs --apply to write a concrete planned operation onto each card (add_negative_keyword with term + campaign id, set_bid current → new, pause_target, shift_budget from → to, refresh_creative) as execution-status: "planned" — no external side effects, and the card's workflow status stays approved.status: "done" and the real execution result directly onto the adjustment record (via busabase-sdk, the agent's own trusted write — not a script), and append a sync-log entry.campaign_id, target_id, anomaly_id, adjustment_id, ref) so repeated ingests, checks, and executions are idempotent.node skills/kelly-ads/scripts/ingest_reports.mjs payload.json --apply
node skills/kelly-ads/scripts/ingest_reports.mjs --csv report.csv --platform amazon --apply
node skills/kelly-ads/scripts/run_checks.mjs --apply
node skills/kelly-ads/scripts/execute_decisions.mjs --apply
pnpm --dir skills/kelly-ads/content/kelly-ads-app dev
In normal use, invoke /kelly-ads, let the skill ingest and check what's
due, and open the AirApp.
README.md (opens in a new tab)agents/openai.yaml (opens in a new tab)assets/screenshots/adjustments-zh-CN.webp (opens in a new tab)assets/screenshots/adjustments.webp (opens in a new tab)assets/screenshots/alerts-zh-CN.webp (opens in a new tab)assets/screenshots/alerts.webp (opens in a new tab)assets/screenshots/campaigns-zh-CN.webp (opens in a new tab)assets/screenshots/campaigns.webp (opens in a new tab)assets/screenshots/overview-zh-CN.webp (opens in a new tab)assets/screenshots/overview.webp (opens in a new tab)assets/screenshots/thumbs/adjustments-zh-CN.webp (opens in a new tab)assets/screenshots/thumbs/adjustments.webp (opens in a new tab)assets/screenshots/thumbs/alerts-zh-CN.webp (opens in a new tab)assets/screenshots/thumbs/alerts.webp (opens in a new tab)assets/screenshots/thumbs/campaigns-zh-CN.webp (opens in a new tab)assets/screenshots/thumbs/campaigns.webp (opens in a new tab)assets/screenshots/thumbs/overview-zh-CN.webp (opens in a new tab)assets/screenshots/thumbs/overview.webp (opens in a new tab)busabase.json (opens in a new tab)content/_folder.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ad-campaigns, ecommerce, amazon-ads, meta-ads, tiktok-ads, google-ads
/mr-kelly-skills:kelly-adsfrom mr-kelly-skills
npx claudepluginhub mr-kelly/skills --plugin mr-kelly-skills25 skills in this plugin
/agent-rulesAlign all AI coding agents to a single source of truth. AGENTS.md for rules, .agents/skills/ for skills, symlinks for everything else. Use when setting up a repo for multiple agents, or when links are missing, broken, or out of date./kelly-app-skill-creatorDesign and create Busabase-backed App-in-Skill packages with a canonical app project, Busabase-native setup and product onboarding, review/execution workflows, a standardized responsive UI, and AirApp-first delivery. Use when a user wants a Busabase research desk, review queue, planner, action console, operating dashboard, control panel, collaboration workspace, onboarding/readiness flow, or an existing Kelly App-based skill updated. Every generated skill contains a complete app/ project, deploys that source to Busabase AirApp by default, runs pnpm dev only when local preview is explicitly requested, follows the Kelly desktop and phone UI contract, delegates AirApp runtime, SDK, security, scaffolding, and deployment constraints to busabase-app-creator, and delegates repository-level conformance testing to kelly-app-skill-creator-tests./kelly-auditPersonal finance anomaly review desk (Busabase App-in-Skill) that imports the three business tables — orders, invoices, payments/receipts (回款) — from CSV/JSON exports, flags anomalies with deterministic rules, and runs a human review queue with auditable decisions. Use when the user invokes $kelly-audit or /kelly-audit, mentions finance audit, order invoice payment reconciliation, 对账, 应收, 回款, 发票异常, receivables aging, overdue receivables, duplicate payments, missing invoices, amount mismatches, or anomaly review.Other plugins' skills for the same job