[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F7ZG5P39Y4HZ3ZYPWG8ZVB":3,"skill-same:01M7F7ZG5P39Y4HZ3ZYPWG8ZVB":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7F7ZG5P39Y4HZ3ZYPWG8ZVB","setup-pstack",null,"Configure which model each pstack role runs on by writing the model line of each role agent. Use for setup pstack, configure pstack models, or pstack budget.","bitgineer\u002Fopencode-pstack","bitgineer","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F133060368?v=4","01M7F7V139SDYHXSH9GXXM8EV7","01M7F7V13Y1ZZCY3J922JX06QC",1,"MIT","https:\u002F\u002Fgithub.com\u002Fbitgineer\u002Fopencode-pstack\u002Fblob\u002Fmain\u002Fskills\u002Fpstack\u002Fsetup-pstack\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: setup-pstack\ndescription: \"Configure which model each pstack role runs on by writing the model line of each role agent. Use for setup pstack, configure pstack models, or pstack budget.\"\n---\n\n# Setup pstack\n\nSet the `model:` line of each role agent, `~\u002F.config\u002Fopencode\u002Fagents\u002Fpstack\u002F\u003Crole>.md`. One file per role seat, listed in [`references\u002Froles.md`](references\u002Froles.md). Those files are the only place a role's model lives, so this skill writes nothing else. An agent with no `model:` line inherits the parent session model.\n\n## Steps\n\n### 1. Detect available models\n\nRun `opencode models`. Each line is a model string, `provider\u002Fmodel`, sometimes with a `#variant` suffix. That output is the only dependable source and the only thing you may write. If it fails or prints nothing, ask the user to paste its output. `inherit` is always available too, even though it is not on the list: it means no `model:` line, so the agent runs on the parent session model.\n\n### 2. Load current state\n\nRead the agent files that [`references\u002Froles.md`](references\u002Froles.md) lists and note each `model:` value. A role with no `model:` line is unconfigured. This skill stores no budget, so infer it from the spread: one model on every agent reads as `medium` or `small`, a cheaper code model split from a stronger judgment model reads as `large`. An agent file under `~\u002F.config\u002Fopencode\u002Fagents\u002Fpstack\u002F` that `references\u002Froles.md` does not list is not a pstack role. Leave it alone.\n\n### 3. Budget, map, and confirm\n\n**(a) Ask for a budget.** Use the `question` tool. Offer these four options with these exact labels, and name the current budget when step 2 inferred one. With nothing configured, say that `large` matches the pstack split.\n\n- `unlimited — the best model you have for every role`\n- `large — a strong model for judgment and review, a faster one for code`\n- `medium — one mid-tier model for every role`\n- `small — the cheapest model that still works`\n\n**(b) Pick the models.** The budget sets how many slots you need: `unlimited` and `large` need a code model, a judgment model, and a review model; `medium` and `small` need one. Ask for each slot with the `question` tool, offering the `opencode models` lines plus `inherit`, and take free text only to name a string from that list. Default every slot to the model this session runs on, and say so.\n\n**(c) Show the roles and confirm.** Show one row per role line: the role, its agent IDs, and the model each agent will get. Mark any string that is not on the detected list as needing a choice, and name the slot the row shares. Then ask whether to accept as-is or change specific roles, offering the same choices as (b). Use the `question` tool.\n\nRoles map to slots as follows:\n\n- code: `feature, refactoring`, `bug-fix`, `perf-issue`, `hillclimb`, `arena runners`, `architect runners`, `swarm workers`\n- judgment: `judgment and prose`, `hardest tasks`, `how explainer`, `why synthesizer`\n- review: every row whose Read-only column says yes, so `how explorer`, `why investigators`, `reflect tooling`, `reflect judgment, divergent, synthesizer`, `arena cross-judge pool`, `interrogate reviewers`\n\nA panel role gets one subagent per agent ID, so its fan-out is the number of agent IDs on its row and every seat runs. `swarm workers` is a single agent, so every worker in a run takes its model.\n\n### 4. Validate\n\nEvery `model:` string you write must match a line from `opencode models`, character for character, `#variant` suffix included. `inherit` always passes and writes no line. If a chosen string is not on the list, stop and ask again with the list in front of the user. Do not substitute a similar model.\n\n### 5. Write the agents\n\nEdit each agent file on a role row whose model changed. Change only the `model:` line, inserted after `mode: subagent`. Leave every other line byte-identical; a whole-file rewrite is fine when that holds. `inherit` removes the line. Re-runs converge: the same choices produce the same files, and a role already on that string is left untouched. Shape, for one agent:\n\n```\n---\ndescription: \"Writes features and behaviour-preserving refactors.\"\nmode: subagent\nmodel: \u003Cprovider>\u002F\u003Cmodel>\npermissions:\n  - action: subagent\n    resource: \"*\"\n    effect: deny\n---\n```\n\nThe model string is exactly what `opencode models` printed.\n\n### 6. Confirm\n\nTell the user which agent files changed and which role each serves. Every subagent spawned from now on uses the new model, in this session and in new ones; a subagent already running keeps the model it started on. Re-running this skill edits the same lines.\n\n### 7. Offer a verification skill (optional)\n\nCheck whether the project has a way to drive the real app for proof (a `verify-*` skill, or an existing harness). If not, offer once: \"want a project-local verification skill, so agents can drive the app the way a user does and prove changes work? I can generate one with \u002Fpstack\u002Fcreate-verification-skill.\" On yes, invoke `\u002Fpstack\u002Fcreate-verification-skill` (resolves wherever pstack is installed: workspace, user, or plugin). On no, move on without pushing.\n\n### 8. Offer a formal verification skill (optional)\n\nCheck whether the project already has a formal verification skill (a project skill that runs a model checker, a proof, or another verifier against the code). If not, offer once: \"want a formal verification skill, so agents can prove a key property of your code holds in every case in scope, not only the cases tests reach? I can generate one with \u002Fpstack\u002Fcreate-formal-verification-skill.\" On yes, invoke `\u002Fpstack\u002Fcreate-formal-verification-skill` (resolves wherever pstack is installed: workspace, user, or plugin). On no, move on without pushing.\n","# Setup pstack\n\nSet the `model:` line of each role agent, `~\u002F.config\u002Fopencode\u002Fagents\u002Fpstack\u002F\u003Crole>.md`. One file per role seat, listed in [`references\u002Froles.md`](references\u002Froles.md). Those files are the only place a role's model lives, so this skill writes nothing else. An agent with no `model:` line inherits the parent session model.\n\n## Steps\n\n### 1. Detect available models\n\nRun `opencode models`. Each line is a model string, `provider\u002Fmodel`, sometimes with a `#variant` suffix. That output is the only dependable source and the only thing you may write. If it fails or prints nothing, ask the user to paste its output. `inherit` is always available too, even though it is not on the list: it means no `model:` line, so the agent runs on the parent session model.\n\n### 2. Load current state\n\nRead the agent files that [`references\u002Froles.md`](references\u002Froles.md) lists and note each `model:` value. A role with no `model:` line is unconfigured. This skill stores no budget, so infer it from the spread: one model on every agent reads as `medium` or `small`, a cheaper code model split from a stronger judgment model reads as `large`. An agent file under `~\u002F.config\u002Fopencode\u002Fagents\u002Fpstack\u002F` that `references\u002Froles.md` does not list is not a pstack role. Leave it alone.\n\n### 3. Budget, map, and confirm\n\n**(a) Ask for a budget.** Use the `question` tool. Offer these four options with these exact labels, and name the current budget when step 2 inferred one. With nothing configured, say that `large` matches the pstack split.\n\n- `unlimited — the best model you have for every role`\n- `large — a strong model for judgment and review, a faster one for code`\n- `medium — one mid-tier model for every role`\n- `small — the cheapest model that still works`\n\n**(b) Pick the models.** The budget sets how many slots you need: `unlimited` and `large` need a code model, a judgment model, and a review model; `medium` and `small` need one. Ask for each slot with the `question` tool, offering the `opencode models` lines plus `inherit`, and take free text only to name a string from that list. Default every slot to the model this session runs on, and say so.\n\n**(c) Show the roles and confirm.** Show one row per role line: the role, its agent IDs, and the model each agent will get. Mark any string that is not on the detected list as needing a choice, and name the slot the row shares. Then ask whether to accept as-is or change specific roles, offering the same choices as (b). Use the `question` tool.\n\nRoles map to slots as follows:\n\n- code: `feature, refactoring`, `bug-fix`, `perf-issue`, `hillclimb`, `arena runners`, `architect runners`, `swarm workers`\n- judgment: `judgment and prose`, `hardest tasks`, `how explainer`, `why synthesizer`\n- review: every row whose Read-only column says yes, so `how explorer`, `why investigators`, `reflect tooling`, `reflect judgment, divergent, synthesizer`, `arena cross-judge pool`, `interrogate reviewers`\n\nA panel role gets one subagent per agent ID, so its fan-out is the number of agent IDs on its row and every seat runs. `swarm workers` is a single agent, so every worker in a run takes its model.\n\n### 4. Validate\n\nEvery `model:` string you write must match a line from `opencode models`, character for character, `#variant` suffix included. `inherit` always passes and writes no line. If a chosen string is not on the list, stop and ask again with the list in front of the user. Do not substitute a similar model.\n\n### 5. Write the agents\n\nEdit each agent file on a role row whose model changed. Change only the `model:` line, inserted after `mode: subagent`. Leave every other line byte-identical; a whole-file rewrite is fine when that holds. `inherit` removes the line. Re-runs converge: the same choices produce the same files, and a role already on that string is left untouched. Shape, for one agent:\n\n```\n---\ndescription: \"Writes features and behaviour-preserving refactors.\"\nmode: subagent\nmodel: \u003Cprovider>\u002F\u003Cmodel>\npermissions:\n  - action: subagent\n    resource: \"*\"\n    effect: deny\n---\n```\n\nThe model string is exactly what `opencode models` printed.\n\n### 6. Confirm\n\nTell the user which agent files changed and which role each serves. Every subagent spawned from now on uses the new model, in this session and in new ones; a subagent already running keeps the model it started on. Re-running this skill edits the same lines.\n\n### 7. Offer a verification skill (optional)\n\nCheck whether the project has a way to drive the real app for proof (a `verify-*` skill, or an existing harness). If not, offer once: \"want a project-local verification skill, so agents can drive the app the way a user does and prove changes work? I can generate one with \u002Fpstack\u002Fcreate-verification-skill.\" On yes, invoke `\u002Fpstack\u002Fcreate-verification-skill` (resolves wherever pstack is installed: workspace, user, or plugin). On no, move on without pushing.\n\n### 8. Offer a formal verification skill (optional)\n\nCheck whether the project already has a formal verification skill (a project skill that runs a model checker, a proof, or another verifier against the code). If not, offer once: \"want a formal verification skill, so agents can prove a key property of your code holds in every case in scope, not only the cases tests reach? I can generate one with \u002Fpstack\u002Fcreate-formal-verification-skill.\" On yes, invoke `\u002Fpstack\u002Fcreate-formal-verification-skill` (resolves wherever pstack is installed: workspace, user, or plugin). On no, move on without pushing.\n",{"name":5,"description":7},"main","dbb7a4935f614ebaec65ca3beb181bf74ed53431","skills\u002Fpstack\u002Fsetup-pstack",0,"https:\u002F\u002Fgithub.com\u002Fbitgineer\u002Fopencode-pstack","https:\u002F\u002Fgithub.com\u002Fbitgineer","2026-10-21 18:58:00",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add bitgineer\u002Fopencode-pstack --skill setup-pstack",{"tool":36,"command":37},"bunx","bunx skills add bitgineer\u002Fopencode-pstack --skill setup-pstack",{"tool":39,"command":40},"pnpm","pnpm dlx skills add bitgineer\u002Fopencode-pstack --skill setup-pstack","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbitgineer\u002Fopencode-pstack\u002Fblob\u002Fmain\u002Fskills\u002Fpstack\u002Fsetup-pstack\u002FSKILL.md",true,[44],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"references\u002Froles.md","REFERENCE","参考文档",1926,"https:\u002F\u002Fgithub.com\u002Fbitgineer\u002Fopencode-pstack\u002Fblob\u002Fmain\u002Fskills\u002Fpstack\u002Fsetup-pstack\u002Freferences\u002Froles.md",[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7F8095YEQBD1R95S3CQNM7M","why","Trace why code works this way or why a design was chosen, from source control, trackers, docs, and telemetry. Use for rationale, regressions, or postmortems.","https:\u002F\u002Fgithub.com\u002Fbitgineer\u002Fopencode-pstack\u002Fblob\u002Fmain\u002Fskills\u002Fpstack\u002Fwhy\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7F807MX84XR7FGZ1YTDPNPP","unslop","Cut AI tells from any writing.","https:\u002F\u002Fgithub.com\u002Fbitgineer\u002Fopencode-pstack\u002Fblob\u002Fmain\u002Fskills\u002Fpstack\u002Funslop\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M7F804Y0KW517P76ZAYQ86ED","typescript-best-practices","TypeScript best practices. Use when reading or editing any .ts or .tsx file.","https:\u002F\u002Fgithub.com\u002Fbitgineer\u002Fopencode-pstack\u002Fblob\u002Fmain\u002Fskills\u002Fpstack\u002Ftypescript-best-practices\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M7F800R1VV08YF0AKMNTPZ2J","technical-writing","Write or review docs, RFCs, readmes, PR descriptions, and commit messages in Diataxis structure with Google style, STE, and Global English.","https:\u002F\u002Fgithub.com\u002Fbitgineer\u002Fopencode-pstack\u002Fblob\u002Fmain\u002Fskills\u002Fpstack\u002Ftechnical-writing\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7F7ZX5TJ2049PWXHB07MA7Y","teach","Explain a body of work so a person actually understands it, running how and why and weaving both into one clear explanation. Use for teach me this.","https:\u002F\u002Fgithub.com\u002Fbitgineer\u002Fopencode-pstack\u002Fblob\u002Fmain\u002Fskills\u002Fpstack\u002Fteach\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":18},"01M7F7ZSN544YPV34WWVFW332X","tdd","Use only when the user asks for TDD, a failing test, or a regression test, or when a bug has a cheap local test target; skip unclear or costly test paths.","https:\u002F\u002Fgithub.com\u002Fbitgineer\u002Fopencode-pstack\u002Fblob\u002Fmain\u002Fskills\u002Fpstack\u002Ftdd\u002FSKILL.md",[],[]]