Agent Skillsmohitagw15856/pm-claude-skills › model-migration-plan

model-migration-plan

GitHub

用于安全迁移LLM模型的分阶段计划技能。涵盖评估、影子测试、金丝雀发布及全量切换,提供提示词适配建议、回滚触发条件及成本延迟预测,确保生产环境稳定。

skills/model-migration-plan/SKILL.md mohitagw15856/pm-claude-skills

Trigger Scenarios

模型弃用或升级 寻求更优性价比模型 询问如何安全切换模型 设置影子流量或回滚标准

Install

npx skills add mohitagw15856/pm-claude-skills --skill model-migration-plan -g -y
More Options

Use without installing

npx skills use mohitagw15856/pm-claude-skills@model-migration-plan

指定 Agent (Claude Code)

npx skills add mohitagw15856/pm-claude-skills --skill model-migration-plan -a claude-code -g -y

安装 repo 全部 skill

npx skills add mohitagw15856/pm-claude-skills --all -g -y

预览 repo 内 skill

npx skills add mohitagw15856/pm-claude-skills --list

SKILL.md

Frontmatter
{
    "name": "model-migration-plan",
    "description": "Plan the migration of an LLM feature from one model to another without breaking production. Use when a model is being deprecated, a newer model looks better or cheaper, or when asked how to upgrade models safely, run shadow traffic, or set rollback criteria for a model change. Produces a phased migration plan with eval gates, shadow\/canary stages, prompt-adaptation notes, and rollback triggers. For choosing which model in the first place use model-selection-advisor."
}

Model Migration Plan Skill

A model swap changes every output of your feature at once. This skill plans the migration like the risky deploy it is: eval first, shadow second, canary third — with numbers, not vibes, deciding each promotion.

What This Skill Produces

  • A phased migration plan (eval → shadow → canary → full) with promotion criteria per phase
  • Prompt adaptation notes — what typically shifts between models and what to re-tune
  • Rollback triggers and the mechanics of rolling back fast
  • A cost/latency delta forecast for the new model

Required Inputs

Ask for (if not already provided):

  • Current and target model (and why: deprecation, quality, cost, latency)
  • The feature's traffic and blast radius — requests/day, who sees the output, what a bad output costs
  • Existing evals — a regression suite (see prompt-regression-suite) or at minimum golden examples; if none exist, phase 0 is building one
  • The deadline, if the migration is forced by a deprecation date

Migration Phases

Phase 0 — Baseline. Freeze a regression suite against the current model. Without a baseline, "the new model is fine" is unfalsifiable. Record current cost, latency (p50/p95), and quality scores.

Phase 1 — Offline eval. Run the suite against the target model with the prompt as-is, then with adapted prompts. Promotion criteria: pass rate ≥ baseline, no canary failures, cost/latency within budget. Expect to iterate here — most "model regressions" are prompt-fit issues.

Phase 2 — Shadow. Mirror a sample of real traffic to the new model; log, never serve. Compare distributions: refusal rate, output length, format-violation rate, judge scores on a sample. Duration: long enough to cover weekly traffic patterns.

Phase 3 — Canary. Serve the new model to [1-5]% of traffic behind a flag, tagged in analytics. Watch the same metrics plus user-visible signals (regenerate rate, thumbs-down, support tickets). Widen in steps; each step has the same promotion criteria.

Phase 4 — Full cutover + cleanup. 100% traffic, old model kept warm behind the flag for [period], then removed. Update model pins everywhere (including the eval judge if it referenced the old model), and re-baseline the regression suite on the new model.

Prompt Adaptation Notes

Between model generations, re-check: instruction-following strictness (newer models often follow the letter, exposing sloppy prompts), format compliance (JSON/markdown habits differ), verbosity defaults, refusal boundaries, tool-calling style, and system-prompt sensitivity. Adapt the prompt per model rather than writing to the lowest common denominator — keep per-model prompt versions if both run simultaneously.

Rollback

  • Triggers (numbers, set in advance): canary quality below baseline by [X], refusal/format-violation rate above [Y], p95 latency above [Z], or any safety incident.
  • Mechanics: the model is a config flag, not a code deploy — rollback is a flag flip taking effect in [minutes]. State who can flip it and how it's tested before the canary starts.

Output Format

Model Migration Plan: [feature] — [current model] → [target model]

Why now: [driver + deadline]. Blast radius: [traffic, audience, cost of a bad output].

