pstack Explained: A Cursor Engineer's Agent Skill Pack

Most tools in the AI-assisted development space focus on getting agents to write more code. Yet pstack, an open-source Agent Skills package by engineer Lauren Tan (GitHub @poteto)—who has worked at Meta, Netflix, and Cursor—takes a very different direction.

pstack is part of Cursor’s official plugin repository, cursor/plugins, and is released under the MIT license. Lauren Tan states its purpose directly at the beginning of the project README:

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.

Rather than simply accelerating code output, pstack encodes a senior engineer’s discipline, decision criteria, and defensive thinking into a set of plain-text rules that agents can follow rigorously.


What Is pstack? Its Purpose and Three Common Misconceptions

Before looking at pstack, three common misconceptions need clearing up:

If pstack is just a collection of text files, with no planning layer, how does it connect engineering workflows, principles, and collaboration across models into a coherent system? The answer lies in its architecture.


System Architecture: Entry Point, Hierarchy, and Principles You Can Invoke by Name

As of October 2026, pstack contains 51 skills, 24 of which are behavioral principles. Connecting them are a single entry point, poteto-mode, and the 23 playbooks and model orchestration rules defined within it.

The Single Entry Point: poteto-mode

For everyday use, users need to remember just one command: /poteto-mode <task>. This is a sticky mode (marked mode: true in its YAML frontmatter) that remains active across conversation turns. Its core responsibilities include:

  1. Routing to a playbook: Based on the task’s characteristics, it selects a suitable workflow from 23 predefined playbooks covering bug fixes, performance, refactoring, investigation, shipping, and more. It copies the standard steps into a to-do list and invokes the relevant skills as it proceeds. Playbooks define how the work is done; skills provide the expertise for each step.
  2. Enforcing non-negotiables: It enforces core rules, such as establishing data structures before defining logic (“name the data shape first”), requiring an architecture review before changes that span functions, and applying unslop rules to all natural-language explanations and conversations.
  3. Defining when to ask questions: If a question can be answered objectively by running code and observing its behavior, timing, output, or performance, the agent must experiment on its own instead of asking a human. Only product or preference decisions that cannot be resolved experimentally need human input.
  4. Governing autonomy and interruptions: The agent proceeds autonomously with reversible actions, such as posting in a team channel, updating a ticket, or starting an eval. It pauses for confirmation only before irreversible writes, such as force-pushing a shared branch, deploying, deleting data, or messaging a customer.

Subagents and Collaboration Across Models

poteto-mode defines explicit orchestration rules: all subtasks run in the background, agents receive file paths instead of full text embedded in the conversation (following the guard-the-context-window principle), and each task is assigned the most suitable model.

In practice, the system separates tasks by complexity. Fast models handle trivial, mechanical code edits, while models with stronger reasoning handle architectural design that spans modules and judgment calls about written reasoning. The system also includes specialized roles, such as poteto-agent, a general-purpose subagent that follows the full principle index, and a read-only code comment reviewer.

Twenty-Four Behavioral Principles You Can Invoke by Name

pstack turns a senior engineer’s intuition into 24 standalone principles covering core thinking, system architecture, verification standards, and delegation discipline. Each principle lives in its own skill file. Agents read them when a task starts, and users can also invoke them by name in conversation to correct the agent’s behavior immediately:


Core Skills: Understanding, Parallel Work, Quality, and Verification

Four groups of skills stand out in pstack’s built-in library:

Understanding: how, why, and blast-radius

Parallel Work: arena and swarm

Both use subagents to fan work out in parallel, but their purposes and adjudication mechanisms differ completely:

ModeCore MechanismUse CasesReview and Adjudication
/arenaMultiple competing implementations of the same taskDesign decisions that require comparing several approachesJudges from different model families score implementations against criteria; the main agent picks the winner and grafts in the strengths of the other versions by hand
/swarmParallel execution of separate slices of workCoverage matrices and racesIndependent workers submit objective evidence and commit SHAs for verification

Quality: unslop and no-comments

Verification: create-verification-skill

/create-verification-skill is pstack’s most deeply developed asset. Its guiding purpose is to write a verification skill for the next agent, who has never seen the project.

Every generated verification skill contains six standard sections: Launch (explicit startup commands and readiness criteria), Doctor (read-only health checks to ensure testing starts from a healthy environment), Drive (actual selectors for interacting with the interface), Evidence (following real user paths and verifying side effects, without substituting self-reported claims for evidence), Cleanup (precise process cleanup to prevent leftover processes from contaminating the environment), and Helpers (any script the skill ships must be executable, with its invocation shown in the skill body).

Before delivery, the agent must use the skill itself to perform end-to-end verification, enforcing the discipline that a verification skill that has not been executed is a draft, not a deliverable.


Design Philosophy: Five Decisions That Shape pstack

  1. Implemented entirely in Markdown: In the verification-skill-example README, the author writes, “A wiki is great for humans. Agents pay for every token they reread.” pstack has no clever runtime; all the intelligence is in the text. This both saves context and makes pstack portable.
  2. A hierarchy of trust: From strongest to weakest, enforcement mechanisms rank as “architecture > static analysis / CI > lint / compiler > rules / skills”. Written rules are weakest because agents forget them, so pstack pushes requirements toward executable checks wherever possible. Examples include no-comments turning comments into types or lint checks, and the Doctor health checks in verification skills.
  3. Strict separation between authors and verifiers: The agent responsible for verification is never the one that wrote the code. The judges in /arena and the reviewers in /interrogate, which puts a diff through multi-model adversarial review, also come from different model families. As the author puts it, “The adversarial signal comes from model diversity, not assigned personas”.
  4. Redefining the human role: Humans shift from being a review bottleneck at every step to correcting course after the fact and arbitrating key decisions.
  5. Continuous self-improvement: Through the reflect skill, debugging lessons are written back into the skill library, allowing the system to evolve through failures.

Practical Advice: A Gradual Adoption Path for Most Teams

You do not need to install the entire package at once. Teams looking to learn from pstack can introduce it gradually, in descending order of return on investment:

  1. Adopt the standard verification skill structure: Create project-specific verification instructions for agents using the six sections: Launch, Doctor, Drive, Evidence, Cleanup, and Helpers.
  2. Introduce the certainty ladder and the single fact that establishes safety: During code review, require agents to identify the verification level behind their conclusions and state the key evidence that makes the change safe.
  3. Write contracts for unattended tasks (Overnight Contract): Specify four elements—the goal, falsifiable completion criteria, preauthorized permissions, and an escape hatch. Remember that “a duration is not a finish condition”: “run all night” is not a completion criterion.
  4. Add core principles to project rules: Choose 3 to 5 principles you strongly agree with, such as laziness-protocol and prove-it-works, add them to AGENTS.md, and invoke them by name in everyday conversations.
  5. Apply the unslop checklist: Use it to review both your own writing and the agent’s output.
  6. Adopt the full package: Once the above practices are working smoothly, and your tools support subagents and background tasks, install the entire package and switch to poteto-mode.

WARNING

pstack’s playbooks rely heavily on Cursor primitives, such as worktrees, cloud agents, /loop, and automations. When you port pstack to other tools, you can keep the principles and procedures, but capabilities such as swarm’s cloud execution will be limited. Check which primitives your environment supports before adopting it.

The README’s introduction closes with a single sentence: “fork it. improve it. make it yours. PRs are welcome!” The most valuable way to read pstack is not as a checklist to follow item by item, but as a detailed example of how a senior engineer puts “what counts as done, what counts as safe, and what should be asked of a human” into words an agent can understand.