/reverse-engineer:rebuild-on-loootfrom reverse-engineer
Take a reverse engineering report and build the looot version of the product: map each capability the mechanism needs to real looot jobs from the free catalog, mark each as covered, partly covered or missing, decide what to drop, then scaffold a working project (demo mode, headless CLI with --dry-run, web UI, tests with mocked HTTP, spend cap and idempotency). Use when the user says: rebuild this on looot, build an open-source version of X, clone this with looot, what would it take to build X on looot, turn this report into an app, make our own version of this tool.
Ships in reverse-engineer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Turn a "how it works" report into a small working product on one looot key. The catalog decides what is possible. Anything it cannot supply is dropped or requested, never faked.
reverse-engineer, or the user names a target and wants the full route. If there is no report, run reverse-engineer first.reverse-engineer (its "what the mechanism needs" table), or a target name.<service>-on-looot.Take the "what the mechanism needs" table. One row per capability, each with its tag (observed, inferred, unknown). Keep the tags. An inferred capability that no catalog job covers is the first one to drop.
For each capability, search the catalog with at least two phrasings. Use plain words ("IP to company", "company from ip address").
GET https://api.looot.ai/v1/catalog/overview?depth=jobs lists every job id with its cheapest price.GET https://api.looot.ai/v1/public-catalog?q=<words> lists endpoints with provider, price and verification state.node scripts/catalog-search.mjs "<words>" "<other words>", run from this skill's folder, runs both for each phrase and prints a table.For each hit, write down the job id (as job:<id>), one or two example endpoints, the list price per call or per result, and whether it runs now. Take only ids that appear in the catalog. Never invent one. Inspect the job (free, needs a sign-in) for exact input names when you can. Without a sign-in, say the input names are unconfirmed.
Write the capability map as a table:
| Capability | Tag | looot job | List price | Status | Note |
|---|---|---|---|---|---|
| IP to approximate location | observed | job:ip.lookup | from $0 | covered | |
| Daily salted hash id | observed | none | none | own code | a few lines, no data needed |
Read the script output in this order. The first list, "jobs the matching endpoints belong to", is usually the right one. The second list matches job names word by word and is noisy, so read the titles before you trust a row.
Status is one of:
Drop a capability when one of these is true, and write the reason next to it:
If the catalog lacks the capability that is the whole point of the product, stop and tell the user. Offer the closest product the catalog can serve, or run request-provider.
For each missing capability that matters, run request-provider. Carry on with what exists. Mark the feature "waiting on a provider" in the README. Do not stub it with fake data in real mode.
Before any code, write PLAN.md for the user with: the capability map, the drop list with reasons, the signals or steps in the pipeline, the typical run and its list-price cost, and the spend cap. Ask for a yes. Then build.
Copy template/ from this repository into the project folder. If this skill was installed alone, clone https://github.com/loootai/reverse-engineer and copy template/ from it.
Before installing anything in the copy, run the pin-guard or supply-chain scan your setup uses. Install with --ignore-scripts. Keep every version pinned exactly. Never run an npx command without an exact version.
The template gives you:
src/lib/looot.ts: the client. Run with wait, poll, idempotency, error mapping.src/lib/budget.ts and src/lib/ledger.ts: spend cap and cost ledger.src/lib/quote.ts: the quote from list prices.src/jobs.ts: the jobs the app uses. Edit this first.src/engine/pipeline.ts: where the product logic goes.src/demo/: sample data and a fake runner.src/cli/: the headless command.src/app/: the web UI with a sidebar shell.src/proxy.ts and src/lib/auth/: the admin gate (session cookie, password check, lockout, CSRF, route map). It ships with its tests. Keep all of it.Rename the app, set the port, rename the APP_ environment prefix if you like (change src/lib/auth, .env.example, scripts/ and the README together), and fill src/jobs.ts with the jobs from step 2. The shared tests use their own test job, so they stay green after you change src/jobs.ts. The demo runner reads the first string in each input as the item, so replace its sample rows in src/demo/fixtures.ts with data that fits your product.
Rules every rebuild follows:
idempotencyKey per input and job, such as <app>:<job>:<input>. A retry never pays twice.shapeVerified: false until they were checked against a real response.npm run demo. Sample data, no token, no network, costs nothing. Use reserved example domains and documentation IP ranges, never real people or companies.--dry-run prints the list-price quote and makes no call. A real run needs LOOOT_TOKEN and exits 2 when it is missing.A generated web UI that can spend on the user's looot token must not be open to whoever reaches it. Before you call the project done, every line is true:
src/proxy.ts and src/lib/auth/ are present and unchanged in behavior: signed httpOnly SameSite=Lax cookie (Secure in production, with expiry), constant-time password check, lockout after repeated failures, CSRF token plus same-origin check on every state-changing admin request.src/lib/auth/routes.ts and calls await requireAdminPage() (pages) or await requireAdminRoute(req) (route handlers). A path not listed is admin. Only health, sign-in and sign-out, static files and a third-party receiver you name are public.APP_SPEND_CAP_USD), never from the request, goes through the quote step, and has a per-session rate limit.adminFetch, not bare fetch, on every call to an admin route.LOOOT_TOKEN or data file.npm test runs src/lib/auth/routeMap.test.ts, routeGate.test.ts and flow.test.ts. They read src/app from disk, so a new route with no gate fails them. Add a test for each route you add that proves it answers 401 without a session.Write tests first where you can, and keep the failing run. Unit tests use mocked HTTP for the client, the engine, scoring and the CLI. Cover: quote math, cap stops a run, same key sent twice, pending is not failed, 401 and 402 stop the run, a dry run makes no call.
Run tests (the gate tests included), typecheck, lint and build. Start the app outside the demo with a dummy password and confirm with curl that / and /api/run are closed without a cookie. Keep the real output.
The README has: what it is in two sentences, a "Securing a deployment" section, what it replaces and at what public price (with the date), a quickstart with no paid call, the signals table with job ids and prices, the cost of a typical run at list price, what was dropped and why, what was requested, how the money rules work, and the install-for-agents block.
End with an honest Status section. State plainly:
Do not write "works" about anything that ran only against mocks.
price.state is not known): do not quote a number. Show "price not published" and let the cap stop the run.src/lib/auth/routes.ts and call the gate in it. Never loosen the test.A report says a visitor identification tool needs "IP to company". Searches for "ip to company", "company from ip" and "reverse ip lookup" find job:ip.lookup (from $0) and job:ip.enrich ($0.28 a match). Status: covered. The report also needs "browser to hashed email". Searches for "hashed email", "visitor identification" and "identity graph" return endpoints that create a hash and endpoints that read one, and none that turns a browser into a hash. Status: missing. Decision: ship company level only, keep person level as an off-by-default slot that takes the user's own hashes or supplier, and request the missing supplier. The finished version of this case is in examples/rb2b-to-looot-reveal.md.
Run reverse-engineer before this skill and request-provider for anything missing.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub loootai/reverse-engineer --plugin reverse-engineer8 skills in this plugin
/bounded-probeBefore a bulk looot run, design and run a tiny capped experiment: pick the job, test 3 to 5 real inputs, measure hit rate and real cost per row, project the full cost, and recommend go, change or stop. Use when the user says: test this before running the whole list, how much will 500 leads cost, try it on a few first, is this job worth it, pilot run, compare two providers on a sample, estimate the cost of this enrichment, probe before we commit./claims-auditAudit a report, lead list, outreach draft, pitch, post or market brief for claims that no source backs up, then list the unknowns and the cheapest looot call that would settle each. Use when the user says: audit this report, check my claims, fact-check this, what am I assuming here, is this lead list real, verify before I send, find the weak spots in this brief, what do we not know yet, residual unknowns./competitor-diffCompare a competitor or prospect against its own earlier snapshot and report only what changed: pricing page, positioning, hiring, tech stack, ads, search rank. Keeps dated snapshots on disk so nothing is paid for twice. Use when the user says: what changed at competitor.com, diff their pricing, watch this competitor, weekly competitor check, compare this week to last week, did they change their homepage, track their ads or hiring, save a baseline snapshot./evidence-researchResearch a company, competitor, product or market question and return a findings ledger where every claim is tagged observed, inferred or unknown, with its source, the looot job that produced it and what it cost. Use when the user says: research this company, investigate acme.com, competitor brief, what do we really know about X, back this up with evidence, fact-check this market claim, build me a sourced brief, or asks for any research that must hold up when someone challenges it./request-providerWhen a provider, data source or endpoint is missing from looot, confirm the gap with several searches, then file a request to the looot team through looot's capability request route and, if the user agrees, a public GitHub issue on this repo. Use when the user says: looot does not have this, request a provider, request a data source, add this API to looot, this capability is missing, ask looot to support X, file a provider request, nothing in the catalog fits./reverse-engineerReverse engineer a product, feature, website, paid tool or go-to-market motion from the outside, from public evidence only, and explain how it works with every step tagged observed, inferred or unknown. Use when the user says: reverse engineer X, how does X work, how is X built, take X apart, what is X doing under the hood, figure out how they do it, how does this tool actually work, what does X need to work. Chains bounded-probe, site-teardown, evidence-research, competitor-diff and claims-audit, then lists what the mechanism needs as generic capabilities. For only a quick look at a site's pages, price and stack, use site-teardown.