Skip to content
Skills Library
DevOps & cloud · Analysis

debug-triage

/debug-triage

Find the failing layer in an outage or post-deploy break, debug to root cause, profile slow code. Use for "it's down", 502s, timeouts, latency spikes.

Repository
skills ↗
Licence
MIT
Last repository change
13.11.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
4
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 13.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Find the failing layer in an outage or post-deploy break, debug to root cause, profile slow code. Use for "it's down", 502s, timeouts, latency spikes.

Triggers from the description

s down
Original author description

Find the failing layer in an outage or post-deploy break, debug to root cause, profile slow code. Use for "it's down", 502s, timeouts, latency spikes.

How it works

  1. When to use
  2. When NOT to use
  3. AI Self-Check
  4. Known-component mode
  5. Workflow
  6. Layer map
  7. Discriminating-signal table
  8. Output Contract
  9. Related Skills
  10. Rules
Original SKILL.md headings · 177 lines, 2,041 words
SKILL.md preview
---
name: debug-triage
description: >
  Find the failing layer in an outage or post-deploy break, debug to root cause, profile slow code. Use for "it's down", 502s, timeouts, latency spikes.
license: MIT
compatibility: "Optional, stack-dependent: kubectl, dig, curl, openssl, ss, journalctl, pg_isready, jq"
metadata:
  source: iuliandita/skills
  date_added: "2026-06-14"
  effort: high
  argument_hint: "[symptom-or-service]"
---

# Debug Triage

Use this skill to localize an unknown failing layer or investigate a known component. For an
unknown layer, collect evidence before proposing a fix. For a known component, use the mode below;
the host `systematic-debugging` skill can supplement it if installed.

## When to use

