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.
1---2name: find-bugs-23description: 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.4risk: unknown5source: community6metadata:7 source: https://skillmd.com/skills/mahabdalla/find-bugs-28---910# Find Bugs1112Review changes on this branch for bugs, security vulnerabilities, and code quality issues.1314## Phase 1: Complete Input Gathering15161. Get the FULL diff: `git diff $(gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name')...HEAD`172. If output is truncated, read each changed file individually until you have seen every changed line183. List all files modified in this branch before proceeding1920## Phase 2: Attack Surface Mapping2122For each changed file, identify and list:2324* All user inputs (request params, headers, body, URL components)25* All database queries26* All authentication/authorization checks27* All session/state operations28* All external calls29* All cryptographic operations3031## Phase 3: Security Checklist (check EVERY item for EVERY file)3233* [ ] **Injection**: SQL, command, template, header injection34* [ ] **XSS**: All outputs in templates properly escaped?35* [ ] **Authentication**: Auth checks on all protected operations?36* [ ] **Authorization/IDOR**: Access control verified, not just auth?37* [ ] **CSRF**: State-changing operations protected?38* [ ] **Race conditions**: TOCTOU in any read-then-write patterns?39* [ ] **Session**: Fixation, expiration, secure flags?40* [ ] **Cryptography**: Secure random, proper algorithms, no secrets in logs?41* [ ] **Information disclosure**: Error messages, logs, timing attacks?42* [ ] **DoS**: Unbounded operations, missing rate limits, resource exhaustion?43* [ ] **Business logic**: Edge cases, state machine violations, numeric overflow?4445## Phase 4: Verification4647For each potential issue:4849* Check if it's already handled elsewhere in the changed code50* Search for existing tests covering the scenario51* Read surrounding context to verify the issue is real5253## Phase 5: Pre-Conclusion Audit5455Before finalizing, you MUST:56571. List every file you reviewed and confirm you read it completely582. List every checklist item and note whether you found issues or confirmed it's clean593. List any areas you could NOT fully verify and why604. Only then provide your final findings6162## Output Format6364**Prioritize**: security vulnerabilities > bugs > code quality6566**Skip**: stylistic/formatting issues6768For each issue:6970* **File:Line** - Brief description71* **Severity**: Critical/High/Medium/Low72* **Problem**: What's wrong73* **Evidence**: Why this is real (not already fixed, no existing test, etc.)74* **Fix**: Concrete suggestion75* **References**: OWASP, RFCs, or other standards if applicable7677If you find nothing significant, say so - don't invent issues.7879Do not make changes - just report findings. I'll decide what to address.8081---82> Converted and distributed by [TomeVault](https://tomevault.io) | [Claim this content](https://tomevault.io/claim/sickn33/antigravity-awesome-skills)
Run npx get-skill add mahabdalla/find-bugs-2 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: SkillSpector: PASS, Skill Scanner: PASS. Capability flags: makes network calls. 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.
mahabdalla (@mahabdalla) published this skill. Their other Agent Skills are listed on their SkillMD profile.