setup-pstack
БесплатноБез исполняемых скриптовНе проверенConfigure which subagent types pstack uses per role, and optionally which model each role's agents run on. Detects the agent types available in this session…
от cameronr★ 30 звёзд на GitHubОб этом скилле
Setup pstack
Write ~/.config/opencode/pstack-roles.md, a plain file the pstack skills read on demand, that sets pstack's subagent type per role. The skills read it and fall back to their inline defaults when a line is absent, so this is an override layer, not a requirement. Optionally, per-agent model overrides go to ~/.config/opencode/opencode.json (step 6).
opencode runs every subagent on the session model unless its agent file or its config entry (agent.<name>.model in opencode.json) sets a model, so by default diversity comes from the subagent type and the prompt, not the model. What this file configures is the subagent type each role fans out to: a reviewer type reads a diff differently than an architect type or a general delegate.
Steps
1. Detect available subagent types
Enumerate the subagent_type values you can pass to a task call in this session. The dependable sources, in order:
- opencode built-ins always present:
build,plan,general,explore. pstack also ships its own agents in its repo'sagents/dir:poteto-agent,comment-sicko,code-reviewer,code-architect; these must be installed for the role defaults in the skills to resolve. - Types contributed by enabled plugins and declared in this session. pstack's own agents (
poteto-agent,comment-sicko,code-reviewer,code-architect) are not a plugin contribution: they arrive via the installer into~/.config/opencode/agents/(or a plugin install, if used). - Agent definitions opencode loads outside plugins (for example
~/.config/opencode/agents/).
Never write a type you have not confirmed exists. A role line pointing at a type the task tool rejects breaks every delegation that reads it.
2. Load current state
The default role-to-type mapping is the shape shown in step 5 below. If ~/.config/opencode/pstack-roles.md already exists, read it and treat its values as the current choices. Otherwise start from those defaults.
3. Map and confirm
Show every role with its current type, marking any type not in the detected set as needing a choice. Ask whether to accept as-is or change specific roles, offering the detected types as the options. Prefer the question tool over free text. For panel roles (how critics, arena runners, architect runners, interrogate reviewers) the value is a list, and one subagent runs per entry, so the list length sets the fan-out; entries may repeat a type when you want volume over diversity. arena cross-judge pool is also a list, and Arena picks one value from it. swarm workers is the default type for every worker unless a race or comparison assigns another per arm.
4. Validate
Every type written must be in the detected set. If a chosen type is not available, stop and ask again.
5. Write the file
Write ~/.config/opencode/pstack-roles.md, overwriting the whole file so re-runs stay idempotent. Shape:
# pstack per-role subagent choices (overrides skill defaults)
One line per role or role group, `role[, role...]: type[, type...]`. Delete a line to fall back to the skill default.
feature, refactoring: poteto-agent
bug-fix: poteto-agent
perf-issue: poteto-agent
hillclimb: poteto-agent
judgment and prose: general
how-explorer: explore
how-explainer: general
how-critics: code-architect, code-reviewer, poteto-agent, general
why-investigators: general
why-synthesizer: general
reflect-tooling: code-reviewer
reflect-judgment: general
arena runners: poteto-agent, code-reviewer, code-architect, general
arena cross-judge pool: code-reviewer, code-architect, general
swarm workers: poteto-agent
architect runners: code-architect, poteto-agent, code-reviewer, general
interrogate reviewers: code-reviewer, code-architect, poteto-agent, general
6. Models (optional)
Ask once whether the user wants per-role models. Most users run every subagent on the session model; that stays the default. Do not push per-role models.
On yes, determine the models actually available: read the provider and model keys in ~/.config/opencode/opencode.json and the project opencode.json, and offer the provider/model ids configured there plus the current session model. Never offer a model id you have not seen in those files or in the session.
For each role the user wants to change, map the role's agent type(s) from step 5 to the chosen model and write agent.<agent-name>.model as a "provider/model" string in ~/.config/opencode/opencode.json. This covers opencode built-ins (general, explore, build, plan) and pstack's custom agents (poteto-agent, comment-sicko, code-reviewer, code-architect). Model overrides are per agent, not per role: setting a model on an agent affects every role that uses it, so say so when a role's type list shares an agent with other roles.
opencode.json is a merge target, not a rewrite. Preserve every existing key (provider, permission, mcp, ...), create the agent object if absent, and touch only
Установить setup-pstack в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл setup-pstack?
Configure which subagent types pstack uses per role, and optionally which model each role's agents run on. Detects the agent types available in this session and writes ~/.config/opencode/pstack-roles.md, an override layer the skills read. Use for /setup-pstack, "configure pstack agents", or changing pstack's subagent choices.
Как установить скилл setup-pstack?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл setup-pstack запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic