Skip to content
Back to skills

Principle Migrate Callers Then Delete Legacy Apis

ASecurity

Migrate callers, then delete legacy APIs. Apply when a change introduces a new internal API while callers of the old one still exist.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentsgogitapi

Works with

  • cursor
  • api

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add erickb336/sage-stack --skill principle-migrate-callers-then-delete-legacy-apis --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Principle Migrate Callers Then Delete Legacy Apis?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Principle Migrate Callers Then Delete Legacy Apis
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/erickb336-principle-migrate-callers-then-delete-legacy-apis/badge)](https://www.skillsdirectory.com/skills/erickb336-principle-migrate-callers-then-delete-legacy-apis)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: principle-migrate-callers-then-delete-legacy-apis
description: "Migrate callers, then delete legacy APIs. Apply when a change introduces a new internal API while callers of the old one still exist."
license: MIT
metadata:
  source: "pstack principle-migrate-callers-then-delete-legacy-apis, MIT, Copyright (c) 2026 Lauren Tan, github.com/cursor/plugins, adapted; checked against pstack 0.15.36 at commit 0bb6f37"
---

<!-- Generated by scripts/build.mjs from the sources; edit the source, then run npm run build. -->

# Migrate callers, then delete legacy APIs

When a new internal API is the right design, migrate its callers and remove the old one in the same change, instead of keeping a compatibility layer.

**The rule.**
- Do not keep an old path only because internal callers still use it.
- List the callers, migrate them, and delete the old API now.
- Treat a temporary adapter as exceptional and short-lived, not as architecture.
- Update tests to assert the new contract; delete tests that only protected the old implementation.

**Why.** Keeping both paths doubles the ways through the code, slows cleanup, and makes the code feel append-only.

**Where it applies.** Internal code that your change replaced, within this task. The change is part of a simplification or a refactor, and the project can take a coordinated breaking change. An external caller, or a public interface others depend on, is not yours to break: report it and leave it working. A repair stays within its task; a legacy path outside it is reported, not removed.

**Stop** when the old API has no callers left and is gone.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.