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 plan-next-flowsgit 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/plan-next-flows)<a href="https://agentmods.dev/skills/moshi-labs/moshi-claude-plugin/plan-next-flows"><img src="https://agentmods.dev/badge/skills/moshi-labs/moshi-claude-plugin/plan-next-flows/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/plan-next-flows"><img src="https://agentmods.dev/badge/skills/moshi-labs/moshi-claude-plugin/plan-next-flows.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.00091 | $0.02638 |
| Opus 5.5 | $0.00036 | $0.01055 |
| Sonnet 5.5 | $0.00018 | $0.00528 |
| Haiku 4.5 | $0.00009 | $0.00264 |
Grade A, and why
plan-next-flows 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 7d 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 — 176 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Plan a new Moshi ad set inside one of the merchant's own Meta campaigns, and hand back a
one-pager that a merchant or their agency can read and decide on. Every ad in the plan is a
clone of one of the merchant's proven ads (sourceMetaAdId), sent into a Moshi DM flow
instead of the website.
This skill creates nothing. It never calls create_ad. Building happens afterwards, on
an explicit go-ahead, through scale-what-works (see "After the plan").
Steps
-
Pick the target campaign. If the user named one (name or id), use it. If not, call
get_ad_account_treewithowner: "merchant"over the last 30 days. Take the highest-spend campaign that is ACTIVE and reads as prospecting: a sales objective, and a name with Prospecting, Broad, Cold, TOF, ACQ or ASC. Never pick a campaign whose name says Retargeting, RTG, BOF, Retention or Remarketing. Say in one line which campaign you picked and why, then carry on. Don't wait for confirmation unless two campaigns are close. -
Decide how many ads (N). Call
get_ad_account_treewithcampaignIds: [target],includeUndelivered: trueand amaxAdslarge enough for the whole campaign. Count the ads witheffectiveStatusACTIVE in each ad set that is itself ACTIVE, and drop ad sets with zero active ads.- Work out the mean and the median.
- If one ad set holds more than 3× the median (usually a fresh dump of new creatives), leave it out of the mean and say so.
- N is the rounded (trimmed) mean, between 2 and 6. Six is
scale-what-works' hard cap for one shared ad set. - If the tree capped the rows, say the counts may be partial.
-
Read what has worked for Moshi.
- Per Moshi ad:
get_ad_account_treewithowner: "moshi"since the first Moshi spend (up to 90 days). Keep spend, impressions, CPM, link CTR, Meta purchases, ROAS and CPA. - Per flow:
get_ad_performance(since_launch) for thread-proven orders. For each flow that spent, useget_campaign_conversationsfor the number of chats. - Split tests: a Moshi campaign with a DM ad set beside a website ad set running the
same creatives (match by
clonedFrom/creativeOverlap) is a DM vs website test. Lay it out pair by pair. - Label each Moshi ad with a format (video, static, UGC, review static) and a 2–4 word angle you write from its name and copy (for example "Reactive skin testimonial").
- Per Moshi ad:
-
Separate what holds up from what is noise. Spend on Moshi ads is usually small, so be strict.
- Holds up: a difference that points the same way on every ad. A rate difference (CPM, link CTR, chats per 1,000 impressions) also counts when it is at least 1.5× with several thousand impressions on each side.
- Too early: any purchase, ROAS or CPA comparison with fewer than 20 purchases on either side, and any order-rate claim from a single flow.
- Write each finding as one plain sentence. These become the page's "Holds up" and "Too early" lists.
-
Build the candidate pool. Call
get_ad_shortlistwithrender: false,limit: 100, and aspendFloorUsdlow enough to reach recent ads (around $300). It gives 90-day spend, CPA, ROAS,thumbnailUrl,cloneable,alreadyMirroredand licensing flags. Then callget_ad_account_treewith the top candidates'adIds, once for the last 30 days and once for the last 7, to get recent purchases.- Drop: ads with
cloneable === falseoralreadyMirrored === true, ads that already run in a live Moshi ad set or test, and ads whose campaign is retargeting (their numbers come from warm audiences). - Flag but keep: whitelisted, partnership or creator-licensed ads (a clone may lose
the creator identity),
cloneable === null(never checked), and ads whose ad set also targets warm audiences, if the tree shows it.
- Drop: ads with
-
Pick N ads. Rank the pool on three things, in order:
- proven: at least 10 purchases in 30 days, and CPA no worse than the target campaign's CPA plus 10%;
- looks like a Moshi winner: the format and angle of the Moshi ads that held up in step 4;
- recent: a large share of its purchases in the last 7 days.
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.
- 7d ago Changed c33f911e439d
- 1mo ago First seen · 176 lines · 91 tokens per session scan A 992cfa1724c7
plan-next-flows is a skill published in the GitHub repository moshi-labs/moshi-claude-plugin (3 stars, last pushed 5d ago), licensed MIT. It adds 91 tokens to every session and 2,638 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-10-29.
plan-next-flows compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| plan-next-flowsmoshi-labs/moshi-claude-plugin | Skill | 3 | 5d ago | MIT | A | 91 | 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 |