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.
/poteto-mode <ta demande en langage normal>
The router. It restates your goal, picks the matching playbook, copies its steps into the todo list and applies reflexes in every flow.
- Restate your goal and the smallest change
- Pick the playbook
- Reflexes active in every flow
- Every subagent
Understand
▶Understand code heavyYou want to understand without changing anything. Go through the router, or call the right skill directly.
/poteto-mode investigate why <symptôme>. don't change any code yet. /how <sous-système> /why <décision> /teach <sujet>
Answer a question about the code, read-only. Produces a cited explanation or a recommendation, never a code change.
- Trace the code in question
- if the question is “why”
- Overview, concepts, how it works, where things live, gotchas
- No PR. If code follows: Bug fix or Feature
“How does it work?” A read-only subagent explores the code and writes an architecture explanation.
- read-only, explores and explains
- Presents the result as is
“Why is it like this?” Reads the commit and PR history, cites the authors, separates facts from guesses.
- Read the commits and PRs that introduced the code
- Cite the authors, flag guesses
Make you really understand a topic. Runs how and why in parallel and builds a progressive explanation.
- in parallel
- in parallel
- Progressive explanation, diagram by diagram
What a change could break outside the diff. Finds the one fact safety depends on and proves it with a script.
- Read the diff and what it changes implicitly
- Find the fact safety depends on
- Look where grep can't see
- Prove that fact with a script
- if the change is big
Restates your goal and problem, to check the agent understood.
Rewrites your prompt for a deeper task, not a bigger one.
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.
/poteto-mode <symptôme>. repro first, then fix and verify.
Fix a bug scientifically: reproduce, find the cause by elimination, fix only what the evidence justifies, prove it on the same surface.
- 1. Reproduce it yourself
- 2. Find the cause by elimination
- Trace the subsystem
- Logs and instrumentation, no guessing
- 3. Plan the fix
- 4. Verify on the same surface
- 5. Failing test before the fix
- 6.
▶I'm adding a feature heavyYou add a behavior. You keep the design, a subagent writes the code.
/poteto-mode add <comportement>. <sortie actuelle> stays byte-identical. verify both.
Add a behavior. You keep the design, a subagent writes the code, you verify on the real app.
- 1. Trace the subsystem
- 2. the shape of the code
- 3. Parallelism checkpoint (4 items)
- 4. Delegate the code
- 5. Verify on the real surface
- 6. Small ordered commits
- 7. if the design is contested
- 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.
/poteto-mode move <code> into one module, zero behavior change.
Change the structure without changing behavior. Pin the behavior with a test first, then move in small steps.
- 1. Pin the behavior with a test
- 2. Name the missing structure
- 3. Name the target shape
- 4. Delete before you add
- 5. Small steps, test always green
- 6. Prove nothing changed
- 7. Is it worth it?
- 8. deletion, then reshape
- 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.
/poteto-mode prototype a few options for <feature>.
Build throwaway code to settle a design choice. The result is a decision, not code to ship.
- 1. Name the decision to make
- 2. References and moodboardif the space is open
- 3. Throwaway code in a separate folder
- 4. Variants behind a switch
- 5. Observe each variant
- 6. Recommend
▶It's slow heavyA one-off slowness to fix, measured before and after.
/poteto-mode <opération> takes <temps> on <cas>. trace it, fix the measured cause.
Fix a one-off slowness. Every fix is tied to a before and after measurement.
- 1. Baseline trace
- 2. Hypotheses in mantra orderdon't do it, don't redo it, less, later, concurrently, cheaper
- 3. Fix
- 4. Compare before and after
- 5-6. with the number
- for continuous improvement
▶Improve a number in a loop heavyYou want to push a metric to a target, attempt by attempt.
/poteto-mode hillclimb <métrique> to <cible>. at least 10 iterations.
Improve a number in a loop: one change, one measurement, keep or revert. Can run several attempts in parallel.
- 1. Realistic case, metric, stop condition
- 2. Measurement tool, proven then frozen
- 3. decision.tsv, 1 row per attempt
- 4. Hypotheses grounded in the architecture
- 5. Loop: 1 change, 1 measurement, keep or revert
- 6. Push past the first plateau
- 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.
/poteto-mode the app spins at 100% CPU after <action>. find why, no fix yet.
Diagnose a live process (spinning CPU, memory leak) by capturing a real profile. Delivers a diagnosis, not a fix.
- 1. Live capture
- 2. Reduce the artifact
- 3. Prove the mechanism with instrumentation
- 4. Map back to file and line
- Hands back to
Diagnose from an existing capture file, converted to sqlite to query it.
- 1. Load the capture file
- 2. Convert to sqlite
- 3. Query the hot path
- 4. Map back to source
- Hands back to
▶Migrate without changing a pixel heavyYou change how components are built, the look must stay identical.
/poteto-mode migrate <composants> to <cible>. pixel-identical.
Migrate components without changing a pixel. The proof is an image diff of zero.
- 1. Baseline screenshots before migrating
- 2. Never touch the baseline
- 3. One owner per component
- 4. Image diff down to zero
- 5. per component
▶Big project mediumEither you only want a PR plan, or you want to run it when no playbook fits.
/poteto-mode turn this design into a plan. small verifiable PRs. /figure-it-out <gros chantier>
Write a plan of several PRs, each with its own proof. Delivers only the plan, execution waits for your go.
- 1. 1 or 2 files: no plan
- 2. settle open questions
- 3. Write the plan: PRs, dependencies, files
- 4. Unit, live, perf boxes per PR
- 5. Stop, wait for your go
When no playbook fits: it designs a custom playbook, runs it as a hypothesis loop and leaves an auditable log.
- read its Principles first
- A. Frame
- B. Design the phases
- C. Loop: hypothesis, change, measure
- D. log, often committed
- E. Verify on the real product
Ship
▶Challenge before shipping heavyYou want someone to look for flaws in your change before the PR.
/interrogate the whole branch, skeptically. don't change anything yet.
Adversarial agents try to break your change. Only problems proven by a command survive. Fixes nothing.
- restate the intent
- reuses its phases A and B
- N adversaries in parallel
- Rerun each command, keep what is proven
- Report: findings and dropped, no fixes
What a change could break outside the diff. Finds the one fact safety depends on and proves it with a script.
- Read the diff and what it changes implicitly
- Find the fact safety depends on
- Look where grep can't see
- Prove that fact with a script
- if the change is big
Runs Comment Sicko on the diff, applies its valid deletions and offers to encode real constraints as types or lint.
- removes useless comments
- Triage its deletions, reject overreach
- if a “do not remove” looks doubtful
- if a fix needs a new shape
▶Open, watch, merge heavyA PR's life: open it, push it to green, merge the verified stack.
/poteto-mode open the pr. /poteto-mode babysit this pr. get it green. /poteto-mode land the stack.
Called at the end of almost every playbook. Small commits, cleanup, type(scope) title, short description with fixed headings.
- Clean worktree, small ordered commits
- before commit
- reflex before review
- title and description
- PR opened ready, never as draft
Push a PR to green: conflicts, then review threads, then CI. Never rebases, never merges.
- Declare a mode: drive, threads-only or check
- watches the PR
- Order: conflicts, threads, CI
- bot comments
- Never rebases or merges
Merge a stack of PRs. Each PR is verified by an agent that did not write the code, then merged bottom-up.
- 1. One verifier per PR
- 2. Keep the verified run from the bottom
- 3. Does the verdict still describe the code?git patch-id
- 4. Merge bottom-up, one at a time
- 5. Watch
- 6. Stop at the ceiling
Without you
▶A task overnight heavyYou leave. The agent keeps going until a checkable stop condition.
/poteto-mode im going to bed. <but>. done means <checks>. keep a decision log. /loop until done.
Work without you until a checkable stop condition. Wakes itself up, logs every iteration.
- 1. Stop condition before starting
- 2. Wake-up
- 3. Iterate: change, verify, keep or revert
- 4. fixes side issues on the way
- 5. one row per iteration
- 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).
/poteto-mode full autopilot on this queue. /poteto-mode autopilot these changes, but don't merge.
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. Respect your gates
- 2. One owner per PR, in parallel
- 4. verification, once at the ready head
- 5. The owner merges what is verified
- 6. Lead layer
- 7. Stop on your order
Like Autopilot-full, but stops at “verified and green”. You do the merging.
- everything but the merge
- Stops at verified and green
- 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.
/show-me-your-work catch me up on what you did last night. /ketchup /recall my work on <sujet>
Keep a decision log (TSV) for long or unattended work. A model from another vendor reviews the log at the end.
- TSV log: what, why, evidence, result
- Audit the log against the transcript
- other vendor, Attention section
Catch you up on what changed since your last message, with each decision waiting on you.
- its voice: plain words
- What changed since your last message
- Each decision waiting on you, with a pick
Like ketchup, as a short subtitled slide video.
- same content
- As a subtitled slide video
Rebuild where you were on a topic from your chats and everything else (git, tickets, Slack). Several subagents in parallel.
- Set the scope, 7 days by default
- N in parallel over your chats
- one per source: git, tickets, Slack, errors
- Check against git and gh
- final brief
Resume a previous session's work without redoing what is done.
- 1. Read the previous session
- 2. Rebuild the state, redo nothing
- 3. Compare done and planned
- 4. route the rest
- 5. verify what was inherited
Stop cleanly: wip commit and resume note. Only when you ask.
- Stop at a clean boundary
- Cancel subagents
- Commit wip:
- Resume note
System
▶Set up verification very heavyOnce per project (e.g. terms-era). The resulting skill is then used by almost every playbook.
/create-verification-skill /maintain-verification-skill
Generate the local skill that drives your app like a person, plus its feature map.
- 1. Question the repo, not you
- 2. Generate the local skill
- 3. Create the feature map, one file per feature
- 4. Prove the skill on the app
- 5. offer maintenance
▶Prove an invariant mediumA race condition or a rule that must never break. Prove it formally.
/create-formal-verification-skill prove <propriété> holds in <module>.
Generate a skill that formally proves an invariant where a bug is costly and tests see poorly.
- Target: costly bug, blind tests
- Pick the tool (TLA+, model checker)
- See each check fail on a broken version
- if TLA+
- after changes
▶Automated Slack bugs mediumCursor automations (not slash skills): each Slack report is triaged, then reproduced and fixed.
(installation via automations/benny/FOR_AGENTS.md)
Installs the Benny automations in the target repo.
- Copies the pack into the repo
- Enables pstack in the repo
▶Improve the system heavyCreate skills, make a mistake impossible, keep lessons, configure models.
/correct /reflect /automate-me /setup-pstack
Create or change a skill, validate it, open a PR.
- Validate frontmatter and links
Make a mistake agents keep repeating impossible: architecture, then types, then lint, then test, docs last.
- Find repeated mistakes, 2 times = a class
- Architecture, then types, then lint, then test, docs last
- Prove each check fails on a real mistake
- Table of rules and what enforces them
Extract durable lessons from a session and propose edits to existing skills.
- Read the whole transcript
- Keep durable lessons
- Propose skill edits, wait for your OK
Create your own “<you>-mode” skill from your past transcripts.
- Look for an existing <you>-mode
- 3 in parallel over your transcripts
Choose which model and budget to use per role. Writes a rule the other skills read.
- Detect available models
- Write the model and budget rule per role
- Read by arena, swarm, interrogate and playbooks
Test whether a skill variant does better. Blind candidates on several models, a blind judge, transcript reading.
- 1. Frame, rubric for the judge only
- 2. Blind environments
- 3. An ordinary user prompt
- 4-5. phase B candidates, phase C judge
- 6. Read the candidates' transcripts
- 7. Read every output, synthesize
Guides you through pstack and suggests the right skill or playbook for your question.
- Answers your questions about pstack
- Suggests the right skill, playbook or principle
Free disk space by removing unused worktrees and simulators, after checking no chat uses them.
- 1. Worktree audit by script
- 2. Cross-check with your pinned chats
- 3. Check usage
- 4. Pause on uncommitted work
- 5-6. Delete, then simulators and caches