Use cases

One card per situation. Open it to see the recipes used, their steps and the skills called at each step. Click a skill to read what it does.

Start here

▶The /poteto-mode router very heavyYou don't know which skill to use. Type /poteto-mode and your request, it picks for you.
Type this
/poteto-mode <ta demande en langage normal>
/poteto-modepstack skill

The router. It restates your goal, picks the matching playbook, copies its steps into the todo list and applies reflexes in every flow.

  1. Restate your goal and the smallest change
  2. Pick the playbook
  3. Reflexes active in every flow
  4. Every subagent

Understand

▶Understand code heavyYou want to understand without changing anything. Go through the router, or call the right skill directly.
Type this
/poteto-mode investigate why <symptôme>. don't change any code yet.
/how <sous-système>   /why <décision>   /teach <sujet>
InvestigationPlaybookvia /poteto-mode · “explain X”

Answer a question about the code, read-only. Produces a cited explanation or a recommendation, never a code change.

  1. Trace the code in question
  2. if the question is “why”
  3. Overview, concepts, how it works, where things live, gotchas
  4. No PR. If code follows: Bug fix or Feature
/howpstack skill“how does it work”

“How does it work?” A read-only subagent explores the code and writes an architecture explanation.

  1. read-only, explores and explains
  2. Presents the result as is
/whypstack skill“why is it like this”

“Why is it like this?” Reads the commit and PR history, cites the authors, separates facts from guesses.

  1. Read the commits and PRs that introduced the code
  2. Cite the authors, flag guesses
/teachpstack skill“make me understand”

Make you really understand a topic. Runs how and why in parallel and builds a progressive explanation.

  1. in parallel
  2. in parallel
  3. Progressive explanation, diagram by diagram
/blast-radiuspstack skill“what could this change break”

What a change could break outside the diff. Finds the one fact safety depends on and proves it with a script.

  1. Read the diff and what it changes implicitly
  2. Find the fact safety depends on
  3. Look where grep can't see
  4. Prove that fact with a script
  5. if the change is big
/in-your-own-wordspstack skill“did you get my request”

Restates your goal and problem, to check the agent understood.

/sharpenpstack skill“improve my prompt”

Rewrites your prompt for a deeper task, not a bigger one.

/bropstack skill“say it simply”

Repeats the last answer in plain words, no jargon.

Build

▶I have a bug heavySomething behaves wrong. Reproduce first, fix next, prove on the same surface.
Type this
/poteto-mode <symptôme>. repro first, then fix and verify.
Bug fixPlaybookvia /poteto-mode

Fix a bug scientifically: reproduce, find the cause by elimination, fix only what the evidence justifies, prove it on the same surface.

  1. 1. Reproduce it yourself
  2. 2. Find the cause by elimination
    • Trace the subsystem
    • Logs and instrumentation, no guessing
  3. 3. Plan the fix
  4. 4. Verify on the same surface
  5. 5. Failing test before the fix
  6. 6.
▶I'm adding a feature heavyYou add a behavior. You keep the design, a subagent writes the code.
Type this
/poteto-mode add <comportement>. <sortie actuelle> stays byte-identical. verify both.
FeaturePlaybookvia /poteto-mode

Add a behavior. You keep the design, a subagent writes the code, you verify on the real app.

  1. 1. Trace the subsystem
  2. 2. the shape of the code
  3. 3. Parallelism checkpoint (4 items)
  4. 4. Delegate the code
  5. 5. Verify on the real surface
  6. 6. Small ordered commits
  7. 7. if the design is contested
  8. 8.
▶I'm restructuring code mediumThe structure changes, the behavior doesn't. If it's big or cross-cutting, it goes to figure-it-out.
Type this
/poteto-mode move <code> into one module, zero behavior change.
RefactoringPlaybookvia /poteto-mode

Change the structure without changing behavior. Pin the behavior with a test first, then move in small steps.

  1. 1. Pin the behavior with a test
  2. 2. Name the missing structure
  3. 3. Name the target shape
  4. 4. Delete before you add
  5. 5. Small steps, test always green
  6. 6. Prove nothing changed
  7. 7. Is it worth it?
  8. 8. deletion, then reshape
  9. if big or cross-cutting
