deprecated-api-updater

deprecated-api-updater is a skill for Claude Code, Codex from ArabelaTso/Skills-4-SE. It costs 110 tokens per session (2,595 once invoked), scanned A, original, Apache-2.0.

A code scanner and updater that finds deprecated API calls and replaces them with newer alternatives. An API is a documented way for software components to communicate.

In plain words
What is it for?
Use it to modernize Python, JavaScript, and TypeScript code, preview replacements, and apply updates with backup files.
Why use it?
It helps remove old calls that may produce warnings or stop working after framework and library upgrades.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: $skill-name invocation.

Good fit Use it to modernize Python, JavaScript, and TypeScript code, preview replacements, and apply updates with backup files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arabelatso/skills-4-se/deprecated-api-updater
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ArabelaTso/Skills-4-SE --skill deprecated-api-updater
Clone the repo
git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for deprecated-api-updater

README.md
[![agentmods](https://agentmods.dev/badge/skills/arabelatso/skills-4-se/deprecated-api-updater/github.svg)](https://agentmods.dev/skills/arabelatso/skills-4-se/deprecated-api-updater)
Your own site
<a href="https://agentmods.dev/skills/arabelatso/skills-4-se/deprecated-api-updater"><img src="https://agentmods.dev/badge/skills/arabelatso/skills-4-se/deprecated-api-updater/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.

agentmods 80×15 button for deprecated-api-updater

Your own site · 80×15
<a href="https://agentmods.dev/skills/arabelatso/skills-4-se/deprecated-api-updater"><img src="https://agentmods.dev/badge/skills/arabelatso/skills-4-se/deprecated-api-updater.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,595 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00110 $0.02595
Opus 5.5 $0.00044 $0.01038
Sonnet 5.5 $0.00022 $0.00519
Haiku 4.5 $0.00011 $0.00260

Measured 1mo ago against content hash ada59ba66477, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

deprecated-api-updater scanned grade A with 1 finding 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 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/detect_deprecated_apis.py, scripts/replace_deprecated_apis.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

Replacement: subprocess.run() or subprocess.Popen()
skills/deprecated-api-updater/SKILL.md · 416 lines

How it starts

The opening of the file, as written. The whole thing — 416 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Deprecated API Updater

Identify and replace deprecated API usage with modern alternatives automatically.

Quick Start

Detect Deprecated APIs

Scan code to identify deprecated API usage:

# Scan a single file
python scripts/detect_deprecated_apis.py src/app.py

# Scan entire directory
python scripts/detect_deprecated_apis.py src/

# Specify language explicitly
python scripts/detect_deprecated_apis.py legacy/ --language python

# Output as JSON
python scripts/detect_deprecated_apis.py src/ --format json

Replace Deprecated APIs

Automatically replace deprecated APIs:

# Dry run (preview changes)
python scripts/replace_deprecated_apis.py src/ --dry-run

# Apply replacements (creates .bak backups)
python scripts/replace_deprecated_apis.py src/

# Replace in specific language
python scripts/replace_deprecated_apis.py src/ --language javascript

Supported Languages

Python

  • Standard library (collections, time, os, platform, imp)
  • Django (URL routing, encoding, translation, models)
  • Flask (JSON handling, send_file)
  • SQLAlchemy, Pandas, NumPy, Requests

See python_deprecations.md for complete reference.

JavaScript/TypeScript

  • Node.js core (Buffer, url, crypto, fs, util)
  • React (lifecycle methods, createClass, PropTypes, Context)
  • Express.js (body-parser)
  • Webpack, Moment.js alternatives

See javascript_deprecations.md for complete reference.

Java

  • Java core (Date/Calendar, Thread methods, finalize)
  • Spring Framework (WebMvcConfigurerAdapter, RestTemplate)
  • Hibernate (Criteria API)
  • JUnit 4 → JUnit 5
  • Android (AsyncTask, ProgressDialog, startActivityForResult)

See java_deprecations.md for complete reference.

Other Languages

  • Ruby: URI.escape, Dir.exists?, File.exists?
  • Go: ioutil package functions

Detection Methods

AST-Based Detection (Precise)

For Python and JavaScript, the skill uses Abstract Syntax Tree parsing for accurate detection:

Read the full file on GitHub · 416 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 1mo ago First seen · 416 lines · 110 tokens per session scan A ada59ba66477

Subscribe to this mod's changes

deprecated-api-updater is a skill published in the GitHub repository ArabelaTso/Skills-4-SE (259 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 110 tokens to every session and 2,595 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

diagnose

Disciplined diagnosis loop for hard bugs and performance regressions. Reproduce → minimise → hypothesise → instrument → fix → regression-test. Use when user says "diagnose this" / "debug this", reports a bug, says something is broken/throwing/failing, or describes a performance regression.

saitarrun/Sdlc-ai-workflow · 66 tokens

skill-incident-management

Incident response, postmortem facilitation, root cause analysis (RCA), blameless culture, incident timeline documentation, and incident classification. Use when responding to production incidents, writing incident reports, facilitating postmortems, or improving incident response processes.

saitarrun/Sdlc-ai-workflow · 56 tokens

skill-developer-relations

SDK development, external developer communication, code samples, API client libraries, community engagement, and developer experience. Use when creating SDKs, writing external guides, creating code samples, or improving developer experience.

saitarrun/Sdlc-ai-workflow · 46 tokens

triage

Triage issues through a state machine driven by triage roles. Use when user wants to create an issue, triage issues, review incoming bugs or feature requests, prepare issues for an AFK agent, or manage issue workflow.

saitarrun/Sdlc-ai-workflow · 49 tokens

skill-architecture

This skill should be used when the user asks to "design a system", "architecture", "ADR", "system design", "tech stack", "choose between approaches", "coupling", "service granularity", "blueprint", "component design", "API contract", "schema design", "trade-offs", or discusses "monolith", "microservices", "fitness…

saitarrun/Sdlc-ai-workflow · 85 tokens

skill-api-design

REST/gRPC API design, versioning strategies, error codes, request/response contracts, backward compatibility, rate limiting, OpenAPI specifications. Use when designing APIs, defining contracts, planning versioning, or ensuring API consistency.

saitarrun/Sdlc-ai-workflow · 49 tokens