agentleFS
ahilarionahilarion/oh-my-forge/skills/trace/SKILL.md

trace

Skill2 starsChanged 8 months agoMITView on GitHub

Evidence-driven debugging with parallel hypothesis testing

18 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use visual-verdict, ai-slop-cleaner 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.
  • lza6Skill

    visual-verdict

    Structured visual QA verdict for screenshot-to-reference comparisons

    Also in 3 projects that use this

  • lza6Skill

    ai-slop-cleaner

    Run an anti-slop cleanup/refactor/deslop workflow

    Also in 3 projects that use this

  • the-huginSkill

    configure-notifications

    Configure notification integrations (Telegram, Discord, Slack) via natural language

    Also in 3 projects that use this

  • an8079Skill

    hud

    Also in 3 projects that use this

  • an8079Skill

    ralplan

    Also in 3 projects that use this

  • jihe520Skill

    doctor

    环境检查与安装向导。检查数学建模工作流所需的全部依赖是否已安装,对缺失项提供安装命令,并在用户确认后执行安装。手动触发。

    Also in 4 projects that use this

The file

Files
SKILL.md
<Purpose> Trace systematically debugs issues using evidence-driven hypothesis testing. Instead of guessing, it forms theories and tests them against the evidence (error messages, logs, code). </Purpose>

<Use_When>

  • User says "trace", "debug", "hunt this bug"
  • Complex bug with unclear root cause
  • Intermittent issues
  • Error that has multiple possible explanations </Use_When>

<Do_Not_Use_When>

  • Obvious bugs with clear error messages
  • Simple typos or syntax errors
  • Issues already diagnosed </Do_Not_Use_When>

<Debugging_Protocol>

Step 1: Gather Evidence

  • Error messages (exact text)
  • Stack traces
  • Logs
  • Reproduction steps
  • Environment context

Step 2: Form Hypotheses

List all possible explanations for the bug. Example: "Login fails"

  • Hypothesis A: Database connection issue
  • Hypothesis B: Wrong password hash algorithm
  • Hypothesis C: Session middleware misconfigured
  • Hypothesis D: CSRF token validation failing

Step 3: Test Hypotheses

For each hypothesis, determine what evidence would confirm or refute it. Then gather that evidence by reading the relevant code.

Step 4: Isolate Root Cause

The hypothesis with the most supporting evidence and no refutation is the root cause.

Step 5: Fix

Implement the minimal fix that addresses the root cause.

Step 6: Verify

Confirm the original symptom is resolved. </Debugging_Protocol>

<Output_Format>

## Bug Trace Report

### Evidence
- [Collected error messages, logs, context]

### Hypotheses
| Hypothesis | Evidence For | Evidence Against |
|-----------|--------------|-----------------|
| A: ... | ... | ... |
| B: ... | ... | ... |

### Root Cause
[Identified root cause with explanation]

### Fix
[Code change]

### Verification
[Test showing fix works]

</Output_Format>

<Examples> <Good> User: "trace: API returns 500 only on production, works fine locally" Why good: Specific symptom, environment difference hints at config issue </Good><Bad> User: "trace: this code doesn't work" Why bad: No evidence, no symptom description </Bad> </Examples>

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.