service-debug

service-debug is a skill for Claude Code, Codex from scitix/siclaw. It costs 42 tokens per session (1,402 once invoked), scanned A, original, Apache-2.0.

A diagnostic guide for Kubernetes Services that cannot reach the applications behind them. A Service is a stable network address that sends traffic to selected pods, which are running workload units.

In plain words
What is it for?
It helps inspect the Service, Endpoints, selectors, pod labels, readiness, and exposed ports to identify connectivity problems. It only reports the cause and does not change resources.
Why use it?
It checks whether the Service, its selected backends, and their ports match, making it easier to find why traffic is refused or no backends appear.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/scitix/siclaw/service-debug
Any agent
npx skills add scitix/siclaw --skill service-debug
Clone the repo
git clone --depth 1 https://github.com/scitix/siclaw

Made for: Claude Code, Codex.

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 service-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/scitix/siclaw/service-debug.svg)](https://agentmods.dev/skills/scitix/siclaw/service-debug)
Your own site
<a href="https://agentmods.dev/skills/scitix/siclaw/service-debug"><img src="https://agentmods.dev/badge/skills/scitix/siclaw/service-debug.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,402 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00042 $0.01402
Opus 5 $0.00021 $0.00701
Sonnet 5 $0.00008 $0.00280
Haiku 4.5 $0.00004 $0.00140

Measured 3d ago against content hash 8f3d87b131c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

service-debug scanned grade A with 0 findings 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 3d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/core/service-debug/SKILL.md · 166 lines

How it starts

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

Service Connectivity Diagnosis

When a Service is unreachable, returns connection refused, or has no backends, follow this flow to identify the root cause.

Scope: This skill is for diagnosis only. Once you identify the root cause, report it to the user and stop. Do NOT attempt to modify the Service, Endpoints, or pod specs — that should be left to the user.

Diagnostic Flow

1. Check the Service

kubectl get svc <service> -n <ns> -o wide

Confirm the Service exists and note:

  • TYPE — ClusterIP, NodePort, LoadBalancer, or ExternalName
  • CLUSTER-IP — should not be None unless it is a headless service
  • PORT(S) — the port(s) the Service exposes
  • SELECTOR — the label selector used to find backend pods

2. Check Endpoints

kubectl get endpoints <service> -n <ns>
  • If ENDPOINTS column shows <none> or is empty, no pods match the Service's selector — go to step 3.
  • If endpoints exist, note the IPs and ports — go to step 4.

For more detail (including notReadyAddresses):

kubectl describe endpoints <service> -n <ns>

3. Investigate selector and pods

The Service's selector must match labels on running, ready pods.

Get the Service selector:

kubectl get svc <service> -n <ns> -o jsonpath='{.spec.selector}'

List pods that match the selector:

kubectl get pods -n <ns> -l <key>=<value> -o wide

(Replace <key>=<value> with each selector pair from the previous command.)

If no pods match:

  • The selector may be wrong (typo, outdated label)
  • The pods may be in a different namespace
  • The pods may not exist yet

If pods exist but none are Ready:

  • Pods may be starting, crashing, or failing readiness probes
  • Use pod-crash-debug or check readiness probes

4. Check port configuration

Verify that the Service port, targetPort, and the container's actual listening port all align.

kubectl get svc <service> -n <ns> -o jsonpath='{range .spec.ports[*]}port={.port} targetPort={.targetPort} protocol={.protocol}{"\n"}{end}'

Read the full file on GitHub · 166 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. 3d ago First seen · 166 lines · 42 tokens per session scan A 8f3d87b131c7

Subscribe to this mod's changes

service-debug is a skill published in the GitHub repository scitix/siclaw (230 stars, last pushed 5d ago), licensed Apache-2.0. It adds 42 tokens to every session and 1,402 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.