Find bugs in codebase

VerifiedCaution

Reviews the entire codebase for bugs by reading source and test files, running the test suite, and checking for logic errors, input validation issues, resource leaks, and more. Writes a detailed bugs-summary.md report with specific file references and impact descriptions. Best used when you need a thorough bug hunt before a release.

Sby Skills Guide Bot
DevelopmentAdvanced
6/2/2026
Claude Code
#bug-detection#code-review#static-analysis#testing

Recommended for

Automated summary

Reviews the entire codebase for bugs and writes a detailed summary to bugs-summary.md.

Strengths

  • Comprehensive examination of all source and test files
  • Detects logic errors, validation issues, concurrency problems, and serialization mismatches
  • Runs the test suite to verify the current state
  • Structured report separating true bugs from design observations

Limitations

  • Cannot fix the bugs it finds
  • May miss bugs that require deep domain knowledge
  • Depends on accurate auto-detection of the project stack and file patterns
When to use it

Use this skill for a thorough quality audit before a release or after major changes.

When not to use it

Do not use for quick reviews or when you expect automatic fixes.

Security analysis

Caution
Quality score92/100

The skill instructs running test suites via Bash, which could execute arbitrary code from the repository. While this is necessary for its function, it poses a risk if the repository is untrusted, warranting caution.

Findings
  • •The skill uses the Bash tool to run test commands (e.g., npm test, gradle test, cargo test) found in the project's build configuration. If the project contains malicious test scripts, running them could execute arbitrary code. No sandboxing or isolation is specified.
How this analysis is made

Examples

Full codebase bug audit
Run the find-bugs skill on this project. Read all source and test files, run the test suite, and write a detailed bugs-summary.md in the root.
Check for regressions after refactoring
I just refactored the data layer. Use the find-bugs skill to review the entire codebase and write a bug report, paying special attention to serialization and null handling.

name: find-bugs description: Review the codebase for bugs and write findings to bugs-summary.md allowed-tools:

  • Read
  • Write
  • Glob
  • Grep
  • Bash

Review the entire codebase for bugs and write a summary to bugs-summary.md in the project root.

Steps

  1. Detect the project stack: Read build/manifest files (e.g., package.json, build.gradle.kts, Cargo.toml, go.mod, pyproject.toml, pom.xml) to identify the language, framework, and build tool.

  2. Discover source files: Glob for production source files using patterns appropriate to the detected stack (e.g., src/**/*.ts, **/src/main/**/*.kt, **/*.go, src/**/*.py).

  3. Discover test files: Glob for test files using the project's test directory conventions.

  4. Read build configuration to understand dependencies, plugins, and build setup.

  5. Read every source file to understand the full codebase before looking for issues.

  6. Read every test file to understand what is already tested and whether tests are correct.

  7. Run the test suite using the project's test command (e.g., npm test, ./gradlew test, cargo test, go test ./..., pytest) to check for failing tests.

  8. Identify bugs by looking for:

    • Logic errors (incorrect conditionals, off-by-one, wrong operator)
    • Missing input validation or error handling
    • Mismatched test names vs assertions
    • Visibility issues (public API surface leaking internals)
    • Resource leaks (unclosed clients, streams, connections)
    • Thread safety issues
    • Serialization/deserialization mismatches
    • Silent failures (operations that fail without warning)
    • Incorrect or missing null/error handling
    • Duplicated code that has diverged (copy-paste bugs)
  9. Check for design issues worth noting:

    • Hardcoded values that should be configurable
    • Equality/comparison semantics that may surprise callers
    • Missing API contracts or invariants
  10. Write bugs-summary.md: Create or overwrite bugs-summary.md in the project root with the following structure:

    # Bug Summary
    
    ## Open
    
    ### 1. Short title
    
    **File:** `path/to/file.ext`
    
    Description of the bug, why it's a problem, and what the expected behavior should be.
    
    ### 2. ...
    
    ## Design Observations (not bugs, but worth noting)
    
    ### Short title
    
    Description.
    
    • Number each bug sequentially starting at 1
    • Include the file path and relevant line numbers
    • Explain both the problem and its impact
    • Separate true bugs from design observations
    • If a previous bugs-summary.md exists, read it first and preserve any items marked as "FIXED" in a Fixed section at the top
  11. Report: Summarize how many bugs were found and give a brief overview of the findings.

Important

  • Read all source files before reporting bugs — do not guess based on file names alone.
  • Every reported bug must reference a specific file and describe a concrete problem.
  • Do not report stylistic preferences or nitpicks as bugs.
  • Do not make any code changes — only analyze and write the summary file.
  • Run the tests to verify the current state; note any failures as bugs.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/find-bugs-in-codebase-mma3jrv5/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/find-bugs-in-codebase-mma3jrv5' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/find-bugs-in-codebase-mma3jrv5/download' --output '.skill-downloads/find-bugs-in-codebase-mma3jrv5/SKILL.md.part' && mv '.skill-downloads/find-bugs-in-codebase-mma3jrv5/SKILL.md.part' '.skill-downloads/find-bugs-in-codebase-mma3jrv5/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/find-bugs-in-codebase-mma3jrv5/SKILL.md' && test -s '.skill-downloads/find-bugs-in-codebase-mma3jrv5/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/find-bugs' && cp -R '.skill-downloads/find-bugs-in-codebase-mma3jrv5' '.claude/skills/find-bugs'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/find-bugs-in-codebase-mma3jrv5'

openskills read 'find-bugs-in-codebase-mma3jrv5'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/find-bugs-in-codebase-mma3jrv5/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills