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.
git clone --depth 1 https://github.com/vanja-emichi/a0_agent_skillsnpx agentmods add skills/vanja-emichi/a0_agent_skills/deprecation-and-migrationWrote 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.
[](https://agentmods.dev/skills/vanja-emichi/a0_agent_skills/deprecation-and-migration)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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"
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.
- 11d ago First seen · 318 lines · 40 tokens per session scan A 0d4a7d22cac7
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.
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.
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.
API Versioning Testing
Testing API versioning strategies including URL path, header, and query parameter versioning with backward compatibility validation.
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…
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…
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…