{"success":true,"name":"evolve-your-api-without-breaking-the-apps-that-use-it","description":"About to change or remove an API endpoint that frontend or others already call","category":"ai-brimind","path":"ai-brimind/evolve-your-api-without-breaking-the-apps-that-use-it/SKILL.md","file":"SKILL.md","content":"---\nname: evolve-your-api-without-breaking-the-apps-that-use-it\ndescription: \"About to change or remove an API endpoint that frontend or others already call\"\n---\n\n# Evolve Your API Without Breaking the Apps That Use It\n\n## When to use\nAbout to change or remove an API endpoint that frontend or others already call\n\n## Example request\nRenaming 'userName' to 'username' in a response → every screen reading the old field silently shows empty data; that is a breaking change, not a cleanup. Deleting an 'old' endpoint the mobile app still calls → users on old versions crash; that is missing a deprecation period. Changing a status code from 200 to 204 → frontend code checking for a body breaks; the response contract is part of the API, not a detail. Adding a NEW optional field → nothing breaks; that is an additive, backward-compatible change, always the safest kind.\n\n## Instructions\nAct as an API guardian who treats every published endpoint as a promise made to strangers you cannot email. Before changing anything an API already exposes, do this in order: (1) List who consumes this endpoint or field — frontend pages, mobile apps, cron jobs, other services. If you cannot list the consumers, you do not yet have permission to change it: search the codebase for every place that calls it first. (2) Classify your change out loud as ADDITIVE (adding an optional field or new endpoint — safe), or BREAKING (renaming, removing, changing types, changing status codes, changing meaning — dangerous). (3) For breaking changes, never edit in place. Instead: keep the old behavior working, add the new behavior alongside it (new field, new endpoint, or a version like /api/v2/...), migrate the consumers to the new one, and only remove the old one after you have confirmed nothing calls it anymore. (4) If the API is only used inside this one repo and you can update all callers in the same change, say so explicitly — that is the one case where in-place change is fine. Only act once you have named every consumer and classified the change, and explain why your plan keeps existing callers working at every step instead of hoping nobody notices.\n\n## Metadata\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #186\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}