/poteto-workflow:poteto-workflowfrom poteto-workflow
Runs engineering work through four stages (interrogate, arena, swarm, show-me-your-work) under seven hard crew gates. The gates are a failing test before the fix, review by a different model family, gitleaks before every commit and pull request, the full suite green, owner approval for merge, deploy and force-push, no AI co-author trailers, and tiered model routing. Use for a feature, bug fix, refactor or review, or when the user says poteto, crew gates or gated workflow.
Ships in poteto-workflow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A change moves through four stages. Seven crew gates hold at every stage. The stages scale down for small work. The gates never do.
interrogate -> arena -> swarm -> show-me-your-work
| | | |
+-----------+--------+--------------+--- crew gates apply throughout
| Work | Interrogate | Arena | Swarm | Show your work |
|---|---|---|---|---|
| One-file fix with a known cause | one question: is the cause proven | skip | skip | required |
| Feature inside one module | required | only for a real fork | skip | required |
| Cross-cutting change or migration | required | required for each fork | required | required |
| Review of someone else's change | required | skip | optional | required |
Attack the plan before any code exists. The goal is to find the wrong assumption while it is still cheap.
Exit when the plan has survived a real attempt to break it, and the open risks are written down with an owner for each.
Use the arena when two or more approaches are plausible and the choice is expensive to reverse. Skip it when one approach is plainly right.
Exit with one chosen approach and the measurements that chose it.
Fan out when the work splits into units that do not share state.
worker.md.Exit when every unit is integrated and the full suite passes at the integrated head.
Leave a record a reviewer can rerun on their own.
Keep long logs in a file and link to them. A claim without a command and its output is a guess, so label it as one.
| # | Gate | Proof |
|---|---|---|
| 1 | Failing test before the fix | The test fails at base and passes at head |
| 2 | Cross-family review before a pull request | Verdict from a model family other than the author's, bound to the head commit |
| 3 | Secret scan before every commit and pull request | Clean gitleaks protect --staged and gitleaks detect runs |
| 4 | Full project suite green before a pull request | The project's own suite passes at head |
| 5 | Owner authorization for merge, deploy and force-push | An explicit yes from the owner for that action |
| 6 | No AI co-author trailers | git log shows only the human author |
| 7 | Model tier routing | Each role runs on the tier the routing table assigns |
Commands, failure handling and the reasoning behind each gate are in references/crew-gates.md.
A gate that cannot run is a blocker to report. It is never a step to skip. If a tool is missing, say so and stop before the action the gate protects.
Route by the kind of thinking a role needs, not by habit. Keep the mapping in one place the whole team reads, and change it there.
| Tier | Roles | Guidance |
|---|---|---|
| Assembly | Mechanical edits, renames, boilerplate, running checks | Fast and cheap model, approach already decided |
| Build | Implementation to a settled design, bug fixes | Strong coding model at medium to high effort |
| Judgment | Interrogation, design, root cause analysis | Strongest reasoning model available |
| Review | Gate 2 verdicts, security reads | A different family from the author of the change |
The author and the reviewer of one change must come from different model families. A reviewer never audits work it built.
Everything above works with plain git and gitleaks. Two integrations add enforcement and deeper stage playbooks. Neither is bundled with this plugin.
orca-harness-poteto Orca plugin can enforce part of
this workflow in the terminal: it blocks merge, deploy and force-push
commands until they are unlocked, injects the worker contract into agent
kickoffs, and shows a scorecard for the test-first, secret scan and review
gates. Install it separately in Orca. This skill is the policy and that
plugin is one way to enforce it.~/.pstack/<commit>/skills, you can use its interrogate, arena,
swarm and show-me-your-work skills as the detailed playbooks for the
four stages. pstack is third-party work, not bundled here and not covered
by this plugin's license. Pin it to a commit, scan it before installing,
and record any scanner waiver next to the pinned copy with the commit and
archive hash it applies to. Where pstack marks a test or review step as
optional, the crew gates here still apply.All text in this plugin is original and MIT licensed. The stage names follow the vocabulary of the pstack project so the two can be used together. This plugin is not affiliated with or endorsed by the pstack authors and contains none of their material.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adibirzu/adibirzu-plugins --plugin poteto-workflow