▶I need to pick a design mediumSeveral options. Build throwaway code to compare. poteto-mode also goes there on its own when a test can settle it.
Type this
/poteto-mode prototype a few options for <feature>.
PrototypePlaybookvia /poteto-mode

Build throwaway code to settle a design choice. The result is a decision, not code to ship.

  1. 1. Name the decision to make
  2. 2. References and moodboard
    if the space is open
  3. 3. Throwaway code in a separate folder
  4. 4. Variants behind a switch
  5. 5. Observe each variant
  6. 6. Recommend
▶It's slow heavyA one-off slowness to fix, measured before and after.
Type this
/poteto-mode <opération> takes <temps> on <cas>. trace it, fix the measured cause.
Perf issuePlaybookvia /poteto-mode

Fix a one-off slowness. Every fix is tied to a before and after measurement.

  1. 1. Baseline trace
  2. 2. Hypotheses in mantra order
    don't do it, don't redo it, less, later, concurrently, cheaper
  3. 3. Fix
  4. 4. Compare before and after
  5. 5-6. with the number
  6. for continuous improvement
▶Improve a number in a loop heavyYou want to push a metric to a target, attempt by attempt.
Type this
/poteto-mode hillclimb <métrique> to <cible>. at least 10 iterations.
HillclimbPlaybookvia /poteto-mode

Improve a number in a loop: one change, one measurement, keep or revert. Can run several attempts in parallel.

  1. 1. Realistic case, metric, stop condition
  2. 2. Measurement tool, proven then frozen
  3. 3. decision.tsv, 1 row per attempt
  4. 4. Hypotheses grounded in the architecture
  5. 5. Loop: 1 change, 1 measurement, keep or revert
  6. 6. Push past the first plateau
  7. 8. winning commits stacked
▶Diagnose a process mediumA process misbehaves (CPU, memory) or you already have a capture file. Delivers a diagnosis, then hands back.
Type this
/poteto-mode the app spins at 100% CPU after <action>. find why, no fix yet.
Runtime forensicsPlaybookvia /poteto-mode

Diagnose a live process (spinning CPU, memory leak) by capturing a real profile. Delivers a diagnosis, not a fix.

  1. 1. Live capture
  2. 2. Reduce the artifact
  3. 3. Prove the mechanism with instrumentation
  4. 4. Map back to file and line
  5. Hands back to
Trace forensicsPlaybookvia /poteto-mode

Diagnose from an existing capture file, converted to sqlite to query it.

  1. 1. Load the capture file
  2. 2. Convert to sqlite
  3. 3. Query the hot path
  4. 4. Map back to source
  5. Hands back to
▶Migrate without changing a pixel heavyYou change how components are built, the look must stay identical.
Type this
/poteto-mode migrate <composants> to <cible>. pixel-identical.
Visual parityPlaybookvia /poteto-mode

Migrate components without changing a pixel. The proof is an image diff of zero.

  1. 1. Baseline screenshots before migrating
  2. 2. Never touch the baseline
  3. 3. One owner per component
  4. 4. Image diff down to zero
  5. 5. per component
▶Big project mediumEither you only want a PR plan, or you want to run it when no playbook fits.
Type this
/poteto-mode turn this design into a plan. small verifiable PRs.
/figure-it-out <gros chantier>
Multi-phase planPlaybookvia /poteto-mode · plan only

Write a plan of several PRs, each with its own proof. Delivers only the plan, execution waits for your go.

  1. 1. 1 or 2 files: no plan
  2. 2. settle open questions
  3. 3. Write the plan: PRs, dependencies, files
  4. 4. Unit, live, perf boxes per PR
  5. 5. Stop, wait for your go
/figure-it-outpstack skillexecute

When no playbook fits: it designs a custom playbook, runs it as a hypothesis loop and leaves an auditable log.

  1. read its Principles first
  2. A. Frame
  3. B. Design the phases
  4. C. Loop: hypothesis, change, measure
  5. D. log, often committed
  6. E. Verify on the real product

Ship

▶Challenge before shipping heavyYou want someone to look for flaws in your change before the PR.
Type this
/interrogate the whole branch, skeptically. don't change anything yet.
/interrogatepstack skillbreak the change

