agentsclimarketplace

Api migration

Skill davideferigato/MigraAPI/.claude/skills/api-migration

Migrates deprecated API calls to a new API version in Python and JavaScript codebases. Use this skill when the user asks to migrate code from an old API to a new API, upgrade API endpoints, or replace deprecated function calls.From its SKILL.md

Install
npx -y skills add davideferigato/MigraAPI --skill api-migration

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
  • runs commandsInstructs the agent to run 1 command, including `python scripts/scanner.py <path>`.

SKILL.md

2.4 KB, 481 tokens by cl100k_base, as published. Nobody here has run it

API Migration Skill

This skill enables Claude to automatically migrate code from a deprecated API to a new API. It works with Python and JavaScript/Node.js projects.

How to use this skill

  1. Understand the migration scope – ask the user for old/new API names or use default mapping from migration-rules.json.
  2. Scan the codebase – run python scripts/scanner.py <path> to get a JSON report of deprecated calls.
  3. Apply migrations (via subagents) – replace old calls with new ones, preserving formatting and comments.
  4. Validate – run tests or linters; report obstacles.

Files

  • migration-rules.json – core mapping old → new.
  • regex-patterns.md – regex patterns for detection.
  • scripts/scanner.py – executable scanner that outputs JSON.

Example migration

Before (Python):

from old_api import Client
client = Client(api_key="test")
user = client.get_user(user_id=123)

After:

from new_api import Client
client = Client(api_key="test")
user = client.fetch_user_by_id(user_id=123)

Allowed tools

Only read tools plus scanner.py execution. Writing is delegated to subagents with explicit write permissions.

Troubleshooting

  • Skill not activating? Check name/description match user request.
  • Scanner fails? Ensure Python 3.9+ and re module (built-in).
  • No occurrences? Verify regex patterns against actual code.

Progressive Disclosure – Level 3 (Lazy Loading)

This skill supports on-demand loading of additional context to minimize token usage:

  • migration-rules.json: Load ONLY when processing a new language or when patterns are unclear.
  • regex-patterns.md: Load ONLY if scanner.py returns unexpected results (e.g., false negatives).
  • scripts/scanner.py: Executed via Bash – does NOT consume context window.

Loading strategy

if task.language not in cached_rules:
    load("migration-rules.json")
    cache.append(language)
if scanner_results are suspicious or incomplete:
    load("regex-patterns.md")
    re-run scanner with updated patterns

What ships with it: 3 files

4.6 KB alongside SKILL.md, 1 of them executable

scripts/

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.