← 返回 Skills 市场
patrick-erichsen-2

Migrate Model Defaults

作者 Patrick Erichsen · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
45
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (SKILL.md)

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 bare model.
  • If old is bare, ask whether to include provider-qualified forms.
  • Pay special attention to .github/workflows/**; this repo often has workflow defaults in env, action with.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 actionlint if available or via go 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.
安全使用建议
Install this if you want help auditing and changing hardcoded model defaults. Review the proposed checklist carefully before approving edits, because changing defaults can affect CI, tests, release workflows, or runtime behavior.
能力评估
Purpose & Capability
The skill can guide edits to model defaults in source and workflow files, which can affect CI or runtime behavior, but that capability directly matches its stated purpose.
Instruction Scope
It tells the agent to ask for the old and new model strings, classify candidates, present a checklist, and edit only user-selected items.
Install Mechanism
The artifact contains only a SKILL.md and a small YAML interface file, with no executable scripts, declared dependencies, or install-time commands.
Credentials
Repository searching, workflow-focused review, actionlint, and repo validation are disclosed and proportionate for updating model defaults, though users should expect normal repo test/check commands to run when approved.
Persistence & Privilege
No artifact-backed evidence shows background workers, persistence hooks, credential or session access, privilege escalation, network exfiltration, or hidden behavior.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install migrate-model-defaults
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /migrate-model-defaults 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of migrate-model-defaults - Finds, classifies, and updates hardcoded model default references in a repository. - Guides users to identify an existing model string to replace and a new string to use. - Filters out noise (such as changelogs, tests, and docs examples) to focus on default-like references. - Groups candidate references semantically and presents a concise checklist for user selection—no edits until review. - Centralizes workflow and source defaults using repository variables or shared modules when applicable. - Provides workflow-aware validation, including optional actionlint and repo-required checks, and scans for remaining old-model literals.
元数据
Slug migrate-model-defaults
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

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。

💬 留言讨论