addyosmani avatar

Deprecation And Migration

Most teams are better at building systems than removing them, which is how you end up maintaining three authentication flows and two logging libraries. This skill helps you decide whether to sunset old code, plan compulsory versus advisory deprecations, and actually migrate users without leaving zombie code that nobody owns but everybody depends on. The core insight is that code is a liability with ongoing maintenance costs, and Hyrum's Law means you can't just announce deprecation and expect users to switch. It includes the strangler pattern for gradual cutover, the churn rule (if you deprecate infrastructure, you migrate the users), and a decision framework for weighing migration cost against maintenance burden. Use this when replacing APIs, consolidating duplicate implementations, or deciding if that legacy service earns its keep.

skills.sh installs
66.4K
GitHub stars
114.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add addyosmani/agent-skills --skill deprecation-and-migration --agent claude-code

Installs into .claude/skills of the current project.

Files

Deprecation and Migration

Overview

Code is a liability, not an asset. Every line of code has ongoing maintenance cost — bugs to fix, dependencies to update, security patches to apply, and new engineers to onboard. Deprecation is the discipline of removing code that no longer earns its keep, and migration is the process of moving users safely from the old to the new.

Most engineering organizations are good at building things. Few are good at removing them. This skill addresses that gap.

When to Use

  • Replacing an old system, API, or library with a new one
  • Sunsetting a feature that's no longer needed
  • Consolidating duplicate implementations
  • Removing dead code that nobody owns but everybody depends on
  • Planning the lifecycle of a new system (deprecation planning starts at design time)
  • Deciding whether to maintain a legacy system or invest in migration

Core Principles

Code Is a Liability

Sponsors

Details

Repository
github.com/addyosmani/agent-skills
Category
AI & Agent Building
First seen
Apr 16, 2026

More from addyosmani/agent-skills

All 25
1addyosmani avatarobservability-and-instrumentationaddyosmani/agent-skillsInstruments code so production behavior is visible and diagnosable. Use when adding logging, metrics, tracing, or alerting. Use when shipping any feature that r63.8Kskills.sh installs
2firebase avatarextension-to-functions-codebasefirebase/agent-skillsSkill for converting an installed Firebase Extension (or extension source) into a standalone Cloud Functions for Firebase codebase or publishable npm package, i63.5Kskills.sh installs
3amplitude avataradd-analytics-instrumentationamplitude/mcp-marketplaceEnd-to-end analytics instrumentation workflow for a PR, branch, file, directory, or feature. Reads the code, discovers what events should be tracked, and produc55.6Kskills.sh installs
4amplitude avatardiff-intakeamplitude/mcp-marketplaceReads a PR or branch diff and produces a structured YAML change brief for downstream analytics instrumentation skills. Use this as the first step whenever a use55.5Kskills.sh installs
5amplitude avatardiscover-event-surfacesamplitude/mcp-marketplaceGiven a change_brief YAML (output from diff-intake), generates an exhaustive list of candidate analytics events to instrument. Takes the perspective of an engin55.5Kskills.sh installs
6github avatargit-commitgithub/awesome-copilotExecute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git co48.4Kskills.sh installs