debug-incident-protocol

debug-incident-protocol is a skill for Claude Code, Codex from oleg494/coding-kit. It costs 126 tokens per session (1,036 once invoked), scanned A, original, MIT.

A fact-first procedure for investigating software incidents such as hangs, missing behavior, broken updates, or metrics that do not change. It checks configuration, stored data, logs, process state, and code paths before forming a theory.

In plain words
What is it for?
Use it to investigate stuck processes, silent failures, duplicate stream consumers, encoding problems, incorrect metrics, network timeouts, or suspected restart issues.
Why use it?
It helps distinguish visible symptoms from root causes and confirms that a fix is actually running after a restart.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to investigate stuck processes, silent failures, duplicate stream consumers, encoding problems, incorrect metrics, network timeouts, or suspected restart issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/oleg494/coding-kit/debug-incident-protocol
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.

Any agent
npx skills add oleg494/coding-kit --skill debug-incident-protocol
Clone the repo
git clone --depth 1 https://github.com/oleg494/coding-kit

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 debug-incident-protocol

README.md
[![agentmods](https://agentmods.dev/badge/skills/oleg494/coding-kit/debug-incident-protocol/github.svg)](https://agentmods.dev/skills/oleg494/coding-kit/debug-incident-protocol)
Your own site
<a href="https://agentmods.dev/skills/oleg494/coding-kit/debug-incident-protocol"><img src="https://agentmods.dev/badge/skills/oleg494/coding-kit/debug-incident-protocol/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 debug-incident-protocol

Your own site · 80×15
<a href="https://agentmods.dev/skills/oleg494/coding-kit/debug-incident-protocol"><img src="https://agentmods.dev/badge/skills/oleg494/coding-kit/debug-incident-protocol.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 126 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,036 The whole file, excluding the scripts and references it only reads on demand.
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.00126 $0.01036
Opus 5.5 $0.00050 $0.00414
Sonnet 5.5 $0.00025 $0.00207
Haiku 4.5 $0.00013 $0.00104

Measured 2d ago against content hash bfbf03beea7a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

debug-incident-protocol 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 2d 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.

Makes network callslowCapability

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

- **Old cache looks like an unfixed bug** — first check that the server IS SERVING the fixed bytes (curl + grep of the fix marker line), then force the cache to die.
.agents/skills/debug-incident-protocol/SKILL.md · 54 lines

How it starts

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

Debug & incident protocol: facts before theories

1. Core: facts, not opinions

  1. FACTS BEFORE THEORIES — order: 1) config flags, 2) DB row, 3) log lines, 4) only then a code hypothesis. The first incident report contains a fact, not an opinion.
  2. SYMPTOM ≠ ROOT CAUSE — «minutes are not deducted» is a symptom; silent except + wrong parser is the root cause. Trace the call path to the side effect; fix the root cause ONCE.
  3. IF METRIC FLAT WHILE FEATURE «WORKS» — SILENT FAILURE — UX success + zero metric = swallowed error. Look for except/early return on the metric path.
  4. SINGLE CONSUMER FOR EXCLUSIVE STREAMS — long-poll/queue/lock file — one owner. Kill duplicates before start; health = exactly one PID.
  5. RESTART RITUAL IS PART OF THE FIX — code on disk ≠ code in memory. After the fix: stop all → start one → verify log. Check: PID creation time > edit time.
  6. ENCODING OF CONSOLE ≠ ENCODING OF PRODUCT — mojibake in the console does not mean corrupted data. Check UTF-8 in the client/file.

2. Localizing hangs

  1. «It can't hang» — not an argument. Anything can hang: a network without a timeout, an interactive prompt, an infinite loop.
  2. Localize with a progress marker — the marker («=== stage N ===») is printed at the START of the block → hang is INSIDE the last block with a marker.
  3. Progress — to a FILE, not a pipe — cmd 2>&1 | Out-File prog.txt; a pipe can hang or lose the tail.
  4. Isolate the suspect BEFORE the full run — one block with a small timeout (30-60s), not the whole set with 900s.
  5. Chain A && B && C masks the hang location — split stages: each command separately, its own timeout.
  6. First suspect — infrastructure, not logic — BeforeAll/modules/network/interactivity is guilty more often than an «instant» test.
  7. Compare with the last successful run — git diff: the culprit is usually in the changes.

3. Cache and «still broken»

  • Old cache looks like an unfixed bug — first check that the server IS SERVING the fixed bytes (curl + grep of the fix marker line), then force the cache to die.
  • Foreign processes on the port — a test instance on the port blocks the real launch → looks «broken».

Read the full file on GitHub · 54 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. 2d ago Changed bfbf03beea7a
  2. 8d ago Changed ea522e6b4bbd
  3. 11d ago Changed c2b734e88815
  4. 25d ago Changed 61010df275ae
  5. 26d ago Changed 93a982e79e9c
  6. 1mo ago Changed 7510aa3002b5
  7. 1mo ago Changed 6fcda5b775d2
  8. 1mo ago Changed 35ab83a6aa10
  9. 1mo ago Changed 13bbbbf208d3
  10. 1mo ago First seen · 54 lines · 126 tokens per session scan A 5fdb72b9834e

Subscribe to this mod's changes

debug-incident-protocol is a skill published in the GitHub repository oleg494/coding-kit (3 stars, last pushed 2d ago), licensed MIT. It adds 126 tokens to every session and 1,036 once invoked, about $0.0005 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-08-31.