pstack — standalone mirror Mirror of cursor/plugins/pstack by Poteto — kept in sync for standalone use. Sponsored by Plannotator. Poteto's Bro Skill was created by me, backnotprop/bro Install pstack is a folder of plain Agent Skills (skills/ /SKILL.md). You don't need Cursor. The skills CLI installs them into Claude Code, Codex, Pi, Cursor, OpenCode, and other agents: The CLI shows every skill in a list you can…
pstack is a folder of plain Agent Skills (skills/<name>/SKILL.md). You don’t need Cursor. The skills CLI installs them into Claude Code, Codex, Pi, Cursor, OpenCode, and other agents:
npx skills add backnotprop/pstack
The CLI shows every skill in a list you can search. Select the skills you want, then select your agents.
Some skills call other skills. Install these together:
Skill
Also install
teach
how, why
technical-writing
unslop
architect
arena
blast-radius
arena, how, why, unslop
create-verification-skill
maintain-verification-skill
create-formal-verification-skill
maintain-formal-verification-skill, statechart
ketchup
bro
ketchup-video
ketchup, bro
poteto-mode
all principle-* skills and most of the other skills
poteto-help
the skills you want help with
Skills that spawn subagents point to the Subagents section of poteto-mode to pick each subagent’s effort. Without poteto-mode, they use the default effort.
What this mirror changes
Many skills were Cursor-specific. They’ve been rewritten to work in any harness.
Codex ignores the disable-model-invocation: true mark that keeps most pstack skills from running unless you call them. So each marked skill also gets an agents/openai.yaml that tells Codex the same thing. The skill stays out of Codex’s startup prompt, and $skill still runs it. (#26)
The mirror also carries two community fixes that aren’t upstream yet:
no-comments keeps a comment about an outside rule (a dependency, platform, or protocol) when it can’t check the rule, and marks it for review instead of deleting it. A rejected review no longer stops the whole run. (#14)
watch-pr no longer adds a pull request from a fork to a watched stack, so a fork’s review comments stay out of the agent’s context, and it strips control characters from review paths, authors and comment text before printing them. Patch from cursor/plugins#1194. (cursor/plugins#1193)
i’m poteto. i’m not a president or ceo, but i’ve worked with millions of lines of code at Meta, Netflix, and Cursor. i’m also on the react core team where i help build and maintain react compiler.
there’s a growing sense that ai writes too much slop code. i agree. i don’t want to ship like a team of twenty slop artists. throughput without quality is not a goal i aspire to. if you want to go fast, go deep first.
pstack is my answer. these are the same skills i use every day to ship high quality code at Cursor. this turns cursor into a real engineering team. the goal is not to maximize loc, in fact it’s the opposite. pstack helps you write less, but higher quality code.
pstack gives you fearless parallelism. when you can go deep on one agent and trust it to write good, verifiable code, you can truly parallelize with confidence. start multiple agents up with poteto-mode and trust that they’ll apply rigorous engineering principles to their work.
cursor gives you the best of all worlds. every frontier model has its strengths and weaknesses. use any model with pstack. in fact, many of my skills use multi-model workflows to take advantage of each model’s unique strengths.
fork it. improve it. make it yours. PRs are welcome!
claude code leaves auto-update off for third-party marketplaces, so pstack stays on the version you installed. to turn it on, run /plugin, open the marketplaces tab, select cursor-plugins, and choose enable auto-update. to update once by hand, run claude plugin update pstack@cursor-plugins.
claude code prefixes plugin commands and agents, so /poteto-mode is /pstack:poteto-mode. the claude code adapter maps every other cursor name. in claude code, /pstack:setup-pstack writes your model choices to ~/.claude/rules/pstack-models.md, and a step that needs a cursor-only feature, such as bugbot or automations, is skipped with a one-line note.
claude code installs a generated copy of pstack, including this readme and the guide, from harness/pstack/ at the repository root. after you change pstack, run node scripts/generate-pstack-harness-trees.mjs from the repository root and commit the result. ci fails while the generated copy is out of date.
get started
two steps:
run /setup-pstack, pick a reasoning budget, and choose which models you want.
use /poteto-mode whenever you’re doing anything that requires rigor.
new here? the pstack guide walks you through a first real task, from setup and prompting through verification and overnight runs. stuck, or unsure which skill fits? ask /poteto-help.
that’s it. the other skills are situational, and the mode skill uses them for you as needed. out of the box, code delegates (feature, refactoring, bug fix, perf, hillclimb), prose, and judgment go to opus 5.5 at xhigh, and no role runs above xhigh. outside a review panel, fable 5.2 runs only when you name it or after two opus 5.5 runs of the same brief fail. the default panel is fable 5.2 / opus 5.5 / gemini 4 neon. /setup-pstack changes any of it.
usage
use /poteto-mode at the start of a task. it reads your request, picks from a set of playbooks, and runs the other skills as the steps need them.
pick /poteto-mode from the / menu before you type your task, so cursor attaches the skill to the message.
to keep /poteto-mode on across turns, pick it from the / menu and press option+enter (mac) or alt+enter (windows) instead of enter. that makes it a custom mode, which cursor offers in the agents window and the cli. it stays in context every turn until you exit the mode. plain enter attaches it to one message only.
/poteto-mode works extremely well with cursor’s /loop command. you can make cursor work for many hours without sacrificing rigor.
skills
/poteto-mode runs most of these for you when a step needs them (why, architect, arena, swarm, interrogate, unslop, no-comments, technical-writing, tdd, and the principles). the table below is for when you want one directly:
/how do we cancel runs? do we have an n+1 when we look up every run to cancel?
you’re new to pstack, or unsure which skill, playbook, or principle fits. finds out what you’re trying to do, answers that part, and hands you a prompt to type. runs only when you type /poteto-help.
you want a prompt made deeper, not bigger, before you send it: what a top professional would do that you didn’t ask for, the raw material they’d start from, their methods and tools, and an outside check that the result is right. hands back the rewritten prompt, which asks the agent to prototype any choice an experiment can settle and leaves product and preference choices to you. doesn’t do the task. runs only when you type /sharpen.
you can’t name what you’re building, so you can’t ask an agent for it clearly. starts from your files and your own words. if they could describe more than one problem, it lists the two or three it could be, with the sign that tells each apart, and picks the likeliest. then it gives 8 to 12 expert terms ranked by how much they’d change what you build, each tied to the part of your description it names and to a real project whose link it checked. borrows terms from 2 or 3 neighboring fields that solved the same problem under other names, says where each analogy breaks, then rewrites your description with the new words. runs only when you type /reframe.
you want to know why something was built this way. answers from the record, not the code: the commits and pr discussions that introduced it and each later change, and other sources when that trail is thin. cites what the authors wrote, marks its own inferences, and says what the record does not answer.
you’re starting or resuming work and want your recent context on a topic rebuilt from your own chat history and the shared record, handed back as a tight current-state brief.
you want what changed in this chat since your last message, in plain words and small visuals, with every item waiting on you listed and decidable from the reply alone, even when that makes the reply long.
you have a small-looking change and want to know what else it could break, with the one fact it’s safe because of proven by running code, not asserted.
you keep correcting agents for the same mistakes. mines history for mistake classes, fixes each at the highest level that works (architecture, then types, lint, and ci, then tests, with docs last), and keeps a table pairing each rule with what enforces it.
you want to actually understand a change or subsystem, not just have it summarized. runs how + why and weaves one plain explanation, built up diagram by diagram.
you ran a benchmark or measured a speedup or regression. vets the number (limiter, tuning, errors, repeat runs, end-to-end relevance) before you report or act on it.
tests can’t reach the case that breaks a race, retry, state machine, parser, or unsafe code. verifies one property with the tool that fits and generates a project-local skill to recheck it on every change.
code your formal verification covers has changed since it was last checked. updates the model, harness, or properties to match the code, reruns, and says whether each failure is drift in the verification or a bug in the code.
someone who owns the behavior needs to see it, not read a spec. checks a tla+ model, draws what the user sees as a mermaid statechart, marks each state that breaks a rule, and gives the shortest path to each one.
layered doc standard (Diátaxis + Google developer style + STE + Global English) for docs, RFCs, readmes, PR descriptions, commit messages.
examples
mostly i type /poteto-mode at the start of a task and let it route to a playbook. the other skills fire as the steps need them. a few i reach for directly.
all the examples
bug fix: /poteto-mode this pr has a subtle bug where the scroll drifts every 750ms even
when idle. repro first, then fix and verify.
perf: /poteto-mode a big list takes a second or two to load even though we virtualize.
run a cpu trace and tell me why.
feature: /poteto-mode build a small feature behind a feature flag. verify it really works.
prototype: /poteto-mode build two prototypes of the markdown renderer so we can compare.
spawn an agent for each.
multi-phase: /poteto-mode open source these skills as a plugin. nothing internal leaks, work
in a temp dir, show me the dependency graph first.
overnight run: /poteto-mode i'm going to bed. land the stack even if ci flakes. i want
everything merged by morning.
babysit: /poteto-mode check on pr 123. anything outstanding?
visual parity: /poteto-mode the row spacing is too tall when this flag is on. the second image
is correct. repro and fix until it matches.
figure it out: /poteto-mode i'm stepping away. migrate every caller from the synchronous store
to the new async one, keeping behavior identical. i want to trust it was done
right when i'm back.
how: /how do we cancel runs? do we have an n+1 when we look up every run to cancel?
why: /why is this feature flag not on yet?
architect: design this instrumentation to be high signal with no false positives. /architect
this first.
arena: /arena take my prompt to the arena verbatim. i want to compare their proposals
with yours.
swarm: /swarm check every package under packages/ against its check.sh. one worker per
package. one report.
interrogate: /interrogate review this pr.
tdd: /tdd implement
unslop: can we unslop and tighten the new changes?
reflect: /reflect that took too long. capture what we learned so the next run doesn't
repeat it.
correct: /correct
show-me-your-work: /show-me-your-work keep a decision trail i can review when i'm back.
automate-me: /automate-me
help: /poteto-help which skill should i use to review this branch?
the poteto-agent and Comment Sicko subagents
/poteto-mode runs in the chat that receives it. that chat owns the playbook, the todo list, and every subagent spawn.
pstack also ships subagent_type: "poteto-agent" as the wrapper for delegates spawned during a run. it reads poteto-mode in full, including its inline principles index, before doing any work. substituting generalPurpose skips that read and drifts. do not spawn poteto-agent to run the playbook itself.
pstack also ships Comment Sicko, a read-only comment reviewer available as subagent_type: "comment-sicko". usually invoke it through /no-comments, not directly.
principles
twenty-four short skills, one principle each. poteto-mode indexes them inline and reads that index at task start. the standalone files are there so other skills can reference a principle by name, and so the index can point at the full rule for each.
Apply before writing logic: choosing core types and data structures, sequencing scaffold-vs-feature work, asking what concurrent actors share. Get the data structures right so downstream code becomes obvious.
Apply when two or more fixes that share one premise have failed the same gate. Write the premise down and test it directly before you write another fix that assumes it.
Apply during planned rewrites and migrations with explicit phase boundaries. Converge on the target architecture; don’t preserve smooth intermediate states with throwaway compatibility code.
Apply to any non-trivial work, not just bulk work: edits, migrations, analyses, checks. Build the tool that does it or proves it (codemod, script, generator, or a skill your subagents follow) instead of working by hand. The tool is the artifact a reviewer can rerun.
Make illegal states unrepresentable, brand semantic primitives, parse external data at boundaries, exhaust variants, derive from authoritative schemas.
Apply after completing a task, before declaring done. Verify against the real artifact (run the feature, read the actual value, inspect the diff), not a proxy, self-report, or ‘it compiles.’.
Apply to multi-step work (sweeps, migrations, runs of similar edits) and to how you stack commits and PRs. Break work into small units that each end in a verifiable state, check each before the next, and order delivery so the sequence proves itself to a reviewer.
Apply when you write, change, or keep a test. Assert what the code’s users can observe, so the test fails when that behavior breaks and keeps passing when only the internals change.
Apply before you trust, report, or act on a number you measured: a speedup, a regression, a throughput, a latency, or an eval result. Find what limits it, and rule out that it measured something other than the work you think.
Encode the rule as a lint, metadata flag, runtime check, or script instead of more text.
not shipped here
a few things poteto-mode references but doesn’t bundle:
/deslop and the deslop skill ship in the cursor-team-kit plugin.
control-cli (for CLIs and TUIs) and control-ui (for browser, Electron, web) ship in cursor-team-kit too.
/create-skill is a cursor built-in. cursor also ships a built-in /autopilot that watches a pr. inside poteto-mode, pr-status requests go to the babysit playbook instead.
install cursor-team-kit alongside pstack if you want the full set.
why are there no planning skills?
cursor already has a great plan mode which works great with pstack. but personally, i don’t believe in planning. the best spec is code. if you do want to make a plan, /poteto-mode covers it, but it’s not a default.
make it yours
poteto-mode is my style. you may not want exactly that.
type /automate-me. it mines your recent transcripts, drafts a <your-name>-mode skill from how you’ve actually worked, and routes through pstack underneath. you keep pstack as the base and end up with your own routing skill alongside poteto-mode.
models are configurable too. type /setup-pstack. it detects the models you have access to and writes a small always-applied rule mapping each role (code, judgment, the review panels) to a model. every skill reads it and falls back to sensible defaults when the rule is absent, so you override only what you want.
when a default changes, a rule written before the change still pins the old default until you run /setup-pstack again. that run replaces the old defaults it recognizes and keeps any other role whose model differs from the default. to drop a pin it does not recognize, delete that role’s line or the file first.
automations
pstack also ships a dormant benny automation pack. benny triages slack issue reports, then reproduces and fixes confirmed bugs with real ui evidence. its files are not registered as slash skills.
to set it up, point cursor at FOR_AGENTS.md. setup copies the pack into the target repository at .cursor/automations/benny/, enables pstack there for shared skills, and keeps user configuration outside the copied pack. benny runs on cursor automations, so it is cursor-only.
评论