setup-pstack

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Setup pstack

配置pstack

Write
~/.cursor/rules/pstack-models.mdc
, an always-applied rule that sets pstack's model 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.
写入
~/.cursor/rules/pstack-models.mdc
文件,这是一条始终生效的规则,用于为每个角色设置pstack的模型。技能会读取该文件,当某一行缺失时会回退到内置默认值,因此这是一个覆盖层,而非必填项。

Steps

步骤

1. Detect available models

1. 检测可用模型

Enumerate the model slugs you can pass to a
Task
subagent in this session; that is the dependable source. If Cursor also exposes a models API or CLI that lists the user's entitled models, prefer it for completeness. If you cannot detect any, ask the user to paste the slugs they have access to. Never write a slug you have not confirmed is available.
列出当前会话中可传递给
Task
子Agent的模型标识(slug);这是可靠的数据源。如果Cursor还提供了列出用户有权使用的模型的API或CLI工具,优先使用它以保证完整性。如果无法检测到任何模型,请用户粘贴他们有权访问的模型标识。切勿写入未确认可用的标识。

2. Load current state

2. 加载当前状态

The default role-to-model mapping is the rule shape shown in step 5 below. If
~/.cursor/rules/pstack-models.mdc
already exists, read it and treat its values as the current choices. Otherwise start from those defaults.
默认的角色-模型映射如步骤5所示的规则格式。如果
~/.cursor/rules/pstack-models.mdc
文件已存在,读取该文件并将其值视为当前选择。否则从默认值开始。

3. Map and confirm

3. 映射并确认

Show every role with its current model, marking any whose model is not in the detected set as needing a choice. Ask whether to accept as-is or change specific roles, offering the detected models as the options. Prefer AskQuestion over free text. For panel roles (how critics, arena runners, architect runners, interrogate reviewers) the value is a list, and one subagent runs per model, so the list length sets the count.
展示每个角色及其当前模型,标记任何模型不在检测集合中的角色,提示需要选择。询问用户是接受当前设置还是修改特定角色,提供检测到的模型作为选项。优先使用提问方式而非自由文本输入。对于面板角色(如how critics、arena runners、architect runners、interrogate reviewers),其值为列表,每个模型对应一个子Agent运行,因此列表长度决定了运行数量。

4. Validate

4. 验证

Every slug written must be in the detected set. If a chosen slug is not available, stop and ask again. A rule pointing at a model the user cannot use breaks every delegation that reads it.
写入的每个标识必须在检测集合中。如果选择的标识不可用,请停止操作并再次询问。指向用户无法使用的模型的规则会破坏所有读取该规则的委托操作。

5. Write the rule

5. 写入规则

Write
~/.cursor/rules/pstack-models.mdc
with
alwaysApply: true
and one line per role, using the same labels poteto-mode uses. Overwrite the whole file so re-runs stay idempotent. Shape:
---
description: pstack per-role model choices (overrides skill defaults)
alwaysApply: true
---
写入
~/.cursor/rules/pstack-models.mdc
文件,包含
alwaysApply: true
以及每个角色对应的一行,使用与poteto-mode相同的标签。覆盖整个文件,确保重复运行该技能时操作是幂等的。格式如下:
---
description: pstack per-role model choices (overrides skill defaults)
alwaysApply: true
---

pstack model configuration. One line per role. Delete a line to fall back to the skill default.

pstack model configuration. One line per role. Delete a line to fall back to the skill default.

feature, refactoring: composer-2.5-fast bug-fix: gpt-5.5-high-fast perf-issue: gpt-5.5-high-fast hillclimb: gpt-5.5-high-fast judgment and prose: claude-opus-4-8-thinking-xhigh how explorer: composer-2.5-fast how explainer: claude-opus-4-8-thinking-xhigh how critics: claude-opus-4-8-thinking-xhigh, gpt-5.5-high-fast, composer-2.5-fast why investigators: composer-2.5-fast why synthesizer: claude-opus-4-8-thinking-xhigh reflect tooling: composer-2.5-fast reflect judgment, divergent, synthesizer: claude-opus-4-8-thinking-xhigh arena runners: claude-opus-4-8-thinking-xhigh, gpt-5.5-high-fast, composer-2.5-fast architect runners: claude-opus-4-8-thinking-xhigh, gpt-5.5-high-fast, composer-2.5-fast interrogate reviewers: claude-opus-4-8-thinking-xhigh, gpt-5.5-high-fast, composer-2.5-fast
undefined
feature, refactoring: composer-2.5-fast bug-fix: gpt-5.5-high-fast perf-issue: gpt-5.5-high-fast hillclimb: gpt-5.5-high-fast judgment and prose: claude-opus-4-8-thinking-xhigh how explorer: composer-2.5-fast how explainer: claude-opus-4-8-thinking-xhigh how critics: claude-opus-4-8-thinking-xhigh, gpt-5.5-high-fast, composer-2.5-fast why investigators: composer-2.5-fast why synthesizer: claude-opus-4-8-thinking-xhigh reflect tooling: composer-2.5-fast reflect judgment, divergent, synthesizer: claude-opus-4-8-thinking-xhigh arena runners: claude-opus-4-8-thinking-xhigh, gpt-5.5-high-fast, composer-2.5-fast architect runners: claude-opus-4-8-thinking-xhigh, gpt-5.5-high-fast, composer-2.5-fast interrogate reviewers: claude-opus-4-8-thinking-xhigh, gpt-5.5-high-fast, composer-2.5-fast
undefined

6. Confirm

6. 确认

Tell the user the rule was written and that it applies to new sessions. Re-running this skill updates it.
告知用户规则已写入,且会应用于新会话。重新运行该技能可更新规则。