Getting started

Eleven short lessons to discover pstack, in order. Read them in one go or jump to the one you need.

Lesson 1

pstack is a toolbox with three kinds of pieces

Before the flows, meet the pieces. There are three kinds, and each has a different job.

Skill

A specific tool the agent knows how to use. You call it with /name, for example /why. A skill does one thing.

/why/architect

Playbook (recipe)

A step-by-step recipe for one kind of task: fix a bug, add a feature... A recipe calls skills at certain steps.

Bug fixFeature

Principle

A short judgment rule. It does nothing on its own. Recipes use it to decide, for example “delete before you add”.

principle-*

Lesson 2

You talk to one front door: /poteto-mode

You don't need to remember every skill. You describe your task to /poteto-mode, and it picks the recipe for you.

  1. 1

    You

    You write your request in plain words, for example “the export button doesn't work”.

  2. 2

    /poteto-mode

    It restates your goal, then recognizes the kind of task. Here, it's a bug.

  3. 3

    A recipe

    It opens the matching recipe, here Bug fix, and copies its steps into its task list.

    Bug fix
  4. 4

    Some skills

    At each step, the recipe calls the skills it needs. You can also call a skill yourself, without going through the door.

    /verify-<app>/why/architect

Type this

/poteto-mode the export button does nothing on Safari. repro first, then fix and verify.

Lesson 3

The skill used everywhere: /verify-<app>

Almost every recipe ends by proving the work on the real app. That needs a skill that can drive your app. You create it once.

The talk slide: the feature map gives context, the CLI gives control. Together, the agent can verify its own work. Talk, around 09:08 ↗
  1. 1

    Create

    /create-verification-skill reads your repo and generates a verification skill for your project, which holds a CLI to drive the app and a feature map (one file per feature).

    /create-verification-skill
  2. 2

    Use

    The resulting skill, for example /verify-terms-era, starts the app and clicks through it like a person.

    /verify-<app>
  3. 3

    Everywhere

    Bug fix, Feature, Refactoring, Prototype, Perf and Shipping call it to check their work.

    Bug fixFeatureRefactoringShipping
  4. 4

    Maintain

    When the app changes, /maintain-verification-skill brings the skill and feature map up to date.

    /maintain-verification-skill

Type this

/create-verification-skill

Lesson 4

A feature map is your app's user guide, written for the agent

To prove its work, the agent has to know where each feature of your app lives and how to reach it. That's the job of the feature map: a folder of Markdown files, one per feature, stored next to the verification skill.

What you get: a skill, with a CLI and a feature map

The instructionsSKILL.md

How to start the app, check it's healthy, drive it and store the proof.

+
The CLIscripts/control-notes

One command that starts the app, drives it and captures proof, the same way every time.

+
The feature mapfeatures/

Where each feature lives, how to reach it and how to prove it works.

.cursor/skills/verify-notes/
├─scripts/control-notes← the CLI
└─features/← the feature map

Where does control-notes come from?

In the example, the app is called Notes and it's made up. control-notes is the CLI of its verification skill: it's what the feature map files call at every step.

In her talk, the author explains that a verification skill has two parts. First, a CLI stored in the skill folder, so every agent starts the app and collects proof the same way, instead of writing a new script each session. Second, the feature map, which tells the agent where each feature lives.

/create-verification-skill doesn't say "CLI" word for word. It first reuses what your repo already has (Playwright, a PTY harness, curl), then requires every script shipped with the skill to be executable and documented, in the Helpers section. That script is your CLI. For generic CLIs, pstack points to control-cli and control-ui, shipped in another plugin, cursor-team-kit.

The skill's files

nameverify-notes
descriptionLaunch Notes, drive its browser UI and notes CLI the way a user does, and capture proof. Use before claiming a Notes change works, or to reproduce a Notes bug report.

Verify Notes

Drive the real Notes app through control-notes, the CLI that ships in this skill. Read features/README.md first, then the feature file that matches the change.

Launch

  • Run scripts/control-notes launch. It sets NOTES_DATA_DIR=/tmp/notes-verify-$RUN_ID, applies migrations, seeds Quarterly plan and Grocery list, and starts Notes at http://127.0.0.1:4173.
  • Ready means usable: the All notes heading is visible and both seeded notes are listed. A port that answers is not enough.
  • Put scripts/ on PATH so control-notes and the notes CLI resolve.
  • Teardown is control-notes stop. See Cleanup.

Doctor

  • Run control-notes doctor before driving, and again whenever something looks off.
  • It is read-only. It checks that the process is up, the port is owned by this run, the build revision matches the checkout, and the data directory is the disposable one.
  • If doctor fails, fix the instance or report it. Do not drive it.

Drive

  • Browser actions: control-notes browser <click|fill|press|snapshot|screenshot> with --role and --name.
  • Terminal actions: control-notes cli -- notes <command>.
  • Use ARIA roles, accessible names and prompt strings. Never coordinates or tab order.
  • The exact steps for each feature live in features/<feature>.md.

Evidence

  • Save artifacts under artifacts/<feature-id>/, named after the entry point used.
  • Exercise the real user path. No internal setters or test-only endpoints.
  • Capture the action and the resulting state, not only the final screen.
  • Check side effects too: reopen a saved note from a second view, read the CLI exit code.

Cleanup

  • Run control-notes stop. It stops only the instance this run launched, never by process name.
  • Remove NOTES_DATA_DIR. Keep artifacts/: the proof must survive the teardown.

