agentleFS
shinzoxDshinzoxD/knackbox/skills/coding/debugging/SKILL.md

debugging

Skill0 starsChanged 5 months agoApache-2.0View on GitHub

Diagnose bugs systematically instead of guessing — form

81 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use media-processing, databases and 9 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.
  • 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 4 projects that use this

  • mrgoonieSkill

    databases

    Work with MongoDB (document database, BSON documents, aggregation pipelines, Atlas cloud) and PostgreSQL (relational database, SQL queries, psql CLI, pgAdmin). Use when designing database schemas, writing queries and aggregations, optimizing indexes for performance, performing database migrations, configuring replication and sharding, implementing backup and restore strategies, managing database users and permissions, analyzing query performance, or administering production databases.

    Also in 5 projects that use this

  • pproencaSkill

    refactoring

    Code refactoring best practices based on Martin Fowler's catalog and Clean Code principles. This skill should be used when refactoring existing code, improving code structure, reducing complexity, eliminating code smells, or reviewing code for maintainability. Triggers on tasks involving extract method, rename, decompose conditional, reduce coupling, or improve readability.

    Also in 17 projects that use this

  • ShopifySkill

    profiling

    Profile Rubydex indexer performance — CPU flamegraphs, memory usage, phase-level timing. Use this skill whenever the user mentions profiling, performance, flamegraphs, benchmarking, "why is X slow", bottlenecks, hot paths, memory usage, or wants to understand where time is spent during indexing/resolution. Also trigger when comparing performance before/after a change.

    Also in 3 projects that use this

  • MicrosoftSkill

    using-skills

    Describes how to use abilities. Read before any conversation.

    Also in 3 projects that use this

  • NVIDIASkill

    deployment

    Serve a quantized or unquantized LLM checkpoint as an OpenAI-compatible API endpoint using vLLM, SGLang, or TRT-LLM. Use when user says "deploy model", "serve model", "start vLLM server", "launch SGLang", "TRT-LLM deploy", "AutoDeploy", "benchmark throughput", "serve checkpoint", or needs an inference endpoint from a HuggingFace or ModelOpt-quantized checkpoint. Do NOT use for quantizing models (use ptq) or evaluating accuracy (use evaluation).

    Also in 5 projects that use this

  • +5 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 73 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:

    If the error is environmental (version, path, permissions, env var), check that before touching code — ask for versions when relevant.

    line 42
  2. Distinctive:

    When the user's mental model is wrong (e.g.

    line 44
  3. Distinctive:

    If you cannot reproduce or reason to a confident cause, say so and ask for the smallest additional artifact (input sample, full trace, …

    line 46

“Common” is measured: kept by at least 6 in 10 of the 73 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

Find root causes, not symptoms. Never propose a fix before stating what you believe is wrong and why the evidence supports it.

Process

  1. Restate the fault: expected behavior vs. actual behavior, in one line each. If you can't fill in both, ask for the missing half.
  2. Read the evidence: parse the full error/stack trace bottom-up; identify the first frame in the user's code. Quote the exact line that fails.
  3. Hypothesize: list the 1–3 most likely root causes, ranked, each with the evidence for it.
  4. Discriminate: give the single cheapest check that distinguishes between hypotheses (a print/log, a one-line REPL test, a narrowed input) before writing any fix.
  5. Fix and verify: once confirmed, show the minimal fix and state how to prove it worked (the exact command or test to run).

Rules

  1. One change at a time. Never suggest three simultaneous edits "to see if one helps".
  2. Distinguish facts (in the trace/output) from inferences (your reasoning). Label them.
  3. If the error is environmental (version, path, permissions, env var), check that before touching code — ask for versions when relevant.
  4. When the user's mental model is wrong (e.g. mutation vs. copy, async timing), fix the code and correct the model in one sentence.
  5. If you cannot reproduce or reason to a confident cause, say so and ask for the smallest additional artifact (input sample, full trace, config) instead of guessing.

Output format

**Fault:** expected X, got Y at `file.py:42`

**Most likely cause:** <one line> (evidence: <trace line / behavior>)

**Confirm it:** run `<one command>` — if it prints Z, this is confirmed.

**Fix:**
<minimal diff or snippet>

**Verify:** re-run `<test/command>`; it should now <observable result>.

Edge cases

  • Heisenbug / intermittent: focus on logging strategy and narrowing reproduction before any fix.
  • "It works on my machine": diff environments first — versions, locale, timezone, env vars, data.
  • Multiple stacked errors: fix the first error in causal order; later ones are often symptoms.

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.