/web:api-explorerfrom web
Reverse-engineer APIs and websites using Chrome DevTools MCP to produce detailed, agent-consumable specifications. Use when pointed at a URL to understand how an API or website works — discovering REST endpoints, GraphQL schemas, WebSocket protocols, auth flows, data models, and pagination patterns. Triggers on: "explore this API", "figure out how this site works", "reverse engineer", "create an API spec", "map this API", "discover endpoints", "understand this website's API", "reverse engineer this GraphQL API", "figure out this WebSocket protocol", "what endpoints does this site use". Produces structured three-tier specs other agents can use to build integrations.
Ships in web. 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.
Reverse-engineer any website or API into a detailed specification using Chrome DevTools MCP.
Architecture classification determines everything. The first 5 minutes decide whether you waste the next 30. A GraphQL SPA and a server-rendered form app require completely different strategies. Classify before exploring.
Static analysis before runtime observation. Page source, hydration globals, and JS bundles reveal more about API structure in less time than watching network traffic. You can see every route from the code before navigating once.
Requests are state-dependent, not independent. A captured request is the product of every prior request in the session. The initialization sequence that made it valid is as important as the request itself. Miss the init sequence and your spec is silently wrong.
Document during exploration, not after. Maintain a live working spec that you update every few minutes. Never explore for 30 minutes then try to recall what you found.
Before committing to the full exploration, resolve three questions:
| Question | Options | Impact |
|---|---|---|
| What depth is needed? | Quick scan (5 min) → Tier 1 only. Standard (35 min) → Tiers 1-2. Deep (60+ min) → full Tiers 1-3 with verification | Don't run a 35-minute exploration when Tier 1 endpoint list is all that's needed |
| Does an official spec already exist? | Check /openapi.json, /swagger.json, /graphql introspection, vendor API docs portal | If found, extract it directly — skip Phases 1-3 and augment in Phase 4 |
| Who consumes this spec? | Agent writing integration code → prioritize auth flow + request schemas. Agent calling the API directly → prioritize curl examples + error handling. Human reviewing → prioritize Tier 1 overview | Drives which tiers and sections to invest time in |
If the user hasn't specified, default to Standard depth with agent integration as the consumer.
Before opening any DevTools tools, navigate to the URL and use evaluate_script to extract architecture signals:
() => ({
nextData: window.__NEXT_DATA__ ? {
buildId: window.__NEXT_DATA__.buildId,
runtimeConfig: window.__NEXT_DATA__.runtimeConfig,
pageProps: Object.keys(window.__NEXT_DATA__?.props?.pageProps || {}),
} : null,
nuxtData: window.__NUXT__ || null,
remixContext: window.__remixContext ? 'present' : null,
configGlobals: ['__ENV__','__CONFIG__','__APP_CONFIG__','APP_CONFIG'].filter(k => window[k]).map(k => ({key: k, value: window[k]})),
scriptConfigs: [...document.querySelectorAll('script[type="application/json"]')].map(s => ({id: s.id, content: JSON.parse(s.textContent || '{}')})),
metaApis: [...document.querySelectorAll('meta[name*="api"], meta[name*="endpoint"]')].map(m => ({name: m.name, content: m.content})),
frameworkClues: {
nextJs: !!document.getElementById('__next'),
vue: !!document.getElementById('app') && !!document.querySelector('[data-v-]'),
react: !!document.getElementById('root'),
angular: !!document.querySelector('[ng-version]'),
},
scriptSrcs: [...document.querySelectorAll('script[src]')].map(s => s.src).slice(0, 20),
})
Check these paths using navigate_page (or evaluate_script with fetch) — each reveals structural info in under 3 seconds:
| Path | What It Reveals |
|---|---|
/robots.txt | Hidden paths, admin areas, disallowed routes (often the most interesting) |
/sitemap.xml | All public routes — the complete URL map |
/api/ | Confirms /api/ prefix exists (even a 403 is useful) |
/swagger or /swagger-ui or /swagger.json | REST API documentation |
/openapi.json or /openapi.yaml | OpenAPI spec — if this exists, extract it directly |
/graphql | GraphQL endpoint — try introspection immediately |
/health or /status | Often reveals backend tech stack |
If /openapi.json returns a valid spec, you've shortcut the entire process — extract it and jump to Phase 4 (spec generation).
Use the signals from Steps 1-2 to classify:
| Signal | Architecture | Exploration Strategy |
|---|---|---|
Form action= attributes, minimal JS | Traditional SSR | Follow form POSTs, not XHR |
| Small HTML shell + large JS bundle | SPA (React/Vue/Angular) | Bundle analysis first, then runtime |
Full HTML + window.__NEXT_DATA__ | SSR + hydration (Next.js/Nuxt) | Extract hydration data first, then XHR |
Single /graphql endpoint | GraphQL backend | Introspection → bundle search for queries |
wss:// connections on load | Real-time app | WS protocol fingerprinting before REST |
| Fetch calls to multiple base URLs | BFF / microservices | Map all base URLs separately |
JSON at /api/ but no browser UI | API-only service | Check for OpenAPI/Swagger docs |
Before proceeding, load references/js-recipes.md completely. It contains the fetch/XHR interceptor required for initScript, the WebSocket monitor, and all framework-specific extraction scripts used throughout this phase.
Do NOT load references/spec-template.md during this phase — load it only when you reach Phase 4.
Use the fetch/XHR interceptor from js-recipes.md as the initScript parameter on your first navigation. This captures all fetch/XHR calls including those made during framework initialization (before DOMContentLoaded). evaluate_script fires too late and misses initialization requests.
Navigate with the interceptor:
navigate_page(url: <target>, initScript: <interceptor from js-recipes.md>)
Then capture network traffic with aggressive filtering:
list_network_requests(resourceTypes: ["fetch","xhr"], pageSize: 20, pageIdx: 0)
Never call list_network_requests without resourceTypes and pageSize on any real website. Unfiltered requests on a production SPA produce 100-300+ entries and overwhelm context. The ["fetch","xhr"] filter alone gives a 10:1 noise reduction.
Visit pages in this order — each builds on the previous:
At each page, answer four questions:
take_snapshot → click)Start from a completely fresh context (new_page with isolatedContext: "fresh"):
/api/auth/session, /api/me, /oauth/token)Authorization header, Cookie, or request body/api/auth/refresh → retryAuth mechanism fingerprinting:
| Header/Cookie Pattern | Mechanism |
|---|---|
Authorization: Bearer eyJ... | JWT (decode to find exp, sub, scope) |
Authorization: Bearer <opaque> | Server-validated opaque token |
Cookie: session=... + X-CSRF-Token header | Session cookie + CSRF (both needed, CSRF may rotate) |
x-api-key header | API key (stable, replayable) |
POST /oauth/token with grant_type=client_credentials | OAuth Client Credentials |
401 → POST /auth/refresh → retry | Token refresh interceptor |
For each discovered endpoint, use get_network_request(reqid) to capture full details. Save large response bodies to disk to avoid context bloat:
get_network_request(reqid: <id>, responseFilePath: "/tmp/api-explorer/resp-<endpoint>.json")
js-recipes.mdPersistedQueryNotFound, use the GraphQL Bundle Mining recipe from js-recipes.md — it extracts operation names, persisted query hashes, and GraphQL endpoints from loaded JS bundlesextensions.persistedQuery.sha256Hash in request bodies via list_network_requests — this confirms APQ is in use/graphql endpoint and extracting operation names and shapes from captured request/response pairsCheck WebSocket connections: list_network_requests(resourceTypes: ["websocket"]). For frame capture, use the WebSocket monitor from js-recipes.md (already loaded) alongside the fetch interceptor in initScript. Use the protocol fingerprinting table in js-recipes.md to identify the WS framework from the first messages.
| Symptom | Likely Cause | Recovery |
|---|---|---|
evaluate_script returns null or throws | CSP blocks inline scripts | Use list_network_requests only; skip framework-specific extraction |
list_network_requests returns 0 after navigation | Service worker intercepts all traffic | Check SW registration via js-recipes.md snippet; document SW scope in spec Notes |
| Navigation redirects to CAPTCHA/challenge page | Bot detection (Cloudflare, Akamai) | Document as "automated exploration blocked"; record all static signals (page source, robots.txt) and generate partial Tier 1 only |
All /api/ probes return 403 immediately | Auth-wall or IP block | Map unauthenticated surface only; mark all endpoints as "auth required to discover" |
| Responses shrink or return nulls after 50+ requests | Adaptive rate limiting | Stop and prioritize: auth flow → dashboard → one list → one detail. Accept partial spec |
initScript interceptor captures nothing | App uses Web Workers for API calls | Workers run in isolated contexts; initScript can't reach them. Fall back to list_network_requests only |
If blocked on multiple fronts, generate whatever partial spec you have with clear warnings. A partial spec with honest gaps is more useful than no spec.
Never trust an unverified observation. Verify by modifying captured requests:
new_page(url, isolatedContext: "anon") for a clean context, compare responsesCall the main data endpoint from a completely fresh context (no prior navigation, no init requests). If it returns different data or fails, the initialization sequence is mandatory for the spec. Document it as a numbered prerequisite sequence.
Load references/spec-template.md in full for the complete output template.
Do NOT load references/js-recipes.md during this phase — it was needed for Phase 2 only.
Generate a spec when ANY of these are true:
Every fact in the spec must carry one of:
Never omit confidence markers to make the spec look cleaner. Consuming agents need to know what to trust and what to validate independently.
When the same endpoint returns different response shapes across observations:
x-experiment headers, variant fields, account_tier differences(variant observed) in the Tier 1 discovery indexDo NOT average or merge contradictory schemas — consuming agents need to know both shapes exist.
Add a top-level warning block if auth flow is unverified or Tier 2 coverage is below 50%:
WARNING: Spec completeness LOW. [Specific gaps]. Recommend re-running with [specific action] before using for integration.
Generate the spec using the template. The spec has three tiers:
Tier 1 — Discovery Index (compact, always in context for consuming agents):
Tier 2 — Endpoint Detail (loaded on-demand per endpoint):
Tier 3 — Procedural Workflows (injected for specific tasks):
Include in this order (each unlocks exponentially more value):
| Content Type | Use |
|---|---|
| Parameter lists | Markdown table (name, type, required, description) |
| Auth flows | Numbered list + code block with exact values |
| Error codes | Table (code, meaning, agent action to take) |
| Request examples | curl or JSON code block (one per endpoint) |
| Pagination | Prose explanation + response shape code block |
Write the spec to a file the user specifies, or to ./api-spec-<domain>.md by default.
list_network_requests without resourceTypes and pageSize — unfiltered on a real SPA = 100-300 entries, context overflowevaluate_script to capture initialization requests — it fires after page load; use initScript via navigate_page insteadget_network_request(responseFilePath: "/tmp/...") to save to diskWhat SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/agent-browserBrowser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction./figma-to-strapiConvert Figma component designs into Strapi v5 component schemas AND matching React/Next.js components. Extracts editable properties (TEXT, BOOLEAN, INSTANCE_SWAP, variants) from Figma components, generates CMS field definitions, then produces a typed .tsx component with Tailwind styling. Use when: (1) user has a Figma component and wants a matching Strapi content model + React component, (2) setting up a CMS-driven website and needs to create components from designs, (3) syncing design system components to content types, (4) asking 'how do I make this Figma component editable in the CMS?'. Requires: Figma MCP authenticated + Strapi project (typically at cms/) + Next.js project (typically at website/). Keywords: figma, strapi, component, schema, cms, content model, design-to-cms, content type, react, tsx, /figma-to-strapi./google-adsUse when working with Google Ads data through the official Google Ads MCP server (googleads/google-ads-mcp), whose tools are `search_search`, `customers_list_accessible_customers`, and `metadata_get_resource_metadata`. Use for: building a GAQL query or a `search_search` call; pulling campaign, ad group, keyword, search-term or Performance Max performance; reading spend, conversion, or impression-share numbers; MCC/manager-account rollups; and diagnosing a CPA spike, conversion drop, ROAS decline, stalled serving, or budget underspend. Also use when a query returns nothing or an absurd-looking number, when totals don't reconcile between levels, or on any Google Ads API error. Trigger phrases: 'google ads', 'GAQL', 'google ads mcp', 'PMax', 'performance max', 'search terms report', 'impression share', 'customer id', 'adwords'. Requires Google Ads MCP tools to be connected; if none are present, this skill does not apply and cannot substitute for them./hubspot-prospectTurn a company URL into a reviewed HubSpot Company + IT-decision-maker Contact. Given a domain (e.g. vr.is, lis.is), researches the company, finds whoever heads IT (upplýsingatæknistjóri, tæknistjóri, forstöðumaður upplýsingatæknisviðs, IT manager, CIO, CTO), walking a documented title ladder when no IT lead is published, presents an evidence-graded review table with source URLs, and writes to HubSpot only after explicit approval. Use WHENEVER the user pastes a company URL or domain and wants it added to HubSpot, asks to find a company's IT manager or head of IT, says 'add this company to HubSpot', 'find their IT guy', 'enrich this domain', 'prospect this company', 'búa til fyrirtæki í HubSpot', 'finna tengilið', or supplies a list of domains. Do NOT use for: reading or reporting existing HubSpot data (a plain API read), bulk CSV import of already-known contacts, or any request to email/market to a contact./seo-auditWhen the user wants to audit, review, or diagnose SEO issues on their site, or wants to know why they are not visible in Google or in AI answers. Also use when the user mentions "SEO audit," "technical SEO," "why am I not ranking," "SEO issues," "on-page SEO," "meta tags review," "SEO health check," "my traffic dropped," "lost rankings," "not showing up in Google," "site isn't ranking," "Google update hit me," "page speed," "core web vitals," "crawl errors," "indexing issues," "why doesn't ChatGPT know about us," "AI Overviews," "AI search visibility," "AEO," "GEO," "LLM SEO," "answer engine optimization," "should I block AI crawlers," or "llms.txt." Use this even if the user just says something vague like "my SEO is bad" or "help with SEO" — start with an audit. Covers classic search and AI/LLM answer engines together, because the technical foundations overlap and the failure modes differ./website-clonerUse WHENEVER the user wants to clone, copy, replicate, recreate, or mirror a website or landing page, "make our demo look like the customer's site", personalize/white-label a demo for a prospect, extract a site's design (styles, fonts, colors, design tokens, exact pixel sizing) from a URL, capture/screenshot a page faithfully with Playwright, or figure out what font/colors a site uses. Trigger phrases: "clone this site", "copy this website", "recreate this landing page", "rebuild their homepage", "extract the styles/fonts", "match this design", "demo on their own branding". Reproduces a site's hero / above-the-fold and reskins it with the prospect's brand.Other plugins' skills for the same job
npx claudepluginhub tomaspalsson/flow --plugin web