agentleFS
EvanBattenEvanBatten/pstack-for-cc/skills/setup-pstack/SKILL.md

setup-pstack

Skill2 starsChanged 46 days agoMITView on GitHub

Configure which models pstack uses per role and at what budget. Writes the model configuration the pstack session hook loads into every session, overriding 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

Used with

Projects with it also use poteto-help, principle-explain-the-number and 8 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.
  • ianclearySkill

    poteto-help

    Guides users through pstack setup, /poteto-mode, and picking the skill, playbook, or principle for a task. Type /poteto-help with a question.

    Also in 13 projects that use this

  • ianclearySkill

    principle-explain-the-number

    Apply before you trust, report, or act on a number you measured: a speedup, a regression, a throughput, a latency, or an eval result. Find what limits it, and rule out that it measured something other than the work you think.

    Also in 16 projects that use this

  • jaydubya818Skill

    principle-attack-the-premise

    Apply when repeated fixes fail and a shared assumption may be wrong.

    Also in 19 projects that use this

  • jaydubya818Skill

    principle-test-behavior-not-implementation

    Apply when tests mirror internals instead of asserting observable outcomes.

    Also in 19 projects that use this

  • tristanphvnSkill

    ketchup-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

  • TheOnlyFusionCubeSkill

    statechart

    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

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 2 are distinctive, and 3 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.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Write ~/.claude/pstack-models.md.

    line 8
  2. Very specific:

    If ~/.claude/pstack-models.md exists, read it and treat its # budget line and its role values as the current choices.

    line 20
  3. Distinctive:

    (a) Ask for a budget: Prefer AskUserQuestion over free text.

    line 24
  4. Distinctive:

    No runner panel or reviewer list drops below two entries.

    line 39
  5. Very specific:

    Write ~/.claude/pstack-models.md in the same shape as ~/.claude/skills/poteto-mode/pstack-models.md: the comment header, a # budget: line …

    line 51

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Setup pstack

Write ~/.claude/pstack-models.md. The pstack SessionStart hook loads it into every session and subagent, and it overrides the skill defaults. When the file is missing the hook falls back to ~/.claude/skills/poteto-mode/pstack-models.md. PSTACK_MODELS_FILE overrides both for one run.

This skill is rewritten for Claude Code. Upstream detects the editor's model slugs and lowers the reasoning-effort token per budget. The Agent tool takes a model alias and has no per-subagent effort, so here a budget picks the tier per role and the length of each panel.

Steps

1. Detect available models

Any alias the Agent tool's schema lists is a valid Agent model value, and so are inherit-parent and auto. The session context lists pstack's tiers strongest first, from MODEL_TIERS in ~/.claude/skills/poteto-mode/hooks/kinds.mjs. Recommend the top tier for judgment roles.

2. Load current state

If ~/.claude/pstack-models.md exists, read it and treat its # budget line and its role values as the current choices. Otherwise start from ~/.claude/skills/poteto-mode/pstack-models.md.

3. Budget, map, and confirm

(a) Ask for a budget. Prefer AskUserQuestion over free text. Offer these four options, and name the current budget when the file records one.

BudgetJudgment rolesCode rolesRunner panelsCross-judge poolInterrogate reviewers
unlimitedtier 1tier 2tier 1, tier 1, tier 2tier 1tier 1, inherit-parent
largeinherit-parenttier 2inherit-parent, tier 1, tier 2inherit-parentinherit-parent, tier 1
mediuminherit-parenttier 2inherit-parent, tier 2inherit-parentinherit-parent, inherit-parent
smallinherit-parenttier 3inherit-parent, tier 2inherit-parentinherit-parent, inherit-parent

tier 1 is the first alias of the tier list in the session context, tier 2 the second and tier 3 the third. Write the alias, never the label.

Judgment roles are judgment and prose, hardest tasks, how explainer, why synthesizer, reflect tooling and the reflect judgment line. Code roles are feature, refactoring, bug-fix, perf-issue, hillclimb, how explorer, why investigators, swarm workers. Runner panels are arena runners and architect runners.

A judge never runs below the parent model, so every judgment role, the cross-judge pool and the interrogate reviewers take only inherit-parent, auto or the top tier. Budget lowers the tier of the roles that produce work, never a judge. Runner panels may include tier 2, because runners produce candidates and a judge grades them.

No runner panel or reviewer list drops below two entries. The principle-exhaust-the-design-space principle needs two structurally distinct candidates. The cross-judge pool is exempt, because Arena spawns one judge from it.

(b) Apply it. Build the working table from the budget row. On a re-run keep any role the user changed by hand.

(c) Show the roles and confirm. Show every role with its model. Ask whether to accept as-is or change specific roles. For panel roles 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 selects one value from it.

4. Validate

Every alias written must be in the Agent tool's schema. inherit-parent and auto always pass. Every entry of a judgment role (the JUDGMENT_ROLES set in ~/.claude/skills/poteto-mode/hooks/catalog.mjs) must be inherit-parent, auto or the top tier. A role the user set below that goes back to the budget row, and you tell them why.

5. Write the file

Write ~/.claude/pstack-models.md in the same shape as ~/.claude/skills/poteto-mode/pstack-models.md: the comment header, a # budget: line with the chosen label, and one line per role using the same labels poteto-mode uses. Overwrite the whole file so re-runs stay idempotent.

6. Confirm

Tell the user the file was written and that it applies to new sessions. 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, open the create-verification-skill skill and follow it. On no, move on without pushing.

Standing skips

To waive a writing convention in every session, the user writes skip <name>: <reason> lines to ~/.claude/pstack-skips.md, as in skip technical-writing: commit messages follow the team's guide. A standing skip may name only technical-writing, unslop, docs-prose, pr-prose or pr-draft. A skill name counts as that skill read for every ask, and a rule name drops that ask. The hook ignores a line that names anything else, such as ledger, design, deslop or a playbook, and counts only the name of a line it honors, never its reason.

A .claude/pstack-skips.md in the directory a session starts in counts for that project only after the user trusts it. Trust is a line trust <project root> <sha256 of the file> in ~/.claude/pstack-skips.md. A changed file needs a new trust line. At the start of each session the hook shows the user every active, ignored and untrusted standing skip, and for an untrusted file it prints the exact trust line to add.

The hook refuses an agent's write to either file. When the user asks to opt out of a convention for good, give them the exact line to add.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.