Identify and replace deprecated API usage in source code with modern alternatives. Use when: (1) Modernizing legacy codebases, (2) Upgrading framework versions (React, Django, Spring, etc.), (3) Fixing deprecation warnings in build output, (4) Preparing for major version upgrades, (5) Ensuring code uses current best practices. Supports Python, JavaScript/TypeScript, Java, and other major languages with both AST-based detection and pattern matching for accurate identification and automated replacement with validation.
93
92%
Does it follow best practices?
Impact
90%
1.60xAverage score across 3 eval scenarios
Passed
No known issues
Python deprecated API detection and replacement workflow
Detect script used
0%
100%
Replace script dry-run
0%
100%
Replace script applied
0%
100%
Backup files created
0%
100%
collections.abc replacement
100%
100%
subprocess replaces os.popen
100%
100%
time.perf_counter replaces time.clock
100%
100%
pd.concat replaces DataFrame.append
100%
100%
np.int_ / np.float64 used
100%
100%
Language flag used
0%
100%
subprocess import added
100%
100%
JavaScript/Node.js deprecated API replacement
Replace script used
0%
50%
JavaScript language flag
0%
100%
Dry-run before apply
0%
70%
Buffer.alloc / Buffer.from used
100%
100%
new URL() replaces url.parse
100%
100%
express.json replaces body-parser
100%
100%
moment.js replaced
100%
100%
Backup files present
0%
0%
Modernization report
100%
100%
Multi-project deprecation audit with JSON output and CI integration
Detect script used
0%
100%
JSON format flag used
0%
100%
Language flag per scan
0%
0%
JSON report files created
100%
100%
CI workflow file created
100%
100%
CI calls detect script
0%
100%
CI fails on findings
100%
100%
Summary report produced
100%
100%
0f00a4f
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.