dap-debugging

A debugging workflow that uses persistent DAP sessions to inspect a running program. DAP is a standard connection between a debugger and development tools, supporting breakpoints, stepping, and expression evaluation.

In plain words
What is it for?
Use it to reproduce a problem, set focused breakpoints, inspect runtime values, evaluate expressions, and step through Go, Python, TypeScript/JavaScript, or native programs.
Why use it?
It helps locate the first point where runtime behavior becomes incorrect when reading source code alone cannot reveal the failing value, exception, or execution path.

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/getkimchi/kimchi/dap-debugging
Any agent
npx skills add getkimchi/kimchi --skill dap-debugging
Clone the repo
git clone --depth 1 https://github.com/getkimchi/kimchi

Made for: Claude Code, Codex.

Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,290 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.00037 $0.02290
Opus 5 $0.00018 $0.01145
Sonnet 5 $0.00007 $0.00458
Haiku 4.5 $0.00004 $0.00229

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

Security

Grade A, and why

dap-debugging 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 3d 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.

resources/skills/dap-debugging/SKILL.md · 187 lines

How it starts

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

Debugging with DAP Tools

Use this skill when you need runtime state — a value at a line, the exception that actually threw, which code path ran — and reading the source no longer answers the question.

Per-language launch config, source mapping, and expression syntax rules live in reference files alongside this skill. Load the one matching your debuggee before launching: skill_view name="dap-debugging" file_path="references/go.md", references/python.md, references/typescript.md, or references/native.md.

The debugging loop

Debugging is a search: you are locating the first place observable state diverges from intended state. Each iteration narrows the search.

  1. Reproduce and name the symptom. Run the program normally first (bash). Write down the visible wrong thing: wrong output, exception, hang. The symptom anchors every breakpoint you set.
  2. State your one-line hypothesis. "The cache returns a stale entry after eviction." One line, about data. If you cannot, read more code — debugging without a hypothesis is random walking.
  3. Probe the boundary where the symptom appears. Breakpoint at the observable wrong behavior (see placement rules below), inspect state. Ask: does it match expectations here?
  4. Move backward along the data flow. State is wrong at your probe → the corruption happened earlier. Find where the bad value was written (assignment site, mutation, argument pass) and probe there. Repeat until you reach a probe where state is correct — the divergence is between the last correct and first incorrect probe.
  5. Minimize the step distance. Steps between your last-correct and first-wrong probes may still be large. Step (step_over / step_in) through that window while re-evaluating the suspect expression. The statement where the expression flips from right to wrong is usually the bug — or one line away from it.
  6. Fix, then verify at the same breakpoint. Re-run to the same probe with the fix and confirm state is now correct. Do not skip the verification pass.

Read the full file on GitHub · 187 lines

Files

What ships with it

4 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. 3d ago First seen · 187 lines · 37 tokens per session scan A df5507c2b220

Subscribe to this mod's changes

dap-debugging is a skill published in the GitHub repository getkimchi/kimchi (2,216 stars, last pushed 4d ago), licensed Apache-2.0. It adds 37 tokens to every session and 2,290 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

building-pydantic-ai-agents

Build AI agents with Pydantic AI — tools, capabilities (including on-demand loading), structured output, streaming, testing, and multi-agent patterns. Use when the user mentions Pydantic AI, imports pydanticai, or asks to build an AI agent, add tools/capabilities, defer capability loading, stream output, define agents…

pydantic/pydantic-ai · 85 tokens

complete-partial-pr

Evaluate and complete an issue or PR where the submitted patch fixes only a narrow symptom of the reported pain point. Use when a contribution may miss adjacent integration surfaces, provider/spec semantics, roundtrip behavior, tests, docs, or historical maintainer decisions.

pydantic/pydantic-ai · 55 tokens

google-drive-sheets

Find, read, export, edit, and manage the user's Google Drive, Docs, Sheets, and Slides through per-user OAuth.

yc-software/qm · 31 tokens

interactive-login

How to complete browser/interactive logins (aws / gh / glab / gcloud). The platform backgrounds the login poller so it survives the human's browser round-trip — and when that does NOT work.

yc-software/qm · 46 tokens

github-gitlab

Work with GitHub and GitLab repositories through resident gh/glab/git auth on the agent computer.

yc-software/qm · 25 tokens

harness-creator

Build, audit, and improve harnesses that make AI coding agents reliable: AGENTS.md/CLAUDE.md instruction files, feature/state tracking, verification gates, scope boundaries, session handoff, memory persistence, context budgets, tool-permission safety, and multi-agent coordination. Use this whenever a coding agent is…

walkinglabs/learn-harness-engineering · 142 tokens