setup-pstack
Setup pstack
On Codex, read the platform mapping, including its per-skill notes, before following this skill.
Write ~/.claude/pstack-models.md, a per-role model override sheet you include from your global CLAUDE.md. Each pstack skill names a default model inline; the override sheet is the layer that adapts those defaults to the models you actually have access to.
Claude Code has no auto-applied "rules" mechanism like Cursor's .mdc. Inclusion is explicit: the user adds a line to ~/.claude/CLAUDE.md (or their project CLAUDE.md) such as:
@~/.claude/pstack-models.md
so the file is loaded as context for every session.
Steps
1. Detect available models
Enumerate the model slugs you can pass to an Agent subagent in this session — that is the dependable source. The currently available Claude models and the default panel are listed in Models below; the quad is chosen for cross-family, cross-tier diversity, and the single-role default stays out of the panels because it already covers the single-model roles. Ask the user to confirm or paste any additional slugs they want available. 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; both mean the role runs on the parent session's model, which the Agent call expresses by omitting model.