deprecation-and-migration
Skill1 starsChanged 3 months agoMITView on GitHub
Deprecate, sunset or retire a legacy system, API, feature, duplicate, or zombie code nobody owns — before anything is deleted: inventory its consumers, size the migration from real usage, write migration.md (notice, guide, per-consumer ledger, removal checklist). A schema or data migration is not this; the post-merge release is `shipping-and-launch`'s.
34 other projects use a version of this.
Adopted by
Most recently taken up by
- GuillemRoca/agent-skills-androidtheir own version, first seen Oct 3, 2026
- addyosmani/agent-skillstheir own version, first seen Oct 3, 2026
- weisser-dev/agentic-skillstheir own version, first seen Oct 3, 2026
- ZeroTokenClaw/agents-skillstheir own version, first seen Sep 21, 2026
- vinvcn/addyosmani-agent-skills-zhtheir own version, first seen Sep 15, 2026
- sampleXbro/agentsmeshtheir own version, first seen Sep 1, 2026
Used with
Projects with it also use constraint-driven-development, finishing-a-development-branch and 6 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
vinvcnSkillconstraint-driven-development
把一个项目的质量线确立为书面契约,并阻止 agent 悄悄降低它。通过访谈确定用户在意哪些维度,当用户心里没有数字时提供合理的默认阈值,把一切记录进 CONSTRAINTS.md,并盯住 diff 中质量线被削弱的迹象——新增的 @ts-ignore 或 eslint-disable 抑制注释、被跳过或删除的测试、被剥掉的断言、未实现的 stub、被调低的阈值。当没有任何质量线被写下来时使用;当用户说 "set up constraints" 或 "define our standards" 时;当用户希望把他们在意的维度——无障碍性、Web 性能、覆盖率——设置成被强制执行的约束时;当 agent 为了变绿不断静默检查或跳过测试时;当你需要一个覆盖率或性能阈值却不知道该选什么数字时;或者当 agent 写下的代码超出任何人会读的体量时。
Also in 4 projects that use this
OpenAISkillfinishing-a-development-branch
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work
Also in 3 projects that use this
OpenAISkillusing-git-worktrees
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback
Also in 3 projects that use this
VercelSkillweb-design-guidelines
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
Also in 3 projects that use this
- +4 more from openai
Other versions34 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 34
- addyosmani/agent-skills★ 101ksame name
- shashankswe2020-ux/whoop-mcp★ 165same name
- drvoss/everything-copilot-cli★ 47same name
- az9713/addyosmani-agent-skills★ 38same name
- vinvcn/addyosmani-agent-skills-zh★ 38same name
- jmxt3/gitscape.ai★ 32same name
- pimenov/codex-first-skills-pack★ 25same name
- sampleXbro/agentsmesh★ 25same name
- ishandutta2007/Awesome-Agent-Skills★ 21same name
- HiAi-gg/hiai-opencode★ 18same name
24 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- acceptance-criteriaSkill
- api-designSkill
- architecture-designSkill
- browser-testing-with-devtoolsSkill
- ci-cdSkill
- codebase-designSkill
- codebase-researchSkill
- code-reviewSkill
- code-simplificationSkill
- comprehension-quizSkill
- debugging-and-error-recoverySkill
- documentation-and-adrsSkill
- doubt-driven-developmentSkill
- environment-manifestSkill
- gauntlet-loopSkill
- git-workflowSkill
- handoffSkill
- idea-refineSkill
- incremental-implementationSkill
- interview-meSkill
- literate-explainerSkill
- observability-and-instrumentationSkill
- orchestratorSkill
- performance-optimizationSkill
- plan-breakdownSkill
- preflight-readinessSkill
- project-setupSkill
- pull-requestSkill
- quality-verificationSkill
- security-and-hardeningSkill
- shipping-and-launchSkill
- source-driven-developmentSkill
- spec-grillingSkill
- spec-reviewSkill
- test-driven-developmentSkill
- to-prdSkill
- using-agent-skillsSkill
- worktreeSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 32 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 59
Write it into docs/features/<slug>/migration.md as you go.
- Distinctive: line 98
No maintainer, live consumers, stale dependencies with open vulnerabilities, failing tests nobody fixes.
“Common” is measured: kept by at least 6 in 10 of the 32 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Deprecation and Migration
Purpose
Stage: Ship. Principles 5, 6, 7.
Retires a system, API, feature or duplicate without stranding what still uses it, and sequences removal
behind a replacement that runs. Emits migration.md, no code. Teams build well and remove badly; the
codebase pays rent on both.
When to use / when to skip
- An old system, API, library or duplicate is being replaced, two implementations folded into one, or a feature sunset.
- Something nobody owns still has live consumers.
- A diff deletes or renames a file, symbol, config key or persisted field that something outside names.
- A new system is on the table: its exit is decided now, while the surface is small and a flag is cheap.
- Nothing in the loop calls this by default: it runs when a sunset, replacement or migration is in scope, and no artifact waits on it.
- Near-miss — a dead line in a diff:
code-simplification. A surface nothing consumes yet:api-design. The release after merging:shipping-and-launch.
Inputs
From the prompt where given, the canonical path otherwise. At most three questions with a person present, only where the gap changes the retirement's shape.
- the sunset decision —
docs/features/<slug>/prd.md## Implementation Decisions, its out-of-scope half, or the prompt · without it: read it from the code, successorderived. docs/features/<slug>/research.md— the as-is map the inventory starts from · without it: scan the repository yourself, inventoryderived.- live usage signals — metrics, logs, request or dependency counts · without them: the static scan,
derived. - the replacement — running code, or the plan section where it will exist · without it: unbuilt,
derived. docs/features/<slug>/plan.mdandSTATE.md— the slices this migration's code attaches to · without them: describe the slicesplan-breakdownneeds,derived.
The Deprecation Decision
Answer five questions in the file before anything is declared dead: does it still provide unique value; how many consumers depend on it; does a replacement exist; what one consumer's migration costs; what not retiring it costs in security exposure, engineer time and carried complexity. A yes to the first ends the pass — maintain it, and report the answer that stopped it.
Compulsory vs Advisory Deprecation
Advisory by default: warnings and docs, each consumer moving on its own timeline. Compulsory — a dated removal — earns its cost only when the old system carries a security problem, blocks the work or costs more than it returns, and only with migration tooling, documentation and support behind the date.
The Migration Process
Write it into docs/features/<slug>/migration.md as you go; shape in Outputs & handoff.
- Inventory every consumer and touchpoint before sizing the work — imports, call sites, config and cache keys, persisted data, env vars, docs, tests, dashboards, alerts. Grep the concept and its vocabulary, not the filename. Past enough consumers, every observable behaviour — error text and timing included — is depended on by someone.
- Give usage a number and its source. With no metric or log, use the static scan, mark the figure
derived, and name what that scan cannot see. - Sequence removal behind a replacement proven in production — critical use cases covered, documented, running. While it is on paper, write the notice and ledger anyway, leave the Removal Checklist unticked, and put its slices first.
- Name the route (below) and the advisory-or-compulsory call (above) in the notice.
- Migrate consumers one at a time, ticking a ledger row each: touchpoints found, consumer moved, behaviour verified, old references deleted, no regressions. The Churn Rule — whoever owns the retired thing owns the migration off it, or ships a backward-compatible change needing none.
- Remove only once every ledger row reads migrated-and-verified and usage reads zero — code, tests, docs, config and the notices themselves, in one pass.
- Decide the rest and leave a trace. Removal date, advisory or compulsory, the old system's data:
default, reason, one
docs/session-log.mdentry, a Decided-for-you row in the PR. A removal with no way back, or one crossing the Not-Doing list, is a stop-list item (safety-rails.md) — hand it back.
Migration Patterns
| Route | Shape | Fits |
| Strangler | run both, route 0 → 10 → 50 → 100%, retire the old at 0% | traffic-bearing systems |
| Adapter | keep the old interface, delegate to the new implementation | consumers you do not own |
| Feature flag | move consumers across one at a time behind a flag | many consumers, one codebase |
| In place | change every touchpoint in one commit | few consumers, all yours |
Zombie Code
No maintainer, live consumers, stale dependencies with open vulnerabilities, failing tests nobody fixes. It gets an owner or a dated plan out; limbo is not a third option.
Rationalizations
- "It still works, why remove it?" → unmaintained code accrues security debt in silence.
- "Nothing imports it, so nobody uses it" → a scan misses a persisted key already in browsers, a client in the field, a cron nobody grepped.
- "They'll migrate on their own" → they have their own backlog; the retiring owner owns the migration.
- "A hard date will make them move" → a deadline with no tooling or guide is an announcement.
- "Someone might need it later" → rebuilding it then costs less than carrying it until then.
- "We'll plan the exit once the new system ships" → by then there are new priorities; the exit is decided while the surface is small.
Red flags
- A dated deprecation notice with no tooling, guide or support behind it.
- "Nothing imports it" standing in for a usage number, on something with persisted data or field clients.
- A blank verification cell, or a ticked Removal Checklist box with no evidence.
- A system advisory-deprecated for years, still taking new features.
- Zombie code left in limbo rather than owned or dated out.
- A removal leaving orphaned consumers, reported as a ship.
Verification
- The five questions are answered in the file, or the report names the answer that stopped the pass.
- The inventory names every touchpoint and the scan that found it; usage carries a number, its
source, and — where
derived— what that scan cannot see. - Removal sits behind a replacement running in production, or the Removal Checklist is unticked and the replacement's slices come first.
- The notice is filled out and names the route; the guide's steps paste.
- The ledger holds one row per consumer with no cell blank, every ticked Removal Checklist box has its evidence beside it, and nothing reads removed while a ledger row is unmigrated.
Outputs & handoff
docs/features/<slug>/migration.md — cap 600 words, four stable sections, written for a cold reader
holding one consumer. An over-cap file is trimmed, not handed on as if it fit.
# Migration — <what is being retired>
## Deprecation Notice Status · Replacement · Removal date (advisory, or a date) · Reason · route
## Migration Guide copy-pasteable steps and a worked example, per kind of consumer
## Migration Ledger | Consumer | Touchpoints | Migrated? | Verified (tests/metrics) |
## Removal Checklist zero usage proven with the evidence · code, tests, docs, config removed ·
no reference left anywhere · the deprecation notices themselves goneThe Migration Ledger is the source of truth for "every consumer has moved".
Appended to docs/session-log.md: one entry per default taken, cap 60 words; shape in
state-schema.md.
Returned in conversation: path, the measured word count against the cap, the route chosen, and what removal waits on.
Nothing else. No STATE.md row — a code-changing migration is cut into slices by plan-breakdown,
whose rows and tokens are the run's (state-schema.md); no code,
test, commit or pull request. The removal and replacement commits go out through git-workflow and
pull-request, citing this file and any ADR it supersedes.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

