debug

A step-by-step method for finding the cause of a software problem when its source is not yet known.

In plain words
What is it for?
Use it to investigate errors, crashes, or unexpected results by checking reproduction steps, frequency, recent changes, and likely boundaries.
Why use it?
It prevents guesswork by recording the exact symptom and narrowing the search between system layers until the faulty part is identified.

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

Made for: Claude Code, Codex.

Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,572 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.00107 $0.01572
Opus 5 $0.00053 $0.00786
Sonnet 5 $0.00021 $0.00314
Haiku 4.5 $0.00011 $0.00157

Measured yesterday against content hash 6acca9e6d5f5, 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 yesterday.

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 · 145 lines

How it starts

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

!../principles/SKILL_BODY.md

!../tool-gitnexus/SKILL_BODY.md


Debugging Workflow

Disambiguation Gate

Before starting: Can you point to a specific function or line and say "the bug is here"? → Yes → Stop. Use sextant:fix-bug — the location is known, that skill handles the fix. → No → Continue here. This skill is for "symptom known, location unknown."

Core Principle

Debug by bisection, not inspection. Form a hypothesis about which boundary separates correct from incorrect behavior, then eliminate layers until only the root cause remains.


Complete Execution Workflow

Step 1: Capture the Symptom

Before forming any hypothesis, establish a precise symptom record:

  • Error message (exact text, stack trace if available)
  • Reproduction steps (what sequence of actions triggers it?)
  • Frequency (always / intermittent / environment-specific)
  • Regression (did this ever work? What changed recently?)
─── Symptom Record ──────────────────────────────────
Error / unexpected output: <exact message or behavior>
Trigger steps:             <reproducible sequence>
Frequency:                 Always / Intermittent (~X%) / Specific environment only
Regression:                Yes (last known good: <commit/date>) / No / Unknown
─────────────────────────────────────────────────────

Step 2: Identify Paradigm + Select Isolation Strategy

Identify which architecture paradigm applies (per §6.0), then use the corresponding isolation strategy:

Paradigm Isolation Direction Isolation Technique
Backend layered Entry → Logic → Data (inward) Add logging at each layer boundary; find the first layer that returns incorrect data
Frontend component tree Page → Feature → Atom (downward) Props injection test: pass hardcoded data directly to component, bypass store
CLI / Script Entry → Command handler → Core logic (inward) Print intermediate values at each function boundary
Functional (FP) I/O boundary → Pure core (inward) Test pure functions in isolation; side effects confined to boundaries
Concurrent / Async Reconstruct timing diagram; locate shared state Add timestamps/sequence numbers to logs; inspect lock points on shared state
Event-driven Trace event publish → handler chain Log each consumed event; verify handler receives correct payload

Read the full file on GitHub · 145 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. yesterday First seen · 145 lines · 107 tokens per session scan A 6acca9e6d5f5

Subscribe to this mod's changes

debug is a skill published in the GitHub repository hellotern/Sextant (15 stars, last pushed 4mo ago), licensed MIT. It adds 107 tokens to every session and 1,572 once invoked, about $0.0005 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.