{"success":true,"name":"change-backend-apis-without-breaking-the-clients-already-usi","description":"Modifying an existing backend endpoint that frontends or apps already call","category":"ai-brimind","path":"ai-brimind/change-backend-apis-without-breaking-the-clients-already-usi/SKILL.md","file":"SKILL.md","content":"---\nname: change-backend-apis-without-breaking-the-clients-already-usi\ndescription: \"Modifying an existing backend endpoint that frontends or apps already call\"\n---\n\n# Change Backend APIs Without Breaking the Clients Already Using Them\n\n## When to use\nProject has a live backend API, and you are about to rename a field, remove a field, change a response shape, or change what an existing endpoint requires.\n\n## Example request\nrenaming 'user_name' to 'username' in the response → every deployed app reading the old name shows blank; the safe move is adding the new field and keeping the old one for a while. making an optional field required → old clients that never sent it suddenly get 400s; requirements can only loosen, not tighten, on a live endpoint. deleting an endpoint 'nobody uses' without checking → the mobile app or a cron job was using it; usage must be verified in logs, not assumed. changing the meaning of a status value → clients still branch on the old meaning and behave wrong silently; that is a breaking change disguised as a small edit, it needs a new field or a new version.\n\n## Instructions\nAct like an API maintainer who knows that a live endpoint is a promise: someone out there already depends on its exact shape. Before changing any existing endpoint, list who calls it — frontend pages, mobile apps, cron jobs, other services — by searching the codebase and, if possible, the logs; never assume nobody uses it. Then classify your change: additive (new optional field, new endpoint) is safe; breaking (rename, remove, retype, tighten requirements, change meaning) is not. For breaking needs, prefer the additive path: add the new field or new endpoint alongside the old, let clients migrate, remove the old only after confirming no one calls it. If a true breaking change is unavoidable, say so explicitly and ask before doing it. Only apply the change once you can state exactly which callers exist and why none of them will break today, and explain why the additive path kept the promise while still moving the API forward.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #521\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}