|
| 1 | +# pstack |
| 2 | + |
| 3 | +i'm [poteto](https://x.com/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. |
| 4 | + |
| 5 | +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. |
| 6 | + |
| 7 | +**pstack is my answer.** these are the same skills i use everyday 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. |
| 8 | + |
| 9 | +**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. |
| 10 | + |
| 11 | +**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. |
| 12 | + |
| 13 | +fork it. improve it. make it yours. PRs are welcome! |
| 14 | + |
| 15 | +## install |
| 16 | + |
| 17 | +```bash |
| 18 | +/add-plugin pstack |
| 19 | +``` |
| 20 | + |
| 21 | +## make it yours |
| 22 | + |
| 23 | +`poteto-mode` is my style. you may not want exactly that. |
| 24 | + |
| 25 | +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`. |
| 26 | + |
| 27 | +## usage |
| 28 | + |
| 29 | +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. |
| 30 | + |
| 31 | +### just use `/poteto-mode` |
| 32 | + |
| 33 | +this skill is the main shortcut. i use it whenever i need the agent to do real engineering work. it comes with six playbooks. investigation, bug fix, perf, feature, authoring a skill, and multi-phase plan. when invoked it: |
| 34 | + |
| 35 | +1. opens a todo list. the first item is reading `references/principles.md`. |
| 36 | +2. matches your task to a playbook and copies the steps in verbatim. |
| 37 | +3. routes to the other skills as the steps fire. |
| 38 | +4. writes unslopped replies. |
| 39 | + |
| 40 | +the full rules and playbooks live in `skills/poteto-mode/SKILL.md`. |
| 41 | + |
| 42 | +the rest are useful on their own when you know what you want: |
| 43 | + |
| 44 | +| skill | use it when | |
| 45 | +|---|---| |
| 46 | +| `/poteto-mode` | default entry point for any non-trivial task. | |
| 47 | +| `/how` | you want a walkthrough of how a subsystem works. | |
| 48 | +| `/why` | you want to know why something was built this way. discovers available MCPs at run time and queries each evidence category in parallel (source control, issue tracker, long-form docs, real-time chat, infra observability, error tracking, analytics warehouse). | |
| 49 | +| `/architect` | you're about to write code that crosses a function boundary and want the types and module shape settled first. | |
| 50 | +| `/arena` | you want N parallel attempts at the same thing, then to grab the best parts of each. | |
| 51 | +| `/interrogate` | you have a diff and want four different models to try to break it. | |
| 52 | +| `/automate-me` | you want your own `-mode` skill, drafted from how you've actually worked. | |
| 53 | +| `/reflect` | a long task landed and you want the recipe captured as a skill edit. | |
| 54 | +| `/tdd` | you're fixing a bug and there's a cheap local test path. write the failing test first, then the fix. | |
| 55 | +| `/unslop` | you're cleaning up writing. removes AI tells. | |
| 56 | + |
| 57 | +## the `poteto-agent` subagent |
| 58 | + |
| 59 | +pstack also ships a subagent that runs my style end to end. spawn it from a parent agent via `subagent_type: "poteto-agent"`. it reads `poteto-mode` and the principles in full before doing any work. substituting `generalPurpose` skips that read and drifts. |
| 60 | + |
| 61 | +`/poteto-mode` and `subagent_type: "poteto-agent"` route through the same wrapper. |
| 62 | + |
| 63 | +## principles |
| 64 | + |
| 65 | +seventeen short skills, one principle each. `poteto-mode` reads `references/principles.md` at task start. the standalone files are there so other skills can reference a principle by name. |
| 66 | + |
| 67 | +- core: laziness-protocol, foundational-thinking, redesign-from-first-principles, subtract-before-you-add, minimize-reader-load, outcome-oriented-execution, experience-first, exhaust-the-design-space. |
| 68 | +- architecture: boundary-discipline, make-operations-idempotent, migrate-callers-then-delete-legacy-apis, separate-before-serializing-shared-state. |
| 69 | +- verification: prove-it-works, fix-root-causes. |
| 70 | +- delegation: guard-the-context-window, never-block-on-the-human. |
| 71 | +- meta: encode-lessons-in-structure. |
| 72 | + |
| 73 | +## not shipped here |
| 74 | + |
| 75 | +a few things `poteto-mode` references but doesn't bundle: |
| 76 | + |
| 77 | +- `/deslop` and the `deslop` skill ship in the `cursor-team-kit` plugin. |
| 78 | +- `control-cli` (for CLIs and TUIs) and `control-ui` (for browser, Electron, web) ship in `cursor-team-kit` too. |
| 79 | +- `/babysit` and `/create-skill` are cursor built-ins. |
| 80 | + |
| 81 | +install `cursor-team-kit` alongside pstack if you want the full set. |
| 82 | + |
| 83 | +## why are there no planning skills? |
| 84 | + |
| 85 | +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. |
| 86 | + |
| 87 | +## license |
| 88 | + |
| 89 | +MIT |
0 commit comments