Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/zademy-deprecation-and-migration
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/deprecation-and-migration
What's inside
- Skill name
deprecation-and-migration- Description
- Manages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code.
- License
- MIT
- Instructions
- 244 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# 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
Every line of code has ongoing cost: it needs tests, documentation, security patches, dependency updates, and mental overhead for anyone working nearby. The value of code is the functionality it provides, not the code itself. When the same functionality can be provided with less code, less complexity, or better abstractions — the old code should go.
### Hyrum's Law Makes Removal Hard
With enough users, every observable behavior becomes depended on — including bugs, timing quirks, and undocumented side effects. This is why deprecation requires active migration, not just announcement. Users can't "just switch" when they depend on behaviors the replacement doesn't replicate.
### Deprecation Planning Starts at Design Time
When building something new, ask: "How would we remove this in 3 years?" Systems designed with clean interfaces, feature flags, and minimal surface area are easier to deprecate than systems that leak implementation details everywhere.
## The Deprecation Decision
Before deprecating anything, answer these questions:
```
1. Does this system still provide unique value?
→ If yes, maintain it. If no, proceed.
2. How many users/consumers depend on it?
→ Quantify the migration scope.
3. Does a replacement exist?
→ If no, build the replacement first. Don't deprecate without an alternative.
4. What's the migration cost for each consumer?
→ If trivially automated, do it. If manual and high-effort, weigh against maintenance cost.
5. What's the ongoing maintenance cost of NOT deprecating?
→ Security risk, engineer time, opportunity cost of complexity.
```
## Compulsory vs Advisory Deprecation
| Type | When to Use | Mechanism |
|------|-------------|-----------|
| **Advisory** | Migration is optional, old system is stable | Warnings, documentation, nudges. Users migrate on their own timeline. |
| **Compulsory** | Old system has security issues, blocks progress, or maintenance cost is unsustainable | Hard deadline. Old system will be removed by date X. Provide migration tooling. |
**Default to advisory.** Use compulsory only when the maintenance cost or risk justifies forcing migration. Compulsory deprecation requires providing migration tooling, documentation, and support — you can't just announce a deadline.
## The Migration Process
### Step 1: Build the Replacement
Don't deprecate without a working alternative. The replacement must:
- Cover all critical use cases of the old system
- Have documentation and migration guides
- Be proven in production (not just "theoretically better")
### Step 2: Announce and Document
```markdown
## Deprecation Notice: OldService
**Status:** Deprecated as of 2025-03-01
**Replacement:** NewService (see migration guide below)
**Removal date:** Advisory — no hard deadline yet
**Reason:** OldService requires manual scaling and lacks observability.
NewService handles both automatically.
### Migration Guide
1. Replace `import { client } from 'old-service'` with `import { client } from 'new-service'`
2. Update configuration (see examples below)
3. Run the migration verification script: `npx migrate-check`
```
### Step 3: Migrate Incrementally
Migrate consumers one at a time, not all at once. For each consumer:
```
1. Identify all touchpoints with the deprecated system
2. Update to use the replacement
3. Verify behavior matches (tests, integration checks)
4. Remove references to the old system
5. Confirm no regressions
```
**The Churn Rule:** If you own the infrastructure being deprecated, you are responsible for migrating your users — or providing backward-compatible updates that require no migration. Don't announce deprecation and leave users to figure it out.
### Step 4: Remove the Old System
Only after all consumers have migrated:
```
1. Verify zero active usage (metrics, logs, dependency analysis)
2. Remove the code
3. Remove associated tests, documentation, and configuration
4. Remove the deprecation notices
5. Celebrate — removing code is an achievement
```
## Migration Patterns
### Strangler Pattern
Run old and new systems in parallel. Route traffic incrementally from old to new. When the old system handles 0% of traffic, remove it.From zademy/opencode-context-mode, MIT.
More from zademy/opencode-context-mode
- 0.603score
open-context-mode
zademy
Run code where the data lives — only the answer enters context.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
constraint-driven-development
zademy
Establishes a project's quality bar as a written contract and stops agents quietly lowering it.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
performance-optimization
zademy
Optimizes application performance across frontend, backend, queries, and databases.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
security-and-hardening
zademy
Hardens code against vulnerabilities.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
git-workflow-and-versioning
zademy
Structures git workflow practices.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
incremental-implementation
zademy
Delivers changes incrementally in thin, verifiable slices.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
observability-and-instrumentation
zademy
Instruments code so production behavior is visible and diagnosable.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
frontend-ui-engineering
zademy
Builds production-quality, accessible, responsive user-facing UIs.
SkillAFreshness: A★ 2Claude Code +9 - 0.573score
debugging-and-error-recovery
zademy
Guides systematic root-cause debugging.
SkillAFreshness: A★ 2Claude Code +9 - 0.573score
documentation-and-adrs
zademy
Records decisions and documentation.
SkillAFreshness: A★ 2Claude Code +9 - 0.573score
doubt-driven-development
zademy
Subjects every non-trivial decision to a fresh-context adversarial review before it stands.
SkillAFreshness: A★ 2Claude Code +9 - 0.573score
code-review-and-quality
zademy
Conducts multi-axis code review.
SkillAFreshness: A★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 1
- Last commit (this folder)
- Oct 24, 2026 (4 days ago)
- Last release
- Oct 24, 2026 (4 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/zademy/opencode-context-mode
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.324score
deprecation-and-migration
weisser-dev
Manages deprecation and migration.
SkillAFreshness: AClaude Code +9 - 0.324score
deprecation-and-migration
ha4kerspidersks
Manages deprecation and migration.
SkillAFreshness: AClaude Code +9 - 0.324score
deprecation-and-migration
kashman001
Manages deprecation and migration.
SkillAFreshness: AClaude Code +9 - 0.324score
deprecation-and-migration
Qiuyi-Hong
Manages deprecation and migration.
SkillAFreshness: AClaude Code +9 - 0.321score
deprecation-and-migration
trobias
Manages deprecation and migration.
SkillAFreshness: AClaude Code +9 - 0.321score
deprecation-and-migration
AI-Degen-69
Manages deprecation and migration.
SkillAFreshness: AClaude Code +9 - 0.321score
deprecation-and-migration
Bhatta2006
Manages deprecation and migration.
SkillAFreshness: AClaude Code +9 - 0.321score
deprecation-and-migration
FarhanS7
Manages deprecation and migration.
SkillAFreshness: AClaude Code +9 - 0.321score
deprecation-and-migration
raiinman
Manages deprecation and migration.
SkillAFreshness: AClaude Code +9
More from zademy
- 0.603score
security-and-hardening
zademy
Hardens code against vulnerabilities.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
performance-optimization
zademy
Optimizes application performance across frontend, backend, queries, and databases.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
open-context-mode
zademy
Run code where the data lives — only the answer enters context.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
constraint-driven-development
zademy
Establishes a project's quality bar as a written contract and stops agents quietly lowering it.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
incremental-implementation
zademy
Delivers changes incrementally in thin, verifiable slices.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
git-workflow-and-versioning
zademy
Structures git workflow practices.
SkillAFreshness: A★ 2Claude Code +9
Cite this page
deprecation-and-migration skill. Agent Mart. https://agentmart.dev/skills/zademy-deprecation-and-migration (last updated 2026-10-24)