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.
npx skills add moshi-labs/moshi-claude-plugin --skill scale-or-killgit clone --depth 1 https://github.com/moshi-labs/moshi-claude-pluginWrote 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.
[](https://agentmods.dev/skills/moshi-labs/moshi-claude-plugin/scale-or-kill)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
-
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. -
Pull the ads. Call
get_ad_account_treefor the last 30 days (default range, or the window the merchant named) withmaxAds: 500,owner: "all". Readflagsandcountsfirst.- Keep ads in campaigns whose
objectiveis a sales objective (OUTCOME_SALES, or legacyCONVERSIONS). CPA means nothing for lead, traffic or engagement campaigns. Count what you left out and say so innotes. - 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
objectiveanddailyBudget, and the ad set'soptimizationGoal,attributionSpec,bidStrategy,dailyBudget,learningPhaseandeffectiveStatus. 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: 0first to list the ad sets, then page through them withadsetIdsin batches the tool accepts. - Keep ads with
metrics.spend > 0. From each ad takeadId,adName, the campaign'scampaignName,owner,effectiveStatus,metrics.spend,metrics.reachandmetrics.purchases. - If
counts.adsOverMaxAdsis above 0, narrow bycampaignIdsand 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.
- Keep ads in campaigns whose
-
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 ≥ 3andE ≤ 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
kbetween the columns, or above 40, usek + 0.7 ∓ 1.28·√(k + 0.5)(minus for SCALE, plus for KILL). The full table for everykfrom 0 to 40 is inassets/scale-or-kill.template.md; it is the 10th and 90th percentile of a Gamma(k + ½) posterior.
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.
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.
- 4d ago Changed · +1 lines fd2de41b972f
- 6d ago First seen · 151 lines · 96 tokens per session scan A bf6658870767
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.
scale-or-kill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| scale-or-killmoshi-labs/moshi-claude-plugin | Skill | 3 | 5d ago | MIT | A | 96 | Claude Code |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 102k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 396k | today | MIT | A | 36 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | yesterday | CC0-1.0 | A | 113 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 331k | 4d ago | MIT | A | 21 | Claude Code |
| next-cache-components-adoptionvercel/next.js | Skill | 144k | today | MIT | A | 95 | Claude Code |