debug

debug is a skill for Claude Code, Codex from bricerising/enterprise-software-playbook. It costs 69 tokens per session (1,697 once invoked), scanned A, original, Apache-2.0.

A troubleshooting workflow for finding the cause of production or local software problems using existing logs, request traces, and measurements.

In plain words
What is it for?
Use it to investigate errors, timeouts, slow requests, failed background jobs, server-error responses, or breaches of reliability targets. It also helps plan mitigation and follow-up fixes.
Why use it?
It turns vague reports such as “the app is slow” or “requests fail” into an evidence-based diagnosis and a practical response.

Skill for Claude CodeCodex

Part of the enterprise-software-playbook plugin — 17 skills shipped together

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/bricerising/enterprise-software-playbook/debug
Any agent
npx skills add bricerising/enterprise-software-playbook --skill debug
Clone the repo
git clone --depth 1 https://github.com/bricerising/enterprise-software-playbook

Made for: Claude Code, Codex.

Or install enterprise-software-playbook, the plugin that ships this one along with the rest of its 17 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/bricerising/enterprise-software-playbook/debug.svg)](https://agentmods.dev/skills/bricerising/enterprise-software-playbook/debug)
Your own site
<a href="https://agentmods.dev/skills/bricerising/enterprise-software-playbook/debug"><img src="https://agentmods.dev/badge/skills/bricerising/enterprise-software-playbook/debug.svg" alt="Measured on agentmods" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,697 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.00069 $0.01697
Opus 5 $0.00034 $0.00848
Sonnet 5 $0.00014 $0.00339
Haiku 4.5 $0.00007 $0.00170

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

Security

Grade A, and why

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 4d 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/debug/SKILL.md · 146 lines

How it starts

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

Debug (Log → Trace → Metrics)

Overview

This skill is for debugging with existing telemetry. It does not focus on adding instrumentation (use observability when telemetry gaps block triage).

Goal: turn “something is broken/slow” into:

  • a concrete symptom + impact statement,
  • an evidence-backed hypothesis (or a small set of competing ones),
  • a mitigation (rollback/flag/scale) when needed,
  • a short list of fix + follow-up tasks.

Inputs / Outputs

Inputs: Symptom description (what's failing/slow); access to logs, traces, and metrics; environment and time window. Outputs: Root cause diagnosis with evidence, mitigation action, fix plan, learning capture. Feeds follow-ups to observability, resilience, platform, or architecture.

Workflow

0) Establish ground truth (2–5 minutes)

Capture:

  • Environment (local/dev/staging/prod) and time window (start/end).
  • Symptom (what’s failing/slow) and impact (SLO/user-visible blast radius).
  • One exemplar: request/trace ID, job run ID, message ID, or timestamped log line.

1) Logs (find the exemplar and its correlation IDs)

  1. Find the first error/timeout log line closest to the symptom window.
  2. Identify correlation keys (prefer stable IDs):
    • traceId, requestId, spanId
    • op (route template / RPC method / job name / message type)
    • error code/type (typed error envelope, gRPC status, HTTP status)
  3. Pull the full log story for the exemplar (start → downstream call(s) → failure).

Copy/paste helpers live in references/commands.md.

2) Trace (turn the exemplar into a dependency hypothesis)

If you have a traceId, use it.

  1. Open the trace and confirm the root span matches the suspected operation (op).
  2. Identify:
    • the slowest span(s),
    • the first error span(s),
    • retries (multiple similar child spans),
    • deadline/time budget signals (deadline exceeded, timeout errors).
  3. Convert that to a dependency statement:
    • service A is timing out calling service B method X
    • “DB query Y is slow / missing index / deadlocked”
    • “Queue consumer is failing on message type T (poison message)”

Read the full file on GitHub · 146 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 146 lines · 69 tokens per session scan A 3b70bf850fe6

Subscribe to this mod's changes

debug is a skill published in the GitHub repository bricerising/enterprise-software-playbook (7 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 69 tokens to every session and 1,697 once invoked, about $0.0003 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-31.