setup-pstack
Skill11 starsChanged 24 days agoMITView on GitHub
Configure which models pstack uses per role and at what reasoning budget. Detects your available models and writes an always-applied rule that overrides the skill defaults. Use for /setup-pstack, "configure pstack models", "pstack budget", or changing pstack's model choices.
39 other projects use a version of this, 23 of them edited; 20 of 22 edited versions we compared changed its rules.
How people change it
20 of 22 edited versions changed its rules, and some changes recur.
Of the 22 edited versions we compared: 2 are an older text, 20 made changes of their own.
Not in older versions
- Every other value is the user's choice and stays, including an old slug in any other role and every
inherit-parentorautovalue. Tell the user which values you replaced.missing from 2 of 2
Rules people drop
- Write pstack's model settings, one model per role:dropped by 20 of 20
- Every other value is the user's choice and stays, including an old slug in any other role and every
inherit-parentorautovalue. Tell the user which values you replaced.dropped by 17 of 20 - Every real slug written must be in the detected set and at
xhighor below.inherit-parentandautoalways pass. If a chosen real slug is not available, stop and ask again.dropped by 10 of 20
Rules people add
- A rule we can't quote: its licence doesn't allow itadded by 10 of 20
- A rule we can't quote: its licence doesn't allow itadded by 10 of 20
- A rule we can't quote: its licence doesn't allow itadded by 7 of 20
- (a) Ask for a budget. Ask plainly in the thread. Offer these four options with these exact labels, and name the current budget when the file records one.added by 2 of 20
- Write
~/.claude/pstack-models.md, an always-loaded override file that sets pstack's model per role, imported into every session from~/.claude/CLAUDE.md. …added by 2 of 20
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- MondayNotAGoodDay/skillsedited, first seen Nov 29, 2026
- karanmrn/karanagentskillsword for word, first seen Nov 29, 2026
- The-Utopia-Studio/skillsedited, first seen Nov 29, 2026
- SurachatMa/claude-skillstheir own version, first seen Nov 29, 2026
- bajor/skillsedited, first seen Nov 29, 2026
- Jrecos/omp-pstackedited, first seen Nov 29, 2026
Used with
Projects with it also use pstack-tdd and control-cli.
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.
rockcookiesSkillpstack-tdd
Use only when the user explicitly asks for TDD, a failing test, or a regression test, OR when the bug has an obvious cheap local test target. Skip when the test path is unclear, expensive, integration-heavy, or not requested.
Also in 3 projects that use this
ElyzeSolutionsSkillcontrol-cli
Build or adapt a local harness to drive, inspect, and profile an interactive CLI or TUI without external services. Use for CLI UX checks, startup regressions, memory leaks, hangs, prompt flows, or terminal demos.
Also in 4 projects that use this
Other versions39 projects use a version of this.
Word for word · 2
- backnotprop/pstack★ 5.4k100% same
- karanmrn/karanagentskills★ 11100% same
Edited · 23
- dsebban/skills★ 8211% same
- TencentBlueKing/bk-lite★ 7767% same
- mariusflorescu/pstack-t3★ 1343% same
- adjohn/pstack★ 1249% same
- Jrecos/omp-pstack★ 813% same
- shiwenbin1617/pstack★ 467% same
- dhanji4U/skills★ 261% same
- EvanBatten/pstack-for-cc★ 220% same
- JoshueOsuna/pstack★ 259% same
- The-Utopia-Studio/skills★ 263% same
13 more not listed
Wrote their own version · 14
- TheOnlyFusionCube/potetos-for-everyone★ 21same name
- creedants/pstack-t3★ 19same name
- kkgogogo17/pi-pstack★ 9same name
- mdsmithaustin/pstack★ 9same name
- 0xrsydn/pstack-pi★ 7same name
- bnema/pi-pstack★ 2same name
- jmporchet/pstack-hermes★ 2same name
- iancleary/skills★ 1same name
- sammyjoyce/prime-pstack★ 1same name
- azzz9/pi-pstack★ 0same name
4 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 repository155 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- 14-day stale PR closeSkill
- AhoySkill
- api-and-interface-designSkill
- architectSkill
- arenaSkill
- ask-mattSkill
- audit-agent-worktreesSkill
- automate-meSkill
- axiSkill
- babysit-prSkill
- benchmark-checklistSkill
- blast-radiusSkill
- broSkill
- browser-testing-with-devtoolsSkill
- cache-architectureSkill
- chief-of-staffSkill
- chrome-devtools-axiSkill
- ci-cd-and-automationSkill
- claude-handoffSkill
- codebase-designSkill
- code-review-and-qualitySkill
- code-reviewSkill
- code-simplificationSkill
- compact-adviserSkill
- constraint-driven-developmentSkill
- context-engineeringSkill
- correctSkill
- councilSkill
- create-formal-verification-skillSkill
- create-verification-skillSkill
- debugging-and-error-recoverySkill
- delegate-to-modelSkill
- deprecation-and-migrationSkill
- diagnosing-bugsSkill
- documentation-and-adrsSkill
- domain-modelingSkill
- doubt-driven-developmentSkill
- figure-it-outSkill
- file-prSkill
- frontend-ui-engineeringSkill
- full-sendSkill
- full-stopSkill
- gh-axiSkill
- git-guardrails-claude-codeSkill
- git-workflow-and-versioningSkill
- gnhfSkill
- grillingSkill
- grill-meSkill
- grill-with-docsSkill
- handoffSkill
- hill-climbSkill
- howSkill
- idea-refineSkill
- implementSkill
- implement-specSkill
- improve-codebase-architectureSkill
- incremental-implementationSkill
- interrogateSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 35 edited versions we read keep these.
1
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 8
Write pstack's model settings, one model per role:
- Very specific: line 34
Every other value is the user's choice and stays, including an old slug in any other role and every inherit-parent or auto value.
- Very specific: line 50
Every real slug written must be in the detected set and at xhigh or below.
“Common” is measured: kept by at least 6 in 10 of the 35 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
Write pstack's model settings, one model per role:
- Cursor:
~/.cursor/rules/pstack-models.mdc, an always-applied rule. - Claude Code:
~/.claude/rules/pstack-models.md. Claude Code loads every file in~/.claude/rules/into each new session. - Every other harness (Codex, Pi, OpenCode, and others):
~/.agents/pstack-models.md. These harnesses don't load it on their own, so pstack skills read this file when they pick a model.
"The settings file" below means the file for your harness. In Claude Code, if that file is missing, read ~/.agents/pstack-models.md instead, where older versions of this skill wrote it.
Steps
1. Detect available models
Enumerate the model slugs you can pass to a subagent in this session (Cursor Task, Claude Code Agent, OpenCode task, Codex spawn_agent). That is the dependable source. If your harness also has a command that lists the user's models, prefer it for completeness (for example opencode models or pi --list-models). If you cannot detect any, ask the user to paste the slugs they have access to. Never write a real slug you have not confirmed is available. The aliases inherit-parent and auto are always valid even though they are not detected slugs.
2. Load current state
The default role-to-model mapping is the rule shape shown in step 5 below. If the settings file 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 hardest tasks, architect runners, reflect tooling, or why investigators, is from a retired role. Drop it.
Older defaults put another Gemini model, then gemini-4-neon-high, in the panel seat. So in any settings file, a gemini-4-neon-high entry, or a gemini-4-* entry other than gemini-4-neon-*, in a panel role (arena runners, arena cross-judge pool, interrogate reviewers) is an old default. Each one becomes gemini-4-neon-xhigh. A Gemini 4 Neon entry at any other level is the user's choice and stays. Tell the user which entries you replaced.
A settings file without the # defaults: 3 line comes from an older setup. That setup wrote a line for every role, so some of its values are old defaults, not choices. Before step 3, replace these values:
- An
arena cross-judge poollist of exactly oneclaude-fable-*entry, oneclaude-opus-*entry, and onegemini-*entry, in any order, takes the role's step 5 list. Fable and Opus are one vendor, so the Fable entry could judge only where the Opus entry also could. - A
# budget: unlimitedline becomeslarge, because no role runs abovexhigh. - If the settings file has no
# defaults: 2line either, an old slug is one that matchesgrok-*. An old slug infeature, refactoring,bug-fix,perf-issue,hillclimb, orswarm workerstakes the role's step 5 default. In a panel role (arena runners,arena cross-judge pool,interrogate reviewers), a list of exactly oneclaude-opus-*entry and one old slug, in either order, takes the role's step 5 list. In any other list, each old slug becomesclaude-opus-5-5-high-fast.
Every other value is the user's choice and stays, including an old slug in any other role and every inherit-parent or auto value. Tell the user which values you replaced.
3. Budget, map, and confirm
(a) Ask for a budget. Prefer your structured-question tool (AskQuestion in Cursor, AskUserQuestion in Claude Code, question in OpenCode) over free text. Offer these three options with these exact labels, and name the current budget when the rule records one. With no rule, say that large matches the skill defaults.
large — xhigh reasoningmedium — high reasoningsmall — medium reasoning
(b) Apply it. Build the working table from the skill defaults, and on a re-run keep any role you changed by family, list, or alias (inherit-parent, auto). Families are the ones Phase A of the arena skill defines, so Fable is its own family. Each role has a target effort, which is its default's effort moved by the budget. large keeps it, medium lowers it one step, and small lowers it two steps, on the ladder xhigh > high > medium > low. No role runs above xhigh, and a target at the bottom of the ladder stays there. Most defaults are at xhigh, and each budget label names where those land. Set the effort token of every real slug in the role, panel entries included, to the role's target. The effort token is the last token, or the one before a trailing fast. If the result is not a detected slug, use the same family's detected slug with the highest effort at or below the target, else mark the role as needing a choice. inherit-parent and auto do not change. So medium turns claude-opus-5-5-xhigh-fast into claude-opus-5-5-high-fast and claude-opus-5-5-high-fast into claude-opus-5-5-medium-fast, and small turns them into claude-opus-5-5-medium-fast and claude-opus-5-5-low-fast. Opus 5.5 always runs its -fast slug, so every Opus 5.5 value ends in -fast. Fable 5.2 and Gemini have no fast slug, so never write one. Gemini 4 Neon slugs run from low to xhigh with no max or fast slug, so its seat runs at gemini-4-neon-xhigh, its top slug. A Gemini 4 Neon entry in a panel role takes its own target, xhigh moved by the budget, so large keeps gemini-4-neon-xhigh, medium writes gemini-4-neon-high, and small writes gemini-4-neon-medium.
(c) Show the roles and confirm. Show every role with its model, marking any real slug not in the detected set as needing a choice. Also list each line step 2 dropped. Ask whether to accept as-is or change specific roles, offering the detected models at xhigh or below plus inherit-parent and auto (both mean: this role runs on the parent chat model, which is how Auto users stay on Auto) as the options. Prefer your structured-question tool over free text. For panel roles (arena runners, interrogate reviewers) the value is a list, and one subagent runs per entry, alias entries included, so the list length sets the count. arena cross-judge pool is also a list, but Arena runs one judge. It tries only values from a vendor other than the parent's, in list order, so order it by preference. Fable and the other Claude models are one vendor. An inherit-parent or auto value never judges. swarm workers is the default model for every worker unless a race or comparison assigns another model per arm.
4. Validate
Every real slug written must be in the detected set and at xhigh or below. inherit-parent and auto always pass. If a chosen real slug is not available, stop and ask again.
5. Write the rule
Write the settings file with the # defaults: 3 line, a # budget line with the chosen label and the effort that label names, and one line per role, using the same labels poteto-mode uses. In Cursor, include the frontmatter below with alwaysApply: true. In other harnesses, write the settings file without the frontmatter (start at the first # line). Overwrite the whole file so re-runs stay idempotent. Shape:
---
description: pstack per-role model choices (overrides skill defaults)
alwaysApply: true
---
# pstack model configuration. One line per role. Delete a line to fall back to the skill default.
# `inherit-parent` or `auto` as a value: the role runs on the parent chat model (omit the subagent `model` and spawn a general-purpose subagent). Alias entries in a panel list still count toward its fan-out.
# defaults: 3
# budget: large (xhigh)
feature, refactoring: claude-opus-5-5-xhigh-fast
bug-fix: claude-opus-5-5-xhigh-fast
perf-issue: claude-opus-5-5-xhigh-fast
hillclimb: claude-opus-5-5-xhigh-fast
judgment and prose: claude-opus-5-5-xhigh-fast
arena runners: claude-fable-5-2-high, claude-opus-5-5-high-fast, gemini-4-neon-xhigh
arena cross-judge pool: claude-opus-5-5-high-fast, gemini-4-neon-xhigh
swarm workers: claude-opus-5-5-high-fast
interrogate reviewers: claude-fable-5-2-high, claude-opus-5-5-high-fast, gemini-4-neon-xhigh6. Confirm
Tell the user which file was written. In Cursor and Claude Code, it applies to new sessions. In other harnesses, pstack skills read ~/.agents/pstack-models.md when they pick a model. Re-running this skill updates it.
7. 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 /create-verification-skill (resolves wherever pstack is installed: workspace, user, or plugin). On no, move on without pushing.
8. Offer a formal verification skill (optional)
Check whether the project already has a formal verification skill (a project skill that runs a model checker, a proof, or another verifier against the code). If not, offer once: "want a formal verification skill, so agents can prove a key property of your code holds in every case in scope, not only the cases tests reach? I can generate one with /create-formal-verification-skill." On yes, invoke /create-formal-verification-skill (resolves wherever pstack is installed: workspace, user, or plugin). 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.