- A known component fails or regresses and needs a reproducible root-cause investigation
- A live service is down or degraded and the failing layer is not yet known ("it's broken", "502s
  started", "pods CrashLooping", "users report timeouts")
- An outage spans multiple layers (DNS, network, ingress, app, data, secrets) and you need to find
  which one before going deep
- Post-deploy or post-change breakage where the blast radius is unclear
- You are about to start guessing fixes - stop and localize first

## When NOT to use

- Auditing repo files for problems that are not a live incident - use **repo-audit** or **code-review**
- Running the standing Kubernetes health checklist when you already know it is a cluster question -
  use **kubernetes-health**
- Building the signals you wish you had mid-incident - use **observability** (do that before the
  next incident, not during this one)
- A security incident with a suspected intrusion - triage the layer, then escalate to
  **security-audit** and your incident-response process; this skill localizes, it does not contain

---

## AI Self-Check

Diagnostic work fails in specific ways. Before reporting a localization or running checks, verify:

- [ ] **No fix before localization.** The cause is identified with evidence before any change is
  proposed. A guessed fix on an unknown layer is the failure mode this skill exists to prevent.
- [ ] **Failure modes differentiated.** "Unreachable", "permission denied", and "not present" are
  distinct findings with distinct next steps - never collapse them into "missing".
- [ ] **No silent masking.** Diagnostic commands do not hide errors behind `2>/dev/null`. A failed
  check surfaces its reason; an empty result is not read as "all clear".
- [ ] **Cheapest discriminating check first.** Each step is chosen to *exclude* the most layers per
  command, not to confirm a hunch. State what a pass and a fail each rule out.
- [ ] **Evidence, not inference.** Each layer is excluded or implicated by an observed signal
  (command output, metric, log line), not by assumption.
- [ ] **Read-only by default.** Triage observes. Any state-changing command (restart, failover,
  scale, flush) is called out as an action requiring explicit confirmation, not run silently.
- [ ] **Handoff is explicit.** The output names the implicated layer, the evidence, and the exact
  skill to route to next.
- [ ] Cross-cutting agent hygiene applied - see `references/agent-hygiene.md`

---

## Known-component mode

1. Capture the observed and expected behavior, environment, recent changes, and a minimal reproducible case. Establish a baseline; identify what remains unverified if reproduction is unavailable.
2. List competing hypotheses and choose the cheapest safe check with outcomes that distinguish them. Run it, record the result, and update or reject each hypothesis; do not treat correlation as cause.
3. Once evidence supports a cause, make the smallest authorized fix. Reproduce the original case and check relevant regressions; if it fails, revisit the hypotheses. Report evidence, change, result, and remaining uncertainty.
4. For CPU, heap, allocation, contention, throughput or latency regressions, use [performance diagnosis](references/performance.md). Use domain skills where appropriate; `systematic-debugging` is optional if installed.

## Workflow

For an unknown failing layer:

Run the checks listed for the candidate layers. Do not improvise checks with assumed service names
or paths; if a layer needs coverage not listed here, note it as a gap and ask, do not invent it.

Copy and track:
- [ ] Step 1: Symptom scoped (what, since when, recent change, blast radius, kube context)
- [ ] Step 2: Candidate layers listed (usually 2-4)
- [ ] Step 3: Discriminating checks run; each exclusion backed by evidence
- [ ] Step 4: Implicated layer, evidence, and owner skill stated

### Step 1: Scope the symptom

Pin the observable failure before touching anything. Capture: what is failing (endpoint, job,
user action), since when, what changed near that time (deploy, config, cert rotation, infra
change), and the blast radius (one service, one node, one region, everything). A recent change is
a useful hypothesis, not proof of causation. Before cluster checks, resolve and state the kube context and namespace from the request or confirmed configuration; carry them on every command.

### Step 2: Form layer hypotheses

Map the symptom to candidate layers (see the layer map). A symptom usually implicates 2-4 layers,
not one. List them; do not commit to a favorite.

### Step 3: Run the cheapest discriminating check

For the candidate layers, run the check that excludes the most layers per command (see the
discriminating-signal table). After each result, eliminate only failure modes the evidence excludes. Stop at a supported localization or report unresolved competing layers; do not force one layer to remain. Report *why* each layer was excluded, with the evidence. If more than one layer remains and a cheaper
discriminating check exists, repeat Step 3; if every candidate is excluded, return to Step 2.

### Step 4: Localize and hand off

State the implicated layer, the evidence that localized it, and the skill that owns the next step.
Continue with known-component mode or the owning domain skill once the component is known.

---

## Layer map

Work outside-in along the request path. Each layer is owned by a domain skill for the deep dive.

| Layer | Typical symptom | Owner skill for the deep dive |
|---|---|---|
| DNS resolution | NXDOMAIN, wrong IP, intermittent name failures | **networking** |
| Network / routing (L3-L4) | timeouts, no route, connection refused | **networking** |
| TLS / certificates | cert expired, SAN mismatch, handshake failure | **networking** (or the distro/appliance skill) |
| Load balancer / ingress | 502 (upstream sent an invalid/no reply), 503 (no healthy backend), 504 (upstream timed out) | **kubernetes** (ingress/Gateway) or **opnsense-pfsense** |
| Service / pod | CrashLoopBackOff, OOMKilled, readiness failing | **kubernetes**, then **kubernetes-health** for the broad sweep |
| App runtime | 500s, exceptions, deadlocks in one component | known-component mode and the language/domain skill |
| Database/cache | slow queries, connection pool exhaustion, eviction | **databases** |
| Message broker | consumer lag, redelivery, dead letters | **backend-api** |
| Identified application bottleneck | CPU, heap, lock contention, latency regression | [performance diagnosis](references/performance.md) |
| Secrets / auth chain | 401/403, token expired, Vault path unreachable | the failing runtime layer (**kubernetes-health**, **terraform**, **networking** as applicable) to trace the Vault->IaC->runtime chain; **security-audit** only for repository-side secret-handling review (repo-only, no live endpoints) |
| Host / node | disk full, memory pressure, kernel/systemd unit down | the distro skill (**debian-ubuntu**, **rhel-fedora**, **arch-linux**, **nixos**) |
| Config / deploy (GitOps) | broke right after a sync; drift from desired state | **kubernetes** / **terraform**, check the last change |

## Discriminating-signal table

Pick the check that splits the candidate set fastest. Detect tools first (`command -v dig curl
openssl ss kubectl`); a missing tool is a coverage gap, not a failed layer. These are starting
points - adapt the service names and paths to the actual stack, and surface errors rather than masking them. Run
reachability checks from the right network vantage point - inside the cluster or namespace for
ClusterIP services and split-horizon DNS, not from a laptop - or a wrong exclusion follows. For a
*degraded* symptom (slow, no errors) the discriminators shift from up/down to fast/slow and
which-fraction; see the last row - read its percentiles first (uniform vs tail vs one slow
replica), then chase only the resource that split implicates.

| Question | Check (adapt to stack) | A pass establishes | A fail suggests |
|---|---|---|---|
| Does the name resolve? | `dig +noall +comments +answer +authority <host>` (or `getent hosts <host>`) | this resolver answered this name at this time; intermittent/split-horizon faults remain open | DNS / upstream resolver |
| Is the port reachable? | `curl -sS -o /dev/null -w '%{http_code}' <url>`; `ss -tnp` | this URL was reachable from this vantage point; other routes and intermittent failures remain open | network, LB, listener, TLS, or HTTP behavior |
| Is TLS valid? | `openssl s_client -connect <host:port> -servername <host> -verify_hostname <host> -verify_return_error </dev/null` | this handshake validates for the supplied hostname and trust store | cert expiry / SAN / chain or reachability |
| Is the pod actually up? | `kubectl --context <context> -n <namespace> get pods -o wide`; `kubectl --context <context> -n <namespace> describe pod <pod>` | inspected readiness and container states; application behavior still needs evidence | scheduling, image, probes, OOM |
| Does the ingress have backends? | `kubectl --context <context> -n <namespace> get endpointslices -l kubernetes.io/service-name=<svc> -o yaml` (empty = nothing to route to) | selected endpoint addresses and conditions; routing and controller configuration remain open | absent or unready backends; correlate with observed proxy response |
| Is the dependency answering? | dependency ping/health (e.g. `pg_isready`, broker health) | server/listener accepts connections; authorization, query latency, locks and pool saturation remain open | DB/cache/queue reachability or server state; inspect the exact error |
| Did something just change? | `kubectl --context <context> -n <namespace> rollout history deployment/<deployment>` / git log of the manifests / deploy log | recorded rollout history only; changes elsewhere remain possible | a candidate recent change; hand off rollback or canary verification to the owning skill, with explicit approval |
| Is the host healthy? | `df -h`, `journalctl -p err -b`, unit status (surface errors) | inspected filesystem/unit signals only | disk, memory, a failed unit |
| Slow, not down (no errors)? | latency percentiles per endpoint/pod (p50 vs p99); CPU throttle ratio; application/pool connection-acquisition wait; backend query/wait evidence (`pg_stat_activity`); cache hit/miss ratio | observed latency is healthy in this window; intermittent saturation remains possible | tail latency or one slow replica: CPU throttle, pool exhaustion, slow query, cache-miss shift |

Read metrics for what they measure, not what they seem to say (e.g. K8s HPA `targetCPU` is a
percentage of the CPU *request*, not raw CPU; `df` is allocation, not live content). When a
resource is on a schedule (backups, rotations), judge freshness against that schedule.

## Output Contract

See `references/output-contract.md` for the full contract.

- **Skill name:** DEBUG-TRIAGE
- **Deliverable bucket:** `audits`
- **Mode:** conditional. Live triage is conversational - walk the layers, localize, and route inline without the contract. When invoked to **write up a triage or post-incident summary** as a durable artifact, apply the reporting size and evidence rules in `references/output-contract.md` and write it to `docs/local/audits/debug-triage/<YYYY-MM-DD>-<slug>.md`.
- **Severity scale:** `P0 | P1 | P2 | P3 | info` (see shared contract; used only in the written-summary mode).

## Related Skills

- **observability** - produces the metrics, traces, and logs triage reads. This skill consumes
  those signals to localize; observability builds them. If a layer is dark mid-incident, that is an
  observability gap to fix afterward.
- **kubernetes-health** - the broad read-only Kubernetes checklist. Triage routes to it once the
  symptom is localized to the cluster; kubernetes-health then sweeps node/workload/event/storage state.
- **networking** - owns DNS, routing, TLS, and proxy deep dives once triage points there.
- **databases** - owns the data-layer deep dive (slow queries, pools, replication) once implicated.
- **security-audit** - repository-side secret-handling and exploitability review only (repo-only,
  no live endpoints). A live 401/403 or broken Vault chain goes to the failing runtime layer per
  the routing table.
- **repo-audit** / **code-review** - operate on repo files, not a live incident. Triage is for a
  running system that is currently broken.

## Rules

1. **Localize before fixing.** Identify the failing layer with evidence before proposing any
   change. No guessed fixes on unknown layers.
2. **One layer at a time, cheapest check first.** Choose each check to exclude the most layers per
   command; drop ruled-out layers and state why.
3. **Read-only by default.** Triage observes; any state-changing action (restart, failover, scale,
   flush, apply) is flagged for explicit confirmation, never run silently.
4. **Do not invent service names, namespaces, or paths.** Adapt listed checks to the stack; if a
   needed check is not covered, note the gap and ask.
Files in this package (4)
  • SKILL.md 13 KB
  • references/agent-hygiene.md 1 KB
  • references/output-contract.md 3 KB
  • references/performance.md 5 KB

Versions

RepositoryScoreLicence
This page · iuliandita/skills90MIT
sagargupta16/claude-skills100MIT
omexit/claude-skills-pack100MIT

Database snapshot: 13.11.2026 · package version 460458b3d6f4 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100debug-failure
    Find the root cause of a failure in this team's cluster at the hackathon and fix it in git. Use when the app is down, slow, crash-looping, not updating, returning errors, or a deploy or Argo CD sync failed.
  • 100gh-debug
    Debug GitHub Actions build failures by fetching and analyzing workflow logs. Use when CI/CD pipelines fail and you need to identify the root cause.
  • 82watchtower-debug-issue
    Investigate a production error, alert or slow request using Watchtower before changing code. Use when debugging an exception, a regression after a deploy, or a latency complaint.
  • 100dev-debug
    AI DevKit · Guide structured debugging before code changes by clarifying expected behavior, reproducing issues, identifying likely root causes, and agreeing on a fix plan with validation steps. Use when users ask to debug bugs, investigate regressions, triage incidents, diagnose…
  • 100v1-debug
    Use when an observable problem is wrong, recurring, or unexplained and needs root-cause diagnosis. Triggers on "debug this", "why is this failing", or "find the root cause".
  • 100incident
    Structured incident response. Use when user reports an outage, production error, or says 'incident', 'something is down', 'users are affected'. Triage severity, contain blast radius, root-cause, document timeline, generate postmortem.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.