agentleFS
EzraAppleEzraApple/skills-init/skills/systematic-debugging/SKILL.md

systematic-debugging

Skill2 starsChanged 47 days agoMITView on GitHub

Diagnose a bug, regression, flaky result, or unexplained slowness when its cause is not established.

191 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use chinese-git-workflow, chinese-code-review 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.
  • Leodorareluctant259Skill

    chinese-git-workflow

    适配国内 Git 平台和团队习惯的工作流规范——Gitee、Coding、极狐 GitLab 全覆盖

    Also in 9 projects that use this

  • Leodorareluctant259Skill

    chinese-code-review

    中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈

    Also in 8 projects that use this

  • SethGammonSkill

    ascii-diagram

    Generate perfectly aligned ASCII diagrams — architecture, flow, sequence, box-and-arrow. Uses a programmatic character-grid approach so alignment is guaranteed by math, not token prediction. Includes post-render verification.

    Also in 4 projects that use this

  • mjunaidcaSkill

    building-chatgpt-apps

    Guides creation of ChatGPT Apps with interactive widgets using OpenAI Apps SDK and MCP servers. Use when building ChatGPT custom apps with visual UI components, embedded widgets, or rich interactive experiences. Covers widget architecture, MCP server setup with FastMCP, response metadata, and Developer Mode configuration. NOT when building standard MCP servers without widgets (use building-mcp-servers skill instead).

    Also in 4 projects that use this

  • mjunaidcaSkill

    building-chat-interfaces

    Build AI chat interfaces with custom backends, authentication, and context injection. Use when integrating chat UI with AI agents, adding auth to chat, injecting user/page context, or implementing httpOnly cookie proxies. Covers ChatKitServer, useChatKit, and MCP auth patterns. NOT when building simple chatbots without persistence or custom agent integration.

    Also in 4 projects that use this

  • +2 more from Leodorareluctant259
  • +5 more from mjunaidca

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 178 edited versions we read keep these.

  • 5

    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:

    Treat a plausible explanation as a hypothesis until evidence distinguishes it from competing causes.

    line 8
  2. Distinctive:

    When several causes fit, record what would distinguish them and run the cheapest discriminating probe.

    line 22
  3. Distinctive:

    When fixes are requested, change the boundary that owns the violated invariant.

    line 32
  4. Distinctive:

    Avoid adding retries, delays, or guards unless they implement the actual contract.

    line 33
  5. Distinctive:

    If an existing local test can cheaply capture the defect, show it failing for the intended reason before the fix and passing afterward.

    line 36

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

Systematic debugging

Treat a plausible explanation as a hypothesis until evidence distinguishes it from competing causes. Diagnosis alone does not authorize a fix.

Establish the expected result, observed failure, triggering input, environment, and last known good state when available. Separate the reported symptom from the reporter's proposed explanation.

Find the first divergence

Reproduce on the failing surface, or identify the strongest available evidence and its limits. Trace backward from the wrong result through actual callers, state changes, and boundaries. Locate the earliest point where an invariant fails, rather than the last place an exception appears.

When several causes fit, record what would distinguish them and run the cheapest discriminating probe. Keep evidence that ruled a cause out. If repeated attempts fail, question the shared premise or improve the observation method before adding another workaround.

  • For measured speed or resource claims, read benchmarks.md.
  • For CPU profiles, traces, or heap captures, read runtime-artifacts.md.

Repair and verify

When fixes are requested, change the boundary that owns the violated invariant. Avoid adding retries, delays, or guards unless they implement the actual contract. Preserve unrelated behavior and external compatibility.

If an existing local test can cheaply capture the defect, show it failing for the intended reason before the fix and passing afterward. Otherwise use the closest stable reproduction; do not build a broad test harness for ceremony.

Rerun the original failing path and the nearby path implicated by the cause. For intermittent failures, compare repeated observations. Report the mechanism, evidence, repair or recommendation, and any environment still unverified.

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.