agentleFS
zznabilzznabil/lean-agent-skill-collection/skills/debug/SKILL.md

debug

Skill1 starsChanged 3 months agoMITView on GitHub

Diagnose a hard defect or performance regression through a tight reproducible feedback loop, evidence-first investigation, falsifiable competing hypotheses, targeted instrumentation, and verified regression coverage.

192 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use add-discord, add-slack 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.
  • MicrosoftSkill

    add-discord

    Add Discord bot channel integration via Chat SDK.

    Also in 11 projects that use this

  • MicrosoftSkill

    add-slack

    Add Slack channel integration via Chat SDK.

    Also in 11 projects that use this

  • +10 more from microsoft

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 11 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 175 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use ASD-STE100-inspired short, active sentences, ISO 704-inspired stable terms and Diátaxis organisation when useful, without claiming …

    line 8
  2. Distinctive:

    Use TL;DR only when it helps a long response, and place it first.

    line 10
  3. Distinctive:

    Use a failing test, repeatable command, replay, browser check, differential run or minimal harness.

    line 14
  4. Distinctive:

    Minimise the reproduction: Remove everything unnecessary.

    line 18
  5. Distinctive:

    Before using a new live probe, check what each hypothesis predicts about existing logs, traces, failures, and known-good runs.

    line 21
  6. Distinctive:

    Run a separating test: Test one variable at a time.

    line 23
  7. Distinctive:

    Change a failed strategy: Do not expect new information from an unchanged verifier under unchanged conditions.

    line 24
  8. Distinctive:

    Challenge assumptions: If deep search within the current model finds nothing, challenge the boundary, representation, or supposedly …

    line 25
  9. Distinctive:

    If you cannot build a truthful feedback loop, or bounded attempts do not converge, stop guessing.

    line 28
  10. Very specific:

    Do not report INFEASIBLE while a material assumption remains untested and a safe probe remains available.

    line 30
  11. Distinctive:

    Use BCP 14 only for normative force.

    line 35
  12. Distinctive:

    Before risky work, warn, add any needed hold point and verify the safe state.

    line 36

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

Debug

Communication kernel

Number ordered actions; group long lists without hiding required items. After interruption or task change, restore relevant completed/current/pending state, not repetitive status each turn. Preserve language, exact tokens, formats, permissions and evidence. Never invent estimates or diagnose readers. Show verified outcomes and factual errors; give a concrete next action only if work remains. Trusted root AGENTS.md governs when loaded; otherwise use this standalone fallback. Never claim root activation without evidence. Use ASD-STE100-inspired short, active sentences, ISO 704-inspired stable terms and Diátaxis organisation when useful, without claiming formal conformance. Lead with the finding or next action. Keep only necessary detail. Omit routine Summary headings and closing recaps. Use TL;DR only when it helps a long response, and place it first.

Investigation procedure

  1. Protect data. Redact secrets and unnecessary personal data from commands, logs, captures, and reports.
  2. Reproduce the symptom. Accept the user's report as fact. Before choosing a cause, run a fast pass/fail loop for the exact behaviour. Use a failing test, repeatable command, replay, browser check, differential run or minimal harness. Failure to reproduce does not refute the report.
  3. Collect evidence. Record behaviour, revision, environment, inputs, logs, configuration, dependencies and timing before forming a theory. Separate observations from interpretation. Keep a revisable playbook for long investigations.
  4. Isolate intermittent conditions. Identify the changing dimension: timing, environment, state, data, dependency or revision. Change one factor; record conditions or seed.
  5. Minimise the reproduction. Remove everything unnecessary.
  6. Compare hypotheses. For a simple DIRECT defect, start with the one or two cheapest plausible hypotheses.
    • Generate three to five genuinely different hypotheses only for a costly, intermittent, or multi-causal problem.
    • Before using a new live probe, check what each hypothesis predicts about existing logs, traces, failures, and known-good runs. Use live action only to distinguish the surviving hypotheses.
  7. Try to falsify survivors. For a costly or multi-causal problem, assign one focused falsification attempt to each surviving hypothesis. Do not ask one reviewer to choose a favorite theory.
  8. Run a separating test. Test one variable at a time. Use targeted, labeled instrumentation. Use revision bisect when known-good and known-bad boundaries exist.
  9. Change a failed strategy. Do not expect new information from an unchanged verifier under unchanged conditions. After two materially similar failed attempts, change the hypothesis, boundary, instrumentation, environment, or representation. A parameter change within the same failed mechanism is not a new strategy.
  10. Challenge assumptions. If deep search within the current model finds nothing, challenge the boundary, representation, or supposedly verified rule. Exhausted search and timeouts do not prove impossibility.
  11. Repair and test regression. Fix the smallest surviving cause. Add regression coverage at a real boundary. Rerun the original and adjacent checks. Remove probes. Record evidence and remaining uncertainty.
  12. Assess confidence. Base confidence on the outcome. One survivor with falsified rivals supports greater confidence than several survivors. Zero survivors means the cause is unknown; it does not validate the first theory. If you cannot build a truthful feedback loop, or bounded attempts do not converge, stop guessing.
  • Report BLOCKED or UNSTABLE. State what you tried, which paths you falsified, and the smallest missing artifact, access, permission, or separating test.
  • Do not report INFEASIBLE while a material assumption remains untested and a safe probe remains available.

Reporting and execution rules

Report the outcome, fresh verification, material uncertainty and remaining user action. Omit routine tool narration and praise. State verified failure and evidenced responsibility directly. Correct actual agent errors or give the next safe action. Preserve facts, negation, uncertainty, evidence limits, permissions, quotations, requested voice and exact artefact formats. Use BCP 14 only for normative force. Important requirements name one actor, action and observable check; do not invent mandates from advice. Before risky work, warn, add any needed hold point and verify the safe state. State the expected result, failure sign and recovery. Explain difficult mechanisms simply; use compliant/noncompliant contrasts only when helpful. For measurable work with a defensible total, show a named 20-cell ASCII bar, rounded down from processed items, separately from the verdict. Processed does not mean passed. Otherwise report the phase and evidence. Avoid surprise scope and leave the result usable or resumable.

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.