Model Registry Manager
by @zqh2333
Detect provider models, deduplicate them, remove unusable ones, register missing models into OpenClaw, and safely keep provider-native model ids/names during...
clawhub install model-registry-manager๐ About This Skill
name: model-registry-manager description: "Detect provider models, deduplicate them, remove unusable ones, register missing models into OpenClaw, and safely keep provider-native model ids/names during model catalog sync." version: 1.3.0
Model Registry Manager
Use this skill when managing OpenClaw model catalogs and provider model sync for any provider.
What this skill covers
/models endpointRequired workflow
1. Inspect config/schema first
Before changing config, inspect relevant config paths and read current config.Usually inspect:
agents.defaults.modelagents.defaults.modelsmodels.providers2. Detect before writing
Always fetch remote models first and compare with current config. Do not write first when the state is unknown.3. Keep provider-native ids/names
id as the canonical registry id suffixname when available4. Validate before keeping
A model is only eligible for registration if it passes a lightweight probe. If probing fails, treat it as unusable and exclude it from the registered catalog.5. Do not auto-select primary/fallbacks
This skill should not automatically choose or rebuild primary/fallback chains. During sync:6. Do not bundle generic failover policy here
This skill should not define generic failover classes, retry ladders, downgrade policy, or circuit-breaker defaults. Keep this skill focused on model registry sync and validation.7. Schedule only after one clean run
First complete:Then you may add scheduled refresh jobs.
8. Default closing step: maintain the learnings archive
After finishing real work, check whether the run produced reusable operational knowledge. Default behavior:.learnings/.learnings/.learnings/.learnings/This is part of the skillโs normal operating procedure, not an optional extra.
Validation checklist
How to make this skill truly general-purpose
To keep this skill generic instead of overfitting to one provider/model family:Keep generic
Avoid hardcoding
Prefer this structure
SKILL.md: only workflow + decision rulesscripts/: deterministic sync/validate logicScheduling policy for this workspace
After installation is validated, schedule these triggers:Keep scheduled runs idempotent and safe to repeat.
Setup
In an OpenClaw agent session, prefer the built-incron tool instead of shelling out to openclaw cron ....After one clean validation run, ensure these recurring jobs exist (create missing ones, update same-name jobs if they already exist):
model-registry-manager validation safety-netmodel-registry-manager recurring syncRecommended default schedules (Asia/Shanghai):
10 4 * * *40 */6 * * *Recommended job shape:
sessionTarget: "isolated"payload.kind: "agentTurn"payload.toolsAllow: ["exec", "read"]delivery.mode: "none"Recommended task behavior:
node skills/model-registry-manager/scripts/validate-model-sync.jsnode skills/model-registry-manager/scripts/sync-models.js all 0 --restartreports/model-registry/ and produce a concise summaryDo not enable recurring sync before a clean validation run.
โ๏ธ Configuration
In an OpenClaw agent session, prefer the built-in cron tool instead of shelling out to openclaw cron ....
After one clean validation run, ensure these recurring jobs exist (create missing ones, update same-name jobs if they already exist):
model-registry-manager validation safety-netmodel-registry-manager recurring syncRecommended default schedules (Asia/Shanghai):
10 4 * * *40 */6 * * *Recommended job shape:
sessionTarget: "isolated"payload.kind: "agentTurn"payload.toolsAllow: ["exec", "read"]delivery.mode: "none"Recommended task behavior:
node skills/model-registry-manager/scripts/validate-model-sync.jsnode skills/model-registry-manager/scripts/sync-models.js all 0 --restartreports/model-registry/ and produce a concise summaryDo not enable recurring sync before a clean validation run.