pstack

Lauren Tan's pstack is an opinionated Cursor skill stack that improves agent outcomes. This is a port for Claude Code, Codex, Pi, GitHub Copilot, Muse, and other agent harnesses. It tracks upstream and also carries named policy forks, each declared in tools/forks.json.
Tell poteto-mode your goal and it will invoke the correct workflow for the task. It keeps your code concise, simple and verified.
For concurrency bugs and invariants that tests cannot reach, /create-formal-verification-skill picks the riskiest property in your code, verifies it with a tool that fits, and leaves a project skill the next agent reruns. The separate agent-formal-verify plugin goes deeper on the method, with guided TLA+ model checking, Lean proofs, and Kani for Rust.
Built for Claude Code
This port translates upstream's Cursor skills for Claude Code before installation. Upstream's Claude Code install asks agents to translate Cursor names at runtime, using extra tokens and relying on them to apply the mapping correctly. This port also adds a SessionStart hook that routes tasks to poteto-mode.
Install
Claude Code
Run in Claude Code 2.1.292 or later:
/plugin marketplace add thoriqakbar0/pstack
/plugin install pstack@pstack-remix
Claude Code leaves auto-update off for third-party marketplaces, so pstack stays on the version you installed. To turn it on, run /plugin, open the Marketplaces tab, select pstack-remix, and choose Enable auto-update. To update once by hand, run claude plugin update pstack@pstack-remix.
Codex
Run in your terminal:
codex plugin marketplace add thoriqakbar0/pstack
codex plugin add pstack@pstack-remix
Pi
Run in your terminal:
pi install git:github.com/thoriqakbar0/pstack
The package loads the skills and the pstack Pi extension, which adds the subagent, question, and wake-up tools the skills use, plus /loop and the routing instruction. Invoke a skill with /skill:<name>.
GitHub Copilot
Run in your terminal:
copilot plugin marketplace add thoriqakbar0/pstack
copilot plugin install pstack@pstack-remix
This installs pstack for the Copilot CLI and the GitHub Copilot app, which share ~/.copilot. Start a new session afterwards. Copilot ships no default pstack models, so the first skill that needs one runs setup-pstack to pick from the models your account lists, and later sessions reuse that choice.
The Copilot build is tested on Copilot CLI 1.0.87 through 1.0.92. On those versions the routing hook's context reaches the session alongside other plugins' session-start context. If a later version keeps only one plugin's context, setup-pstack offers a standing instruction for ~/.copilot/copilot-instructions.md instead. On 1.0.92, once the CLI caches its computer-use experiment assignment, copilot -p sessions list no plugin skills and a skill call returns "Skill not found". Interactive sessions, the hooks, and the agents are unaffected.
Muse
Run in your terminal:
git clone https://github.com/thoriqakbar0/pstack
cd pstack
muse plugins install ./plugins/pstack
muse plugins approve pstack
The first command installs the native Muse plugin bundle. The second approves its SessionStart hook and agent definitions, which Muse runs only after approval. Start a new session afterwards. Invoke a skill with /<name> (for example /poteto-mode), which Muse lists for each user-invocable skill.
Other harnesses
OpenCode (the CLI and the desktop app), Gemini CLI, Prime Agent, and skills-only Codex installs read skills from ~/.agents/skills/. Run in your terminal:
git clone https://github.com/thoriqakbar0/pstack
cd pstack
mkdir -p ~/.agents/skills
for s in plugins/pstack/skills/*/; do
target=~/.agents/skills/"$(basename "$s")"
test -e "$target" || test -L "$target" || ln -s "$(pwd)/$s" "$target"
done