Rule
0 installs · 0 said it worked
Safe read-only network failure troubleshooting guide for developers
A cursor rule that guides safe, target-scoped, read-only diagnosis of developer network failures, classifying errors, running scoped checks, and advising remediation only with user approval.
People use this for
- network failure troubleshooting for developers
- read-only network diagnostics
- connection refused error debugging
- dns lookup failure troubleshooting
- proxy error diagnosis developer
- Name
safe-read-only-network-failure-troubleshooting-guide-for-develop- Works with
- Cursor
- License
- CC0(as observed at the source)
- Version
- v1 · updated Nov 29, 2026
Imported on Nov 29, 2026 from github.com . License observed at the source on Nov 29, 2026: CC0.
Are you the author?Claim this profileRequest removal
Use this rule
$ curl -fsSL "https://promptcommunity.dev/api/v1/posts/safe-read-only-network-failure-troubleshooting-guide-for-developers-pfnv/export/mdc" -o .cursor/rules/safe-read-only-network-failure-troubleshooting-guide-for-develop.mdcThen open a new session; Cursor picks it up from .cursor/rules/.
Manual install
Save safe-read-only-network-failure-troubleshooting-guide-for-develop.mdc as .cursor/rules/safe-read-only-network-failure-troubleshooting-guide-for-develop.mdc for this project or ~/.cursor/rules/safe-read-only-network-failure-troubleshooting-guide-for-develop.mdc for every project, then start a new session.
Rule
description: Systematic, safety-first network troubleshooting for developers globs: */ alwaysApply: false
Network Troubleshoot
Use this rule as a concise decision guide for developer network failures. Keep diagnostics safe, target-scoped, and read-only. Do not turn this rule into an automated remediation toolkit.
Safety Boundaries
- Prefer read-only diagnostics and trusted project-provided diagnostic scripts.
- Use the failing host, URL, registry, or service as the default probe target.
- Ask before probing unrelated external services.
- Do not print proxy URLs, credentials, tokens, auth headers, package index URLs, registry hostnames from config, or raw config values in shared output.
- Internal hosts and URLs may be collected for target-scoped local diagnostics, but replace them with placeholders before sharing logs or reports unless the user explicitly approves including them.
- Do not dump local config from npm, pnpm, yarn, pip, Git, Docker, shell, OS proxy, VPN, or certificate stores.
- Do not disable, bypass, or skip TLS or certificate verification.
- Do not change OS networking, DNS, proxy, package manager, Git, Docker, shell, VPN, or trust-store settings without explicit user approval for the exact action.
Workflow
- Collect: Capture the exact error, failing command, target host/URL/port, OS/shell, proxy/VPN context, and whether the failure affects one target or many.
- Classify: Match the symptom to the most likely category.
- Diagnose: Run only read-only checks scoped to the failing target.
- Explain: Interpret the output before suggesting any fix.
- Advise: Present remediation options as choices and wait for user approval before changing state.
- Verify: Re-run the original failing command or an equivalent target-scoped check.
Error Classification
| Error Pattern | Likely Category |
|---|---|
ECONNREFUSED, ERR_CONNECTION_REFUSED, Connection refused |
Target service or port is not listening |
ECONNRESET, socket hang up, Connection reset |
Connection dropped by target, proxy, firewall, or middlebox |
ETIMEDOUT, ERR_CONNECTION_TIMED_OUT, timed out |
Routing, firewall, proxy, or target availability |
ENOTFOUND, EAI_NONAME, ERR_NAME_NOT_RESOLVED, getaddrinfo |
DNS or hostname issue |
ERR_PROXY_CONNECTION_FAILED, proxy tunnel errors, HTTP 407 |
Proxy configuration or proxy authentication |
UNABLE_TO_VERIFY_LEAF_SIGNATURE, CERT_HAS_EXPIRED, self signed, ERR_CERT_* |
TLS certificate or local trust issue |
HTTP 403 |
Authorization, IP allowlist, CORS, or policy block |
HTTP 502, 503, 504 |
Upstream service, gateway, CDN, or transient server issue |
npm ERR! network, package install timeout, pip timeout |
Package registry, proxy, DNS, or network path issue |
fatal: unable to access, Git fetch/push timeout |
Git remote, proxy, DNS, TLS, or network path issue |
Safe Target-Scoped Checks
Choose the smallest relevant set. Explain what each command checks before running it.
Connectivity
Linux/macOS:
ping -c 4 <target-host>
curl -v telnet://<target-host>:<port> --connect-timeout 5
Windows PowerShell:
Test-Connection -ComputerName <target-host> -Count 4
Test-NetConnection -ComputerName <target-host> -Port <port>
DNS
Linux/macOS:
nslookup <target-host>
dig <target-host> # Linux/macOS, if available
Windows PowerShell:
Resolve-DnsName <target-host>
HTTP
Linux/macOS:
curl -vvv -o /dev/null -w "HTTP %{http_code}\nTime: %{time_total}s\nDNS: %{time_namelookup}s\nConnect: %{time_connect}s\nTLS: %{time_appconnect}s\n" https://<target-host>/<path>
curl -I https://<target-host>/<path>
Windows PowerShell:
$uri = "https://<target-host>/<path>"
try {
$resp = Invoke-WebRequest -Uri $uri -Method Head -TimeoutSec 10
"HTTP status: $([int]$resp.StatusCode)"
} catch [Net.WebException] {
if ($_.Exception.Response) {
"HTTP status: $([int]$_.Exception.Response.StatusCode)"
} else {
"HTTP request failed: $($_.Exception.Message)"
}
}
TLS
Linux/macOS:
openssl s_client -connect <target-host>:<port> -servername <target-host> -showcerts </dev/null
echo | openssl s_client -connect <target-host>:<port> -servername <target-host> 2>/dev/null | openssl x509 -noout -subject -issuer -dates
Windows PowerShell:
Use HEAD and report HTTP statuses separately from TLS or network errors so non-2xx responses are not mislabeled as certificate failures.
try {
$req = [Net.HttpWebRequest]::Create("https://<target-host>:<port>/<path>")
$req.Method = "HEAD"
$req.Timeout = 5000
try {
$resp = $req.GetResponse()
} catch [Net.WebException] {
$resp = $_.Exception.Response
if ($req.ServicePoint.Certificate) {
$cert = $req.ServicePoint.Certificate
"Cert subject: $($cert.Subject)"
"Cert expires: $($cert.GetExpirationDateString())"
}
if ($resp) {
"HTTP status: $([int]$resp.StatusCode) $($resp.StatusDescription)"
$resp.Close()
} else {
"TLS/network error: $($_.Exception.Message)"
}
return
}
$cert = $req.ServicePoint.Certificate
if ($cert) {
"Cert subject: $($cert.Subject)"
"Cert expires: $($cert.GetExpirationDateString())"
}
"HTTP status: $([int]$resp.StatusCode) $($resp.StatusDescription)"
$resp.Close()
} catch {
"TLS/network error: $($_.Exception.Message)"
}
Proxy And Package Managers
For proxy, package manager, Git, Docker, and OS network configuration, avoid raw config reads. Report only whether relevant settings appear present when this can be checked without printing values. If the available command would print a URL, token, internal hostname, auth header, or full config value, do not run it.
Only perform package registry probes when the failed operation already targeted that registry, or after the user approves that exact probe target.
User-Approved Remediation Options
These are options to discuss with the user, not commands to run automatically.
| Diagnosis | Safe Advice |
|---|---|
| Target service is not listening | Check whether the local or remote service is running and whether the expected port is correct. |
| DNS lookup fails | Check the hostname, hosts-file expectations, DNS service status, or approved DNS changes. |
| Proxy appears required or unavailable | Ask whether the user wants to start or adjust the proxy/VPN, then verify only the approved target. |
| TLS certificate expired | Renew or replace the certificate, fix system time, install a trusted local development CA, or update the trust store. Do not bypass TLS verification. |
| TLS unknown CA | Import the correct CA into the appropriate trust store after the user confirms the source and scope. |
HTTP 407 |
Ask the user to confirm proxy authentication requirements before changing credentials or tool settings. |
HTTP 403 |
Check authentication, API key scope, IP allowlist, CORS policy, or service policy. |
HTTP 502/503/504 |
Treat as upstream or gateway instability; check status pages when approved and retry with backoff. |
| Package install timeout | Discuss approved registry, proxy, or network-path options without printing or changing stored config values. |
| Git network failure | Discuss approved remote URL, proxy, credential, TLS, or network-path options without changing global Git settings automatically. |
| Docker pull failure | Discuss approved registry mirror, proxy, or daemon settings as a user-approved configuration change. |
Verification
After any user-approved change, verify with the original failing command whenever possible. If a smaller check is needed, keep it scoped to the same failing host, URL, registry, or service.
Always explain what each diagnostic result means before recommending the next step.
No result recorded yet. Added it? File a Tried-it report so the next person knows how it went in your editor.
Tried it
Reports from people who added this rule to their editor. They roll up into the badges above.
No one has filed a report yet. Try the prompt and be the first.
Related rules
- Security guardrails that keep an AI email assistant from being hijacked by malicious messages
A full system prompt giving an AI assistant that reads or manages email a security mindset: treat email as untrusted data, require approval for outward actions, avoid leaking private data, and report phishing and injection attempts calmly.
Productivity · @thanos0000
- Claude api: reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming,…
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any fo
Coding · @anthropic
- Forensic PHP codebase security, performance and quality audit
A long checklist-driven prompt that has the model act as a senior PHP reviewer and audit a codebase for type safety, security holes, database and performance issues, code quality, architecture, dependencies, and testing gaps, then report findings by severity with a final scored summary.
Coding · @ersinkoc
- Model a priced round and SAFE conversions on a cap table
Agent skill that models a seed or Series A round: converts post- and pre-money SAFEs, tops up the option pool, prices new shares, and reports dilution, warnings and a pre-money comparison using a bundled offline Python calculator.
Data & Finance · @f
- Check utility meter readings and bills for overcharges and leaks
Agent skill that cleans electricity, gas and water meter readings, computes usage and cost per period, checks supplier bills against readings and tariffs, and flags estimates, rollovers and leaks.
Data & Finance · @f
License: CC0v1 · published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.