# Setup pstack

> Setup pstack is an open-source agent skill for developer tools. Configures which AI models each pstack role uses and toggles its session hook. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/michael-denyer/pstack-claude/tree/main/plugins/pstack/skills/setup-pstack
- **Repository:** https://github.com/michael-denyer/pstack-claude
- **GitHub stars:** 5,057
- **License:** MIT
- **Skill name:** setup-pstack
- **Collection:** https://github.com/michael-denyer/pstack-claude
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill writes a per-role model override sheet for the pstack skill set. Each pstack skill names a default model, and the sheet lets the user swap those defaults for the models they have access to. On Claude Code the sheet can be kept in the user config folder for every project or committed as a project-level file, and it is loaded into context through an import line in CLAUDE.md.

The workflow detects the available model names, shows the current mapping with any unavailable choices flagged, and asks whether to accept or change individual roles. It also sets a default reasoning effort, optional per-role effort levels, and an on or off switch for the SessionStart hook that injects the pstack routing mandate. A PSTACK_SESSION_HOOK=off environment variable can override the sheet for the hook. Re-running the skill rewrites the sheet, and the skill can offer to chain into two companion skills that generate project verification or formal verification skills.

The skill is written for Claude Code and includes per-runtime references for Codex, GitHub Copilot, Muse, Antigravity and other runtimes. It expects the user to answer questions interactively and to have access to the chosen models.

## When your agent uses it

> Configure which models pstack uses per role. Detects available models and writes the current runtime's override sheet. Use for /setup-pstack, "configure pstack models", changing pstack's model choices, or turning the SessionStart hook on or off.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs shell scripts](https://github.com/michael-denyer/pstack-claude/tree/HEAD/plugins/pstack/skills/setup-pstack)
- [No network calls found in its scripts](https://github.com/michael-denyer/pstack-claude/tree/HEAD/plugins/pstack/skills/setup-pstack)
- [License: MIT](https://github.com/michael-denyer/pstack-claude/tree/HEAD/plugins/pstack/skills/setup-pstack)

## Features

- **Per-role model mapping:** Sets which model each pstack role uses, such as features, bug fixes, and judgment tasks.
- **Model availability detection:** Lists the model names accepted by the agent tool and flags any unavailable choices.
- **Reasoning effort control:** Sets a default effort level and optional per-role effort overrides.
- **Session hook toggle:** Turns the SessionStart routing hook on or off, with an environment variable override.
- **Project or user sheet:** Saves the override sheet either for all projects or for a single repository.
- **Verification skill offers:** Offers to generate project verification or formal verification skills after setup.

## Good for

- Switch pstack's feature and refactoring tasks to a cheaper model
- Turn off the pstack session hook for a project
- Set a higher reasoning effort for judgment-heavy roles
- Commit a project-specific model configuration to a repository
- Generate a project verification skill after setup

## Install

### Claude Code

This skill ships in the `pstack` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add michael-denyer/pstack-claude
/plugin install pstack@pstack-claude
```

Or copy only this skill to `~/.claude/skills/setup-pstack`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/setup-pstack &&
cp -R "$tmp/plugins/pstack/skills/setup-pstack" ~/.claude/skills/setup-pstack &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/setup-pstack` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/setup-pstack` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/setup-pstack &&
cp -R "$tmp/plugins/pstack/skills/setup-pstack" ~/.agents/skills/setup-pstack &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/setup-pstack` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/setup-pstack` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/setup-pstack &&
cp -R "$tmp/plugins/pstack/skills/setup-pstack" ~/.cursor/skills/setup-pstack &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/setup-pstack` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/michael-denyer/pstack-claude.git --path plugins/pstack/skills/setup-pstack
```

Or copy the folder to `~/.gemini/skills/setup-pstack` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/setup-pstack`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/setup-pstack &&
cp -R "$tmp/plugins/pstack/skills/setup-pstack" ~/.copilot/skills/setup-pstack &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/setup-pstack` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git
```

Then copy `pstack-claude/plugins/pstack/skills/setup-pstack` into your agent's skills folder as `setup-pstack`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Setup pstack trigger?

It triggers on /setup-pstack, requests to configure pstack models, requests to change model choices, or requests to turn the SessionStart hook on or off.

### Where does the override sheet get saved?

On Claude Code it goes to the user config folder as pstack-models.md, or to .claude/pstack-models.md at the repository root for a project sheet. The user adds an @ import line to CLAUDE.md so it loads every session.

### Which models can Setup pstack use?

It uses the family names the agent tool's model parameter accepts, such as opus, fable, sonnet and haiku, plus the aliases inherit-parent and auto. Full model IDs are rejected.

### Does Setup pstack change the session hook?

Only if the user chooses. The hook defaults to on, and a line in the sheet or the PSTACK_SESSION_HOOK=off environment variable turns it off.

### How do I install Setup pstack in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/setup-pstack to use it in all your projects, or to .claude/skills/setup-pstack in one project. Or install the pstack plugin, which includes it: /plugin marketplace add michael-denyer/pstack-claude, then /plugin install pstack@pstack-claude.

### Does Setup pstack run scripts?

Yes. It runs shell scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Setup pstack?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Setup pstack?

The closest alternatives to Setup pstack are Poteto help, Pstack routing, Poteto mode, Load profile and Figure it out.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Poteto help](https://ai-powered.com/skills/poteto-help): Poteto help is an open-source agent skill for developer tools.
- [Pstack routing](https://ai-powered.com/skills/pstack-routing): Pstack routing is an open-source agent skill for developer tools.
- [Poteto mode](https://ai-powered.com/skills/poteto-mode): Poteto mode is an open-source agent skill for developer tools.
- [Load profile](https://ai-powered.com/skills/load-profile): Load profile is an open-source agent skill for developer tools.
- [Figure it out](https://ai-powered.com/skills/figure-it-out): Figure it out is an open-source agent skill for developer tools.
- [Baton setup](https://ai-powered.com/skills/baton-setup): Baton setup is an open-source agent skill for developer tools.
- [Agentic os](https://ai-powered.com/skills/agentic-os-smartworldarafath): Agentic os is an open-source agent skill for developer tools.
- [Autonomous agent harness](https://ai-powered.com/skills/autonomous-agent-harness): Autonomous agent harness is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/setup-pstack
