agentleFS
cmdr-characmdr-chara/chara-toolkit/skills/bug-finder/SKILL.md

bug-finder

Skill2 starsChanged 12 days agoMITView on GitHub

Hunt for previously unknown correctness defects by deriving invariants and proving or retiring candidates. Use for proactive bug discovery without a specific known symptom. Not for a known failure, a PR review, or security-only review.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 8 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    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:

    Search for unknown correctness defects without turning suspicious code into unsupported bug claims.

    line 8
  2. Distinctive:

    Use this skill for:

    line 12
  3. Distinctive:

    Do not trigger for:

    line 17
  4. Distinctive:

    Start read-only and do not mutate production data or external systems to prove a theory.

    line 30
  5. Distinctive:

    Derive invariants: Write observable rules that must hold: exactly-once/at-most-once events, ownership release, persistence durability, …

    line 37
  6. Distinctive:

    Prove or retire: Use the smallest safe fixture, trace, targeted test, or static contract evidence that can discriminate the claim.

    line 40
  7. Very specific:

    Hand off: If causal explanation or the smallest fix remains uncertain, pass the confirmed symptom to debugging-investigator.

    line 42
  8. Distinctive:

    If a candidate cannot be discriminated safely, leave it plausible with the missing evidence.

    line 50
  9. Distinctive:

    Stop when each admitted candidate is confirmed, retired, or explicitly left plausible with a reason, and material unexamined surfaces are …

    line 54

≈ “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

Bug Finder

Search for unknown correctness defects without turning suspicious code into unsupported bug claims.

Trigger boundary

Use this skill for:

  • proactive bug hunts without a known failing symptom;
  • searches for races, lifecycle failures, data-loss paths, duplicate effects, stuck ownership, or broken recovery;
  • requests to distinguish confirmed defects from plausible theories.

Do not trigger for:

  • a concrete failure whose cause is unknown; use debugging-investigator;
  • a defined PR/diff review; use review-and-refactor-code;
  • security-only review; use security-review;
  • generic improvement prioritization or release approval.

Required inputs

Resolve repository/candidate identity, hunt scope, architecture boundaries when needed, available contracts/tests/fixtures/traces, safe experiment permissions, and protected user work.

Safety baseline

  • Preserve the working tree and uncommitted work.
  • Start read-only and do not mutate production data or external systems to prove a theory.
  • Generated/vendor code is evidence only until its authoritative source is known.
  • Missing tests, odd code, or severity intuition are not proof of a defect.

Workflow

  1. Define the hunt. State in-scope subsystems, excluded surfaces, and coverage limits.
  2. Derive invariants. Write observable rules that must hold: exactly-once/at-most-once events, ownership release, persistence durability, idempotency, ordering, retry bounds, cleanup, or state-transition rules.
  3. Prioritize surfaces. Favor stateful boundaries, concurrency, recovery, persistence, cancellation, caching, serialization, and cross-process ownership.
  4. Create candidates. Record each candidate in references/candidate-ledger.md with invariant, evidence, falsifier, and status.
  5. Prove or retire. Use the smallest safe fixture, trace, targeted test, or static contract evidence that can discriminate the claim. A confirmed bug requires an observable contract violation.
  6. Rank confirmed defects. Separate confirmed, plausible, and retired candidates. State unexamined high-risk surfaces rather than implying exhaustive coverage.
  7. Hand off. If causal explanation or the smallest fix remains uncertain, pass the confirmed symptom to debugging-investigator.

Handoffs and interaction boundaries

repository-intelligence may supply boundaries. Security-only findings go to security-review. Known root causes go directly to the owning implementation specialist. Substantial accepted remediation may use completion-proof; integrated release judgment belongs to verification-and-release.

Failure handling

If a candidate cannot be discriminated safely, leave it plausible with the missing evidence. If environment limits prevent representative proof, state that limitation. Do not inflate confidence to fill coverage gaps.

Stop conditions

Stop when each admitted candidate is confirmed, retired, or explicitly left plausible with a reason, and material unexamined surfaces are disclosed.

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.