plan
Skill1 starsChanged 5 days agoMITView on GitHub
Use when a phase needs an execution plan — when the user says "plan the phase", "potion plan", or after /potion:discuss completes. Also use with gaps mode when VERIFICATION.md lists unresolved gaps.
184 other projects use a version of this.
Adopted by
Most recently taken up by
- percona/percona-server-mongodb-operatortheir own version, first seen Nov 30, 2026
- openamer-max/max-scriptstheir own version, first seen Nov 29, 2026
- ctaxnagomi/agent-kd-skilltheir own version, first seen Nov 29, 2026
- matthewwong525/WongStacktheir own version, first seen Nov 29, 2026
- 3rd-Brain/AI-Operations-Consultanttheir own version, first seen Nov 29, 2026
- Rune-kit/runetheir own version, first seen Nov 29, 2026
Used with
Projects with it also use context-optimize, codex-system and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
SireJeffSkillcontext-optimize
Context Optimization - Orchestrate RPI workflow TODO generation with interactive scoping
Also in 4 projects that use this
gaebalaiSkillcodex-system
PROACTIVELY consult Codex CLI, your highly capable supporter with exceptional reasoning and task completion abilities. Codex is a trusted expert you should ALWAYS consult BEFORE making decisions on: design choices, implementation approaches, debugging strategies, refactoring plans, or any non-trivial problem. When uncertain, consult Codex. Don't hesitate - Codex provides better analysis. Explicit triggers: "think deeper", "analyze", "second opinion", "consult codex".
Also in 4 projects that use this
gaebalaiSkilldesign-tracker
PROACTIVELY track and document project design decisions without being asked. Activate automatically when detecting architecture discussions, implementation decisions, pattern choices, library selections, or any technical decisions. Also use when user explicitly says "記録して", "設計どうなってる", "record this". Do NOT wait for user to ask - record important decisions immediately.
Also in 4 projects that use this
math-incSkillheartmula
Set up and run HeartMuLa, the open-source music generation model family (Suno-like). Generates full songs from lyrics + tags with multilingual support.
Also in 10 projects that use this
math-incSkillminecraft-modpack-server
Set up a modded Minecraft server from a CurseForge/Modrinth server pack zip. Covers NeoForge/Forge install, Java version, JVM tuning, firewall, LAN config, backups, and launch scripts.
Also in 6 projects that use this
aboylabsSkilltouchdesigner-mcp
Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.
Also in 7 projects that use this
- +3 more from gaebalai
- +2 more from math-inc
Other versions184 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 184
- Yeachan-Heo/oh-my-codex★ 34ksame name
- crbnos/carbon★ 2.9ksame name
- graphistry/pygraphistry★ 2.6ksame name
- zereight/gitlab-mcp★ 2.1ksame name
- math-inc/OpenGauss★ 1.3ksame name
- kdlbs/kandev★ 1.2ksame name
- ffroliva/gflow-cli★ 1.2ksame name
- witnesstodark/mr-mak-workspace★ 866same name
- suboss87/FDEOps★ 769same name
- loongclaw-ai/loongclaw★ 640same name
174 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 2 are distinctive, and 10 are very specific to this project.
0
Common
Most of the 170 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Before finishing, re-read each emitted plan against this block.
- Distinctive: line 28
Never start from "what tasks make sense?" Start from the phase goal and derive:
- Very specific: line 37
Read STATE.md, PROJECT.md, and the phase's DISCUSSION.md.
- Very specific: line 41
Promotion preflight: read the promotion list first — the current phase's VERIFICATION.md gaps: and STATE's Decision queue.
- Very specific: line 47
Gate preflight: read DISCUSSION.md's gates: frontmatter.
- Very specific: line 57
Before emitting, read .potion/escalations.md: every referenced name must exist with expires today-or-later.
- Very specific: line 64
If the phase needs research (unfamiliar library, external API), do a focused pass now and write findings into the plans' <context> — not a …
- Very specific: line 73
Do the same for the user-scope journal ~/.claude/potion/knowledge.jsonl (if present): matches are inlined as Prior cross-repo learning: …
- Very specific: line 77
If .potion/knowledge/index.md (or the user-scope ~/.claude/potion/pages/index.md) lists a page matching the phase's stack, read the page — …
- Very specific: line 87
Verify-env refusal: before writing any plan whose truths need a live session (login flows, on-device behavior, served UI — not CLI …
- Very specific: line 123
Update STATE.md. Done when git log -1 shows docs(potion): phase NN plans.
- Very specific: line 131
When invoked with gaps (from /potion:verify), read the structured gaps in VERIFICATION.md frontmatter and write fix plans (gap_closure: …
“Common” is measured: kept by at least 6 in 10 of the 170 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Potion Plan
Inherit ${CLAUDE_PLUGIN_ROOT}/core/CORE.md. Produces PLAN files that are executed verbatim by fresh
agents. A plan is a prompt, not a document.
Plan-emission contract (must hold in every emitted PLAN/RUNBOOK):
- The specificity test: could a different Claude instance execute this without asking a single question? Placeholders ("TBD", "appropriate error handling", "similar to task N") are plan failures.
- Frontmatter:
wave> every dependency's wave (max(deps)+1unless a later cycle);files_modifiedANDresourcesexclusive across same-wave plans (a worktree isolates files, not a shared port, database or device); 2-3 tasks per plan. - Numbering: PLAN-NN and RUNBOOK-NN share one pool — the next number is one past the highest existing of either; never reuse a number. Before finishing, re-read each emitted plan against this block; fix in place, or regenerate it — at most once.
The Iron Law
PLAN GOAL-BACKWARD, NOT FORWARDNever start from "what tasks make sense?" Start from the phase goal and derive:
- Truths — 3-7 user-observable statements that must be TRUE when done.
- Artifacts — what must EXIST for each truth (path + what it provides).
- Key links — what must be WIRED (from → to → via). This is where 80% of stubs hide: the component that's never imported, the API that's never called.
Steps
Read STATE.md, PROJECT.md, and the phase's DISCUSSION.md. Decisions are locked; Deferred is untouchable. Done only when
phases/NN-slug/DISCUSSION.mdexists — absent means run /potion:discuss first.Promotion preflight: read the promotion list first — the current phase's VERIFICATION.md
gaps:and STATE's Decision queue; thengrep -n '^- \[defect\]'STATE.md — a surviving- [defect]line means verify/discuss skipped a promotion: STOP and promote it (same routing rule) before writing any plan.Gate preflight: read DISCUSSION.md's
gates:frontmatter. Work blocked on ahitlgate becomes RUNBOOK-{NN}.md (from${CLAUDE_PLUGIN_ROOT}/templates/RUNBOOK.md) in the phase's plan numbering and wave order — never an executable PLAN; downstream plansdepends_onthe runbook's number.afkgates are handled inside plans. Field rationale: two audited repos wrote plans that were never executable (0/4, 0/1) because human gates were discovered at run time instead of plan time.Escalation preflight: a plan whose tasks invoke a gated mutation (deploy, publish, prod write) declares the grant names in
escalations:frontmatter. Before emitting, read.potion/escalations.md: every referenced name must exist withexpirestoday-or-later. Missing or expired → STOP and ask the human, presenting a ready-to-paste registry line (grammar in templates/escalations.md, 90-day default expiry) — the human edits and commits the registry, then planning resumes by re-running this preflight. Undeclared commands still wall at run time; declaring is what makes the lane sanctioned.If the phase needs research (unfamiliar library, external API), do a focused pass now and write findings into the plans'
<context>— not a separate research pipeline.Also read
.potion/learnings.jsonl: grep for entries whosekey,files, orinsightmatch the phase's stack, files, or failure modes. Inline every match into the affected plan's TECHNICAL NOTES asPrior learning applied: {key} — {one-line insight}. A pitfall the flywheel already paid for must never be re-purchased by a fresh worker. Do the same for the user-scope journal~/.claude/potion/knowledge.jsonl(if present): matches are inlined asPrior cross-repo learning: {key} (from {repo})— a pitfall paid for in another repo is never re-purchased here. If.potion/knowledge/index.md(or the user-scope~/.claude/potion/pages/index.md) lists a page matching the phase's stack, read the page — synthesis beats fragments; the jsonl grep remains the fallback when no page matches.Write plans from
${CLAUDE_PLUGIN_ROOT}/templates/PLAN.md: 15-60 minutes of agent time per task; frontmatter, task count, and numbering per the emission contract above. Done when every PLAN-NN.md / RUNBOOK-NN.md exists on disk inphases/NN-slug/.Verify-env refusal: before writing any plan whose truths need a live session (login flows, on-device behavior, served UI — not CLI invocations or disk reads):
.potion/verify-env.mdmust exist as a recipe or anone-needed: <why>declaration. Absent → STOP; ask the user the verify-env question (${CLAUDE_PLUGIN_ROOT}/templates/verify-env.md) and write the file first. Silence is the only illegal state.Spec deltas: a plan that changes behavior described in
.potion/specs/(or establishes behavior worth speccing) carries a<spec_deltas>section per templates/PLAN.md — full requirement text, IDs per the spec format. Ship merges them mechanically; a missing delta means the spec silently rots. A phase's specs may ride another phase's ship only with an explicit note in BOTH phases' records — silent spec hitchhiking is F-37.Inline everything the executor needs in
<context>— the plan is the ONLY thing the worker is guaranteed to read, and a worker sent hunting through the repo for intent will reconstruct the wrong intent. Write for an engineer with zero context and questionable taste.Separate the two tiers in
<context>: LOCKED product decisions (from DISCUSSION.md) versus TECHNICAL NOTES (your best current understanding of APIs and signatures). You WILL sometimes be wrong about APIs — that's fine if it's labeled: the worker verifies technical notes against installed typings and corrects them under Rule 1. An unlabeled wrong "decision" is how workers ship deprecated calls out of misplaced obedience.- Self-check (adversarial pass, max 3 iterations) as a hostile reviewer:
- Does every truth trace to at least one task? (Missing = blocker)
- Does every artifact have a task that wires it? (Orphan = blocker)
- Any task missing files/action/verify/done? Any plan with 4+ tasks? Then run
node ${CLAUDE_PLUGIN_ROOT}/scripts/wave-check.js phases/{NN-slug}— any CONFLICT/BADWAVE/MISSINGDEP/MALFORMED line is a blocker; a SERIAL line means look again for plans that could share a wave. - Does anything contradict a locked Decision or touch a Deferred item?
- Are names consistent across tasks? (
clearLayers()in task 1 butclearAllLayers()in task 3 is a bug you're shipping.) Fix surgically — surgeon, not architect. Done when a pass yields zero findings; issues surviving 3 passes go to the user.
- Update STATE.md. Done when
git log -1showsdocs(potion): phase NN plans.
Gaps mode
Gaps mode is steps 1-5 with these substitutions — step 2 (research) is usually unnecessary, and plans target exactly the structured gaps. The adversarial self-check (step 4) and STATE.md update + commit (step 5) ALWAYS apply.
When invoked with gaps (from /potion:verify), read the structured gaps in
VERIFICATION.md frontmatter and write fix plans (gap_closure: true) targeting
exactly those gaps — nothing else. Numbering per the emission contract (a
reused number whose SUMMARY exists is silently skipped by execute; abort if
SUMMARY-{NN} already exists for your chosen number). Check VERIFICATION.md's cycle: if
this would be cycle 4, stop and escalate instead — the flywheel budget is 3.
Red flags
| Thought | Reality |
| "I'll reference the doc instead of inlining it" | The worker is guaranteed to read ONE file. Paste it. |
| "The executor will know what 'appropriate' means" | That word is the plan failing. Specify it. |
| "Tasks 4 and 5 are tiny, they can stay" | Tiny tasks are how plans hit 80% context. New plan. |
| "The human steps can go in the plan's context" | A worker can't press console buttons. hitl-gated work is a RUNBOOK. |
Exit
Summary table: plan | wave | tasks | must-have truths. Next up: /potion:execute
— the plans carry everything; continue here unless context is nearly full.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

