pstack for Claude
poteto's pstack, ported from Cursor to Claude Code and the Claude app.
pstack turns an agent into a careful engineering team. /poteto-mode reads your task, picks one of 23 playbooks (bug fix, perf, feature, refactor, babysit a PR, overnight run, and more), and works through it with 24 engineering principles, reproduce-first debugging, verified results, and multi-model review. The goal is less code, of higher quality.
This repo is maintained by Claude agents. Every day, an agent checks Cursor's repo for pstack changes. When it finds some, it rebuilds the port, verifies it, and publishes a new version.
Install
Claude Code
Inside Claude Code:
/plugin marketplace add martin-cousseau/pstack-claude
/plugin install pstack@pstack-claude
Or from your shell:
claude plugin marketplace add martin-cousseau/pstack-claude
claude plugin install pstack@pstack-claude
On Claude Code 2.1.275 or later, one command does both:
/plugin install pstack --marketplace martin-cousseau/pstack-claude
Claude app (desktop and web)
Open Customize → Plugins → Add → Add marketplace and enter martin-cousseau/pstack-claude, then install pstack.
You can also download pstack.plugin from the latest release, then use Customize → Plugins → Add → Upload plugin.
For a whole team
Commit this to your project's .claude/settings.json. Everyone who opens the project in Claude Code gets pstack.
{
"extraKnownMarketplaces": {
"pstack-claude": {
"source": {
"source": "git",
"url": "https://github.com/martin-cousseau/pstack-claude.git",
"ref": "main"
}
}
},
"enabledPlugins": {
"pstack@pstack-claude": true
}
}
Optional: /pstack and /poteto-mode without the prefix
Claude namespaces plugin commands, so they are /pstack:poteto-mode, /pstack:how, and so on. Two small shortcut skills give you the bare names:
git clone --depth 1 https://github.com/martin-cousseau/pstack-claude /tmp/pstack-claude
mkdir -p ~/.claude/skills && cp -r /tmp/pstack-claude/shortcuts/* ~/.claude/skills/
Staying up to date
Claude Code doesn't auto-update third-party marketplaces by default. To update:
/plugin marketplace update pstack-claude
Or turn on auto-update for pstack-claude in /plugin under Marketplaces.
First run
Pick which Claude model handles each role:
/pstack:setup-pstack
It writes pstack-models.md to ~/.claude/rules/ (just you) or .claude/rules/ (committed with the project), and Claude loads it in every session. Code work defaults to sonnet and judgment to opus. Review panels default to opus, fable, and sonnet. If your plan doesn't include fable, setup detects that and substitutes another model.
Use it
| You type | What happens |
|---|
/pstack:poteto-mode the scroll drifts every 750ms when idle. repro first, then fix and verify. | Bug fix playbook: reproduce, root-cause, fix, prove it. |
/pstack:poteto-mode i'm going to bed. land the stack even if ci flakes. | Autonomous run: drives to a checkable finish line. |
/pstack:how do we cancel runs? | A subsystem walkthrough from parallel explorers. |
/pstack:why is this feature flag not on yet? | History from git, PRs, tickets, and docs. |
/pstack:interrogate review this pr. | Several models try to break the diff. |
/pstack:pstack <anything> | Routes for you: a task goes to poteto-mode, /name goes to that skill, and a question goes to poteto-help. |
/pstack:poteto-help | Which skill or playbook fits your situation. |
Once loaded, /poteto-mode stays in effect for the rest of the chat. To have it in every chat, add a rule file such as ~/.claude/rules/poteto-mode.md that says: "For non-trivial engineering work, load the pstack:poteto-mode skill first."
The plugin README has poteto's full guide: every skill, playbook, and principle, plus the port notes. The step-by-step guide walks through a first real task.
What's different from Cursor
The workflows, playbooks, and principles are unchanged. What changed is the plumbing.
- Models. Cursor's Grok, GPT, and Opus become Claude models.
- Subagents. These run through Claude's Agent tool. Cursor's cloud agents become remote or worktree-isolated agents.
- Settings. The model settings live in a Claude rules file.
- Bundled skills.
deslop, control-cli, and control-ui come from Cursor's cursor-team-kit plugin, so they're bundled here.
- Not ported.
make-bot-ui (Cursor Grok Bot webhooks) ships marked as Cursor-only. The benny automation pack, which runs on Cursor Automations, ships for reference only.
The full mapping is in MAINTAINING.md.