setup-pstack
Skill0 starsChanged 37 days agoMITView on GitHub
Configure which models pstack uses per role and at what reasoning budget. Detects your available Claude models and external CLIs (codex, gemini) and writes an always-loaded Claude Code rule that overrides the skill defaults. Use for /setup-pstack, "configure pstack models", "pstack budget", or changing pstack's model choices.
25 other projects use a version of this, 12 of them edited.
Adopted by
Most recently taken up by
- paramcodes/skillsedited, first seen Nov 8, 2026
- creedants/pstack-t3their own version, first seen Nov 3, 2026
- dsebban/skillstheir own version, first seen Nov 1, 2026
- DarthJonathan/guac-skillstheir own version, first seen Nov 1, 2026
- adjohn/pstackedited, first seen Oct 29, 2026
- lengjingxu/pstack-for-codexedited, first seen Oct 25, 2026
Used with
Projects with it also use make-bot-ui, ketchup-video and 4 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
eryzerzSkillmake-bot-ui
Use when building a custom UI (page, dashboard, buttons) that should wake a Grok Bot over a webhook, when the user must provide a webhook sender key, or when exposing that UI on Tailscale.
Also in 15 projects that use this
tristanphvnSkillketchup-video
Catch the user up like /keel:ketchup, with a short silent video of slides for what happened and the waiting calls as text under it. Use for /keel:ketchup-video.
Also in 6 projects that use this
TheOnlyFusionCubeSkillstatechart
Draw what an app's user sees as a Mermaid statechart from a TLA+ model. States are gray if they work, red if still wrong, and green if fixed. Each bug TLC finds is a numbered path. Use for /statechart, \"show the PM the bug\", or to turn an agreed chart into a TLA+ skeleton.
Also in 8 projects that use this
TheOnlyFusionCubeSkillmaintain-formal-verification-skill
Bring a project's formal verification back in line with the code after the code changes: find the commits that touched verified code, update the model, harness, or properties to describe the code as it is now, rerun, and say whether each failure is drift in the verification or a bug in the code. Use for /maintain-formal-verification-skill, \"is the model still true to the code\", or after merges and refactors that touched verified code without rechecking it.
Also in 8 projects that use this
instructureSkillketchup
Rebuild context after /clear by analyzing uncommitted changes across Canvas LMS and all plugin repositories
Also in 9 projects that use this
drafaelSkillin-your-own-words
Restate the user's goals and the problem they are trying to solve to check understanding. Manual invocation only; use when the user explicitly invokes in-your-own-words or requests this understanding check. Do not solve the task or rewrite the assistant's last answer.
Also in 9 projects that use this
Other versions25 projects use a version of this.
Word for word · 0
None found.
Edited · 12
- backnotprop/pstack★ 3.8k17% same
- mariusflorescu/pstack-t3★ 1317% same
- adjohn/pstack★ 919% same
- dhanji4U/skills★ 224% same
- EvanBatten/pstack-for-cc★ 215% same
- JoshueOsuna/pstack★ 222% same
- lengjingxu/pstack-for-codex★ 123% same
- ngcto/oh-my-pstack★ 111% same
- ahmedbenaw/pstack★ 019% same
- ahmedgcompany-cyber/pstack-claude★ 019% same
2 more not listed
Wrote their own version · 13
- dsebban/skills★ 71same name
- TheOnlyFusionCube/potetos-for-everyone★ 21same name
- creedants/pstack-t3★ 18same name
- kkgogogo17/pi-pstack★ 9same name
- 0xrsydn/pstack-pi★ 6same name
- bnema/pi-pstack★ 2same name
- jmporchet/pstack-hermes★ 2same name
- iancleary/skills★ 1same name
- azzz9/pi-pstack★ 0same name
- DarthJonathan/guac-skills★ 0same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository49 other files it gives its agents.
- architectSkill
- arenaSkill
- automate-meSkill
- benchmark-checklistSkill
- blast-radiusSkill
- broSkill
- correctSkill
- create-verification-skillSkill
- figure-it-outSkill
- howSkill
- interrogateSkill
- maintain-verification-skillSkill
- no-commentsSkill
- poteto-helpSkill
- poteto-modeSkill
- principle-attack-the-premiseSkill
- principle-boundary-disciplineSkill
- principle-build-the-leverSkill
- principle-encode-lessons-in-structureSkill
- principle-exhaust-the-design-spaceSkill
- principle-experience-firstSkill
- principle-explain-the-numberSkill
- principle-fix-root-causesSkill
- principle-foundational-thinkingSkill
- principle-guard-the-context-windowSkill
- principle-laziness-protocolSkill
- principle-make-operations-idempotentSkill
- principle-migrate-callers-then-delete-legacy-apisSkill
- principle-minimize-reader-loadSkill
- principle-model-the-domainSkill
- principle-never-block-on-the-humanSkill
- principle-outcome-oriented-executionSkill
- principle-prove-it-worksSkill
- principle-redesign-from-first-principlesSkill
- principle-separate-before-serializing-shared-stateSkill
- principle-sequence-verifiable-unitsSkill
- principle-subtract-before-you-addSkill
- principle-test-behavior-not-implementationSkill
- principle-type-system-disciplineSkill
- recallSkill
- reflectSkill
- show-me-your-workSkill
- swarmSkill
- tddSkill
- teachSkill
- technical-writingSkill
- typescript-best-practicesSkill
- unslopSkill
- whySkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 25 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Never write a value you have not confirmed is available.
- Very specific: line 33
(a) Ask for a budget: Prefer AskUserQuestion over free text.
- Very specific: line 57
Every agent seat must have an available model and a valid explicit effort.
- Distinctive: line 89
Write the rule body as plain Markdown, with no code fence around it.
“Common” is measured: kept by at least 6 in 10 of the 25 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Setup pstack
Configure explicit model/effort pairs per role. Without delegation-kit, write ~/.claude/rules/pstack-models.md, a user-level rule loaded into every session and subagent. Read claude-code/runtime.md for what each value means.
Hand-maintained Claude Code port of upstream
setup-pstack. The upstream version writes~/.cursor/rules/pstack-models.mdcwith Cursor model slugs.
Steps
0. Respect delegation-kit routing
If the prompt section Delegation routing (live appears in context, delegation-kit is installed and owns model/effort routing. Defer to that live table per role. Do NOT write ~/.claude/rules/pstack-models.md. Tell the user that delegation-kit's live routing will be used, still offer /pstack:mode on (step 6), and stop model configuration here. Otherwise continue below.
1. Detect available models
- Claude models: the aliases
opus,sonnet, andhaikualways resolve.fableresolves only when the account has Fable enabled. Ask the user if unsure, or check/model. Full model IDs such asclaude-opus-5-5are valid when the user names them. TheavailableModelsallowlist in the user's settings, if set, limits what works, so read~/.claude/settings.jsonand drop anything it excludes. - External runners: load ToolSearch
select:mcp__delegation-kit__delegatewhen available; codex uses harnesscodex, gemini uses harnessagy. Otherwise runcommand -v codexandcommand -v geminiand offer only installed CLI seats. Follow the runtime's worktree andwait: truecontract; fallback wrapper agents pass explicitmodel: haiku,effort: low. - Normalize the legacy aliases
inherit,inherit-parent, andautoto explicitmodel: sonnet,effort: medium. Never omit either parameter.
Never write a value you have not confirmed is available.
2. Load current state
The default role-to-model mapping is the rule shape shown in step 5 below. If ~/.claude/rules/pstack-models.md already exists, read it and treat its budget: line and its role values as the current choices. Otherwise start from those defaults. A line whose role is not in step 5, such as how critics, is from a retired role. Drop it. If the user also has a Cursor rule at ~/.cursor/rules/pstack-models.mdc, mention it, but do not copy Cursor slugs across.
3. Budget, map, and confirm
(a) Ask for a budget. Prefer AskUserQuestion over free text. Offer these four options with these exact labels, and name the current budget when the rule records one.
unlimited — max effortlarge — xhigh effortmedium — high effortsmall — medium effort
(b) Apply it. The Agent tool accepts explicit model and effort (low|medium|high|xhigh|max). Record both for every seat. Pass them on every spawn, retry, resume, and nested delegation.
The budget maps to per-role effort below. Keep prior role choices that satisfy the fan-out policy. Explorers and low-risk helpers stay sonnet/low; haiku seats stay haiku/low. The main session handles explanation and final synthesis. Only a single non-parallel judge after the fan-out may use opus, always with explicit effort. Fan-outs of 3+ use sonnet/haiku seats, never opus, including configured and retry seats.
| Budget | single judge | code roles | panels (model/effort per seat) |
unlimited | opus/max | sonnet/max | sonnet/max, haiku/low, sonnet/max, plus detected external seats |
large | opus/xhigh | sonnet/xhigh | sonnet/xhigh, haiku/low, sonnet/xhigh |
medium | opus/high | sonnet/high | sonnet/high, haiku/low, sonnet/high |
small | sonnet/medium | sonnet/medium | sonnet/medium, haiku/low, sonnet/medium |
Code roles are the four code playbook lines, hardest tasks, why investigators, reflect tooling, and swarm workers. how explorer uses sonnet/low. judgment and prose, how explainer, and why synthesizer run in the main session. The shared reflect judgment, divergent, synthesizer line uses sonnet for parallel reviewers (default effort high) and the single-judge pair only for the later synthesizer. Panels are arena runners, architect runners, and interrogate reviewers. arena cross-judge pool lists choices for just one later judge, never a fan-out.
(c) Show the roles and confirm. Show every role with its model/effort pair (or main session), marking unavailable models as needing a choice. List retired lines dropped in step 2. Ask whether to accept or change specific roles, offering detected models and external seats. Prefer AskUserQuestion. Each panel entry adds one seat; arena cross-judge pool instead selects one later judge, preferably from a different family. codex and gemini are separate families. swarm workers sets each worker's pair unless a race assigns explicit pairs per arm.
4. Validate
Every agent seat must have an available model and a valid explicit effort. Normalize legacy inheritance aliases to sonnet/medium. Validate the fan-out limits above. If a chosen model is unavailable, stop and ask again.
5. Write the rule
Create ~/.claude/rules/ if needed. Write ~/.claude/rules/pstack-models.md with a budget: line and one line per role, using the same labels poteto-mode uses. Overwrite the whole file so re-runs stay idempotent. Do not add a paths frontmatter field, because a path-scoped rule loads only for matching files. Shape (the large defaults):
# pstack model configuration (Claude Code)
Per-role model/effort pairs for pstack skills. Pass both explicit parameters to `Agent`. Delete a line to use the runtime default.
Normalize `inherit`, `inherit-parent`, or `auto` to explicit `sonnet/medium`. `codex` or `gemini` uses the runtime's delegate routing (harness codex or agy), falling back to a CLI wrapper with explicit haiku/low. Every panel entry adds one seat. No opus in fan-outs of 3+; opus is only for one later judge. Main session roles never spawn another agent.
budget: large (xhigh effort)
feature, refactoring: sonnet/xhigh
bug-fix: sonnet/xhigh
perf-issue: sonnet/xhigh
hillclimb: sonnet/xhigh
judgment and prose: main session
hardest tasks: sonnet/xhigh
how explorer: sonnet/low
how explainer: main session
why investigators: sonnet/xhigh
why synthesizer: main session
reflect tooling: sonnet/xhigh
reflect judgment, divergent, synthesizer: reviewers sonnet/high; single synthesizer opus/xhigh
arena runners: sonnet/xhigh, haiku/low, sonnet/xhigh
arena cross-judge pool: opus/xhigh, sonnet/xhigh, haiku/low
swarm workers: sonnet/xhigh
architect runners: sonnet/xhigh, haiku/low, sonnet/xhigh
interrogate reviewers: sonnet/xhigh, haiku/low, sonnet/xhighWrite the rule body as plain Markdown, with no code fence around it.
6. Optional: keep poteto-mode on (Custom Mode equivalent)
Ask once whether the user wants /poteto-mode applied on every new task in this project. On yes, tell them to run /pstack:mode on. It writes .claude/pstack-mode, and the plugin's UserPromptSubmit hook then injects the poteto-mode reminder on every turn. /pstack:mode off removes it. For a global default, /pstack:mode on --global writes ~/.claude/pstack-mode instead.
7. Confirm
Tell the user the rule was written and that Claude Code loads it at session start, so it applies to new sessions. Re-running this skill updates it.
8. Offer a verification skill (optional)
Check whether the project has a way to drive the real app for proof (a verify-* skill, or an existing harness). If not, offer once: "want a project-local verification skill, so agents can drive the app the way a user does and prove changes work? I can generate one with /create-verification-skill." On yes, invoke /pstack:create-verification-skill. On no, move on without pushing.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

