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.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install migrate-model-defaults - After installation, invoke the skill by name or use
/migrate-model-defaults - Provide required inputs per the skill's parameter spec and get structured output
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 45 downloads so far.
How do I install Migrate Model Defaults?
Run "/install migrate-model-defaults" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Migrate Model Defaults free?
Yes, Migrate Model Defaults is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Migrate Model Defaults support?
Migrate Model Defaults is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Migrate Model Defaults?
It is built and maintained by Patrick Erichsen (@patrick-erichsen-2); the current version is v1.0.0.