Claude Code port of poteto's pstack plugin (skill tree synced against upstream 4612556, pstack v0.14.2 — see What's deliberately not ported). The same skills/ tree also ships as a Codex plugin (see Running on Codex) and is discovered as-is by Prime Agent (see Prime Agent). Original by Lauren Tan; ships MIT. Imports seven skills from cursor-team-kit (also MIT): deslop, thermo-nuclear-code-quality-review, make-pr-easy-to-review, fix-ci, fix-merge-conflicts, get-pr-comments, what-did-i-get-done.
if you want to go fast, go deep first. pstack helps you write less, but higher quality code. rigorous agent workflows you can parallelize with confidence.
This is not a verbatim copy. Skill bodies have been edited so every Cursor-specific primitive resolves to its Claude Code equivalent — see Differences from upstream for the full list. The exhaustive per-skill audit lives in CHANGES.md; license attribution and the upstream pins live in NOTICE.md and tools/upstream.json.
This repo ships as a Claude Code marketplace containing one plugin (pstack).
/plugin marketplace add michael-denyer/pstack-claude
/plugin install pstack@pstack-claudeFrom 0.9.5 the plugin auto-fires, the same way superpowers does: a SessionStart hook (on startup, /clear, and post-compact) injects a ~0.3k-token mandate that routes any non-trivial engineering task into poteto-mode before the first response. The full skill still loads only on invoke. Dispatched subagents are told to ignore the mandate, and explicit user instructions take precedence. To opt out, delete hooks/hooks.json from the installed copy (~/.claude/plugins/cache/pstack-claude/pstack/<version>/hooks/hooks.json); a plugin update restores it.
The same plugin carries a .codex-plugin/plugin.json manifest and a root .agents/plugins/marketplace.json. The verified install is to link the plugin's skills into your cross-runtime skills directory:
git clone https://github.com/michael-denyer/pstack-claude
cd pstack-claude
for s in plugins/pstack/skills/*/; do ln -s "$PWD/$s" ~/.agents/skills/"$(basename "$s")"; doneCodex discovers the linked skills and namespaces them under the plugin, so they list as pstack:poteto-mode, pstack:tdd, and so on. The namespace comes from plugins/pstack/.codex-plugin/plugin.json and resolves through the flat symlinks, even though each linked skill sits one directory below that manifest (verified on a live session via this symlink install). To enable the multi-model and parallel-subagent skills (interrogate, arena, how, why, reflect, architect), turn on subagents in ~/.codex/config.toml:
[features]
multi_agent = trueFor slash-command shortcuts (/poteto-mode, /tdd, and the rest), link the command files into Codex's prompts directory:
mkdir -p ~/.codex/prompts
for c in plugins/pstack/.codex-plugin/prompts/*.md; do ln -s "$PWD/$c" ~/.codex/prompts/"$(basename "$c")"; doneEach command invokes its skill, so /tdd runs the tdd skill. Installing the full plugin through the Codex marketplace (the root .agents/plugins/marketplace.json) carries skills and commands together; the two symlink steps above are the verified local path. Teardown is rm ~/.agents/skills/<name> and rm ~/.codex/prompts/<name>.md.
Prime Agent discovers skills from ~/.agents/skills/ and from .agents/skills/ in the working tree up to the git root (docs). That is the same ~/.agents/skills/ directory the Codex install symlinks into, so the Codex skill-link step doubles as the Prime install — if you have already run it, Prime picks the skills up with no extra work:
git clone https://github.com/michael-denyer/pstack-claude
cd pstack-claude
for s in plugins/pstack/skills/*/; do ln -s "$PWD/$s" ~/.agents/skills/"$(basename "$s")"; donepstack's SKILL.md frontmatter is a subset of what Prime reads: it requires name (lowercase, matching the parent directory — every pstack skill already conforms) and description, honours disable-model-invocation, and ignores unknown keys such as pstack's user-invocable. curl -fsSL https://app.primeintellect.ai/prime-agent/install.sh | sh installs Prime itself; --no-skills disables discovery, and explicit --skill <path> still loads. Prime is model-agnostic, so running these skills against ChatGPT / OpenAI models is a Prime backend setting, not a plugin change — keep the multi-model panels in arena, interrogate, architect, and how genuinely diverse across whatever models you configure (see the OpenAI panel note under Running on Codex).
Unverified relative to Codex: the Codex path above is confirmed on a live session; the Prime path is derived from Prime's documented discovery paths and frontmatter schema, not yet run on a live Prime session. Prime has no plugin-hook runtime, so the Claude Code auto-fire hook does not apply — enter pstack:poteto-mode by name or add a standing routing instruction to your Prime config. Teardown is rm ~/.agents/skills/<name>.
.
├── .github/workflows/ # CI: invariants, bun tooling, shellcheck, OSV scan
├── .claude-plugin/marketplace.json # Claude Code marketplace manifest (repo root)
├── .agents/plugins/marketplace.json # Codex marketplace manifest (repo root)
├── plugins/pstack/ # the plugin itself
│ ├── .claude-plugin/plugin.json # Claude Code manifest
│ ├── .codex-plugin/plugin.json # Codex manifest (skills: ./skills/)
│ ├── skills/ # 52 skills (shared by all three runtimes)
│ │ ├── poteto-mode/references/codex-tools.md # Claude→Codex tool/model/skill map
│ │ └── poteto-mode/scripts/ # vendored bun/bash tooling: watch-pr, orch, worktree-audit.sh
│ ├── .codex-plugin/prompts/ # 31 slash command stubs, generated (Codex only; link into ~/.codex/prompts)
│ ├── hooks/ # SessionStart auto-fire: injects the poteto-mode mandate (Claude Code only)
│ └── agents/ # Claude subagents: poteto-agent, comment-sicko (Codex routes via codex-tools.md)
├── tests/skill-collision-repro.sh # layout and flag invariants (needs claude CLI)
├── tools/generate.mjs # stamps VERSION, model defaults, Codex prompts, and the command table
├── tools/sync.mjs # syncs a component to a new upstream SHA, applying substitutions.json
├── tools/upstream.json # upstream remote + per-component pinned SHAs
├── tools/substitutions.json # mechanical Cursor→Claude rewrites + the denylist of manual-only Cursor-isms
├── VERSION # canonical plugin version (single source; manifests are stamped)
├── LICENSE # pstack upstream MIT
├── LICENSE-cursor-team-kit # cursor-team-kit upstream MIT
├── LICENSE-superpowers # superpowers upstream MIT (hook runner)
├── CONTRIBUTING.md # sync boundary, local checks, release rules
├── NOTICE.md # attribution table
├── CHANGES.md # per-skill substitution audit
└── README.md # this file
Plugin-internal path references in the docs below (skills/<name>/, .codex-plugin/prompts/<name>.md) are relative to plugins/pstack/.
The Codex build shares one skills/ tree with the Claude Code build. Nothing is forked; the only generated files are the prompt stubs, which tools/generate.mjs stamps from each skill's menu-description frontmatter. One mapping file does the translation. That single-mapping-file spine is the one superpowers ships for Codex. pstack diverges in one respect. superpowers writes its skills in tool-neutral language, so no skill names a runtime tool. pstack keeps the upstream Claude-native prose and adds a one-line Platform note to each skill that names a Claude primitive, so the port stays in lockstep with upstream sync.
- Skill invocation. Codex loads
SKILL.mdnatively. There is noSkilltool. You invoke a skill by name (ask for it, or pickpstack:poteto-modefrom the list). - Commands. The 31
.codex-plugin/prompts/*.mdfiles are Codex-only, generated bytools/generate.mjsfrom each public skill'smenu-descriptionfrontmatter (edit the skill, rerun the generator; hand edits to a stub are overwritten). Codex reads theirdescriptionfrontmatter and the filename, ignores the keys it doesn't know, and each body invokes its skill. Link them into~/.codex/prompts/for/nameshortcuts (see Install on Codex). Claude Code ships nocommands/directory: it renders both commands and user-invocable skills in the slash menu, so a trampoline paired with its skill duplicated every/pstack:<name>row (see CHANGES 0.9.13). The skill alone serves the slash command there. - Tool, model, and built-in mapping. When a skill names a Claude tool (the
Agenttool,AskUserQuestion), aclaude-*model slug, or a Claude built-in skill (run,verify,loop,plugin-dev:skill-development), it resolves throughskills/poteto-mode/references/codex-tools.md.poteto-modeand every skill that names one of those carries a one-line Platform note pointing there. - Subagents. The
Agenttool maps to Codexspawn_agent/wait_agent/close_agent, enabled bymulti_agent = true. Parallel fan-out is multiplespawn_agentcalls in one turn. Without the flag,interrogate,arena,how,why,reflect, andarchitectdegrade to a single sequential pass. There is nopoteto-agentsubagent type on Codex; route ad-hoc subagents by dispatching aspawn_agenttold to readpoteto-modefirst. - Auto-fire. The
hooks/SessionStart injection is Claude Code-only; Codex has no plugin hook runtime. Enterpstack:poteto-modeby name, or add a standing instruction to~/.codex/AGENTS.mdif you want the same always-on routing. - Models. The
claude-*slugs in skills are Claude defaults, stamped into each skill's Models section fromplugins/pstack/models.json. On Codex substitute your configured Codex models, keeping multi-model panels genuinely diverse./setup-pstackwrites~/.codex/pstack-models.md(referenced from~/.codex/AGENTS.md) with Codex slugs instead of~/.claude/pstack-models.md.
Verified on a live Codex session installed via the symlinks: the user-facing skills are discovered and namespaced under pstack (pstack:poteto-mode, pstack:interrogate, and so on). The principle-* leaf skills carry user-invocable: false and no command, so Codex does not surface them in the picker, the same as Claude Code. They stay installed for poteto-mode to read by path. The deeper behaviors (mapping resolution mid-task, spawn_agent fan-out) follow the proven superpowers pattern and are worth confirming in your own session.
Two workflows run on every pull request and push to main.
ci.yml runs four jobs: the static plugin invariants (tests/skill-collision-repro.sh under SKIP_BEHAVIORAL=1, since the behavioral leg needs the claude CLI and API access), a generated-files check (bun tools/generate.mjs followed by git diff --exit-code, so a VERSION bump that skips regeneration or the CHANGES.md entry fails the build), the vendored bun tooling (bun install --frozen-lockfile, bun run typecheck, bun test orch watch-pr), and shellcheck over every shell script, selected by .sh extension or by shebang so the extensionless hook scripts are covered.
security.yml runs osv-scanner against the lockfiles and fails the build if no lockfile was found, because an empty scan reads exactly like a clean one. It also rejects any action reference not pinned to a full 40-character commit SHA. It runs weekly on top of the per-PR trigger, so a CVE published after a merge still surfaces. zizmor audits the workflows themselves for template injection, over-broad permissions, and credential persistence.
Dependabot keeps the pinned SHAs and the bun dependencies current, on a 7-day cooldown so a compromised release has time to be reported before a PR opens. Because Dependabot cannot regenerate bun.lock, dependabot-lockfile.yml does it for its PRs and pushes the result back to the branch.
Before a release, run the full tests/skill-collision-repro.sh locally (without SKIP_BEHAVIORAL) to exercise the behavioral leg CI cannot.
See CONTRIBUTING.md for the sync boundary, the local checks to run, and the release rules.
Nothing is declared in plugin.json. Install the one companion plugin yourself:
-
plugin-dev(from theclaude-plugins-officialmarketplace) — the rewiring routes skill-authoring tasks (inautomate-me,reflect,poteto-mode) to theplugin-dev:skill-developmentskill:/plugin marketplace add anthropics/claude-plugins-official /plugin install plugin-dev@claude-plugins-official
Until 0.9.2 this was a
dependenciesentry inplugin.json. The desktop app's--plugin-dirload mode can never resolve cross-marketplace dependencies and hard-disables the whole plugin, so 0.9.3 removed the declaration — full mechanism in the 0.9.3 entry of CHANGES.md. Withoutplugin-devinstalled, only the skill-authoring routes degrade; everything else works.
Not declared as deps, but referenced in skill bodies:
run,verify,loop— Claude Code CLI built-ins (ship with the binary, always available).ghCLI — system-level requirement of thebabysitskill and the Babysit / Shipping playbooks. Install viabrew install ghand authenticate withgh auth login.bun— runs the vendoredskills/poteto-mode/scripts/tooling (watch-pr,orch). Install viabrew install oven-sh/bun/bun. Only the playbooks that call those scripts need it;bootstrap.tsinstalls the script dependencies on first run.gt(Graphite CLI) — only for the stack playbooks (Shipping, Orchestrate, the autopilots). Everything else works without it.jqandrg(ripgrep) — only forscripts/worktree-audit.sh(the Worktree cleanup playbook). Without them the audit still runs but blanks its PR and LAST_CHAT columns, so it warns on stderr rather than returning a table that looks complete.
No third-party plugins. The harsher-critique escape hatch lives in the bundled thermo-nuclear-code-quality-review skill (imported from cursor-team-kit), not in an external plugin.
| command | use it when |
|---|---|
/poteto-mode |
default entry point for any non-trivial task |
/how |
walk through how a subsystem works |
/why |
investigate why something was built this way (parallel multi-MCP evidence) |
/architect |
settle types and module shape before writing code that crosses a function boundary |
/arena |
run N parallel attempts at the same task and pick the best parts |
/interrogate |
have three different models try to break a diff |
/automate-me |
draft your own personal -mode skill from recent transcripts |
/reflect |
capture a long task's lessons as a skill edit |
/tdd |
fix a bug by writing the failing test first, then the fix |
/typescript-best-practices |
ground type-system discipline in TypeScript syntax |
/teach |
explain a subsystem plainly by composing how + why |
/swarm |
fan out N parallel workers across slices or races, then return one aggregated report |
/technical-writing |
write docs, RFCs, readmes, PR descriptions, and commit messages to one layered standard |
/bro |
restate the last message in plain human language, no jargon |
/figure-it-out |
design a rigorous, auditable playbook for a task no bundled playbook fits |
/show-me-your-work |
log decisions to a reviewable tsv decision trail |
/blast-radius |
find what a change could break beyond the diff and prove safety by running code |
/recall |
catch up on recent working context from chat history, live state, and the shared record |
/setup-pstack |
configure pstack per-role model choices |
/unslop |
clean up writing by removing AI tells |
/no-comments |
strip comments before review, fix the accepted findings, encode claimed constraints |
/create-verification-skill |
generate a project-local verification skill and feature map |
/maintain-verification-skill |
re-sync a drifted verification skill and its feature map |
/deslop |
deslop a diff before commit |
/babysit |
monitor an open PR, fix CI/comments, keep it merge-ready |
/thermo-nuclear-code-quality-review |
extremely strict maintainability audit |
/make-pr-easy-to-review |
clean noisy history and improve PR description before review |
/fix-ci |
find failing PR checks, inspect logs, apply focused fixes |
/fix-merge-conflicts |
non-interactively resolve merge conflicts, validate, finalize |
/get-pr-comments |
fetch and summarize review comments from the active PR |
/what-did-i-get-done |
summarize authored commits over a user-chosen period |
poteto-agent ships unchanged. Spawn from a parent with subagent_type: "poteto-agent".
comment-sicko is the read-only comment reviewer the no-comments skill spawns. Upstream names it Comment Sicko; the port renames it to comment-sicko so the name is a valid subagent_type. Invoke it through /no-comments, not directly.
The port is editorial, not mechanical. Anywhere upstream pstack assumed Cursor-specific primitives, this port substitutes the Claude Code equivalent so refs actually resolve. Two prior ports (v1truv1us/ai-eng-system, Evan-Kim2028/agent-fleet) stop at namespacing — they vendor pstack under pstack/ and leave the Cursor refs intact. This port does the content surgery.
skills/babysit/— Claude Code analog of Cursor's closed-source/babysitbuilt-in. Wrapsgh pr view/gh pr checks/gh run view --log-failedplus theloopskill for pacing. Independently authored; workflow informed by Cursor's public/babysitbehavior — not a copy of Cursor's implementation. Since the v0.14.2 sync, poteto-mode routes PR-status requests to the portedplaybooks/babysit.mdinstead, and this skill is the standalone/babysitentry point.skills/deslop/— imported verbatim fromcursor-team-kit. Cleans AI tells out of diffs before commit.skills/thermo-nuclear-code-quality-review/— imported verbatim fromcursor-team-kit. Used as the harsher-critique escape hatch inarena,interrogate,architect, andhow(replaces the Cursor-original cross-vendor bridge).skills/make-pr-easy-to-review/— imported verbatim fromcursor-team-kit. Composes withopening-a-prandbabysit.skills/fix-ci/— imported verbatim fromcursor-team-kit. Narrower CI-fix primitive thatbabysitcan route to.skills/fix-merge-conflicts/— imported verbatim fromcursor-team-kit. Pairs withbabysitstep 5.skills/get-pr-comments/— imported verbatim fromcursor-team-kit. Primitive forbabysitstep 4 andreflect.skills/what-did-i-get-done/— imported verbatim fromcursor-team-kit. Commit summary over a chosen period.
| Upstream (Cursor) | This port (Claude Code) |
|---|---|
Task tool, subagent_type: generalPurpose, readonly: false/true |
Agent tool, subagent_type: "general-purpose", no readonly flag (subagent_type controls MCP access) |
AskQuestion tool |
AskUserQuestion tool |
Cursor's built-in /loop |
Claude Code's built-in loop skill |
Cursor's built-in /babysit |
babysit skill bundled in this plugin. From v0.14.0 upstream routes PR-status requests inside poteto-mode to playbooks/babysit.md instead; the port does the same, and /babysit stays the standalone entry point |
Cursor's built-in /create-skill |
plugin-dev:skill-development skill |
cursor-team-kit control-cli (CLI/TUI driver) |
Claude Code's run skill |
cursor-team-kit control-ui (browser/Electron driver) |
Claude Code's verify skill |
Transcripts at ~/.cursor/projects/*/ or agent-transcripts/ |
~/.claude/projects/<encoded-cwd>/*.jsonl (where <encoded-cwd> is the workspace cwd with / → -) |
Skill paths .cursor/skills/, ~/.cursor/plugins/ |
.claude/skills/, ~/.claude/plugins/ |
MCP discovery via Cursor's mcps/ directory |
Tool list at top of system prompt (mcp__<server>__<name> entries), or .mcp.json, or claude mcp list |
Cursor cloud agents (environment: "cloud", cloud_base_branch) |
Local background subagents (run_in_background: true), isolated by git worktree |
Cursor's /goal (standing objective across turns) |
The program objective written into the run's standing orders and restated in the todolist |
| The Cursor agent store (path in the system prompt) | ~/.claude/orchestrate/<project-slug>/, which survives the session restarts a multi-day program expects |
Model rule ~/.cursor/rules/pstack-models.mdc |
Override sheet ~/.claude/pstack-models.md, included from CLAUDE.md |
Model composer-2.5-fast (Cursor) |
claude-sonnet-4-6 |
Model claude-opus-4-X-thinking-xhigh (Cursor UI variant) |
claude-opus-5 (extended thinking configured separately) |
Models gpt-5.3-codex-high-fast, gpt-5.5-high-fast (via Cursor) |
claude-sonnet-4-6, claude-haiku-4-5 (Claude family) |
| Multi-model panels (arena, architect, interrogate, how-critics) | Default panel is claude-opus-5 + claude-fable-5 + claude-sonnet-5 — three distinct models across three tiers (replaces the cross-vendor diversity lost in translation). |
Cross-vendor model diversity. arena, interrogate, architect, and how all rely on stress-testing a design against several different model families. Claude Code is single-vendor, so the split collapses to three Claude variants by tier. Instead of bridging to an external CLI for that diversity, the rewiring routes the "harsher pass" to the bundled thermo-nuclear-code-quality-review skill — different style of pressure (strict maintainability rubric), not vendor diversity, but it lives in-plugin with no extra installs.
- The
poteto-agentsubagent ID and all references to it. run_in_background: trueon Agent calls (Claude Code supports it)./loop,/deslop,/babysitslash references in skill bodies — they all resolve in Claude Code now.- The principle/playbook structure and every word of the principles themselves.
automations/benny/(upstream0452e08, the only pstack change betweene46364band v0.10.0) — a dormant Slack issue-triage and reproduce-and-fix automation pack built on Cursor's event-triggered automations. It registers no slash skills even upstream, so excluding it changes nothing about the ported plugin's behavior. Porting it would mean translating Cursor's event-trigger runtime to Claude Code's polling-based scheduled agents plus Slack and tracker plumbing — speculative infrastructure with no local user. Revisit if an unattended issue-intake stream materialises; the likely first step is porting the triage skill onto a single Claude scheduled agent, not the whole pack.docs/guide/(upstream02c03a9,0b7ef5b,424829e) — the ten-chapter usage tutorial and its six screenshots (2.3 MB). It teaches pstack through Cursor's UI, sticky mode, and cloud agents, so a faithful port would be a rewrite rather than a sync, and none of it ships as skill content. Read it upstream at cursor/plugins/pstack/docs/guide; the concepts map through the substitution table above. Revisit if the port grows its own tutorial.- Sticky mode (upstream
#144) — Cursor-onlymode/icon/color/reminderfrontmatter with no Claude Code equivalent. The port's 0.9.5 SessionStart hook is the analog and already carries the non-trivial / trivial / opt-out logic. is_background: trueonpoteto-agent(upstream99559f2) — Cursor subagent frontmatter. Claude Code's agent frontmatter has no such key, andrun_in_background: trueon the spawningAgentcall already covers it.cursor-team-kitbeyond the seven imported skills — the rest either duplicate Claude Code built-ins (verify-this→ theverifyskill and built-in verification discipline;check-compiler-errors→ LSP diagnostics;control-cli/control-ui→run/verify, already the substitution targets) or overlap skills this port ships (loop-on-ci,review-and-ship,weekly-reviewvsbabysit,fix-ci,make-pr-easy-to-review,what-did-i-get-done).pr-review-canvasis Cursor-UI-specific.
Editing skill bodies forks this from upstream. Re-syncing to a future pstack release means re-applying the substitution table. The full re-port recipe is in CHANGES.md.
MIT. Three upstream LICENSE files are preserved:
- LICENSE — pstack (Lauren Tan)
- LICENSE-cursor-team-kit — Cursor (covers the
deslopandthermo-nuclear-code-quality-reviewskills) - LICENSE-superpowers — superpowers, Jesse Vincent (covers the vendored
hooks/run-hook.cmd)