agentleFS
hi-donwihi-donwi/Donwi-Skills/skills/debugging/SKILL.md

debugging

Skill0 starsChanged 10 days agoMITView on GitHub

Systematically diagnose and fix failures instead of guessing. Use when facing a bug, stack trace, failing test, crash, or unexpected behavior, or when a fix attempt did not work.

135 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use remove-ai-slops, ssr and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • DevNewbie1826Skill

    remove-ai-slops

    Remove AI-generated code slop from branch changes or an explicit file list while preserving behavior, including junk tests (prose pins, source greps, copied inventories, mock echoes), each proven by its class rule before a cut. Use when asked to remove slop, clean AI code, deslop, clean up generated code, strip slop, prune junk tests, or review generated-code cleanup. Start by locking behavior with regression tests, then use the workflow and category references.

    Also in 3 projects that use this

  • JetBrainsSkill

    ssr

    Create or modify IntelliJ Structural Search and Replace patterns.

    Also in 3 projects that use this

  • truongtv22Skill

    Problem-Solving Techniques

    Apply systematic problem-solving techniques for complexity spirals (simplification cascades), innovation blocks (collision-zone thinking), recurring patterns (meta-pattern recognition), assumption constraints (inversion exercise), scale uncertainty (scale game), and dispatch when stuck. Techniques derived from Microsoft Amplifier project patterns adapted for immediate application.

    Also in 4 projects that use this

  • mrgoonieSkill

    media-processing

    Process multimedia files with FFmpeg (video/audio encoding, conversion, streaming, filtering, hardware acceleration) and ImageMagick (image manipulation, format conversion, batch processing, effects, composition). Use when converting media formats, encoding videos with specific codecs (H.264, H.265, VP9), resizing/cropping images, extracting audio from video, applying filters and effects, optimizing file sizes, creating streaming manifests (HLS/DASH), generating thumbnails, batch processing images, creating composite images, or implementing media processing pipelines. Supports 100+ formats, hardware acceleration (NVENC, QSV), and complex filtergraphs.

    Also in 6 projects that use this

  • mrgoonieSkill

    mcp-management

    Manage Model Context Protocol (MCP) servers - discover, analyze, and execute tools/prompts/resources from configured MCP servers. Use when working with MCP integrations, need to discover available MCP capabilities, filter MCP tools for specific tasks, execute MCP tools programmatically, access MCP prompts/resources, or implement MCP client functionality. Supports intelligent tool selection, multi-server management, and context-efficient capability discovery.

    Also in 6 projects that use this

  • DevNewbie1826Skill

    programming

    MUST USE for work on Python, Rust, TypeScript, JavaScript, or Go source files and project manifests, and whenever a test or spec file is written, reshaped, reviewed, or deleted. Triggers: write or edit code; add, change, or delete a test; test authoring gate; junk tests; new project; Go HTTP service (gin lane); Bubble Tea TUI; CJK IME; Connect-Go RPC; sqlc or pgx; branded IDs; exhaustive matching; unsafe Rust; Miri; oversized file; refactoring; logging, log levels, structured logging, or observability; arena, allocator, bumpalo, const fn, const generics, compile-time programming, zero-allocation APIs, bitfields, repr, scope guards, errdefer-style cleanup, Zig-like patterns, zero-copy parsing, packed data, or FFI; Rust public API design or macros.

    Also in 3 projects that use this

  • +6 more from mrgoonie

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 122 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After a fix "didn't work" — reset and re-diagnose rather than pile on changes.

    line 18
  2. Distinctive:

    Fix the cause, not the symptom: Add a regression test that fails without the fix.

    line 27
  3. Distinctive:

    No regression test after the fix.

    line 37

“Common” is measured: kept by at least 6 in 10 of the 122 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Debugging & Error Recovery

Overview

Find the root cause before changing code. Random edits hide symptoms and create new bugs.

When to use

  • Any reproducible (or intermittent) defect, crash, or failing check.
  • After a fix "didn't work" — reset and re-diagnose rather than pile on changes.

Process

  1. Reproduce reliably — get a minimal, deterministic repro. If flaky, find what varies.
  2. Read the actual error — full message + stack trace; identify the first failing frame in your code, not the framework.
  3. Form one hypothesis about the root cause and a cheap way to test it (log, breakpoint, bisect, or a failing test via test-driven-development).
  4. Test the hypothesis — confirm or reject before editing. Change one variable at a time.
  5. Fix the cause, not the symptom. Add a regression test that fails without the fix.
  6. Verify and clean up — remove debug logging; confirm the original repro is gone and nothing nearby regressed.
  7. If the first fix failed — do not stack patches. Revert to diagnosis; use references/playbook.md for bisect, isolation, and domain-specific recovery loops.

Red flags

  • Editing code before reproducing or reading the error.
  • Multiple simultaneous changes so you can't tell what fixed it.
  • "Fixes" that suppress the error (swallowed exceptions, broad try/catch) without understanding.
  • No regression test after the fix.

Verification

  • The original repro now passes; a new test guards against regression.
  • You can explain the root cause in one sentence.

Reference Index

  • references/playbook.md — flexible recovery when fixes fail, bisect tactics, scroll-video issues.
  • references/expanded-guidance.md — deeper triage checklist, localization tactics, and recurrence prevention.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.