Agent skill
go-debug-breakpoints
Debug failing Go tests, panics, race reports, and flaky behavior with Delve and a breakpoint-first hypothesis loop. Use when Codex needs runtime evidence instead of more static reasoning, especially after a targeted Go test failure.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/go-debug-breakpoints
SKILL.md
Go Breakpoint Debugging
Use scripts/debug-test.sh <package> [test-regex] from the target repo root to launch Delve against one failing package or test. If there is only a log file, start with scripts/triage-failure.sh <logfile>.
Breakpoint Strategy
- Entry breakpoint at the failing test or top-level function.
- Divergence breakpoint before the state starts differing from expectations.
- Error-path breakpoint where errors are created, wrapped, or returned.
- Concurrency breakpoint around channel operations, lock boundaries, or goroutine spawn sites when the bug smells concurrent.
Hypothesis Loop
- State what you expect before continuing.
- Continue to the next breakpoint.
- Compare actual runtime state with the expectation.
- Update the hypothesis and repeat.
Delve Checklist
- Inspect locals and arguments.
- Check the stack.
- Inspect goroutines when concurrency is involved.
- Validate one root-cause hypothesis at a time.
Exit Criteria
- Root cause is backed by runtime evidence.
- The fix is minimal and safe.
- The exact failing test passes.
- The broader fast loop passes.
Use references/delve-cheatsheet.md for the common Delve commands and a short breakpoint planning reminder.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?