Agent Skill
Find bugs (Sentry)
Reviews the changes on your current branch for bugs and security issues: gathers the full diff, maps attack surface, then runs a checklist per file.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkInstall
Commands are pinned to commit a582c51, the version we read, wherever the install method supports it.
npx skills
npx skills add getsentry/skills@a582c51ee29d0f35e6ac321340796f77d43da733 --skill find-bugs -a claude-codeCopies the skill into .claude/skills/ in this project, pinned to the reviewed commit.
Plugin marketplace
/plugin marketplace add getsentry/skills
/plugin install sentry-skills@sentry-skillsRun inside Claude Code. Installs the whole sentry-skills plugin from its default branch, not the pinned commit.
npx skills
npx skills add getsentry/skills@a582c51ee29d0f35e6ac321340796f77d43da733 --skill find-bugs -a codexInstalls to .agents/skills/, which Codex scans from the working directory up to the repo root.
npx skills
npx skills add getsentry/skills@a582c51ee29d0f35e6ac321340796f77d43da733 --skill find-bugs -a cursorInstalls to .agents/skills/, one of the folders Cursor reads skills from.
gh skill
gh skill install getsentry/skills skills/find-bugs --pin a582c51ee29d0f35e6ac321340796f77d43da733 --agent github-copilotNeeds GitHub CLI 2.90.0 or later. Use --scope user to install for every repository.
npx skills
npx skills add getsentry/skills@a582c51ee29d0f35e6ac321340796f77d43da733 --skill find-bugsPinned to the commit we reviewed. The CLI asks which agents to install for; add -g to install for your user instead of this project.
What it does
Built for the moment before you open a PR. The agent collects the complete diff against the base branch, maps where untrusted input enters, works through a security checklist for every changed file, verifies each suspected issue, and does a final audit of its own conclusions before reporting. Output is a prioritised list with file and line references.
When to use it
Right before you open a pull request, as a self-review: it reads the whole diff against the base branch and looks for bugs and security issues with a fresh eye. It is particularly good at the input-handling mistakes that slip through when you are focused on making a feature work.
When to skip it
Reviewing someone else’s pull request on GitHub, which code review is designed for, and whole-repository audits. It only looks at what changed on your branch.
Try it
Find bugs in my branch before I open the PR. Compare against main,
list confirmed issues with file and line, and separate anything you
could not verify into its own list.
What it can touch
- Bundles scripts
- No
- Pre-approved tools
- None declared
- Needs
- Git
- Client-specific fields
- None, spec fields only
- Files
- At commit
a582c51the SKILL.md is 76 lines long and it is the only file in the folder.
Its instructions steer what your agent does, and it may have changed since the commit we read. How to check a skill.
Instructions only. It reads your local branch, so it suits Claude Code, Codex and similar local agents rather than chat apps.
Alternatives
Code review for other people’s PRs, differential review and security review for deeper security passes, and fp-check to confirm a suspected issue.
SKILL.md
The file exactly as published at the reviewed commit, reproduced under its Apache-2.0 licence.
---
name: find-bugs
description: 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.
---
# 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.Related skills
Code review (Sentry)
Sentry's pull-request review checklist: correctness, design, test coverage and long-term impact, with Python, TypeScript and security patterns to flag.
Differential security review (Trail of Bits)
Trail of Bits' security-focused review of a PR, commit or diff that scales its depth to the change, measures blast radius and writes a Markdown report.
Address PR comments (OpenAI, deprecated repo)
Pulls every review thread on the current branch's PR with gh, numbers them, asks which to fix, then applies only those. Source repo is deprecated.
Guides and recipes that use Find bugs (Sentry)
- Prototype an internal tool with an app builder
Build an internal tool prototype with AI with v0, Lovable or Bolt in an afternoon, test it with real users, and list what must change before it meets real data.
- Security-review a pull request with an agent
Run an AI security code review of one pull request with Trail of Bits' differential-review skill, then test each finding with fp-check before anyone acts on it.