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.
Review changes on this branch for bugs, security vulnerabilities, and code quality issues.
When to Use
You need a review focused on bugs, security issues, or risky code changes.
The task involves auditing the current branch diff rather than implementing new behavior.
You want a structured review process with checklist-driven verification against changed files.
Phase 1: Complete Input Gathering
Establish the requested base and head as verified commit SHAs. Check the remote/default branch if needed; do not assume a stale local branch is current. Read the full branch diff with git diff "$BASE_SHA...$HEAD_SHA" --, using validated refs in separately quoted arguments. Include staged and unstaged changes when they are in scope; preserve the checkout.
If output is truncated, read each changed file individually until you have seen every changed line
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)
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:
List every file you reviewed and confirm you read it completely
List each applicable checklist item as a finding, verified within the reviewed scope, not applicable, or unverified; absence of a finding is not proof of security
Evidence: Concrete trigger, reachable path and observed or reasoned impact; missing tests alone do not prove a bug
Fix: Concrete suggestion
References: OWASP, RFCs, or other standards if applicable
If you find nothing significant, say so - don't invent issues.
For a review-only request, report findings without changing code. An explicit combined review-and-fix request authorizes scoped repairs and verification; preserve the distinction between findings and completed fixes.
Example
User request:
Review the current branch diff for real bugs, security issues, and regressions, citing exact files and lines.
Limitations
Use this skill only when the task clearly matches the scope described above.
Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
1---2name: find-bugs3description: 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. 4category: AI & Agents5source: antigravity6tags: [ai, template, security]7url: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/find-bugs8metadata:9 source: https://skillmd.com/skills/ranbot-ai/find-bugs10---111213# Find Bugs1415Review changes on this branch for bugs, security vulnerabilities, and code quality issues.1617## When to Use18- You need a review focused on bugs, security issues, or risky code changes.19- The task involves auditing the current branch diff rather than implementing new behavior.20- You want a structured review process with checklist-driven verification against changed files.2122## Phase 1: Complete Input Gathering23241. Establish the requested base and head as verified commit SHAs. Check the remote/default branch if needed; do not assume a stale local branch is current. Read the full branch diff with `git diff "$BASE_SHA...$HEAD_SHA" --`, using validated refs in separately quoted arguments. Include staged and unstaged changes when they are in scope; preserve the checkout.252. If output is truncated, read each changed file individually until you have seen every changed line263. List all files modified in this branch before proceeding2728## Phase 2: Attack Surface Mapping2930For each changed file, identify and list:3132* All user inputs (request params, headers, body, URL components)33* All database queries34* All authentication/authorization checks35* All session/state operations36* All external calls37* All cryptographic operations3839## Phase 3: Security Checklist (check EVERY item for EVERY file)4041* [ ] **Injection**: SQL, command, template, header injection42* [ ] **XSS**: All outputs in templates properly escaped?43* [ ] **Authentication**: Auth checks on all protected operations?44* [ ] **Authorization/IDOR**: Access control verified, not just auth?45* [ ] **CSRF**: State-changing operations protected?46* [ ] **Race conditions**: TOCTOU in any read-then-write patterns?47* [ ] **Session**: Fixation, expiration, secure flags?48* [ ] **Cryptography**: Secure random, proper algorithms, no secrets in logs?49* [ ] **Information disclosure**: Error messages, logs, timing attacks?50* [ ] **DoS**: Unbounded operations, missing rate limits, resource exhaustion?51* [ ] **Business logic**: Edge cases, state machine violations, numeric overflow?5253## Phase 4: Verification5455For each potential issue:5657* Check if it's already handled elsewhere in the changed code58* Search for existing tests covering the scenario59* Read surrounding context to verify the issue is real6061## Phase 5: Pre-Conclusion Audit6263Before finalizing, you MUST:64651. List every file you reviewed and confirm you read it completely662. List each applicable checklist item as a finding, verified within the reviewed scope, not applicable, or unverified; absence of a finding is not proof of security673. List any areas you could NOT fully verify and why684. Only then provide your final findings6970## Output Format7172**Prioritize**: security vulnerabilities > bugs > code quality7374**Skip**: stylistic/formatting issues7576For each issue:7778* **File:Line** - Brief description79* **Severity**: Critical/High/Medium/Low80* **Problem**: What's wrong81* **Evidence**: Concrete trigger, reachable path and observed or reasoned impact; missing tests alone do not prove a bug82* **Fix**: Concrete suggestion83* **References**: OWASP, RFCs, or other standards if applicable8485If you find nothing significant, say so - don't invent issues.8687For a review-only request, report findings without changing code. An explicit combined review-and-fix request authorizes scoped repairs and verification; preserve the distinction between findings and completed fixes.8889## Example9091**User request:**9293> Review the current branch diff for real bugs, security issues, and regressions, citing exact files and lines.9495## Limitations96- Use this skill only when the task clearly matches the scope described above.97- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.98- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Run npx get-skill add ranbot-ai/find-bugs in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
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. It is listed under Security on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: Skill Scanner: PASS. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
ranbot-ai (@ranbot-ai) published this skill. Their other Agent Skills are listed on their SkillMD profile.