Chalk Labs
Need help deploying deprecation-and-migration?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
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/qiuyi-hong-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: not checked yet.
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
- 247 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
<!-- Generated from upstream/agent-skills/skills/deprecation-and-migration/SKILL.md by scripts/generate-command-skills.ts; do not edit. -->
> **Pi compatibility:** Upstream `/command` references map to generated `/skill:command` skills.
# 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 PatternsFrom Qiuyi-Hong/pi-addyosmani-skills, MIT.
More from Qiuyi-Hong/pi-addyosmani-skills
- 0.558score
code-simplify
Qiuyi-Hong
Simplify code for clarity and maintainability — reduce complexity without changing behavior
SkillAFreshness: AClaude Code +9 - 0.558score
constraints
Qiuyi-Hong
Define and enforce this project's quality bar — interview, sane defaults, CONSTRAINTS.md
SkillAFreshness: AClaude Code +9 - 0.558score
ship
Qiuyi-Hong
Run the pre-launch checklist via parallel fan-out to specialist personas, then synthesize a go/no-go decision
SkillAFreshness: AClaude Code +9 - 0.558score
build
Qiuyi-Hong
Implement tasks incrementally — build, test, verify, commit.
SkillAFreshness: AClaude Code +9 - 0.553score
spec
Qiuyi-Hong
Start spec-driven development — write a structured specification before writing code
SkillAFreshness: AClaude Code +9 - 0.553score
plan
Qiuyi-Hong
Break work into small verifiable tasks with acceptance criteria and dependency ordering
SkillAFreshness: AClaude Code +9 - 0.553score
review
Qiuyi-Hong
Conduct a five-axis code review — correctness, readability, architecture, security, performance
SkillAFreshness: AClaude Code +9 - 0.528score
test
Qiuyi-Hong
Run TDD workflow — write failing tests, implement, verify.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 2, 2026 (28 days ago)
- Last release
- Sep 28, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- 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.573score
deprecation-and-migration
zademy
Manages deprecation and migration.
SkillAFreshness: A★ 2Claude Code +9 - 0.324score
deprecation-and-migration
kashman001
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
weisser-dev
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
raiinman
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
FarhanS7
Manages deprecation and migration.
SkillAFreshness: AClaude Code +9 - 0.321score
deprecation-and-migration
Bhatta2006
Manages deprecation and migration.
SkillAFreshness: AClaude Code +9
More from Qiuyi-Hong
- 0.558score
code-simplify
Qiuyi-Hong
Simplify code for clarity and maintainability — reduce complexity without changing behavior
SkillAFreshness: AClaude Code +9 - 0.558score
constraints
Qiuyi-Hong
Define and enforce this project's quality bar — interview, sane defaults, CONSTRAINTS.md
SkillAFreshness: AClaude Code +9 - 0.558score
ship
Qiuyi-Hong
Run the pre-launch checklist via parallel fan-out to specialist personas, then synthesize a go/no-go decision
SkillAFreshness: AClaude Code +9 - 0.558score
build
Qiuyi-Hong
Implement tasks incrementally — build, test, verify, commit.
SkillAFreshness: AClaude Code +9 - 0.553score
spec
Qiuyi-Hong
Start spec-driven development — write a structured specification before writing code
SkillAFreshness: AClaude Code +9 - 0.553score
plan
Qiuyi-Hong
Break work into small verifiable tasks with acceptance criteria and dependency ordering
SkillAFreshness: AClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get deprecation-and-migration running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
deprecation-and-migration skill. Agent Mart. https://agentmart.dev/skills/qiuyi-hong-deprecation-and-migration (last updated 2026-10-24)