network-debug
Skill5 starsChanged 9 months agoMITView on GitHub
Inspect HTTP traffic captured by PowHTTP MCP proxy. Use when fixing request mismatches in existing code or building new API flows from browser traffic.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- DongDuong2001/pudo-code-systemtheir own version, first seen Jun 18, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- DongDuong2001/pudo-code-system★ 5same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository2 other files it gives its agents.
- browser-navigateSkill
- reconSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 8 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
When a Go client request fails or returns unexpected results, compare it against browser traffic in PowHTTP to find the mismatch.
- Distinctive: line 25
Run the same action in the browser and through the Go client while PowHTTP captures.
- Very specific: line 34
Use powhttp_trace_flow on each flow's first request to see the full chain.
- Distinctive: line 47
Check these in order of impact:
- Very specific: line 57
After fixing, route the Go client through PowHTTP again and re-run powhttp_diff_entries to confirm the differences are resolved.
- Distinctive: line 61
When implementing a new API flow from scratch, use browser traffic captured by PowHTTP as the ground truth.
- Distinctive: line 84
Not every browser request needs to be replicated.
- Distinctive: line 91
Test each removal individually.
- Distinctive: line 166
When implementing a discovered API:
- Very specific: line 168
Use bogdanfinn/tls-client with Chrome 144 profile for TLS fingerprinting
- Very specific: line 170
Use http.HeaderOrderKey and http.PHeaderOrderKey from fhttp for header ordering
- Very specific: line 171
Do NOT manually set Cookie, Content-Length, Host, or Connection headers — they're handled automatically
- Very specific: line 172
Add response types in the platform package's api.go file
- Very specific: line 173
Use platform.DoJSON() for JSON APIs or raw client.Do() for HTML scraping
- Very specific: line 174
Add status mapping in internal/platform/mapping.go if new statuses appear
- Very specific: line 175
Follow the platform.BuildURL() pattern for query parameters
- Distinctive: line 180
After making a request through the proxy:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Network Debug
Inspect HTTP traffic captured by PowHTTP proxy. Two primary use cases: fixing existing request flows and building new ones from scratch.
See tool-reference.md for tool documentation and token-optimization.md for token optimization.
Verify PowHTTP is Running
powhttp_session_active()Workflow 1: Fix Existing Code
When a Go client request fails or returns unexpected results, compare it against browser traffic in PowHTTP to find the mismatch.
1. Capture both request flows
Run the same action in the browser and through the Go client while PowHTTP captures. Find entries from each source:
powhttp_search_entries(filters: {host: "*.example.com", process_name: "chrome"}, limit: 20)
powhttp_search_entries(filters: {host: "*.example.com", process_name: "server"}, limit: 20)2. Compare the request sequence
Use powhttp_trace_flow on each flow's first request to see the full chain. Compare:
- Request order — both flows must make the same requests in the same sequence. A reordered request often causes auth failures or missing cookies downstream.
- Request count — if the Go client skips a request the browser makes (e.g., a token refresh, a session init), downstream requests may fail due to missing state.
3. Compare individual requests
For each corresponding pair of requests, use powhttp_diff_entries:
powhttp_diff_entries(baseline_entry_id: "browser_entry", candidate_entry_id: "go_entry")Check these in order of impact:
- URL and query parameters — path, parameter names, values, and order
- Request headers — names, values, and order. Use
powhttp_get_entry(entry_id: "...", include_headers: true)for full details. - Request body — field names, values, encoding (JSON vs form-encoded)
- TLS fingerprint — use
powhttp_fingerprint(entry_id: "...")to compare JA3/JA4 hashes. A mismatch here blocks most anti-bot systems. - HTTP/2 settings — pseudo-header order and SETTINGS frame order via
powhttp_get_http2_stream
4. Fix and re-validate
After fixing, route the Go client through PowHTTP again and re-run powhttp_diff_entries to confirm the differences are resolved.
Workflow 2: Build a New Flow
When implementing a new API flow from scratch, use browser traffic captured by PowHTTP as the ground truth. Replicate each step exactly, then look for steps that can be removed or simplified.
1. Capture the browser flow
Navigate the browser through the target action while PowHTTP captures. Extract the request sequence:
powhttp_extract_endpoints(scope: {host: "target.com", time_window_ms: 120000}, filters: {category: "api"})
powhttp_trace_flow(seed_entry_id: "first_request")2. Document each request
For each request in the flow:
powhttp_get_entry(entry_id: "...", include_headers: true, body_mode: "compact")Record: method, URL, headers (names, values, order), query parameters, request body, and response shape. Use powhttp_infer_schema(cluster_id: "...") for response structure.
3. Identify unnecessary steps
Not every browser request needs to be replicated. Flag these for removal:
- Static asset loads — images, CSS, JS (category "asset" in endpoint extraction)
- Analytics/tracking requests — third-party domains, beacon endpoints
- CORS preflight requests — OPTIONS calls that the Go client won't trigger
- Duplicate requests — the browser may retry or make parallel requests that can be consolidated
Test each removal individually. If removing a step causes downstream failures (missing cookies, tokens, or required state), it must be kept.
4. Implement step by step
Implement each required request in Go, matching the browser's headers, parameters, and payload. After each step, validate through PowHTTP:
powhttp_validate_schema(entry_ids: ["go_entry"], schema: "type Resp struct { ... }", schema_format: "go_struct")
powhttp_diff_entries(baseline_entry_id: "browser_entry", candidate_entry_id: "go_entry")Common Pitfalls
Date/filter cookies
Some sites encode filter state as base64 JSON in cookies rather than query parameters. If filtered results in the browser differ from API responses with the same query params, inspect cookie values — decode any base64 cookies to check for embedded date ranges, locale settings, or filter selections that affect the response.
Dynamic value chains
Some responses contain tokens, nonces, or CSRF values that must be extracted and injected into subsequent requests. Use powhttp_trace_flow to identify data dependencies between requests — look for edge_type_summary entries like auth_chain or same_auth. In Go, parse these values from the response body or headers and pass them forward rather than hardcoding.
Cookie chain tracking
Each request in a flow may depend on cookies set by earlier requests. Use powhttp_get_entry with include_headers: true to check Set-Cookie response headers. If the Go client skips a request that sets a required cookie, all downstream requests using that cookie will fail silently — the server returns a login page or empty response instead of an error.
Redirect handling
Browsers follow 302/303 redirects transparently, picking up cookies at each hop. With tls-client, redirects may need manual handling to capture intermediate Set-Cookie headers. Check powhttp_trace_flow for redirect edges — each redirect in the chain may set state that later requests depend on.
Content-Type mismatches
The browser may submit a form as application/x-www-form-urlencoded while you default to application/json. Some servers accept both but return different responses. Others reject the wrong type outright. Check the Content-Type request header in powhttp_get_entry and match it exactly.
Referer validation
Some sites check that the Referer header matches the expected navigation path. If you skip a page the browser visits, the referer chain breaks and the server may reject the request. Check whether the browser's requests include Referer headers and replicate the chain.
Challenge/WAF detection
A response with status 200 may still be a block page (Cloudflare, AWS WAF) rather than the expected content. Always check the response body, not just the status code. Common indicators: HTML with challenge scripts, response size much smaller or larger than expected, Set-Cookie headers containing challenge tokens. Use powhttp_query_body to check response content when a flow returns unexpected results.
Tool Quick Reference
Searching traffic
powhttp_search_entries(filters: {host: "*.example.com"}, limit: 10)Results are thin by default. Set include_details: true for TLS/HTTP2/process info. See token-optimization.md for the full search parameter table.
Inspecting entries
powhttp_get_entry(entry_id: "...", include_headers: true, body_mode: "compact")Body modes: compact (default, arrays trimmed), schema (structure only), full (complete body).
Understanding response shape
powhttp_describe_endpoint(cluster_id: "...")— overview with body shapespowhttp_infer_schema(cluster_id: "...")— merged schema with field statisticspowhttp_query_body(expression: ".field", cluster_id: "...")— extract specific values
Comparing requests
powhttp_diff_entries(baseline_entry_id: "browser", candidate_entry_id: "go_client")
powhttp_fingerprint(entry_id: "...")
powhttp_get_tls(connection_id: "...")Implementing in Go
When implementing a discovered API:
- Use
bogdanfinn/tls-clientwith Chrome 144 profile for TLS fingerprinting - Copy headers exactly as they appear in
powhttp_get_entry, including order - Use
http.HeaderOrderKeyandhttp.PHeaderOrderKeyfromfhttpfor header ordering - Do NOT manually set
Cookie,Content-Length,Host, orConnectionheaders — they're handled automatically - Add response types in the platform package's
api.gofile - Use
platform.DoJSON()for JSON APIs or rawclient.Do()for HTML scraping - Add status mapping in
internal/platform/mapping.goif new statuses appear - Follow the
platform.BuildURL()pattern for query parameters - Log with pipe-delimited format:
s.log.Infof("platform | action | detail | key: value")
Validate implementation
After making a request through the proxy:
- Validate schema:
powhttp_validate_schema(entry_ids: ["scraper_entry"], schema: "type Resp struct { ... }", schema_format: "go_struct") - Validate stealth:
powhttp_diff_entries(baseline_entry_id: "browser_entry", candidate_entry_id: "scraper_entry")- Header order mismatch → fix
HeaderOrderKey - TLS fingerprint mismatch → check
profiles.Chrome_144
- Header order mismatch → fix
Platform Access
- Viagogo public pages (
www.viagogo.com) may trigger AWS WAF challenges - Viagogo seller dashboard (
my.viagogo.com) requires an authenticated browser session - Vivid Seats API (
vividseats.com/hermes/api/v1/...) doesn't require auth - Lysted API (
api.lysted.com) requires a Bearer token - Section matching debug: logic in
internal/sync/listings.go:sectionForMatching()andinternal/platform/allocations.go:SectionMatches()
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

