windsurfrules

windsurfrules is a cursor rule for Windsurf from CacinieP/network-troubleshoot-skill. It costs 987 tokens per session, scanned A, original, MIT.

A set of rules for diagnosing network errors in code and command-line tools. It maps common messages, such as DNS failures, timeouts, refused connections, and certificate errors, to likely causes and checks.

In plain words
What is it for?
Use it to investigate failed npm or pip installs, Git pushes and pulls, Docker downloads, HTTP requests, and other commands that cannot reach a network service.
Why use it?
It replaces guesswork when package installation, Git operations, downloads, or service connections fail. The classification helps distinguish local services, firewalls, proxies, DNS, certificates, and remote server problems.

Cursor rule for Windsurf

Written for Windsurf: a Windsurf rule.

Good fit Use it to investigate failed npm or pip installs, Git pushes and pulls, Docker downloads, HTTP requests, and other commands that cannot reach a network service.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/caciniep/network-troubleshoot-skill/windsurfrules
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/CacinieP/network-troubleshoot-skill

Made for: Windsurf.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for windsurfrules

README.md
[![agentmods](https://agentmods.dev/badge/rules/caciniep/network-troubleshoot-skill/windsurfrules/github.svg)](https://agentmods.dev/rules/caciniep/network-troubleshoot-skill/windsurfrules)
Your own site
<a href="https://agentmods.dev/rules/caciniep/network-troubleshoot-skill/windsurfrules"><img src="https://agentmods.dev/badge/rules/caciniep/network-troubleshoot-skill/windsurfrules/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for windsurfrules

Your own site · 80×15
<a href="https://agentmods.dev/rules/caciniep/network-troubleshoot-skill/windsurfrules"><img src="https://agentmods.dev/badge/rules/caciniep/network-troubleshoot-skill/windsurfrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 987 This file is loaded in full into every session.
When invoked 987 The same file — it is already loaded in full.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00987 $0.00987
Opus 5.5 $0.00395 $0.00395
Sonnet 5.5 $0.00197 $0.00197
Haiku 4.5 $0.00099 $0.00099

Measured today against content hash 5a029e94b0c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

windsurfrules scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- npm install, pip install, git push/pull, docker pull, curl, wget failing
adapters/windsurf/.windsurfrules · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Network Troubleshoot Rules

When detecting network errors in code or commands, apply systematic diagnosis.

Triggers

  • ECONNREFUSED, ECONNRESET, ETIMEDOUT, ENOTFOUND, timeout, connection refused, connection reset, SSL, certificate, proxy, DNS, 502, 503, 504
  • npm install, pip install, git push/pull, docker pull, curl, wget failing
  • network, connect, timeout, DNS, proxy, VPN, offline

Error Classification

  • ECONNREFUSED → Service not running, wrong port, firewall rejecting
  • ECONNRESET → Firewall reset, server crash, keepalive timeout
  • ETIMEDOUT → Network unreachable, firewall drop, DNS timeout
  • ENOTFOUND → DNS resolution failure
  • EACCES, EPERM → Firewall / Permissions
  • Proxy errors → Proxy not running or misconfigured
  • SSL/TLS errors → Certificate chain, expiry, CA trust
  • HTTP 5xx → Server-side issue
  • npm ERR! network, pip timeout → Package Manager
  • fatal: unable to access (git) → Git / Network

Diagnostic Flow

Step 1: Identify Category

Match the error message to a category above.

Step 2: Run Diagnostics

Connectivity:

ping -c 4 <host>          # Linux/macOS
ping -n 4 <host>          # Windows
curl -v telnet://<host>:<port> --connect-timeout 5   # cross-platform port check
nc -zv <host> <port>      # Linux/macOS only

DNS:

nslookup <host>
nslookup <host> 8.8.8.8

Proxy:

echo $HTTP_PROXY $HTTPS_PROXY $ALL_PROXY
curl -x http://127.0.0.1:7890 https://www.google.com --connect-timeout 5
git config --global --get http.proxy
npm config get proxy

SSL:

openssl s_client -connect <host>:443 -showcerts </dev/null
echo | openssl s_client -connect <host>:443 2>/dev/null | openssl x509 -noout -dates
curl -vvv https://<host> 2>&1 | grep -E "SSL|TLS|certificate"

HTTP:

curl -vvv -o /dev/null -w "HTTP %{http_code}\nTime: %{time_total}s\n" https://<host>/<path>

Package Managers:

npm config list && npm ping
pip config list
docker info 2>&1 | grep -i "registry\|proxy"
git config --list | grep -i proxy

Read the full file on GitHub · 103 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 103 lines · 987 tokens per session scan A 5a029e94b0c1

Subscribe to this mod's changes

windsurfrules is a cursor rule published in the GitHub repository CacinieP/network-troubleshoot-skill (8 stars, last pushed yesterday), licensed MIT. It adds 987 tokens to every session, about $0.0039 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-15.