Migrate Model Defaults
/install migrate-model-defaults
Migrate Model Defaults
Workflow
Be terse. Minimal prose. Ask only necessary questions.
Ask first:
- Existing model string to replace?
- New model string to use?
Then search for the old string and likely variants:
- If old is
provider/model, also search baremodel. - If old is bare, ask whether to include provider-qualified forms.
- Pay special attention to
.github/workflows/**; this repo often has workflow defaults inenv, actionwith.model, and shell args such as--model,--alt-model, and--candidate-label.
Ignore expected noise up front unless it controls default behavior:
- changelog text
- tests and fixtures
- QA mock fixtures and mock catalogs
- provider catalogs and model availability lists
- model capability, compatibility, or alias handling
- generated schema examples
- plain docs examples
Keep only default-like references:
- configured defaults or fallback defaults
- workflow/action defaults
- CI, QA, release, E2E, or smoke default models
- i18n/docs generation defaults
- hardcoded runtime feature defaults
Group candidates semantically, then present a concise checklist with repo-root-relative file refs and one short reason each. Do not edit until the user selects items.
When editing:
- Update only selected items.
- Preserve whether each site expects a bare model id or provider-qualified ref.
- If centralizing repeated workflow defaults, prefer repository variables such as
OPENCLAW_CI_OPENAI_MODEL,OPENCLAW_CI_OPENAI_MODEL_BARE, and an explicit alt-model variable when needed. - If centralizing source defaults, prefer an existing shared defaults module before adding a new one.
- Ask if string shape or ownership is unclear.
Validation:
- Run the repo-required first pass before searching when applicable.
- For workflow edits, run
actionlintif available or viago run github.com/rhysd/actionlint/cmd/actionlint@latest \x3Cfiles>. - Run the repo’s changed gate with the correct base. If the default base points at a stale fork, rerun against the real upstream base and report that.
- Scan the touched surface for remaining old-model literals.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install migrate-model-defaults - 安装完成后,直接呼叫该 Skill 的名称或使用
/migrate-model-defaults触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Migrate Model Defaults 是什么?
Find, classify, and update hardcoded default-like model references in a repo. Use when the user wants to replace model strings, audit model defaults, central... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 45 次。
如何安装 Migrate Model Defaults?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install migrate-model-defaults」即可一键安装,无需额外配置。
Migrate Model Defaults 是免费的吗?
是的,Migrate Model Defaults 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Migrate Model Defaults 支持哪些平台?
Migrate Model Defaults 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Migrate Model Defaults?
由 Patrick Erichsen(@patrick-erichsen-2)开发并维护,当前版本 v1.0.0。