debugging-strategies

debugging-strategies is a skill for Claude Code, Codex from KraitDev/skiLL.Md. It costs 17 tokens per session (1,577 once invoked), scanned A, original, MIT.

A set of methods for finding the cause of difficult or unpredictable software bugs. It uses repeatable reproduction, narrowing the failure to a specific part, testable explanations, and small fixes.

In plain words
What is it for?
Use it for production defects, unclear test failures, unfamiliar legacy code, and intermittent or flaky tests. It requires failing code or a scenario, source code, and an environment where the problem can be investigated.
Why use it?
It replaces guesswork with a process that makes the cause of a failure easier to verify.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it for production defects, unclear test failures, unfamiliar legacy code, and intermittent or flaky tests. It requires failing code or a scenario, source code, and an environment where the problem can be investigated.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kraitdev/skill.md/debugging-strategies
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 KraitDev/skiLL.Md --skill debugging-strategies
Clone the repo
git clone --depth 1 https://github.com/KraitDev/skiLL.Md

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 debugging-strategies

README.md
[![agentmods](https://agentmods.dev/badge/skills/kraitdev/skill.md/debugging-strategies/github.svg)](https://agentmods.dev/skills/kraitdev/skill.md/debugging-strategies)
Your own site
<a href="https://agentmods.dev/skills/kraitdev/skill.md/debugging-strategies"><img src="https://agentmods.dev/badge/skills/kraitdev/skill.md/debugging-strategies/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 debugging-strategies

Your own site · 80×15
<a href="https://agentmods.dev/skills/kraitdev/skill.md/debugging-strategies"><img src="https://agentmods.dev/badge/skills/kraitdev/skill.md/debugging-strategies.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,577 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00017 $0.01577
Opus 5.5 $0.00007 $0.00631
Sonnet 5.5 $0.00003 $0.00315
Haiku 4.5 $0.00002 $0.00158

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

Security

Grade A, and why

debugging-strategies 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 1mo 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/dev-tools/debugging-strategies/SKILL.md · 178 lines

How it starts

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

Debugging Strategies

Purpose

"Guess and check" programming wastes hours. This skill replaces randomness with the scientific method: reproduce the bug reliably, isolate the failing component via binary search, formulate testable hypotheses, and apply minimal fixes. The goal is deterministic bug resolution, not random fixes that seem to work.

When to use

  • Investigating a defect reported in production
  • Facing a failing test with no obvious root cause
  • Understanding unfamiliar or undocumented legacy code
  • Debugging intermittent failures (flaky tests)

When NOT to use

  • Performance optimization (use Caching Strategies or Database Query Optimization)
  • Code review (use Code Review Guidelines)
  • Architecture decisions (different concern)

Inputs required

  • Failing code, test, or end-to-end scenario
  • Ability to reproduce the failure
  • Source code and execution environment

Workflow

  1. Reproduce the Bug: Consistently replicate the failure state. If you CANNOT reproduce it, STOP (get more details). Write a failing test.
  2. Isolate the Subsystem: Use binary search (comment out code halves, use git bisect, add logging) to locate the exact module causing the issue
  3. Formulate Hypothesis: Propose WHY the failure is happening based on logs, stack traces, and code inspection
  4. Test Hypothesis: Add targeted logging or step through debugger to verify assumptions about state/variables at runtime
  5. Apply Minimal Fix: Change ONLY what's necessary to make the test pass (single line if possible)
  6. Verify Fix: Confirm the failing test now passes, and no other tests break
  7. Add Regression Test: Ensure this bug never reoccurs

Rules

  • MUST establish a reproducible test BEFORE changing code
  • MUST only change one variable or line at a time during hypothesis testing
  • MUST NOT apply multiple changes simultaneously (makes diagnosis impossible)
  • MUST use binary search for isolation (comment out halves, not random guessing)
  • MUST formulate a hypothesis before adding logging or changes
  • MUST keep the fix minimal (change only what caused the bug)

Read the full file on GitHub · 178 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. 1mo ago First seen · 178 lines · 17 tokens per session scan A c637c5fc7141

Subscribe to this mod's changes

debugging-strategies is a skill published in the GitHub repository KraitDev/skiLL.Md (6 stars, last pushed 4mo ago), licensed MIT. It adds 17 tokens to every session and 1,577 once invoked, about $0.0001 per session on Opus 5.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.

Related

Other skills, from other repositories

lottie-flutter

Expert implementation, architecture, debugging, and performance optimization of Lottie animations in production Flutter applications across supported platforms. Use when adding, refactoring, profiling, or architecting Lottie vector animations using the pure Dart lottie package (v3.5.x+).

ariaramin/flutter-skills · 58 tokens

flutter-svg-engineering

Design, implement, review, debug, test, migrate, secure, and optimize SVG rendering in production Flutter applications using fluttersvg and vectorgraphics. Use whenever a Flutter task involves SvgPicture, SVG assets, remote/dynamic SVG, SVG theming or ColorMapper, BoxFit/layout/clipping, semantics or RTL, SVG caching…

ariaramin/flutter-skills · 128 tokens

flutter-webview-production-engineering

Design, implement, review, secure, debug, test, optimize, and migrate production Flutter embedded-browser features using webviewflutter. Use this skill whenever work involves WebViewController/WebViewWidget lifecycle, NavigationDelegate, domain allowlists, JavaScript channels, cookies/session handoff, OAuth browser…

ariaramin/flutter-skills · 115 tokens

dart-flutter-equatable-engineering

Design, implement, review, debug, test, migrate, and optimize value equality in production Dart and Flutter code using Equatable or appropriate alternatives. Use this skill whenever work involves Equatable, props, immutable Bloc/Cubit states or events, equality bugs, suppressed state emissions, lists/sets/maps in…

ariaramin/flutter-skills · 116 tokens

flutter-concurrency-memory-performance

Diagnose, design, optimize, and validate Flutter/Dart concurrency, isolates, async workflows, memory ownership, leak prevention, resource lifecycle, rendering, startup, networking efficiency, background work, and cross-platform performance. Use this skill whenever Flutter work mentions jank, freezes, slow parsing…

ariaramin/flutter-skills · 140 tokens

flutter-memory-leak-engineering

Diagnose, prevent, test, and regress-test Flutter/Dart memory lifecycle defects using leaktracker, leaktrackerfluttertesting, FlutterMemoryAllocations, and DevTools Memory. Use this skill whenever Flutter work involves controllers, FocusNode, AnimationController, ScrollController, ChangeNotifier, subscriptions…

ariaramin/flutter-skills · 131 tokens