Adversarial agents try to break your change. Only problems proven by a command survive. Fixes nothing.

  1. restate the intent
  2. reuses its phases A and B
  3. N adversaries in parallel
  4. Rerun each command, keep what is proven
  5. Report: findings and dropped, no fixes
/blast-radiuspstack skillwhat breaks elsewhere

What a change could break outside the diff. Finds the one fact safety depends on and proves it with a script.

  1. Read the diff and what it changes implicitly
  2. Find the fact safety depends on
  3. Look where grep can't see
  4. Prove that fact with a script
  5. if the change is big
/no-commentspstack skillclean up comments

Runs Comment Sicko on the diff, applies its valid deletions and offers to encode real constraints as types or lint.

  1. removes useless comments
  2. Triage its deletions, reject overreach
  3. if a “do not remove” looks doubtful
  4. if a fix needs a new shape
▶Open, watch, merge heavyA PR's life: open it, push it to green, merge the verified stack.
Type this
/poteto-mode open the pr.
/poteto-mode babysit this pr. get it green.
/poteto-mode land the stack.
Opening a PRPlaybookvia /poteto-mode

Called at the end of almost every playbook. Small commits, cleanup, type(scope) title, short description with fixed headings.

  1. Clean worktree, small ordered commits
  2. before commit
  3. reflex before review
  4. title and description
  5. PR opened ready, never as draft
BabysitPlaybookvia /poteto-mode

Push a PR to green: conflicts, then review threads, then CI. Never rebases, never merges.

  1. Declare a mode: drive, threads-only or check
  2. watches the PR
  3. Order: conflicts, threads, CI
  4. bot comments
  5. Never rebases or merges
ShippingPlaybookvia /poteto-mode

Merge a stack of PRs. Each PR is verified by an agent that did not write the code, then merged bottom-up.

  1. 1. One verifier per PR
  2. 2. Keep the verified run from the bottom
  3. 3. Does the verdict still describe the code?
    git patch-id
  4. 4. Merge bottom-up, one at a time
  5. 5. Watch
  6. 6. Stop at the ceiling

Without you

▶A task overnight heavyYou leave. The agent keeps going until a checkable stop condition.
Type this
/poteto-mode im going to bed. <but>. done means <checks>. keep a decision log. /loop until done.
Autonomous runPlaybookvia /poteto-mode

Work without you until a checkable stop condition. Wakes itself up, logs every iteration.

  1. 1. Stop condition before starting
  2. 2. Wake-up
  3. 3. Iterate: change, verify, keep or revert
  4. 4. fixes side issues on the way
  5. 5. one row per iteration
  6. 6. Stop at the condition, not at a plateau
▶A PR queue on autopilot very heavySeveral independent changes, handled in parallel until merge (or until verified).
Type this
/poteto-mode full autopilot on this queue.
/poteto-mode autopilot these changes, but don't merge.
Autopilot-fullPlaybookvia /poteto-mode

Handle a queue of PRs in parallel, from build to merge. One agent per PR, a verification swarm, an hourly audit. The heaviest part of pstack.

  1. 1. Respect your gates
  2. 2. One owner per PR, in parallel
  3. 4. verification, once at the ready head
  4. 5. The owner merges what is verified
  5. 6. Lead layer
  6. 7. Stop on your order
Autopilot-stackPlaybookvia /poteto-mode

Like Autopilot-full, but stops at “verified and green”. You do the merging.

  1. everything but the merge
  2. Stops at verified and green
  3. Stacks a PR only if it depends on another
▶Come back, resume, pause heavyYou're back and want to know where things stand, resume a session, or pause everything.
Type this
/show-me-your-work catch me up on what you did last night.
/ketchup   /recall my work on <sujet>
/show-me-your-workpstack skill“sum up the night”

Keep a decision log (TSV) for long or unattended work. A model from another vendor reviews the log at the end.

  1. TSV log: what, why, evidence, result
  2. Audit the log against the transcript
  3. other vendor, Attention section
/ketchuppstack skill“what changed”

Catch you up on what changed since your last message, with each decision waiting on you.

  1. its voice: plain words
  2. What changed since your last message
  3. Each decision waiting on you, with a pick
/ketchup-videopstack skill

Like ketchup, as a short subtitled slide video.

  1. same content
  2. As a subtitled slide video
/recallpstack skill“where was I”

