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.
⚠️ AUTHORIZED USE ONLY — This skill is intended for authorized security professionals only. Use only against systems you own or have explicit written permission to test. Unauthorized use may violate applicable laws.
Find Bugs
Review changes on this branch for bugs, security vulnerabilities, and code quality issues.
When to Use This Skill
Use this skill when:
Asked to review changes
Finding bugs in code
Performing security reviews
Auditing code on the current branch
Reviewing pull request changes
Phase 1: Complete Input Gathering
Get the FULL diff: git diff $(gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name')...HEAD
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)
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."4source: rootcastle-rei5risk: safe6metadata:7 source: https://skillmd.com/skills/rootcastleco/find-bugs8---910> ⚠️ **AUTHORIZED USE ONLY** — This skill is intended for authorized security professionals only. Use only against systems you own or have explicit written permission to test. Unauthorized use may violate applicable laws.111213# Find Bugs1415Review changes on this branch for bugs, security vulnerabilities, and code quality issues.1617## When to Use This Skill1819Use this skill when:20- Asked to review changes21- Finding bugs in code22- Performing security reviews23- Auditing code on the current branch24- Reviewing pull request changes2526## Phase 1: Complete Input Gathering27281. Get the FULL diff: `git diff $(gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name')...HEAD`292. If output is truncated, read each changed file individually until you have seen every changed line303. List all files modified in this branch before proceeding3132## Phase 2: Attack Surface Mapping3334For each changed file, identify and list:3536* All user inputs (request params, headers, body, URL components)37* All database queries38* All authentication/authorization checks39* All session/state operations40* All external calls41* All cryptographic operations4243## Phase 3: Security Checklist (check EVERY item for EVERY file)4445* [ ] **Injection**: SQL, command, template, header injection46* [ ] **XSS**: All outputs in templates properly escaped?47* [ ] **Authentication**: Auth checks on all protected operations?48* [ ] **Authorization/IDOR**: Access control verified, not just auth?49* [ ] **CSRF**: State-changing operations protected?50* [ ] **Race conditions**: TOCTOU in any read-then-write patterns?51* [ ] **Session**: Fixation, expiration, secure flags?52* [ ] **Cryptography**: Secure random, proper algorithms, no secrets in logs?53* [ ] **Information disclosure**: Error messages, logs, timing attacks?54* [ ] **DoS**: Unbounded operations, missing rate limits, resource exhaustion?55* [ ] **Business logic**: Edge cases, state machine violations, numeric overflow?5657## Phase 4: Verification5859For each potential issue:6061* Check if it's already handled elsewhere in the changed code62* Search for existing tests covering the scenario63* Read surrounding context to verify the issue is real6465## Phase 5: Pre-Conclusion Audit6667Before finalizing, you MUST:68691. List every file you reviewed and confirm you read it completely702. List every checklist item and note whether you found issues or confirmed it's clean713. List any areas you could NOT fully verify and why724. Only then provide your final findings7374## Output Format7576**Prioritize**: security vulnerabilities > bugs > code quality7778**Skip**: stylistic/formatting issues7980For each issue:8182* **File:Line** - Brief description83* **Severity**: Critical/High/Medium/Low84* **Problem**: What's wrong85* **Evidence**: Why this is real (not already fixed, no existing test, etc.)86* **Fix**: Concrete suggestion87* **References**: OWASP, RFCs, or other standards if applicable8889If you find nothing significant, say so - don't invent issues.9091Do not make changes - just report findings. I'll decide what to address.9293---9495> 🏰 **Rei Skills** — Curated by [Rootcastle Engineering & Innovation](https://www.rootcastle.com) | Batuhan Ayrıbaş 96> Engineering Beyond Boundaries | admin@rootcastle.com
Run npx get-skill add rootcastleco/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.
SkillMD's automated safety review verdict for this skill is PASS. Independent scanners report: SkillSpector: PASS, 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.
rootcastleco (@rootcastleco) published this skill. Their other Agent Skills are listed on their SkillMD profile.