Deprecation Handler

Detect and migrate deprecated APIs, types, and modules in codebases.

1|Updated Sep 9, 2025
One-click install
npx skills add https://github.com/alienfast/claude --skill deprecation-handler
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Deprecation Handler
Source: https://github.com/alienfast/claude/tree/main/skills/deprecation-handler
Command: npx skills add https://github.com/alienfast/claude --skill deprecation-handler

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires npm, yarn, tsc, eslint, and includes resources (resource) components.

What problem does it solve?

Dealing with deprecated APIs, libraries, and language features can be a constant headache for developers, leading to technical debt, build warnings, and potential security vulnerabilities. This Skill automates the process of identifying, assessing, and safely migrating deprecated code, ensuring your codebase remains clean, modern, and maintainable.

Core Features & Use Cases

  • Automated Deprecation Detection: Scans your codebase for deprecation warnings from compilers, linters, and dependency audits.
  • Impact Assessment & Prioritization: Analyzes the scope and risk of deprecations, helping you prioritize immediate fixes versus planned migrations.
  • Safe Migration Patterns: Guides you through systematic, incremental code replacements, including dual implementation testing and rollback strategies.
  • Use Case: When you see a componentWillMount warning in your React project, invoke this Skill to get a step-by-step plan to migrate it to useEffect, including code examples and testing strategies.

Quick Start

I have deprecation warnings in my React project. Help me identify and migrate them to modern patterns.

Frequently Asked Questions about Deprecation Handler

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

FAQPage Schema
How do I identify deprecation warnings in my TypeScript and React codebase?

Deprecation warnings come from TypeScript compiler, ESLint, and npm audit. This Skill scans your codebase to detect all deprecation warnings from these sources, then prioritizes them by scope and risk so you know what to fix first.

How do I safely migrate deprecated React patterns like componentWillMount to modern hooks?

Migration involves systematic code replacement with dual implementation testing and rollback strategies. This Skill provides step-by-step plans with code examples and test validation to ensure each deprecated pattern transitions safely to its modern equivalent.

Can I automate deprecation detection across npm and yarn dependencies?

Yes. This Skill scans dependency audits from npm and yarn, identifying breaking changes and deprecated APIs introduced during upgrades, then guides you through prioritized, safe replacements with impact analysis.

What's the best way to handle legacy code modernization during Node.js version upgrades?

Breaking changes and deprecated APIs often surface during upgrades. This Skill assesses scope and risk, creates migration plans with safe replacement patterns, and validates changes through tests and regression checks.

How do I prioritize which deprecations to fix first in a large refactoring project?

Deprecation Handler analyzes impact and risk for each warning, helping you prioritize immediate fixes versus planned migrations based on scope and codebase dependencies.

Does this work with both TypeScript and Node.js deprecations?

Yes. The Skill handles TypeScript compiler warnings, ESLint linter warnings, and Node.js dependency deprecations, providing unified detection and migration guidance across your tech stack.