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.5 $0.00016 $0.00909
Sonnet 5.5 $0.00008 $0.00455
Haiku 4.5 $0.00004 $0.00227

Measured 3mo ago against content hash 0d4a7d22cac7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 (6 stars, last pushed 3mo ago), licensed MIT. It adds 40 tokens to every session and 2,273 once invoked, about $0.0002 per session on Opus 5.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

deprecation-and-migration compared with skills from other repositories

deprecation-and-migration next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
deprecation-and-migrationvanja-emichi/a0_agent_skillsSkill63mo agoMITA40Claude Code, Codex
api-versioning-strategycuriositech/windags-skillsSkill213d agononeA74Claude Code
deprecationericrisco/rsc-harnessSkill6825d agoMITA65Claude Code, Codex
API Versioning TestingPramodDutta/qaskillsSkill25227d agoMITA26Claude Code, Codex
backend-api-versioningj4flmao/agent-skillsSkill4613d agoMITA64Claude Code, Codex
epistemic-graph-migrationsKnuckles-Team/epistemic-graphSkill111mo agoMITA87Claude Code, Codex
Breaking Change DetectorNotysoty/openagentskillsSkill93mo agoMITA23Claude Code, Codex