deprecation-and-migration

deprecation-and-migration is a skill for Claude Code, Codex from vanja-emichi/a0_agent_skills. It costs 40 tokens per session (2,273 once invoked), scanned A, original, MIT.

A process for changing or removing APIs, databases, dependencies, or software architecture while guiding existing users to the replacement.

In plain words
What is it for?
Use it when replacing public APIs, changing database structures, upgrading major dependencies, or moving between architectural patterns.
Why use it?
It reduces the chance that existing code or users will break during a migration.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is npx jscodeshift -t ./codemods/rename-createTask.js src/.

Good fit Use it when replacing public APIs, changing database structures, upgrading major dependencies, or moving between architectural patterns.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/vanja-emichi/a0_agent_skills
agentmods
npx agentmods add skills/vanja-emichi/a0_agent_skills/deprecation-and-migration

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for deprecation-and-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/vanja-emichi/a0_agent_skills/deprecation-and-migration/github.svg)](https://agentmods.dev/skills/vanja-emichi/a0_agent_skills/deprecation-and-migration)
Your own site
<a href="https://agentmods.dev/skills/vanja-emichi/a0_agent_skills/deprecation-and-migration"><img src="https://agentmods.dev/badge/skills/vanja-emichi/a0_agent_skills/deprecation-and-migration/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for deprecation-and-migration

Your own site · 80×15
<a href="https://agentmods.dev/skills/vanja-emichi/a0_agent_skills/deprecation-and-migration"><img src="https://agentmods.dev/badge/skills/vanja-emichi/a0_agent_skills/deprecation-and-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,273 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.02273
Opus 5 $0.00020 $0.01137
Sonnet 5 $0.00008 $0.00455
Haiku 4.5 $0.00004 $0.00227

Measured 11d ago against content hash 0d4a7d22cac7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

deprecation-and-migration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/deprecation-and-migration/SKILL.md · 318 lines

How it starts

The opening of the file, as written. The whole thing — 318 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Deprecation and Migration

Overview

Remove and migrate safely. The goal of deprecation is to guide consumers away from old patterns without breaking them — giving adequate notice, providing a clear migration path, and removing dead code only after adoption is confirmed. Rushed deprecations break trust. Abandoned deprecations create maintenance debt.

When to Use

  • Removing or changing a public API endpoint
  • Renaming or restructuring modules or functions
  • Migrating a database schema
  • Upgrading a major dependency version
  • Moving from one architectural pattern to another (monolith → microservices, REST → GraphQL)

The Deprecation Protocol

Stage 1: Plan (Before Writing Code)

BEFORE DEPRECATING, ANSWER:
1. Who uses this? (Use grep -rn via code_execution_tool to find all usages)
2. What is the migration path? (Don't deprecate without a replacement)
3. How long do consumers need? (Internal: 1-2 weeks. External: 1-6 months)
4. Can I migrate them automatically? (Script > docs > manual)
5. What breaks if I remove it today? (Test with code_execution_tool)

Stage 2: Communicate

For internal code:

// Mark with @deprecated JSDoc tag
/**
 * @deprecated Use `createTaskV2(input)` instead. Will be removed in v4.0.0.
 * Migration guide: see docs/migrations/task-api-v4.md
 */
export function createTask(title: string, priority: number): Task {
  console.warn('[DEPRECATED] createTask() is deprecated. Use createTaskV2() instead.');
  return createTaskV2({ title, priority: mapPriority(priority) });
}

For external APIs:

// HTTP Deprecation headers (RFC 8594)
app.post('/api/v1/tasks', (req, res) => {
  res.set('Deprecation', 'true');
  res.set('Sunset', 'Sat, 01 Jan 2026 00:00:00 GMT');
  res.set('Link', '</api/v2/tasks>; rel="successor-version"');

  // ... existing handler
});

Stage 3: Migrate

Prefer automated migration over documentation:

# Codemod for mechanical renames
npx jscodeshift -t ./codemods/rename-createTask.js src/

# Database migration (Prisma)
npx prisma migrate dev --name rename_priority_column

# Check remaining usages after migration
grep -rn "createTask(" src/ --include="*.ts" | grep -v "createTaskV2"

Read the full file on GitHub · 318 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 318 lines · 40 tokens per session scan A 0d4a7d22cac7

Subscribe to this mod's changes

deprecation-and-migration is a skill published in the GitHub repository vanja-emichi/a0_agent_skills (5 stars, last pushed 1mo ago), licensed MIT. It adds 40 tokens to every session and 2,273 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

api-versioning-strategy

Choosing and operating an HTTP API versioning strategy that doesn't break clients — Stripe's date-based pinned versions, the Deprecation/Sunset header pair (RFC 9745 + RFC 8594), URI vs header vs media-type approaches, and the version-transformer pattern. Grounded in Stripe's published architecture and IETF RFCs.

curiositech/windags-skills · 74 tokens

database-patterns

Database design and migration patterns for Alembic migrations, schema design (SQL/NoSQL), and database versioning. Use when creating migrations, designing schemas, normalizing data, managing database versions, or handling schema drift.

yonatangross/orchestkit · 49 tokens

API Versioning Testing

Testing API versioning strategies including URL path, header, and query parameter versioning with backward compatibility validation.

PramodDutta/qaskills · 26 tokens

deprecation

Use when retiring a public API, feature, integration, service or legacy path without abandoning consumers. Inventories usage, classifies advisory vs compulsory migration, ships compatibility/tooling, assigns owners and gates removal on evidence. NOT live schema expand-contract (db-migrations), NOT replacement API…

ericrisco/rsc-harness · 65 tokens

backend-api-versioning

Use this skill when the user says 'API versioning', 'version strategy', 'URI versioning', 'header versioning', 'content negotiation', 'accept header', 'breaking change', 'API migration', 'deprecate endpoint', 'sunset endpoint'. This skill manages API version transitions using URI, header, or content-negotiation…

j4flmao/agent-skills · 102 tokens

epistemic-graph-migrations

Upgrade and migrate a live epistemic-graph engine (the AI-native database): binary version flips, the one-time snapshot/.mp -> redb authoritative migration, config/env migrations (e.g. retired GRAPHBACKEND values), and on-disk data-format evolution (bi-temporal fields, persisted blobs). Use when raising the engine…

Knuckles-Team/epistemic-graph · 87 tokens