Generated banner for Find Bugs
Generated logo for Find Bugs

Find Bugs

SentryOfficialPublished by Sentry

  • Skill
  • Review and audit
  • Software development
  • Apache-2.0
  • No issues found

From the author

Find bugs, security vulnerabilities, and code quality issues in local branch changes. Use when asked to review changes, find bugs, security review, or audit code on the current branch.
— the description by Sentry

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

The find-bugs skill provides a systematic framework for reviewing code changes within a local branch. It guides the agent through a multi-phase process, starting with comprehensive input gathering via git diffs, followed by attack surface mapping and a rigorous security checklist. The skill ensures that every changed file is evaluated against common vulnerabilities such as injection, XSS, and authorization flaws, concluding with a verification step and a detailed, prioritized report of findings.

What it does

  • Extracts and reviews all changes from the current branch relative to the default branch.
  • Maps the attack surface by identifying inputs, database queries, and authentication points.
  • Executes a comprehensive security checklist covering OWASP-related vulnerabilities.
  • Verifies potential issues against existing code context and test coverage.
  • Generates a prioritized report detailing file locations, severity, and suggested fixes.
  • Provides a structured pre-conclusion audit to ensure all files and checks were addressed.

When to use it

  • When you need a thorough security audit of recent code changes before merging.
  • To identify potential bugs or logic errors introduced in a new feature branch.
  • When performing a peer review to ensure code quality and security standards are met.
  • To verify that new code does not introduce vulnerabilities like IDOR or injection flaws.

Advantages

  • Reduces human error by enforcing a standardized, step-by-step review process.
  • Ensures high-risk areas like authentication and data handling are explicitly audited.
  • Prioritizes findings by severity to help developers focus on critical issues first.
  • Requires evidence-based reporting to minimize false positives.

Usage examples

“Review the changes in my current branch for any security vulnerabilities.”
The agent will perform a full diff, map the attack surface, run the security checklist, and provide a report of any identified risks.
“Can you audit my latest code changes for potential bugs and quality issues?”
The agent will systematically analyze the modified files and present a prioritized list of bugs and quality concerns with suggested fixes.

Install

  1. Download the skill as a ZIP:

    https://mp-staging.autogineer.com/agent-skills/getsentry/find-bugs/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip find-bugs.zip -d .agents/skills

Documentation by Sentry

Find Bugs

Review changes on this branch for bugs, security vulnerabilities, and code quality issues.

Phase 1: Complete Input Gathering

  1. Get the FULL diff: git diff $(gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name')...HEAD

  2. If output is truncated, read each changed file individually until you have seen every changed line

  3. List all files modified in this branch before proceeding

Phase 2: Attack Surface Mapping

For each changed file, identify and list:

  • All user inputs (request params, headers, body, URL components)

  • All database queries

  • All authentication/authorization checks

  • All session/state operations

  • All external calls

  • All cryptographic operations

Phase 3: Security Checklist (check EVERY item for EVERY file)

  • [ ] Injection: SQL, command, template, header injection

  • [ ] XSS: All outputs in templates properly escaped?

  • [ ] Authentication: Auth checks on all protected operations?

  • [ ] Authorization/IDOR: Access control verified, not just auth?

  • [ ] CSRF: State-changing operations protected?

  • [ ] Race conditions: TOCTOU in any read-then-write patterns?

  • [ ] Session: Fixation, expiration, secure flags?

  • [ ] Cryptography: Secure random, proper algorithms, no secrets in logs?

  • [ ] Information disclosure: Error messages, logs, timing attacks?

  • [ ] DoS: Unbounded operations, missing rate limits, resource exhaustion?

  • [ ] Business logic: Edge cases, state machine violations, numeric overflow?

Phase 4: Verification

For each potential issue:

  • Check if it's already handled elsewhere in the changed code

  • Search for existing tests covering the scenario

  • Read surrounding context to verify the issue is real

Phase 5: Pre-Conclusion Audit

Before finalizing, you MUST:

  1. List every file you reviewed and confirm you read it completely

  2. List every checklist item and note whether you found issues or confirmed it's clean

  3. List any areas you could NOT fully verify and why

  4. Only then provide your final findings

Output Format

Prioritize: security vulnerabilities > bugs > code quality

Skip: stylistic/formatting issues

For each issue:

  • File:Line - Brief description

  • Severity: Critical/High/Medium/Low

  • Problem: What's wrong

  • Evidence: Why this is real (not already fixed, no existing test, etc.)

  • Fix: Concrete suggestion

  • References: OWASP, RFCs, or other standards if applicable

If you find nothing significant, say so - don't invent issues.

Do not make changes - just report findings. I'll decide what to address.

Files

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
Sentry
Publisher
Sentry (Official)
Source
getsentry/skills · skills/find-bugs · commit e94f222
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Sentry.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download find-bugs.zip