/harness-ship:deprecation-and-migrationfrom harness-ship
Plans the removal of old systems, APIs, and features and the safe migration of consumers to replacements, including zero-downtime database schema changes using expand and contract. Use when replacing or sunsetting a system, moving users between implementations, renaming or dropping a column in production, or deciding whether to maintain or retire legacy code.
Ships in harness-ship. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Code is a liability: every line needs tests, patches, dependency upgrades, and attention from whoever works nearby. Its value is the behavior it provides, not the code itself. Deprecation is removing code that no longer earns its keep; migration is moving consumers safely to what replaces it. Teams are usually good at building and poor at removing, so this needs deliberate process.
Not for: routine refactors that keep the public interface and behavior unchanged.
| Type | Use when | Mechanism |
|---|---|---|
| Advisory | Old system is stable, migration is optional | Warnings, docs, nudges; consumers move on their own schedule |
| Compulsory | Security risk, blocks progress, or unsustainable cost | Fixed removal date plus migration tooling, docs, and support |
Default to advisory. A compulsory deadline without tooling and support is just an announcement.
Strangler. Run old and new side by side and shift traffic in steps (0%, canary, 50%, 100%). Remove the old system when it carries nothing.
Adapter. Keep the old interface, implement it on top of the new system, and migrate the backend before the callers.
class LegacyTaskService implements OldTaskAPI {
constructor(private next: NewTaskService) {}
getTask(id: number): OldTask {
const t = this.next.findById(String(id));
return { id: Number(t.id), title: t.title, done: t.status === 'done' };
}
}
Flag-based. Choose the implementation per user or tenant with a flag, moving consumers over gradually.
Data cannot be rolled back by reverting a deploy, so schema changes are the riskiest migrations. The classic failure is coupling a schema change to the code that uses it: during a rollout, old and new code run together, and one of them queries something that no longer exists. So never change a column in place; make additive steps so that old and new code are both valid at every moment.
EXPAND -> MIGRATE -> CONTRACT
add new column, backfill; dual-write drop old column in a
nullable later, separate deploy
Example, renaming name to full_name:
full_name, nullable. Deploy. Old code ignores it.full_name, still write both. Deploy and let it bake.name; then, in a separate later deploy, drop it.Each step is deployable and reversible alone; if step 4 misbehaves, roll the code back and full_name is still being kept current. Treat each phase as a thin slice (harness-build:incremental-implementation).
Rules:
Code with no owner but active consumers. Signs: no commits for months, no maintainer, failing tests nobody fixes, known-vulnerable dependencies, docs pointing at systems that no longer exist. It cannot stay in limbo: either assign an owner and maintain it, or deprecate it with a concrete plan.
| Rationalization | Reality |
|---|---|
| "It still works, why remove it?" | Unmaintained working code accumulates security and complexity debt silently. |
| "Someone might need it later" | It can be rebuilt; keeping it "just in case" usually costs more. |
| "Migration is too expensive" | Compare against two or three years of maintenance. Migration is often cheaper. |
| "We'll plan deprecation after the new system ships" | By then priorities have moved on. Plan at design time. |
| "Users will migrate on their own" | They will not without tooling, docs, and incentives, or you doing it (Churn Rule). |
| "We can keep both forever" | Two systems doing one job double maintenance, testing, and onboarding. |
| "Just rename the column, it's one line" | During rollout one version will query a missing column. Use expand and contract. |
| "Add and drop in the same migration" | That couples a safe add to a destructive drop. Drops get their own deploy. |
| "We'll write the rollback if needed" | An untested down path is a deploy you cannot reverse. |
After a deprecation:
After a schema migration:
What SKILL.md sets; muted values are Claude Code's defaults
2 plugins ship this exact skill · first indexed Nov 17, 2026
4 skills in this plugin
/ci-cd-and-automationDesigns and maintains CI/CD pipelines so every change passes automated quality gates before merge and deploys reversibly. Use when setting up or changing build and deployment pipelines, wiring test runners into CI, choosing a rollout or rollback mechanism, or diagnosing and speeding up a failing or slow pipeline./documentation-and-adrsRecords the reasoning behind a codebase through architecture decision records, why-focused comments, API docs, READMEs, changelogs, and agent-facing project rules, plus a prose review pass. Use when making or revisiting an architectural decision, changing a public API, shipping user-visible behavior, onboarding people or agents, or when the same explanation keeps being repeated./Other plugins' skills for the same job
npx claudepluginhub nx1-org/platformnex-abilities --plugin harness-ship