deprecation-and-migration
Skill1 starsChanged 2 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.
62 other projects use a version of this.
Adopted by
Most recently taken up by
- ishandutta2007/Awesome-Agent-Skillstheir own version, first seen Nov 8, 2026
- TheAstroByte/astrobyte-agent-skillstheir own version, first seen Nov 8, 2026
- MMACABRE/SKILLStheir own version, first seen Nov 8, 2026
- steven123397/nexuskit-skillstheir own version, first seen Nov 1, 2026
- AgnesAI-Labs/agnet-skills-cntheir own version, first seen Nov 1, 2026
- yuusakuri/agent-skillstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use constraint-driven-development, playwright-cli and 5 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.
MrCipherSmithSkillconstraint-driven-development
Use when a project needs a persistent, measurable quality bar — starting a project without documented standards, 'set up constraints', or when coverage/perf/a11y thresholds get re-debated per-PR. Produces CONSTRAINTS.md with enforceable numbers, ratchets, and a guard against silent weakening. NOT for throwaway prototypes or a one-off CI setup.
Also in 14 projects that use this
MicrosoftSkillplaywright-cli
Automate browser interactions, test web pages and work with Playwright tests.
Also in 3 projects that use this
OpenAISkillbrainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
Also in 4 projects that use this
OpenAISkillverification-before-completion
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
Also in 3 projects that use this
MicrosoftSkillcaveman
Ultra-compressed response style that reduces output token count while preserving technical accuracy, with intensity levels and auto-clarity safety rules
Also in 3 projects that use this
VercelSkillvercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
Also in 3 projects that use this
Other versions62 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 62
- addyosmani/agent-skills★ 114ksame name
- shashankswe2020-ux/whoop-mcp★ 174same name
- drvoss/everything-copilot-cli★ 48same name
- vinvcn/addyosmani-agent-skills-zh★ 46same name
- jmxt3/gitscape.ai★ 33same name
- sampleXbro/agentsmesh★ 27same name
- jaskirat1616/grok-skills★ 22same name
- ishandutta2007/Awesome-Agent-Skills★ 21same name
- HK-hub/AgentSkills★ 6same name
- lza6/claw-code-tingfeng★ 5same name
52 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 repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- acceptance-criteriaSkill
- aim-higherSkill
- 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 56 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 56 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.

