OpenCode Go Model Picker

这是一个 OpenCode Agent Skill:读懂你配置里的每个自定义智能体,对照当前的 OpenCode Go 套餐,挑出最划算的模型,并给出带回退链的推荐。

An OpenCode Agent Skill: it reads every custom agent you have configured, checks the current OpenCode Go plan, and recommends the most cost-effective model — with fallback chains.

为自己的智能体挑一个 OpenCode Go 里的模型,是件麻烦事:价格、月度额度、可用模型一直在变,而「最合适」的那个又取决于你更在意省钱还是更在意能力。这个技能就是替你做完这份功课的:它会读你的 OpenCode 智能体配置、查当前的 Go 套餐,然后给你每个自定义智能体推荐一个模型——如果你的配置支持,还会附上一条回退链。整个过程只读,在你点头之前什么都不改。

Choosing which OpenCode Go model each of your agents should use is fiddly. Prices, monthly caps, and the list of available models change constantly, and the “best” pick depends on whether you care more about cost or capability. This skill does that homework for you: it reads your OpenCode agent config, checks the current Go plan, and suggests a model for each of your custom agents — plus a fallback chain when your setup supports one. It is read-only, so nothing changes until you say yes.

产出Outputs

每次运行后,它会给你一份「三段正文 + 数据附录」的报告:

Each run ends with a three-part body plus a data appendix:

报告之后它会停下来问你,确认后才应用改动。

It then stops and asks before applying anything.

特点Features

安装Install

把下面这段发给 AI,它会帮你装好。

Paste the block below into your AI agent and it will install the skill for you.

安装提示词 · 复制给 AI
帮我安装 "OpenCode Go Model Picker" 这个技能。

1. 获取仓库:https://github.com/sogeisetsu/opencode-go-model-picker
2. 只把下面这些复制到我的全局 OpenCode 技能目录
   (~/.config/opencode/skills/opencode-go-model-picker/):
   - SKILL.md
   - references/
   - scripts/
3. 不要复制仓库里的其他内容(README、LICENSE、assets 等)。
4. 验证:在安装目录里运行 "node scripts/fetch-go-models.mjs",确认能输出 JSON。
5. 告诉我安装路径以及是否成功。
Install prompt · paste into your AI
Install the "OpenCode Go Model Picker" skill for me.

1. Get the repository: https://github.com/sogeisetsu/opencode-go-model-picker
2. Copy only these into my global OpenCode skills directory
   (~/.config/opencode/skills/opencode-go-model-picker/):
   - SKILL.md
   - references/
   - scripts/
3. Do not copy the rest of the repo (README, LICENSE, assets, ...).
4. Verify by running "node scripts/fetch-go-models.mjs" inside the installed
   folder and confirming it prints JSON.
5. Tell me the install path and whether it worked.
手动安装 · 可选 Manual install · optional
# Linux / macOS
git clone https://github.com/sogeisetsu/opencode-go-model-picker.git \
  ~/.config/opencode/skills/opencode-go-model-picker

# Windows (PowerShell)
git clone https://github.com/sogeisetsu/opencode-go-model-picker.git `
  "$env:USERPROFILE\.config\opencode\skills\opencode-go-model-picker"

快速上手Quick start

安装完成后,在 OpenCode 里直接输入斜杠命令 /opencode-go-model-picker 即可调用,不需要再输入任何内容——技能会自己去读你的智能体配置、抓取当前 Go 套餐,然后给出推荐。

Once installed, invoke the skill in OpenCode with its slash command /opencode-go-model-picker — no input needed. It reads your agent config, fetches the current Go plan, and comes back with its recommendations.

TUI 里如果它没出现在 / 的补全列表中,先输入 /skills,从技能列表里选同名项即可。

In the TUI, if it does not show up in the / autocomplete list, type /skills and pick it from the skill list.