har-debugger
4
总安装量
3
周安装量
#53477
全站排名
安装命令
npx skills add https://github.com/hynguyenvk-itr/har-debugger-skill --skill har-debugger
Agent 安装分布
amp
3
opencode
3
kimi-cli
3
github-copilot
3
gemini-cli
3
Skill 文档
HAR Debugger
Overview
Analyze a HAR file plus a bug description to isolate problematic network requests and explain likely causes using only HAR evidence.
Inputs
har_file: Path to a.harfile on disk.bug_description: Concise description of the bug symptoms.start_time: (optional) ISO timestamp or epoch ms for when the bug started.end_time: (optional) ISO timestamp or epoch ms for when the bug ended.socket_map: (optional) Inline list of socket-to-API mappings in the form<socket-name>: <api-name>to override defaults.
If the user provides raw HAR JSON instead of a file, accept it, but prefer a file path when possible. Use start_time/end_time to limit analysis to the incident window to save tokens.
Workflow
- Validate that
har_fileexists and ends with.har; if missing, ask for the file path. - Parse the HAR JSON and confirm
log.entriesexists; if missing, ask for a complete HAR. - Flatten
log.entriesinto a list of requests. - If
start_time/end_timeprovided, filter entries bystartedDateTimewithin the window. - Extract for each entry:
request.method,request.url,response.status,response.statusText,time,timings,startedDateTime, response headers (response.headers), and response body when available (response.content.text). - If present, capture response header time (e.g.,
Dateheader) as the server-reported response time. - Compute response received time as
startedDateTime + time(milliseconds) to compare client vs server timestamps. - Load default socket map from
references/socket_map.mdand parse each line as<socket-name>: <api-name>. Ifsocket_mapinput is provided, merge/override defaults with it. - If socket mappings exist, prioritize requests whose URL/path matches mapped API names related to the socket events in
bug_description. - Flag suspicious entries:
- HTTP status >= 400
- Timeouts or errors indicated by
timingsor missing response - Long
timevalues (default threshold 3000 ms; adjust if the bug suggests a different baseline)
- Match keywords from
bug_descriptionto URLs, methods, response content, and status text. - Correlate the most relevant entries to the symptom and infer likely root causes only from HAR evidence plus the bug description.
Output
Provide a concise report that includes:
- A brief root-cause summary with confidence/uncertainty notes.
- A list of relevant requests (method, URL, status, time, response received time, response header time, key evidence).
- Evidence bullets explicitly tied to the bug description.
- Recommendations for next debugging steps (logs, backend metrics, repro checks).
Constraints
- Do not fabricate or assume data not present in the HAR.
- Keep hypotheses grounded in the observed requests and timings.