Rebuild where you were on a topic from your chats and everything else (git, tickets, Slack). Several subagents in parallel.

  1. Set the scope, 7 days by default
  2. N in parallel over your chats
  3. one per source: git, tickets, Slack, errors
  4. Check against git and gh
  5. final brief
Session pickupPlaybookvia /poteto-mode · resume a session

Resume a previous session's work without redoing what is done.

  1. 1. Read the previous session
  2. 2. Rebuild the state, redo nothing
  3. 3. Compare done and planned
  4. 4. route the rest
  5. 5. verify what was inherited
Pause safelyPlaybookvia /poteto-mode · pause

Stop cleanly: wip commit and resume note. Only when you ask.

  1. Stop at a clean boundary
  2. Cancel subagents
  3. Commit wip:
  4. Resume note

System

▶Set up verification very heavyOnce per project (e.g. terms-era). The resulting skill is then used by almost every playbook.
Type this
/create-verification-skill
/maintain-verification-skill
/create-verification-skillpstack skill

Generate the local skill that drives your app like a person, plus its feature map.

  1. 1. Question the repo, not you
  2. 2. Generate the local skill
  3. 3. Create the feature map, one file per feature
  4. 4. Prove the skill on the app
  5. 5. offer maintenance
Then /verify-<app> is used by
▶Prove an invariant mediumA race condition or a rule that must never break. Prove it formally.
Type this
/create-formal-verification-skill prove <propriété> holds in <module>.
/create-formal-verification-skillpstack skill

Generate a skill that formally proves an invariant where a bug is costly and tests see poorly.

  1. Target: costly bug, blind tests
  2. Pick the tool (TLA+, model checker)
  3. See each check fail on a broken version
  4. if TLA+
  5. after changes
▶Automated Slack bugs mediumCursor automations (not slash skills): each Slack report is triaged, then reproduced and fixed.
Type this
(installation via automations/benny/FOR_AGENTS.md)
setup-bennyBenny automation

Installs the Benny automations in the target repo.

  1. Copies the pack into the repo
  2. Enables pstack in the repo
▶Improve the system heavyCreate skills, make a mistake impossible, keep lessons, configure models.
Type this
/correct   /reflect   /automate-me   /setup-pstack
Authoring a skillPlaybookvia /poteto-mode · create a skill

Create or change a skill, validate it, open a PR.

  1. Validate frontmatter and links
/correctpstack skillrecurring mistake

Make a mistake agents keep repeating impossible: architecture, then types, then lint, then test, docs last.

  1. Find repeated mistakes, 2 times = a class
  2. Architecture, then types, then lint, then test, docs last
  3. Prove each check fails on a real mistake
  4. Table of rules and what enforces them
/reflectpstack skillend of session

Extract durable lessons from a session and propose edits to existing skills.

  1. Read the whole transcript
  2. Keep durable lessons
  3. Propose skill edits, wait for your OK
/automate-mepstack skillyour <you>-mode

Create your own “<you>-mode” skill from your past transcripts.

  1. Look for an existing <you>-mode
  2. 3 in parallel over your transcripts
/setup-pstackpstack skillmodels per role

Choose which model and budget to use per role. Writes a rule the other skills read.

  1. Detect available models
  2. Write the model and budget rule per role
  3. Read by arena, swarm, interrogate and playbooks
EvalPlaybookvia /poteto-mode · test a variant

Test whether a skill variant does better. Blind candidates on several models, a blind judge, transcript reading.

  1. 1. Frame, rubric for the judge only
  2. 2. Blind environments
  3. 3. An ordinary user prompt
  4. 4-5. phase B candidates, phase C judge
  5. 6. Read the candidates' transcripts
  6. 7. Read every output, synthesize
/poteto-helppstack skillneed help

Guides you through pstack and suggests the right skill or playbook for your question.

  1. Answers your questions about pstack
  2. Suggests the right skill, playbook or principle
Worktree cleanupPlaybookvia /poteto-mode · free disk space

Free disk space by removing unused worktrees and simulators, after checking no chat uses them.

  1. 1. Worktree audit by script
  2. 2. Cross-check with your pinned chats
  3. 3. Check usage
  4. 4. Pause on uncommitted work
  5. 5-6. Delete, then simulators and caches