Skip to content
Back to skills

Debugging

ASecurity

Diagnose a non-trivial bug, regression, crash or unexplained behavior, or after two failed fixes; unexplained agent admission, startup, death, liveness or reporting failures.

  • 5 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 13, 2026
ai-agentsgodebugging

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 15, 2026

npx -y skills add tompassarelli/north --skill debugging --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Debugging?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Debugging
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tompassarelli-debugging/badge)](https://www.skillsdirectory.com/skills/tompassarelli-debugging)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: debugging
description: >-
  Diagnose a non-trivial bug, regression, crash or unexplained behavior, or after two failed fixes; unexplained agent admission, startup, death, liveness or reporting failures.
grounded: 2026-11-15
written: 2026-11-15
portable: true
---

# Debugging

1. Reproduce the exact symptom beside the closest working case, because the difference between them bounds the cause.
2. Search the exact error with product, version and platform before the second fix, or the first on an unfamiliar system, because most failures are already documented.
3. List good/bad differences and change one variable per predicted experiment, because a two-variable change cannot say which one mattered.
4. Trace both runs identically with existing instrumentation and diff normalized output to the first divergence, because the first divergence is closer to the cause than the symptom. Name a cause only once changing that one variable flips the symptom; until then it is a hypothesis, because a cause the next run refutes costs more than an open question.
5. Repair that cause at its origin, not over the symptom, at the highest level that works as the [agent-policy skill](../agent-policy/SKILL.md) orders, and run the failing and working cases once each. When a fix lands, fix every other instance of the same cause in the same change and add a check that fails on the class, because the reported case is rarely the only one and a patch over one instance leaves the class open.
6. After two failed fixes, write down the assumption both fixes shared and test it before a third fix or a model escalation, because two failures from one premise mean the premise, not the patch, is wrong. If the tested premise does not unblock the fix, stop and return one supported recommendation.

Read [observation tools](references/observation-tools.md) when choosing a trace.

## Agent runtime incidents

An unexplained agent admission, startup, death, liveness, control or reporting failure is an incident with its own lifecycle, separate from delivery of the work, because finishing the work by another route does not repair the fault.

- Capture the intended and emitted operation, exact error, runtime mode and affected seam before any retry or replacement, because a retry can duplicate an external effect or destroy the only evidence.
- Create or join exactly one incident record per stable cause signature in the authorized durable continuity record, excluding credentials and unrelated transcripts, so retries count as recurrences, not new incidents.
- Quarantine only the defective seam, and keep containment, delivery and repair evidence separate, because a successful replacement contains impact without identifying the defect.
- Reproduce one falsifiable hypothesis, classify the lifecycle seam and cause, and assign the exact upstream owner, because a fallback hides the defect instead of owning it. Without a safe reproduction, keep the incident open as `reproduction-blocked` rather than blind-retrying.
- Move through `seeded → contained → investigated → classified → owned → repaired → regressed → activated → primary-canaried → closed` without skipping a state's evidence, because each state's evidence is what the next relies on.
- On recurrence after closure, reopen with a new generation and gather all evidence again, because a recurrence refutes the earlier repair claim.
- Close only after, in the current generation: the repair lands, the focused regression and the coverage the [verification skill](../verification/SKILL.md) requires pass, the repair is activated, the preferred topology is restored, and a primary-path canary exercises the triggering seam. Fallback success shows only that another route works.
- Let the runtime settle runs, fallback and restoration debt, and record its facts as incident evidence, because a second debt model would drift from the runtime's.

Read [runtime incidents](references/runtime-incidents.md) for the signature tuple, classification values, reopening and upstream reports, and [incident cases](references/runtime-incident-cases.md) when unsure whether an observation seeds, joins or splits an incident.

Files in this skill

  • SKILL.md868 B
  • references/notes.md1.6 KB
  • references/observation-tools.md1.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.