agentleFS
DankosikDankosik/golang-backend-skills/skills/go-debugging/SKILL.md

go-debugging

Skill0 starsChanged 2 months agoMITView on GitHub

Diagnose an uncertain Go bug, panic, hang, startup failure, resource leak, or flaky behavior.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    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:

    Follow values and ownership across the implicated boundaries.

    line 12

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Go Debugging

Causality. Find the first observable divergence between expected behavior and the real execution path. Honor requirements and preserve settled choices outside the requested change.

Build the smallest repeatable signal for the reported symptom. Inspect the error chain or panic stack and the input, caller, build setting, or running version that can explain it; do not audit every source before testing a hypothesis. Distinguish observed facts from explanations that merely fit them.

Follow values and ownership across the implicated boundaries. Inspect the concrete value behind an interface, backing storage behind a slice or map, or context passed to a blocking operation when relevant. A nil check, retry, or recovered panic can hide the mechanism without repairing it.

Choose the next observation for its ability to reject a plausible hypothesis. Use goroutine stacks for blocked work, the race detector for exercised shared-state conflicts, and the matching profile or trace for a runtime resource question. Account for the overhead and sensitivity of diagnostic captures.

Control time, scheduling, fixtures, and external dependencies enough to expose intermittent failures. Change one causal variable at a time and make every diagnostic goroutine terminate.

For diagnosis, finish with the supported cause or the next discriminating observation; do not edit files merely because a fix is possible. When fixing is requested, repair the cause at its owner, replay the original case, and check relevant neighboring callers. Keep a regression check for the mechanism, remove temporary instrumentation, and report actual verification or its specific limits.

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.