pisan-labs

Har Detective — Development skill for Claude Code

Development community

Drop a browser HAR file and get a request waterfall plus a ranked performance report: N+1 calls, missing cache headers, uncompressed responses, redirect chains, serialized API calls.

How to install Har Detective

This entry records only its repository, not the path inside it, so there is no exact command to give. Open pisan-labs/har-detective and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Har Detective does

Drop a browser HAR file and get a request waterfall plus a ranked performance report: N+1 calls, missing cache headers, uncompressed responses, redirect chains, serialized API calls. Rule-based and offline; the file never leaves the browser. Built with Claude Code.

Alternatives in Development

  • Ars Revision — ARS academic-paper revision mode — revised draft + R&R responses 4.5k ★
  • Param Discover — Discover hidden HTTP parameters on a URL or list of URLs using Arjun (or x8 fallback) 4.5k ★
  • Claude Token Efficient — One CLAUDE.md file 3.8k ★

README

HAR Detective 🕵️

Drop a browser HAR file into the page and get an interactive request waterfall plus a ranked, plain-English performance report: N+1 call patterns, missing cache headers, uncompressed responses, redirect chains, serialized API waterfalls, duplicate fetches, failing requests, slow server think-time, oversized payloads, and HTTP/1.x connection churn.

**Live:**

![Loading the sample session lists 13 ranked findings; opening the N+1 finding and pressing Show in waterfall highlights the eight /api/products/{id} calls running one after another](demo.gif)

Built from the 2026-08-21 idea in [pisanuw/daily-project-ideas](https://github.com/pisanuw/daily-project-ideas). The idea suggested running Claude over the request data; this implementation replaces the LLM with ten hand-written, deterministic detectors, so the analysis is instant, free, reproducible, and works offline. The HAR file never leaves the browser.

Using it

  1. In Chrome/Edge/Firefox DevTools, open the Network panel, load the pages you care about, then right-click the request list and choose “Save all as HAR”.
  2. Drop the .har file on the page (or click the drop zone to browse).
  3. Read the ranked findings, jump from a finding to its rows in the waterfall, and export the whole report as Markdown for an issue or PR.

No account, no upload, no API key. A bundled synthetic e-commerce session (“Try the sample session”) trips every detector for a quick tour.

The detectors

Detector What it flags Typical fix
failed-requests 4xx/5xx responses and aborted requests, grouped by endpoint fix the request or the server
repeated-calls N+1 patterns: many calls to one endpoint template (/api/items/{id}) batch endpoint / embed data
sequential-chain API calls that run strictly one-after-another Promise.all or a combined endpoint
redirect-chain 3xx chains reconstructed hop by hop