AGENT SKILL

setup-zedpstack

Configure which worker CLI and model zedpstack spawns for each pstack role, the way /setup-pstack does it - effort first, then the role list, then which roles to change and one model (or a multi-select for panels) for each. Use for /setup-zedpstack, "configure zedpstack models", or when doctor or the agent board reports a model problem.

License 许可
MIT
所属仓库
Nandem1/zedpstack
最近更新
2026-10-18
Stars
★ 0
Forks
0

01 前言 Front Matter

name
setup-zedpstack
description
Configure which worker CLI and model zedpstack spawns for each pstack role, the way /setup-pstack does it - effort first, then the role list, then which roles to change and one model (or a multi-select for panels) for each. Use for /setup-zedpstack, "configure zedpstack models", or when doctor or the agent board reports a model problem.
disable-model-invocation
true

03 SKILL.md 正文

setup-zedpstack

The worker sheet ~/.zedpstack/pstack-models.md uses the /setup-pstack role lines. Each value is a model a worker CLI runs: Claude aliases on claude -p, GPT models on codex exec, Cursor's own models (Composer) on agent -p. spawn_agent reads it on every call.

Ask every question with your host's structured question tool (AskUserQuestion on Claude Code: at most 4 questions per call, 2 to 4 options each, "Other" is added for free text). On a host without one, ask the same questions as short numbered lists in plain text. Use the question text, options and descriptions from the plan as given; they are already sized for that limit.

The MCP tools are setup_plan and setup_write. Without the MCP server use node <zedpstack>/scripts/dispatch.mjs setup plan and setup write --answers '<json>'.

1. Load the plan

Call setup_plan. It probes each Claude alias against the account (cached a day; pass refresh: true after the user buys credits or upgrades the CLI), reads the GPT catalog Codex has for the account, and lists every model agent --list-models returns (Composer, Grok, Gemini, Claude and GPT through Cursor). It returns:

  • roles: every role with its current slots, effective (the model the CLI really runs for an alias), source (sheet, or pstack-default when the sheet has no line), panel, problems and recommendations. A slot whose model is an alias with a probed concrete id carries pin, that id.
  • questions: effort, roleGroups, model, panel.
  • more and catalog: every usable model beyond the four shortlisted ones, and the Cursor models grouped by family.

2. Effort first

Ask questions.effort: default, medium or high. default keeps each CLI's own effort and is written as session. Remember the answer for step 5.

3. Show the current configuration

Show one table: role, model, what runs, status. Write opus → claude-opus-4-8 when effective differs from the alias, mark pstack-default rows as "(default de pstack)", and put every problem under the table verbatim, for example "bug-fix: fable no corre (Fable 5 requires usage credits)". Then list every recommendations line: an alias can move to another model when the CLI updates, so offer to pin the concrete id the user expects.

4. Which roles, then which model

  1. Ask all four questions.roleGroups in one call (multi-select). Each option is a role with its current model. Name the roles with ⚠ in the text before the call. Nothing selected means keep everything, so skip to step 5. A role the user picks under "Other" is matched to the closest role line.
  2. For each chosen single-model role, ask questions.model (one selection), up to four roles per call with the role as header.
  3. For each chosen panel role (panel: true; architect runners, interrogate reviewers, arena), ask questions.panel (multi-select). Each selected option is one worker, so the count sets the panel size. Recommend mixing providers.
  4. The options are a shortlist of four across providers (Claude, GPT, Composer, Grok). When the user wants something else, show the relevant part of catalog or more and accept the id through "Other": grok-4.7-high, opus, gpt-6.1-sol, composer-2.5, claude-opus-5-5-high. A Cursor-only id needs no prefix; setup adds cursor:.

Never offer a model that is not in the plan. Unusable models (like an alias that needs credits) are already left out.

5. Write

Call setup_write with default_effort from step 2 and roles with only the changed roles, each mapped to a list of model values (use the option value, which carries a cursor:/codex: prefix when needed). Example:

{ "default_effort": "medium", "roles": { "bug-fix": ["gpt-6.1-sol"], "arena": ["opus", "gpt-6.1-sol", "composer-2.5"] } }

Roles you do not send keep their current line. If the call rejects a value, show the reason and ask that role again. Show every warnings line: writing an alias is allowed, but the warning names the model it runs today.

6. Confirm

Call setup_plan again and show the final table. It must report problemCount: 0; if not, go back to step 4 for the roles still listed. Tell the user where the sheet lives, that effort reaches Claude (--effort) and Codex but Cursor ignores it, and that the agent board shows the model each worker actually ran.

Batch playbooks (dispatch run) read worker models from the same sheet as spawn_agent; run dispatch setup apply only when you want those bindings copied into zedpstack.config.json for other tools.

04 同仓库更多 Skills