refactor-break-bw-compat

Remove backward-compatibility layers and legacy shims with test validation.

5|2|Updated Nov 17, 2025
One-click install
npx skills add https://github.com/OutlineDriven/odin-gemini-cli-extension --skill refactor-break-bw-compat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refactor-break-bw-compat
Source: https://github.com/OutlineDriven/odin-gemini-cli-extension/tree/main/skills/refactor-break-bw-compat
Command: npx skills add https://github.com/OutlineDriven/odin-gemini-cli-extension --skill refactor-break-bw-compat

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Refactors that remove backward compatibility layers and legacy shims to modernize APIs and reduce migration debt.

Core Features & Use Cases

  • Clear criteria for removing compatibility shims and deprecations across modules.
  • Structured execution plan: reconnaissance, risk assessment, removal, and validation with tests.
  • Rollback and safety guards, including deprecation timelines and migration helpers.

Quick Start

Plan and execute a safe removal of legacy compatibility layers with test validation.

Frequently Asked Questions about refactor-break-bw-compat

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

FAQPage Schema
What is the best way to remove backward compatibility layers and legacy shims?

Removing legacy shims requires a structured process: reconnaissance to locate compatibility layers, risk assessment, planned removal, and test validation. This ensures safe API modernization and reduces migration debt without breaking existing modules.

How do I safely modernize APIs across multiple modules during a migration-debt cleanup?

Modernizing APIs across modules requires applying clear removal criteria, establishing deprecation timelines, and using rollback guards. This structured execution plan validates changes with tests to ensure safe migration-debt cleanup.

When do I need a deprecation plan for feature-flag cleanups?

A deprecation plan is needed for feature-flag cleanups when removing backward-compatibility layers that affect multiple modules. It provides structured rollback guards and migration helpers to manage risk during API modernization.

How do I assess risks before deleting deprecated code and compatibility shims?

Assess risks before deleting deprecated code by performing reconnaissance to map shim usage and evaluating impact across modules. This structured risk assessment precedes removal and test validation to prevent regressions.

Can I use this structured removal process for API modernization without breaking existing tests?

Yes, this structured removal process enforces test validation as a core step. By applying clear removal criteria and rollback guards, it ensures API modernization proceeds without breaking existing module tests.

What limitations exist when removing legacy shims from large codebases?

Removing legacy shims from large codebases requires careful risk assessment and rollback guards due to hidden module dependencies. Without a structured deprecation timeline, aggressive shim removal can cause unexpected test failures.