Phase Gate to pass Duration Owner
0 Baseline suite frozen; cost/latency recorded
1 Offline eval [criteria]
2 Shadow [criteria]
3 Canary [x]% → [y]% [criteria]
4 Cutover + cleanup [criteria]

Prompt adaptations found/expected: [list]

Rollback: triggers [numbers]; mechanism [flag]; owner [who].

Cost/latency forecast: [current] → [projected], at [traffic].

Quality Checks

  • Every phase promotion criterion is a number against the recorded baseline
  • Shadow phase compares distributions, not anecdotes ("outputs look good" is not a gate)
  • Rollback is a config flip with a named owner, tested before canary
  • The plan re-baselines the regression suite after cutover — the new model becomes the new normal
  • Deprecation deadlines leave slack for at least one failed phase-1 iteration

Anti-Patterns

  • Do not skip shadow because offline evals passed — real traffic finds what golden sets miss
  • Do not migrate the feature and the prompt redesign in one change — you won't know which moved the metrics
  • Do not compare models with an unpinned judge, or a judge that is the target model grading itself
  • Do not leave the old model path in code indefinitely "just in case" — set the removal date in the plan
  • Do not treat a cheaper model as free savings without re-checking quality at the tails, not just the mean

Version History

  • a38bc30 Current 2026-07-05 11:38

Same Skill Collection

exports/openclaw/360-feedback-template/SKILL.md
exports/openclaw/401k-plan-decoder/SKILL.md
exports/openclaw/ab-test-planner/SKILL.md
exports/openclaw/ab-test-readout/SKILL.md
exports/openclaw/accessibility-audit/SKILL.md
exports/openclaw/account-plan/SKILL.md
exports/openclaw/acquirer-red-team/SKILL.md
exports/openclaw/ad-copy/SKILL.md
exports/openclaw/aeo-optimizer/SKILL.md
exports/openclaw/agenda-or-cancel/SKILL.md
exports/openclaw/agent-design-review/SKILL.md
exports/openclaw/agent-observability-spec/SKILL.md
exports/openclaw/agent-spec/SKILL.md
exports/openclaw/ai-ethics-review/SKILL.md
exports/openclaw/ai-eval-plan/SKILL.md
exports/openclaw/ai-feature-prd/SKILL.md
exports/openclaw/ai-product-canvas/SKILL.md
exports/openclaw/air-quality/SKILL.md
exports/openclaw/altitude-shifter/SKILL.md
exports/openclaw/ambiguity-resolver/SKILL.md
exports/openclaw/analyst-relations-brief/SKILL.md
exports/openclaw/announcement-card/SKILL.md
exports/openclaw/api-docs-writer/SKILL.md
exports/openclaw/api-test-plan/SKILL.md
exports/openclaw/api-versioning-strategy/SKILL.md
exports/openclaw/apology-letter/SKILL.md
exports/openclaw/architecture-decision-record/SKILL.md
exports/openclaw/architecture-diagram/SKILL.md
exports/openclaw/archive-strategy/SKILL.md
exports/openclaw/assumption-bounty/SKILL.md
exports/openclaw/assumption-mapper/SKILL.md
exports/openclaw/async-update-format/SKILL.md
exports/openclaw/auto-repair-estimate-decoder/SKILL.md
exports/openclaw/autopilot-charter/SKILL.md
exports/openclaw/benefits-decoder/SKILL.md
exports/openclaw/bid-tender-review/SKILL.md
exports/openclaw/board-deck-narrative/SKILL.md
exports/openclaw/board-minutes/SKILL.md
exports/openclaw/board-pre-read/SKILL.md
exports/openclaw/bom-cost-review/SKILL.md
exports/openclaw/bookkeeping-categorization/SKILL.md
exports/openclaw/boolean-search-builder/SKILL.md
exports/openclaw/brag-doc/SKILL.md
exports/openclaw/brainstorming/SKILL.md
exports/openclaw/brief-builder/SKILL.md
exports/openclaw/briefing-note/SKILL.md
exports/openclaw/budget-builder/SKILL.md
exports/openclaw/budget-variance-analysis/SKILL.md
exports/openclaw/bug-diagnosis/SKILL.md
exports/openclaw/bug-report/SKILL.md

Metadata

Files
0
Version
471c606
Hash
32c72b0f
Indexed
2026-07-05 11:38

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-30 12:24
浙ICP备14020137号-1 $방문자$