plan-next-flows

plan-next-flows is a skill for Claude Code from moshi-labs/moshi-claude-plugin. It costs 91 tokens per session (2,638 once invoked), scanned A, original, MIT.

A planning skill for choosing the next Moshi flows to run inside a merchant's existing Meta advertising campaigns and presenting the plan as a one-page document. It sizes a new ad set from the campaign's usual size and selects proven ads using stated evidence.

In plain words
What is it for?
It is for planning Meta campaign additions, sizing ad sets, matching successful ads to flows, and documenting the recommendation.
Why use it?
It turns existing campaign results into a repeatable next-step plan instead of requiring the merchant to choose flows, ad sets, and ads from scratch.

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 It is for planning Meta campaign additions, sizing ad sets, matching successful ads to flows, and documenting the recommendation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/moshi-labs/moshi-claude-plugin/plan-next-flows
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 plan-next-flows
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 plan-next-flows

README.md
[![agentmods](https://agentmods.dev/badge/skills/moshi-labs/moshi-claude-plugin/plan-next-flows/github.svg)](https://agentmods.dev/skills/moshi-labs/moshi-claude-plugin/plan-next-flows)
Your own site
<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.

agentmods 80×15 button for plan-next-flows

Your own site · 80×15
<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>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,638 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.00091 $0.02638
Opus 5.5 $0.00036 $0.01055
Sonnet 5.5 $0.00018 $0.00528
Haiku 4.5 $0.00009 $0.00264

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

Security

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.

plugins/moshi/skills/plan-next-flows/SKILL.md · 176 lines

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

  1. Pick the target campaign. If the user named one (name or id), use it. If not, call get_ad_account_tree with owner: "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.

  2. Decide how many ads (N). Call get_ad_account_tree with campaignIds: [target], includeUndelivered: true and a maxAds large enough for the whole campaign. Count the ads with effectiveStatus ACTIVE 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.
  3. Read what has worked for Moshi.

    • Per Moshi ad: get_ad_account_tree with owner: "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, use get_campaign_conversations for 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").
  4. 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.
  5. Build the candidate pool. Call get_ad_shortlist with render: false, limit: 100, and a spendFloorUsd low enough to reach recent ads (around $300). It gives 90-day spend, CPA, ROAS, thumbnailUrl, cloneable, alreadyMirrored and licensing flags. Then call get_ad_account_tree with the top candidates' adIds, once for the last 30 days and once for the last 7, to get recent purchases.

    • Drop: ads with cloneable === false or alreadyMirrored === 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.
  6. 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.

Read the full file on GitHub · 176 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. 7d ago Changed c33f911e439d
  2. 1mo ago First seen · 176 lines · 91 tokens per session scan A 992cfa1724c7

Subscribe to this mod's changes

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.

Related

plan-next-flows compared with skills from other repositories

plan-next-flows next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
plan-next-flowsmoshi-labs/moshi-claude-pluginSkill35d agoMITA91Claude 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