agentleFS
jacksonwilliamsvajacksonwilliamsva/kiro-skills-library/skills/deprecation-and-migration/SKILL.md

deprecation-and-migration

Skill2 starsChanged 7 months agoMITView on GitHub

Use when removing old systems, APIs, Terraform modules, or libraries. Use when migrating consumers from one implementation to another. Use when deciding whether to maintain or sunset existing code. Use when planning the lifecycle of new systems.

80 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use accessibility-engineering, using-agent-skills and 7 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.
  • steven123397Skill

    accessibility-engineering

    Audits existing interfaces for WCAG 2.2 AA conformance and remediates the violations found. Use when auditing a page or component for accessibility, running axe-core or pa11y, triaging a11y violations, or checking screen reader and contrast issues before shipping.

    Also in 4 projects that use this

  • LLl0k0laDSkill

    using-agent-skills

    Use when starting a session or when you need to discover which skill applies to the current task. This is the meta-skill that governs how all other skills are discovered and invoked.

    Also in 38 projects that use this

  • MrCipherSmithSkill

    constraint-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 19 projects that use this

  • LLl0k0laDSkill

    idea-refine

    Refine ideas through structured divergent and convergent thinking. Use "idea-refine" or "ideate" to trigger.

    Also in 41 projects that use this

  • seikaikyoSkill

    doubt-driven-development

    對非平凡決策啟動新鮮 context 對抗審查(找碴不背書),在修正還便宜的時候抓出錯誤方向。適用:高風險改動(production、資安敏感邏輯、不可逆操作)、不熟的程式碼、要宣稱「這樣是安全的 / 可行的」之前。機械性操作與一行修改不適用。

    Also in 40 projects that use this

  • +4 more from LLl0k0laD

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 73 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Code Is a Liability: Every line has ongoing cost — tests, docs, security patches, dependency updates, onboarding.

    line 10
  2. Distinctive:

    Deprecation Planning Starts at Design Time: Ask: "How would we remove this in 3 years?" Clean interfaces, feature flags, and minimal …

    line 14
  3. Distinctive:

    Before deprecating, answer in order:

    line 18
  4. Distinctive:

    If you own the deprecated infrastructure, you migrate consumers — or provide backward-compatible updates requiring no migration.

    line 37

“Common” is measured: kept by at least 6 in 10 of the 73 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Deprecation and Migration

Core Principles

Code Is a Liability. Every line has ongoing cost — tests, docs, security patches, dependency updates, onboarding. Value is the functionality, not the code. When less complexity delivers the same result, the old code should go.

Hyrum's Law Makes Removal Hard. With enough consumers, every observable behavior becomes depended on — including bugs and undocumented side effects. Deprecation requires active migration, not just announcement.

Deprecation Planning Starts at Design Time. Ask: "How would we remove this in 3 years?" Clean interfaces, feature flags, and minimal surface area make future deprecation possible.

Deprecation Decision Framework

Before deprecating, answer in order:

  1. Still provides unique value? → Maintain it.
  2. How many consumers? → Quantify migration scope.
  3. Replacement exists? → If no, build one first. Never deprecate without an alternative.
  4. Migration cost per consumer? → If automatable, do it. If manual, weigh against maintenance cost.
  5. Cost of NOT deprecating? → Security risk, engineer time, opportunity cost.

Compulsory vs Advisory Deprecation

TypeWhenMechanism
AdvisoryOld system stable, migration optionalWarnings, docs, nudges. Consumers migrate on own timeline.
CompulsorySecurity issues, blocks progress, unsustainable maintenanceHard deadline with migration tooling, docs, and support.

Default to advisory. Compulsory requires providing migration tooling — you can't just announce a deadline.

The Churn Rule

If you own the deprecated infrastructure, you migrate consumers — or provide backward-compatible updates requiring no migration.

Anti-Rationalization Table

RationalizationReality
"It still works, why remove it?"Unmaintained code accumulates security debt silently.
"Someone might need it later"Rebuilding costs less than maintaining unused code.
"The migration is too expensive"Compare to 2-3 years of ongoing maintenance cost.
"We'll deprecate after the new system"You'll have new priorities by then. Plan now.
"Users will migrate on their own"They won't. Provide tooling or do it yourself.
"We can maintain both indefinitely"Two systems = double maintenance, testing, docs, and onboarding.

Red Flags

  • Deprecated system with no replacement
  • Deprecation announcement with no migration tooling
  • Advisory deprecation stalled for years
  • Zombie code: no owner, no commits 6+ months, active consumers, known vulns
  • New features added to a deprecated system
  • Removal without verifying zero active consumers

Verification

  • Replacement is production-proven and covers critical use cases
  • Migration guide with concrete steps exists
  • All consumers migrated (verified by metrics/logs/dependency analysis)
  • Old code, tests, docs, config fully removed
  • No references to deprecated system remain

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.