deprecation-and-migration

Plans safe API, schema, and data migrations with rollback and compatibility windows.

1|Updated Sep 10, 2026
One-click install
npx skills add https://github.com/thienty1207/Hotel_Staff --skill deprecation-and-migration-thienty1207
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deprecation-and-migration
Source: https://github.com/thienty1207/Hotel_Staff/tree/main/.baron/core/skills/deprecation-and-migration
Command: npx skills add https://github.com/thienty1207/Hotel_Staff --skill deprecation-and-migration-thienty1207

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Changing legacy APIs, database schemas, configs, or feature flags without breaking existing consumers is risky: silent data loss, unbounded backfills, missing rollback paths, and premature deletion of old code are common failure modes. This Skill provides a structured methodology for planning and verifying migrations, deprecations, and rollouts so old and new behavior coexist safely until retirement is proven. ## Core Features & Use Cases - Migration Mapping: Identifies current state, target state, source of truth, consumers, compatibility window, rollout control, and rollback path before any edit. - Safe Patterns Library: Covers expand/migrate/contract, dual-read, dual-write, feature flags, and shadow mode with explicit failure and mismatch policies. - Data Migration Safety Rules: Enforces backups, idempotent bounded batches, progress checkpoints, count/checksum verification, and PII-safe logging. - Use Case: When replacing a username-based auth session model or migrating a PostgreSQL schema, use this Skill to produce a plan covering dual-read fallback, staged rollout behind a flag, dry-run verification, and a tested rollback path. ## Quick Start Ask the AI to plan a safe migration of the legacy API endpoint to the new schema, including a compatibility window, dual-read fallback, and a verified rollback path.

Frequently Asked Questions about deprecation-and-migration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate a database schema without downtime?

Use the expand/migrate/contract pattern: add new columns or tables additively first, migrate code to read and write the new shape, backfill old data in bounded batches, verify counts, then contract only after old readers and writers are gone.

How to deprecate an API endpoint safely?

Define a compatibility window with explicit start and end conditions, identify all consumers including unknown ones, keep old behavior working during the window, and remove old code only after evidence shows no callers remain.

What is dual-write and when should I use it?

Dual-write means writing to both old and new data stores during a transition. Use it only when required, with a defined failure policy, idempotency for retries, mismatch tracking, and a clear statement of which source stays authoritative for rollback.

When should I not use a migration planning approach?

Skip it for greenfield work with no existing consumers, compatibility requirements, or data migration risk. The methodology adds overhead that only pays off when old and new behavior must coexist or data must be preserved.

Why is rollback more than reverting code?

Rollback must account for data written during the new path, whether old code can read new data, provider and config changes, and feature flag state. High-risk migrations need the rollback path verified in a test or dry-run, not assumed.