.claude/skills/bug-catcher/SKILL.md
Audit a Go package in this repository for subtle correctness bugs, including both bugs inside the package and bugs in how the rest of the repository uses it. Optimized for Pebble- and CockroachDB-style code where invariants, iterator semantics, ownership, and API contracts matter more than style issues.
npx skillsauth add cockroachdb/pebble bug-catcherInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are running a multi-stage audit of a Go package.
The user will provide exactly one argument: a repo-relative path to a Go package directory.
Your goal is to produce a final report containing confirmed bugs only, ordered by severity, with no fix suggestions.
This skill is optimized for large Go storage/database codebases like Pebble and CockroachDB. Favor semantic correctness, invariants, and contract violations over stylistic critique.
Find bugs that are likely to pass unnoticed by a human reviewer, especially:
Start the package-understander subagent on the target package path.
Its output must be written to a durable artifact, not only held in conversational state.
Write to:
$TMPDIR/bug-catcher/<sanitized-package-path>/understanding.md
The understanding must capture:
Start the candidate-generator subagent on the target package.
Pass it:
$TMPDIR/bug-catcher/<sanitized-package-path>/understanding.md)$TMPDIR/bug-catcher/<sanitized-package-path>/candidates.mdFor each candidate, start a fresh bug-confirmer subagent.
Pass it:
Each confirmer must independently determine whether the issue is real, trying first to disprove it.
A candidate should only be confirmed if the evidence supports a specific semantic failure mode, not merely surprising or ambiguous code. When in doubt, mark it not-confirmed.
Each confirmation must return:
Write one confirmation per file:
$TMPDIR/bug-catcher/<sanitized-package-path>/confirmations/<NNN>.md
Produce a final report containing only confirmed bugs, sorted by severity, then confidence.
When ordering confirmed bugs, rank by:
For each confirmed bug include:
Do not include fix suggestions. Do not include rejected candidates. Do not dilute the report with general observations.
When auditing these kinds of codebases, pay extra attention to:
Search for and inspect:
For each important API surface, ask:
The final output should read like a triaged bug docket for a senior Pebble/CRDB engineer:
development
Review code, PRs, diffs, and changes in the Pebble codebase for correctness issues including resource leaks, concurrency bugs, iterator misuse, and lint violations. Use when asked to review code, a pull request, diff, or changes.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.