Helpers

  • scripts/control-notes is executable. Run control-notes --help to list every subcommand.
README, create-note and search are pstack's example files, in full. pstack ships no example SKILL.md: this one is rebuilt from the instructions in create-verification-skill. ↗

Lesson 5

Flow 1: fixing a bug

The rule of this recipe: never fix what you haven't seen break. Follow the steps one by one.

  1. 1

    Reproduce

    The agent makes the bug happen itself in the real app. It doesn't ask you to do it.

    /verify-<app>
  2. 2

    Find the cause

    It rules out hypotheses one by one with evidence (logs, git history), instead of guessing.

    /why
  3. 3

    Delegate the fix

    If the fix spans several functions, it sketches the shape first. Then a sub-agent writes the code.

    /architect/poteto-agent
  4. 4

    Verify

    It replays the exact same path in the app. The bug must be gone.

    /verify-<app>
  5. 5

    Test first

    In git history, the failing test comes before the fix. Only when a simple test exists.

    /tdd
  6. 6

    Open the PR

    The closing recipe, the same for everyone. Lesson 8 covers it.

    Opening a PR

Type this

/poteto-mode <symptom>. repro first, then fix and verify.

Lesson 6

Flow 2: adding a feature

Here the main agent owns the design and delegates the coding. It acts like a tech lead.

  1. 1

    Understand the area

    It reads the code the feature will touch.

  2. 2

    Sketch the shape

    Types, functions, modules: it sketches two options and keeps the simpler one.

    /architect
  3. 3

    Delegate the code

    A sub-agent writes the code. If several shapes are valid, it runs arena to compare them, which costs more.

    /poteto-agent/arena
  4. 4

    Verify

    It tests the feature in the real app.

    /verify-<app>
  5. 5

    Challenge

    Only if the design is debatable: agents try to break the code.

    /interrogate
  6. 6

    Open the PR

    Same closing recipe as for a bug.

    Opening a PR

Type this

/poteto-mode add <behavior>. <current output> stays identical. verify both.

Lesson 7

Three more recipes, same logic

You now know the pattern: prepare, do, prove, open the PR. These three recipes follow it too, each with a twist.

Refactoring

Change the structure without changing behavior. The twist: first freeze the behavior with a test, and keep it green at every step.

Refactoring/architect

Perf issue

Fix slowness. The twist: one measurement before, one after, and a check that the measurement is reliable.

Perf issue/benchmark-checklist

Prototype

Pick between designs. The twist: the code is throwaway, the result is a decision. Then you move on to the Feature recipe.

PrototypeFeature

Lesson 8

A PR's life, from open to merge

Three recipes in a row. Remember one rule: whoever wrote the code never approves their own work.

  1. 1

    Opening a PR

    Small clean commits, cleanup of code and comments, a short description with fixed headings. The PR opens ready, never as a draft.

    /deslop/no-comments/technical-writing
  2. 2

    Babysit

    Watches the PR. Fixed order: conflicts first, then review comments, then CI. Never merges.

    Babysit
  3. 3

    Shipping

    A fresh agent tests each PR in the real app. Only approved PRs get merged, from the bottom of the stack up.

    verifier agent/verify-<app>

Type this

/poteto-mode open the pr. /poteto-mode babysit this pr. get it green. /poteto-mode land the stack.

Lesson 9

The skills that launch many agents

Some skills launch several agents at once. They give better results but cost a lot of tokens. Recipes call them only when it's worth it.

arena: compare

3 agents do the same thing, a judge compares them, the best one wins and borrows the others' good ideas.

/arena

swarm: split up

A big job cut into pieces, one agent per piece, then a single report.

/swarm

interrogate: attack

Agents try to break your change. A problem only counts if a command proves it.

/interrogate

The catch

architect looks light, but it calls arena when the design is big. So a simple feature can get expensive without warning.

/architect

Lesson 10

Letting the agent work while you sleep

The key to working without you: say upfront what “done” means, so the agent knows when to stop.

  1. 1

    Define “done”

    A checkable condition, for example “tests pass and the bug no longer reproduces”.

  2. 2

    Loop

    The agent wakes itself up, makes the smallest useful change, checks, keeps or reverts. A plateau is not a reason to stop.

    /loop
  3. 3

    Log everything

    One line per decision with its evidence. Another model reads the log and flags what needs your attention.

    /show-me-your-work
  4. 4

    Catch you up

    When you're back, a short summary of what changed and which decisions wait for you.

    /ketchup/recall
  5. 5

    XXL version

    Autopilot does the same for a whole queue of PRs, one agent per PR. It's the most expensive part of pstack.

    Autopilot

Type this

/poteto-mode im going to bed. <goal>. done means <checks>. keep a decision log. /loop until done.

Lesson 11

Cheat sheet: when you want X, type Y

Everything you've seen, summed up. Keep this screen handy.

I don't know what to use/poteto-mode <ta demande>
Understand code/how /why /teach
Fix a bug/poteto-mode <symptôme>. repro first
Add a feature/poteto-mode add <comportement>
Restructure/poteto-mode refactor <code>, zero behavior change
Pick a design/poteto-mode prototype options for <x>
Get my code challenged/interrogate
Ship/poteto-mode open the pr → babysit → land the stack
Leave overnight/poteto-mode im going to bed… /loop until done
Come back/ketchup /recall
Big job with no recipe/figure-it-out
A recurring mistake/correct /reflect