/devops-skills:network-troubleshootingfrom devops-skills
Diagnoses connectivity failures layer by layer using dig, curl, traceroute, tcpdump, and ss. Use when connections time out, are refused, or fail intermittently.
Ships in devops-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
"It's not connecting" describes a symptom, not a cause, and the cause could be any of six or seven layers between the client and the application. The single biggest time-waster in network troubleshooting is guessing at the application layer first because it's the most familiar, when the fault is actually two layers down in DNS or routing. Working through the stack in order — resolution, then reachability, then the port, then the protocol, then the application — turns a guessing session into a bounded diagnosis.
Isolate the layer before you fix anything; a fix aimed at the wrong layer just adds noise to the next person's investigation.
For a symptom-driven command cookbook (dig, curl, traceroute, ss, tcpdump), read
references/diagnostic-commands.md.
If the name doesn't resolve, or resolves to the wrong address, nothing past this point matters.
dig gives more control and cleaner output than nslookup for this — use it against both the
system resolver and the authoritative server directly to separate a propagation issue from a wrong
record.
dig +short api.example.com # what the system resolver returns
dig +short api.example.com @8.8.8.8 # bypass local cache, check a public resolver
dig api.example.com NS # who is authoritative
dns-management for TTL behavior.NXDOMAIN from the authoritative server itself means the record genuinely doesn't exist;
stop looking downstream and fix the zone.Done when: the resolved address is confirmed correct from both the client's resolver and the authoritative source, or the mismatch is understood and explained.
Once the address is right, check whether packets can get there at all, and where they stop if not.
traceroute (or mtr for a continuously updating view with loss percentages) shows each hop; a
consistent stop at the same hop across repeated runs points at that hop specifically, not at the
destination.
traceroute api.example.com
mtr -rw api.example.com # report mode, shows per-hop loss over time
REJECT sends something back, a silent
DROP looks identical to packet loss.Done when: the path either completes to the destination, or the exact hop where it stops is identified and attributable to a specific network or policy.
A host being reachable doesn't mean the specific port is open or that TLS is negotiating correctly.
curl with verbose output separates connection, TLS handshake, and HTTP response into distinct
phases, which tells you exactly which one failed instead of just "it didn't work."
curl -v https://api.example.com/health
openssl s_client -connect api.example.com:443 -servername api.example.com
curl -v output before any HTTP response is even attempted.Done when: you can state definitively which phase — connect, TLS, or HTTP response — the request is actually failing at.
Half the time a "network" issue is local: a process not actually listening on the expected port, a
socket stuck in CLOSE_WAIT because the application never closed it, or a local firewall rule.
ss (the modern replacement for netstat) shows exactly what's bound and in what state.
ss -tlnp # what's actually listening, and which process owns it
ss -tanp | grep CLOSE_WAIT # sockets the app opened but never closed
Done when: the expected process is confirmed listening on the expected port with no unexpected accumulation of stuck connection states.
tcpdump is the last resort because it produces the most data to sift through, but it's the only
tool that shows ground truth when every higher-level tool reports success and the failure is
intermittent or timing-dependent — a retransmission storm, a reset from an intermediate device, or
an asymmetric route.
tcpdump -i any host api.example.com -w capture.pcap
tcpdump -i any port 443 and host api.example.com # narrow before capturing broadly
RST from the far side appearing in the capture is definitive: something actively closed
the connection, which redirects the investigation toward a firewall, load balancer, or
application-level reset rather than a routing problem.Done when: the capture shows the specific packet-level event causing the failure, or
definitively rules out the network layer and hands the investigation to root-cause-analysis at
the application level.
State which layer the failure was isolated to (DNS, routing, port/TLS, local socket, or application), the exact command output that proved it, and what fixed it or who owns the fix. Name the honest gap — usually an intermittent symptom that was never reproduced during the capture window — rather than declaring the issue resolved when it was only reproduced and diagnosed once.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub arjunprabhulal/devops-skills --plugin devops-skills88 skills in this plugin
/alertingCovers designing alerts that page a human only when a human needs to act — symptom-based alerting over cause-based, multi-window burn-rate alerts on error budgets, severity tiers that route between page/ticket/dashboard, requiring every page to link a runbook, and tuning out alert fatigue. Use this whenever the user is writing a new alert rule, asking why on-call is paged too often or missing real incidents, choosing an alert threshold, or designing severity routing. For the SLO the burn-rate math comes from use `slo-definition`, and for what a runbook should contain use `runbooks`./api-gatewayCovers the managed front-door pattern for APIs — request routing, centralized auth, rate limiting and quotas, request/response shaping, and recognizing when a gateway helps versus becomes a bottleneck or single point of failure. Use this whenever the user is designing an API entry point, adding rate limits or quotas, centralizing auth for several backend services, transforming a request between an external and internal contract, or debugging a gateway timeout. For east-west traffic between internal services use `service-connectivity`, and for token issuance details use `iam-access-management`./argocd-operationsCovers running Argo CD day to day — structuring app-of-apps, choosing sync policies and waves, reading health versus sync status correctly, and unsticking a degraded or hung Application. Use this whenever the user mentions Argo CD, an Application stuck "Progressing" or "OutOfSync," app-of-apps or ApplicationSets, sync waves and hooks, or asks why a deploy shows synced but the workload is unhealthy. For the underlying model this tool implements use `gitops`; for automated canary analysis on top of it use `progressive-delivery`; for the workloads it manages use `kubernetes-operations`./artifact-managementVersions, stores, and promotes build outputs — registries, immutability, build-once-promote-many, retention and garbage collection, and provenance metadata. Use this whenever the user sets up an artifact or container registry, asks how to promote a build between environments without rebuilding, needs a retention or cleanup policy, or wants to trace where an artifact came from. For an image's contents and size use `image-optimization`; for vulnerability scanning use `image-scanning`./autoscalingCovers scaling Kubernetes workloads and nodes to demand — HPA on the right metric, VPA, cluster autoscaler, custom/external metrics, avoiding thrash with stabilization windows, and requests as the foundation underneath it all. Use this whenever the user is configuring an HPA, deciding between HPA and VPA, debugging autoscaling that flaps, or sizing a cluster autoscaler. For the requests/limits autoscaling depends on use `kubernetes-operations`; for cost tradeoffs use `cost-optimization`./backup-and-restoreDefines the discipline of building backups you can actually restore under pressure — RPO-driven frequency, restores rehearsed on a schedule, offsite immutable copies, encryption, and treating a backup that has never been restored as equivalent to no backup at all. Use this whenever the user sets up a backup job, chooses a retention policy, argues about RPO or RTO, asks whether current backups are enough, or plans for ransomware or accidental deletion. For the wider recovery plan use `disaster-recovery`, and for stateful platform durability use `stateful-workloads`.