reverse-api-engineer
БесплатноБез исполняемых скриптовНе проверенReverse engineer a website's private HTTP API into a typed, runnable client (Python, TypeScript, Go and 7 more) with the reverse-api-engineer CLI. A browser…
от kalil0321★ 4 834 звезды на GitHubОб этом скилле
Reverse API Engineer
reverse-api-engineer (rae) drives a browser through a task, reads the requests the website makes, and turns them into an API client. The chrome-mcp provider works in the user's own Chrome, so their logins carry over. The auto provider (Playwright) uses a fresh browser and records a HAR file, which lets a run be re-engineered later without browsing again. Which one runs depends on the user's config and rae version; step 3 shows how to check.
This skill only supplies instructions. It drives the CLI through its scripted, JSON-emitting commands.
1. Check the install
reverse-api-engineer --version
If the command is missing, ask the user before installing anything, then:
uv tool install reverse-api-engineer # or: pipx install reverse-api-engineer
Agent mode also needs Node.js 20.19+ on PATH (it launches browser tooling through npx). See setup and configuration for model access and settings.
2. Reuse an earlier capture when one exists
reverse-api-engineer list --search "<site or task>" --json
list also includes failed and interrupted attempts, so check a candidate before reusing it:
reverse-api-engineer show <run_id> --json
file_count > 0means a client was generated: verify it in step 5 and reuse it if it covers the task.har_entries > 0means the traffic was saved: you can improve the client withengineer(step 6) instead of browsing again.chrome-mcpruns keep no HAR (mode: "chrome-mcp"), so they cannot be re-engineered.- Otherwise, capture again from step 3.
3. Preflight
reverse-api-engineer agent -p "<goal>" -u "<start url>" --dry-run
This validates the prompt, URL, config and environment without opening a browser. Fix every error check before running. A warn on the API key is fine when the SDK authenticates another way (for example a logged-in Claude Code).
would_run.agent_provider in the output is the browser the run will use. chrome-mcp means the user's own Chrome with their logins; auto and agent-browser start a fresh browser without them. When the task needs the user's login and the provider is not chrome-mcp, ask before switching it (see sessions).
For chrome-mcp, the chrome-mcp:auto-connect check covers the connection to the user's Chrome:
ok: Chrome is reachable. The user still has to accept Chrome's connection prompt when the run starts.error: it is not. If the site needs the user's login, ask them to open Chrome 146+ and enable remote debugging atchrome://inspect/#remote-debugging("Enable auto-connect"), then run the preflight again. For public data, add--headless: rae then starts its own headless Chrome, without the user's sessions, and skips the check.warn: this rae version cannot test the connection. Ask the user to confirm Chrome is open with auto-connect enabled before a headed run, or use--headlessfor public data.
Write the goal as the data the user wants, not the clicks: "fetch open roles with title, location and team from the careers page, including pagination" works better than "click the jobs tab".
4. Capture and generate
A run takes several minutes, often longer than a shell tool's default timeout. Start it in the background from the outset, with your shell tool's background option when it has one, or with &:
reverse-api-engineer agent -p "<goal>" -u "<start url>" --json-stream > rae-run.ndjson 2> rae-run.log &
echo $! > rae-run.pid
--json-stream writes one NDJSON event per line and ends with a {"event":"result",...} line. The run is finished when that line appears in rae-run.ndjson, or when the process in rae-run.pid has exited (kill -0 "$(cat rae-run.pid)" fails). Check progress with tail rae-run.log. Never start a second capture while one is still running: it repeats the work and the cost.
- Without
--headless,chrome-mcpopens its own tab in the user's Chrome and closes only that tab. Tell the user before starting, since it acts in their browser, and ask them to accept the connection prompt Chrome shows: if nobody accepts it, the run times out without a client. - Add
--headlessfor public sites, or on machines without a display. - Add
-o <dir>to write runs somewhere other than~/.reverse-api/runs. --jsonprints the same result as a single object at the end, with no progress. Use it only when the shell can wait for the whole run.- See sessions and blocked sites for logged-in sites and providers.
The final result line has these fields:
| Field | Meaning |
|---|---|
status |
ok or error |
run_id |
Id for engineer, run and show |
script_path |
The generated client, inside <runs>/scripts/<run_id>/ next to its README.md |
har_path |
The raw capture; null for chrome-mcp runs, which keep no HAR |
usage.total_cost_usd |
Model cost of the run; report it |
Установить reverse-api-engineer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл reverse-api-engineer?
Reverse engineer a website's private HTTP API into a typed, runnable client (Python, TypeScript, Go and 7 more) with the reverse-api-engineer CLI. A browser performs the task while rae reads the site's real network traffic, then a model writes the client. Use when the user wants to call a site programmatically and it has no public API, or the public one lacks what the browser can do. Skip it when an official API or SDK already covers the task.
Как установить скилл reverse-api-engineer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл reverse-api-engineer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic