scale-or-kill

scale-or-kill is a skill for Claude Code from moshi-labs/moshi-claude-plugin. It costs 96 tokens per session (2,816 once invoked), scanned A, original, MIT.

An ad-review guide for Meta advertising accounts. It compares each live sales ad's spending, cost per purchase, and audience-reach cost to sort it into scale, test, or kill.

In plain words
What is it for?
Use it to review the last 30 days of sales ads, set or estimate a target cost per purchase, and decide which ads to grow, keep testing, or stop.
Why use it?
It turns ad data into a decision for each ad instead of leaving the merchant to interpret charts. It also makes clear that the merchant must change budgets or pause ads themselves in Ads Manager.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter. Also seen: positional $N argument.

Part of the moshi plugin — 6 skills, 1 MCP server shipped together

Good fit Use it to review the last 30 days of sales ads, set or estimate a target cost per purchase, and decide which ads to grow, keep testing, or stop.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/moshi-labs/moshi-claude-plugin/scale-or-kill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add moshi-labs/moshi-claude-plugin --skill scale-or-kill
Clone the repo
git clone --depth 1 https://github.com/moshi-labs/moshi-claude-plugin

Made for: Claude Code.

Or install moshi, the plugin that ships this one along with the rest of its 6 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for scale-or-kill

README.md
[![agentmods](https://agentmods.dev/badge/skills/moshi-labs/moshi-claude-plugin/scale-or-kill/github.svg)](https://agentmods.dev/skills/moshi-labs/moshi-claude-plugin/scale-or-kill)
Your own site
<a href="https://agentmods.dev/skills/moshi-labs/moshi-claude-plugin/scale-or-kill"><img src="https://agentmods.dev/badge/skills/moshi-labs/moshi-claude-plugin/scale-or-kill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for scale-or-kill

Your own site · 80×15
<a href="https://agentmods.dev/skills/moshi-labs/moshi-claude-plugin/scale-or-kill"><img src="https://agentmods.dev/badge/skills/moshi-labs/moshi-claude-plugin/scale-or-kill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,816 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00096 $0.02816
Opus 5.5 $0.00038 $0.01126
Sonnet 5.5 $0.00019 $0.00563
Haiku 4.5 $0.00010 $0.00282

Measured 4d ago against content hash fd2de41b972f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

scale-or-kill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/moshi/skills/scale-or-kill/SKILL.md · 152 lines

How it starts

The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Sort every ad the merchant is running into scale, test or kill, and tell them what to do with each one. The reader is a merchant or media buyer who wants a decision per ad, not a dashboard.

This skill changes nothing. Moshi has no tool to change budgets or pause ads, and this skill must not call create_ad or any write tool. Every action on the page is for the merchant to take in Ads Manager.

Steps

  1. Get the target CPA. If the merchant gave one, use it (target.source: "merchant"). If not, ask once: "What CPA are you aiming for?" If they don't know, or this is an unattended run, use the account's blended CPA for the window, which is total spend ÷ total purchases over the ads in scope (target.source: "blended"). Say plainly that a blended target puts about half the account above the line by construction, so a real target is better.

  2. Pull the ads. Call get_ad_account_tree for the last 30 days (default range, or the window the merchant named) with maxAds: 500, owner: "all". Read flags and counts first.

    • Keep ads in campaigns whose objective is a sales objective (OUTCOME_SALES, or legacy CONVERSIONS). CPA means nothing for lead, traffic or engagement campaigns. Count what you left out and say so in notes.
    • Leave out retargeting campaigns by default (a name with RTG, Retargeting, Remarketing, Retention or BOF). Warm audiences buy cheaper and reach fewer new people, so mixing them with prospecting makes them look like efficient-growth winners against a prospecting target. If the merchant asks for retargeting, run it on its own with its own target.
    • Also keep each ad set's setup, exactly as the tree returns it: the campaign's objective and dailyBudget, and the ad set's optimizationGoal, attributionSpec, bidStrategy, dailyBudget, learningPhase and effectiveStatus. The page shows them per ad and in a "How each ad set is set up" table with Moshi ad sets first, so a Moshi ad set can be read against the merchant's own. Meta returns delivery settings only for Moshi ad sets and for merchant ad sets it reports active. A missing value means "not read", never "none".
    • A big account won't fit in one call. Call with maxAds: 0 first to list the ad sets, then page through them with adsetIds in batches the tool accepts.
    • Keep ads with metrics.spend > 0. From each ad take adId, adName, the campaign's campaignName, owner, effectiveStatus, metrics.spend, metrics.reach and metrics.purchases.
    • If counts.adsOverMaxAds is above 0, narrow by campaignIds and call again rather than judging a partial account. If you still can't cover it all, say how many ads are missing.
    • Money is in account.currency. Never assume USD.
  3. Classify each ad (chart 1, the scale and kill zones). The test is a Bayesian one on the purchase count. Use exactly this rule; the page uses the same table, so your words and the page agree.

    • k = purchases (whole number), E = spend ÷ target CPA.
    • Kill when E ≥ KILL[k]: 90% sure the ad's true CPA is above target.
    • Scale when k ≥ 3 and E ≤ SCALE[k]: 90% sure it's below target. The 3-purchase floor stops one lucky sale on $10 of spend from reading as a winner.
    • Otherwise test.
    k 0 1 2 3 4 5 6 8 10 15 20 25 30 40
    SCALE[k] — 0.29 0.81 1.42 2.08 2.79 3.52 5.04 6.62 10.72 14.95 19.28 23.67 32.59
    KILL[k] 1.35 3.13 4.62 6.01 7.34 8.64 9.91 12.39 14.81 20.71 26.47 32.15 37.76 48.84

    For a k between the columns, or above 40, use k + 0.7 ∓ 1.28·√(k + 0.5) (minus for SCALE, plus for KILL). The full table for every k from 0 to 40 is in assets/scale-or-kill.template.md; it is the 10th and 90th percentile of a Gamma(k + ½) posterior.

Read the full file on GitHub · 152 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed · +1 lines fd2de41b972f
  2. 6d ago First seen · 151 lines · 96 tokens per session scan A bf6658870767

Subscribe to this mod's changes

scale-or-kill is a skill published in the GitHub repository moshi-labs/moshi-claude-plugin (3 stars, last pushed 5d ago), licensed MIT. It adds 96 tokens to every session and 2,816 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-26.

Related

scale-or-kill compared with skills from other repositories

scale-or-kill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scale-or-killmoshi-labs/moshi-claude-pluginSkill35d agoMITA96Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill331k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code