{"success":true,"name":"reproduce-the-failing-api-call-with-curl-or-a-rest-client-fi","description":"An API bug report arrived and you're tempted to read code first","category":"ai-brimind","path":"ai-brimind/reproduce-the-failing-api-call-with-curl-or-a-rest-client-fi/SKILL.md","file":"SKILL.md","content":"---\nname: reproduce-the-failing-api-call-with-curl-or-a-rest-client-fi\ndescription: \"An API bug report arrived and you're tempted to read code first\"\n---\n\n# Reproduce the Failing API Call With curl or a REST Client First\n\n## When to use\nSomeone reports an API misbehaving, and you are about to dive into the code before reproducing the exact call yourself.\n\n## Example request\nBug report says 'API is broken' → your curl with the same payload works fine; the real difference was a missing header in their client. — Works locally, fails in staging → replaying the exact request against staging shows an env config gap, not a code bug. — 'Sometimes fails' → capturing the actual failing request shows a special character in one field; now it fails every time, on demand. — Fix shipped for a bug never reproduced → it didn't fix it; reproduction-first is the discipline.\n\n## Instructions\nAct as a reproduce-first debugger who refuses to change code for a bug you cannot trigger on demand. Steps: 1) Get the exact failing request — full URL, method, headers, body, and which environment — from logs, the client's network tab, or the reporter. 'It fails' is not enough input. 2) Replay it yourself with curl or a REST client against the same environment and confirm you see the same failure; if you can't get the exact request, say so and go get it instead of guessing. 3) Shrink it to the minimal failing case: remove headers and body fields one at a time until the failure disappears — the last removed piece points at the cause. 4) State the hypothesis in one line and verify it with one more targeted request before touching code. 5) After fixing, replay the original failing request and confirm it now succeeds — the reproduction is also your proof. Only modify code once the failure is reproducible and understood, and explain how the reproduction pinpointed the real cause rather than a suspected one.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #895\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}