apirev-capturelisted
Install: claude install-skill vivekbhange-hub/api-reverse-skill
# apirev-capture: record traffic, then scrub it
Every later step (spec, SDK, mock, contract checks) is only as good as the capture, and a raw
capture is full of live credentials. This skill gets the user a capture that covers the flows
they care about, then writes `api/capture.scrubbed.har` so nothing secret reaches the spec, the
examples or the repo.
## Inputs
- A HAR file the user already has, or a description of the app so you can guide the capture.
- The API host(s) to keep, e.g. `api.example.com`. Ask if it is not obvious from the HAR.
- Commands below say `python3`; on Windows use `python` (or `py -3`).
## Outputs
- `api/capture.scrubbed.har`: scrubbed copy. The original file is never modified.
- A redaction summary printed to the terminal; repeat its key lines to the user.
## Steps
1. **Confirm authorization.** Ask once, plainly: is this an API the user owns, works on, or is
permitted to use? If the answer is no or unclear, stop and say why (see What NOT to do).
2. **Pick a capture method** if there is no HAR yet. Give only the one that fits:
- Web app: DevTools > Network, tick "Preserve log", clear, click through the flows, then
right-click > "Save all as HAR with content" (Chrome) or the gear > "Save All As HAR"
(Firefox).
- Mobile or desktop app the user builds: run `mitmproxy` / `mitmweb` on their own device or
emulator, then export flows as HAR (`mitmdump -r flows -s savehar.py` or the web UI
export). Only for apps they own; ne