deprecation-and-migration

Manages removal of old systems, APIs, and features while safely migrating users to replacements.

113k|11.8k|Updated Feb 15, 2026
Ready to run
npx skills add https://github.com/addyosmani/agent-skills --skill deprecation-and-migration-addyosmani
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: deprecation-and-migration
Source: https://github.com/addyosmani/agent-skills/tree/main/skills/deprecation-and-migration
Command: npx skills add https://github.com/addyosmani/agent-skills --skill deprecation-and-migration-addyosmani

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Most engineering organizations excel at building new systems but struggle with safely removing old ones. This Skill provides the discipline and processes needed to deprecate code that no longer earns its maintenance cost, migrate users without breaking their workflows, and remove technical debt systematically. ## Core Features & Use Cases - Deprecation Decision Framework: Evaluate whether to maintain or sunset existing code using a structured decision process. - Migration Patterns: Implement strangler, adapter, and feature flag approaches to move users from old to new systems incrementally. - Database Schema Migrations: Execute zero-downtime schema changes using expand/contract patterns that keep old and new code compatible at every deploy step. - Use Case: You're replacing a legacy authentication service with a new one. Use this Skill to run both systems in parallel, gradually route traffic to the new service via feature flags, verify zero active usage of the old one, then safely remove it—all without downtime. ## Quick Start Apply the deprecation decision framework to determine if your system has sufficient replacement coverage and acceptable migration costs before announcing any deprecation timeline.

Frequently Asked Questions about deprecation-and-migration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely remove a legacy API without breaking existing clients?▼

Use the strangler pattern to run old and new APIs in parallel, gradually routing traffic from old to new through feature flags or canary releases. Monitor metrics to verify zero active usage of the old API, then remove it in a separate deploy after confirming migration is complete.

What is the expand/contract pattern for database migrations?▼

Expand by adding a new nullable column alongside the old one, migrate by dual-writing to both columns during deployment, backfill existing rows in batches, switch reads to the new column, then contract by removing the old column in a separate, later deploy. This decouples schema changes from code changes and allows rollback at each phase.

When should I use advisory versus compulsory deprecation?▼

Use advisory deprecation when the old system is stable and users can migrate at their own pace; use compulsory deprecation only when security risks, blocking dependencies, or unsustainable maintenance costs justify a hard removal deadline. Compulsory deprecation requires providing migration tooling and support.

Why can't I rename a database column in a single deploy?▼

During a rollout, old and new code versions run simultaneously. If you rename a column in place, one version will query a column that no longer exists, causing failures. Use expand/contract to keep both column names valid throughout the entire deployment window.

What is zombie code and how should I handle it?▼

Zombie code is maintained code that nobody owns but everyone depends on—it accumulates security vulnerabilities and breaks silently. Either assign an owner and maintain it properly, or deprecate it with a concrete migration plan. Zombie code cannot remain indefinitely in limbo.

How do I verify that all consumers have migrated away from a deprecated system?▼

Measure active usage through logs, metrics, and dependency analysis. Query the old system's database or API access logs to confirm zero traffic. Only after verification should you remove the code, tests, documentation, and configuration in a final cleanup step.