agentleFS
ampakingampaking/coder-ai-os/skills/debugging/SKILL.md

debugging

Skill0 starsChanged 3 months agoMITView on GitHub

Diagnose and fix failing tests, runtime errors, or unexpected behavior. Use when a failure must be reproduced, localized, corrected, and verified.

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 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.
  • 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

  • sarveshtaleleSkill

    test-generation

    Generate a test strategy and starter test stubs for given modules across unit, integration, and e2e layers (pytest/jest/playwright). Trigger on: generate tests, test plan, test strategy, coverage plan, test scaffolding.

    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

  • +5 more from mrgoonie

The file

Files
SKILL.md

Debugging

  1. Reproduce first — capture the exact failing command and its output. For a bug fix, preserve or add a regression test that fails for the reported behavior before changing production code whenever the environment permits. A test observed only after the fix is weaker evidence and must be labeled as such.
  2. Localize before reading whole files: find the owning unit in .ai/PROJECT_SNAPSHOT.md, QUERY its atlas maps — rg -w '<name>' .ai/symbols/ returns the one table row you need; never read a whole map (each header lists sed recipes for single sections; regenerate on demand: .coder-ai/scripts/update-ai-context.sh --symbols <dir>). Then read only that source location. Callers/impact: the map's import graphs and used-by columns, dep-scoped rg -w, or the code index.
  3. Form one hypothesis, add the smallest probe (log/assert/test) that confirms or refutes it. Derive the test from the contract, user-visible failure, boundary, or invariant—not from the implementation you intend to write. Assert externally meaningful outputs/state/errors; do not mock the unit under test, repeat its algorithm in the assertion, or accept a snapshot as the only proof of behavior.
  4. Fix the root cause, not the symptom. Keep the change minimal and unrelated code untouched.
  5. Re-run the exact failing command + the surrounding tests. Include the failure path, adjacent boundary cases, and one negative/error case when relevant. Report the observed result.
  6. Prove the regression test is sensitive: prefer an observed red-before/green-after result. If the test was necessarily written after the fix and the changed behavior is high-risk, make one safe temporary mutation that recreates the defect, observe the test fail for the expected reason, restore immediately, then rerun green. Never leave the mutation in the tree or weaken assertions to make it pass.

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.