execute
Skill1 starsChanged 4 days agoMITView on GitHub
Use when a phase has PLAN files ready to run — when the user says "execute the phase", "potion execute", "run the plans", or after /potion:plan completes. Also use for a quick task or small fix on a Potion project ("quick fix", "small change") via quick mode.
61 other projects use a version of this.
Adopted by
Most recently taken up by
- justincordova/agentstheir own version, first seen Nov 29, 2026
- tenaya-ui/claude-skillstheir own version, first seen Nov 29, 2026
- crbnos/carbontheir own version, first seen Nov 29, 2026
- pleb/grafttheir own version, first seen Nov 22, 2026
- afaraha8403/balakittheir own version, first seen Nov 21, 2026
- chrislacey89/skillstheir own version, first seen Nov 19, 2026
Used with
Projects with it also use context-optimize, ralplan and 8 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 3 projects that use this
ibahgatSkillralplan
Create a strict, quality-first execution plan with explicit gates and rollback-ready sequencing.
Also in 5 projects that use this
Yeachan-HeoSkillultragoal
Create and execute durable repo-native multi-goal plans over Codex goal mode artifacts.
Also in 4 projects that use this
ibahgatSkillhud
Control omi visual HUD profile and keep status output readable in normal, compact, or hidden mode.
Also in 3 projects that use this
buddyhSkilldeep-dive
Deep dive on any topic. Decomposes into subtopics, researches each in parallel with thorough source gathering, then synthesizes into a comprehensive report (4,000-10,000+ words, 40-100+ sources). Scales depth dynamically based on topic complexity. Use when asked for a deep dive, deep research, comprehensive analysis, or thorough investigation of a topic.
Also in 4 projects that use this
team-attentionSkillcompound
This skill should be used when the user says "/compound", "compound this", "document learnings", "save what we learned", or after completing a PR. Extracts knowledge from PR context and saves to docs/learnings/.
Also in 3 projects that use this
Other versions61 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 61
- Yeachan-Heo/oh-my-claude-sisyphus★ 41ksame name
- Yeachan-Heo/oh-my-claudecode★ 41ksame name
- crbnos/carbon★ 2.9ksame name
- zaxbysauce/opencode-swarm★ 549same name
- ZaxbyHub/opencode-swarm★ 548same name
- Joonghyun-Lee-Frieren/oh-my-antigravity★ 229same name
- Joonghyun-Lee-Frieren/oh-my-gemini-cli★ 229same name
- team-attention/hoyeon★ 173same name
- Adrian333Dev/flow★ 41same name
- shipshitdev/skills★ 39same name
51 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
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 59 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Before finishing, re-read the emitted worker prompts and STATE update against this block.
- Very specific: line 25
Discover: Read STATE.md Position — the target phase is the current phase (or the explicit argument if given).
“Common” is measured: kept by at least 6 in 10 of the 59 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 Execute
Inherit ${CLAUDE_PLUGIN_ROOT}/core/CORE.md. You are the ORCHESTRATOR. You stay lean: discover plans,
group into waves, spawn workers, route their returns. You do not implement.
Context budget: ~15% you, 100% fresh per worker.
Orchestration contract (must hold in what you emit):
- Worker prompts are pointers: plan path + ≤10-line digest, never pasted plan text — the urge to add prompt context means the plan file is deficient; fix the plan on disk instead.
- Worker returns are ≤15 lines ending in CORE's status block.
- STATE.md position is updated after EVERY wave.
- Quick mode ONLY when all four hold: ≤1 file, ≤~30 changed lines, reversible in one revert, unnamed in DISCUSSION.md Decisions/Deferred. Before finishing, re-read the emitted worker prompts and STATE update against this block; fix in place, or regenerate — at most once.
Steps
- Discover. Read STATE.md Position — the target phase is the current
phase (or the explicit argument if given). List
PLAN-*.mdANDRUNBOOK-*.mdONLY in that phase's directory. A unit with a matchingSUMMARY-*.md(same NN) is already complete — skip it, either kind; aSUMMARY-NN.draft.mdnever counts. Completion state is derived from artifact existence, never from a status field. - Wave up. Group remaining plans by
wavefrontmatter. First runnode ${CLAUDE_PLUGIN_ROOT}/scripts/wave-check.js {phase dir}: any CONFLICT/BADWAVE/MISSINGDEP/MALFORMED is a plan defect — stop and fix the plans (or run /potion:plan), never spawn around it; note the WAVE widths for the phase report. Within a wave, plans own disjointfiles_modifiedandresources. Per wave runnode ${CLAUDE_PLUGIN_ROOT}/scripts/mem-cap.js: its CAP (1-6, from free memory) is the most workers live at once, and its WORKER-RULE line, if any, goes in every digest. Spawn up to CAP in one message; when a worker finishes and plans wait, start one more. Between waves, block. No polling, no runtime dependency analysis: the planner already did it. A wave with 2+ plans gets one isolated worktree + temp branch per worker (repo root):git worktree add ../{repo-dirname}-wt-{NN} -b potion/wave{W}-plan{NN}(branches from current HEAD; the sibling path needs no gitignore; the harness's built-in agent isolation is not used — it bases on the default branch, so a worker would not see its plan). A 1-plan wave runs in place in the main working tree. Without worktrees, parallel workers share one index —index.lockcollisions are expected contention; workers retry, never delete the lock. Done when every remaining plan sits in exactly one wave and each worker of a 2+ wave has its own worktree and branch. - Spawn workers. For each plan:
- Draft stub: copy
${CLAUDE_PLUGIN_ROOT}/templates/SUMMARY.mdtoSUMMARY-{NN}.draft.mdnext to the plan the worker will read (the worktree copy when isolation is on), replacing{NN}. Leave it uncommitted — the worker's metadata commit adds it. Skip if it exists. - Prompt = "First, read ${CLAUDE_PLUGIN_ROOT}/core/CORE.md (your contract)
and ${CLAUDE_PLUGIN_ROOT}/agents/potion-worker.md (your role). Then read
your plan at {absolute path to PLAN-NN.md} and execute it verbatim." +
a ≤10-line digest: repo path (when isolation is on, this IS the worker's
worktree path, and the plan path is the worktree's copy), current STATE
position, the draft path, any concerns carried from prior plans + up to
3 learning keys relevant to the plan's files (
{key}: {one-line insight}) pulled from.potion/learnings.jsonl— skip the line if none match. - Done when each worker's return is routed and its draft is accepted.
- Draft stub: copy
- Route returns on the
STATUS:line of the status block (CORE.md); a return without one → ask that worker once for its block, then treat as NEEDS_CONTEXT — but a block-less return ending in an overload/529/rate-limit message is an infrastructure death (step 5), not a missing status block. OnCHECKPOINT(Rule 4 deviation or human-verify), present its completed-tasks table, collect the user's answer, spawn a fresh worker whose prompt includes that table — its first act isgit log --oneline -10to verify those commits exist. Fresh agents with explicit state beat stale resumed ones. Done when every return is routed, no CHECKPOINT unanswered.
Runbooks (human gates in the wave)
A RUNBOOK-NN in the current wave is never given to a worker — runbooks are
executed by humans. Run each step's done_when (per CORE.md's check-runner
contract); human-attest steps and failed checks are presented to the user as
ONE checkpoint (step list + exact do: instructions). All steps confirmed →
write SUMMARY-NN from the template's runbook variant (type: runbook, per-step
results: MATCH / human-attested). Unconfirmed → the wave blocks there; report
which steps remain and stop. A re-run of execute re-checks done_when first —
steps the human completed between sessions confirm mechanically.
- Watchdog. A worker with no new commits and no return for ~15 minutes: check disk first (git log + phase dir may show it mid-task, e.g. a long install), nudge it once with what you observe, and only if still silent spawn a fresh worker on the same plan — safe because of the idempotency check. One respawn per plan; a second stall → BLOCKED, escalate. Never two live workers on one plan. A worker that ended on an API overload or rate-limit error (return or transcript ends in an overloaded/529/rate-limit message, with no status block) is an infrastructure death, not a stall: wait ~2 minutes, respawn on the same plan (idempotent), up to 3 times with the wait doubling — these do not use the one stall-respawn. Time ceiling: 90 minutes with no new commit and no return is a stall however busy the worker looks — stop it first (never two live on one plan; if it cannot be stopped, do not respawn → BLOCKED), then it takes the plan's one stall-respawn; a second → BLOCKED. Done when every plan in the wave has a routed return, a live worker or a BLOCKED escalation.
- After each wave: in the main working tree, merge each worker branch
SEQUENTIALLY —
git merge --no-ff potion/wave{W}-plan{NN}, one at a time, never octopus (learning: octopus-merge-divergent-bases); both-sides-keep conflicts resolve by keeping both additions. Once every branch has landed, accept drafts: for each plan whose worker returned DONE or DONE_WITH_CONCERNS, check its draft is fully filled — all four headings (## Built,## Task → commit,## Deviations,## Concerns) present and none of{2-4 sentences,{hash},{Anything the verifierleft. If so,git mv SUMMARY-{NN}.draft.md SUMMARY-{NN}.mdand commitdocs({phase}-{NN}): summary accepted; if not, send the worker one message naming the unfilled section, and if still unfilled treat the plan as BLOCKED. A draft from a CHECKPOINT/BLOCKED/NEEDS_CONTEXT return stays a draft. Only then compute progress from SUMMARY existence and update STATE.md position (learning: worktree-stale-base). Cleanup per worker:git worktree remove ../{repo-dirname}-wt-{NN}thengit branch -d potion/wave{W}-plan{NN}. A failed plan is discarded, not merged: remove its worktree,git branch -Dits branch — the main branch stays untouched. After the last wave, done whengit log -1showsdocs(potion): phase NN complete.
Small-task escape hatch (quick mode)
Qualifies only when all four contract conditions above hold. Still mandatory:
atomic commit, evidence gate before claiming done, one-line note in STATE.md.
Evidence files: before writing, run git check-ignore -q <name> from the
host repo root — an ignored name (e.g. *.log) gets a non-ignored one
(.txt); trim raw logs to the relevant window (the scrubber blocks .potion/
files over 256 KB). Quick tasks skip <spec_deltas> unless they change
specced behavior — then write the delta and run scripts/merge-specs.sh in
the same session. The ratchet: the third consecutive quick task on a project
is a phase wearing a disguise — stop and run /potion:discuss.
Red flags
| Thought | Reality |
| "I'll just implement this plan myself, it's short" | Your context is the orchestration budget. Spawn the worker. |
| "The worker said done, moving on" | Its draft is fully filled and renamed? Its commits exist? Then move on. |
| "I'll batch all checkpoint questions at the end" | Checkpoints block their wave. Handle them when they fire. |
Exit
Phase report: plans completed, wave widths ("waves: 3+1+2"), deviations,
concerns. Route every SUMMARY concern that no next plan consumes into
STATE.md's ## Fog, one line each, tagged from SUMMARY-NN. Nothing
evaporates. Next up: verification must not be anchored by what this session
watched the workers claim — run /potion:brew (it verifies with fresh
agents, no /clear needed), or /clear then /potion:verify. Record the stage:
node ${CLAUDE_PLUGIN_ROOT}/scripts/metrics.js record --stage execute --workers {N} --waves {N} --max-wave-width {N} --respawns {N} --overload-respawns {N} --gate-stops {N}.
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.

