Poteto help
Answer the user's question about pstack, hand them a prompt they can send, and link the file the answer came from. For a help question, don't start the work. The user asked how, and a pstack run spends real tokens, so let them send the prompt.
A message that asks for work, such as "use pstack to fix this bug", is not a help question. Read poteto-mode, do the work under it, and mention once that /poteto on keeps it on.
This file maps questions to the skills and reference pages that hold the answers. Those files own the details. Read the file you route to before you quote it, and trust it when it disagrees with this map. The links here point into the installed package, which the user may not be able to open, so give the user the file's path and installed location as well as the link.
Find out what they need
Infer the need from the message and the conversation. A named situation, such as "which skill reviews a PR?", goes straight to its section. If the need is still unclear, ask one multiple-choice question with these options, then answer only the section they pick:
- Get set up
- Start a task with
/skill:poteto-mode - Pick a skill for a situation
- Fix a run that went wrong
- Make pstack my own
Check the state that changes the answer, and mention it only when it does:
- No configured role in
~/.pi/agent/pstack.jsonmeans/setup-pstackhasn't run for this user, so every role uses its default model. - No
verify-*skill or other app harness in the project means agents have no scripted way to drive the app. Mention create-verification-skill when the question is about proving a change works. - No formal verification skill in the project means no property is checked past what tests reach. Mention
/create-formal-verification-skillwhen the question is about a race, an invariant, or another case tests rarely hit. When one exists and the code it covers changed after the commit it records as last in sync, mention/maintain-formal-verification-skillif the question touches that code.
When the model rule is missing and it matters, ask whether the user wants to pick a model for each role and a reasoning budget now. It matters when the user is new, the question is about setup or cost, or the answer depends on which models run. Ask at most once per chat. If the need is also unclear, ask both questions together. Offer two choices:
- Now: give them
/setup-pstackto type, and answer their question too. - Later: answer their question, and add one line saying every role keeps its default model until they run
/setup-pstack.
Get set up
- Install the package with Pi's package mechanism, from the project or the user's Pi configuration.
- Run
/setup-pstack. It asks for a reasoning budget, maps an available model and thinking level to each role, and writespstack.json. The configuration applies to new sessions. - Start a real task with
/skill:poteto-mode, a goal, and a check that can pass or fail.
Installing changes nothing until the user invokes a skill. Only /setup-pstack loads from the user's words. The Pi adapter and migration plan have the details. Offer to word their first prompt with them, per prompting.md.
If cost is the worry, say where the tokens go and how to spend fewer. pstack spends extra tokens on subagents and review panels. Rerun /setup-pstack and pick a smaller budget or cheaper models. A role set to inherit or unset runs on the chat's model, which saves tokens when the chat runs on a cheaper model. A shorter review panel runs fewer subagents, one for each seat. Save /skill:poteto-mode for work that needs rigor.
pstack began on Cursor. Other tools can read the skills, because they use the Agent Skills format. This Pi package replaces Cursor subagents with pi-subagents, some of which bind their models per role through /setup-pstack, Custom Modes with /poteto on and /poteto off, and Cursor transcripts with Pi sessions, so parts written against Cursor features may not behave the same way.
Start a task with `/skill:poteto-mode`
/skill:poteto-mode matches the task to a playbook, copies the playbook's steps into the todo list, and runs the other skills as the steps need them. A good prompt states the goal and how to tell it's done. It doesn't list skills, because a hand-written sequence tends to drop or reorder steps the playbook would keep. Read prompting.md before you help word one.
Enter on /skill:poteto-mode attaches the skill to one message. Explicit skill invocation does not change persistent mode.
/poteto onenables persistent mode for later turns until/poteto off./poteto status, or/potetowithout arguments, reports the current state./poteto-moderemains a deprecated alias throughout 0.3.x and 0.4.x and will be removed in 0.5.0. Every invocation warns first. Pi 1.4 has no public command API to hide it from completion, so it remains visible with a[已弃用]description.
Link the Pi skills docs when this comes up. Mid-chat, "new task" makes the mode match a fresh playbook. /skill:poteto-mode already uses poteto-agent for the subagents its playbook steps spawn. To get the same style from a subagent of your own, spawn it with agent: "pstack.poteto-agent".
Pick a skill
The default answer is /skill:poteto-mode, which runs most of the others when its steps need them. Name a skill directly when the user wants more or less of something than the playbook gives. Read the skill before you recommend it, and give one example prompt.
| The user wants to | Skill |
|---|---|