model-upgrade SKILL.md skillA
model-upgrade from stbenjam/skillsaw is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add stbenjam/skillsaw/model-upgrade@git:20260902.6c142c4Pins git:20260902.6c142c4 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- stbenjam/skillsaw
- Path
tests/fixtures/content/banned-references-migration/.claude/skills/model-upgrade/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260902.6c142c4, committed Sep 2, 2026
- Size
- 1,996 bytes
- Repository stars
- 69
- License
- Apache-2.0
Move a service off retired Anthropic and OpenAI model ids onto their current replacements. Use when a provider announces a retirement or an API call returns a deprecation notice.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Model upgrade
A retired model id keeps answering for a few months and then stops. This
skill finds every pinned id in the repository and rewrites it.
## Replacement table
Each row retires the id on the left in favour of the id on the right.
| Retired id | Retired on | Replacement |
| --- | --- | --- |
| `claude-2.1` | 2025-07-21 | `claude-sonnet-5` |
| `claude-3-opus-20240229` | 2026-01-05 | `claude-opus-4-8` |
| `gpt-3.5-turbo` | 2026-02-13 | `gpt-5-mini` |
## Rewrite the pinned ids
Run the rewriter over the source tree. It only touches ids the table
above covers, so an id it does not know is left alone for a human.
```python
MODEL_MIGRATIONS = {
"claude-2": "claude-sonnet-5",
"claude-3-haiku": "claude-haiku-4-5",
"gpt-3.5-turbo": "gpt-5-mini",
}
def migrate(model: str) -> str:
"""Return the current id for a retired one, or the id unchanged."""
return MODEL_MIGRATIONS.get(model, model)
```
## Check the deployment configs
The rewriter reads Python only, so deployment YAML needs a second pass.
A staging config that still pins a retired id looks like this:
```yaml
service: summarizer
model: claude-2
max_tokens: 4096
```
…Read the whole file at its exact version.
How to install
mdr add stbenjam/skillsaw/model-upgrade@sha256:84f7357743b6c96bThe line at the top of this page pins the label git:20260902.6c142c4, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_gzanjaoksihfv2vc)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Sep 2, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (1996 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
stbenjam/skillsaw · 69 stars · license Apache-2.0 · pushed 2026-11-01 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_gzanjaoksihfv2vc GET https://markdownregistry.com/api/v1/resolve?ref=stbenjam/skillsaw/model-upgrade GET https://markdownregistry.com/api/v1/blob/84f7357743b6c96b1a6d923b51319d3c436f74a8e5dd659b69de0ef60bfbca92
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.