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.
Also appears in:sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills/skills/find-bugs/SKILL.md, sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills-claude/skills/find-bugs/SKILL.md
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.4---567# Find Bugs89Review changes on this branch for bugs, security vulnerabilities, and code quality issues.1011## When to Use12- You need a review focused on bugs, security issues, or risky code changes.13- The task involves auditing the current branch diff rather than implementing new behavior.14- You want a structured review process with checklist-driven verification against changed files.1516## Phase 1: Complete Input Gathering17181. Get the FULL diff: `git diff $(gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name')...HEAD`192. If output is truncated, read each changed file individually until you have seen every changed line203. List all files modified in this branch before proceeding2122## Phase 2: Attack Surface Mapping2324For each changed file, identify and list:2526* All user inputs (request params, headers, body, URL components)27* All database queries28* All authentication/authorization checks29* All session/state operations30* All external calls31* All cryptographic operations3233## Phase 3: Security Checklist (check EVERY item for EVERY file)3435* [ ] **Injection**: SQL, command, template, header injection36* [ ] **XSS**: All outputs in templates properly escaped?37* [ ] **Authentication**: Auth checks on all protected operations?38* [ ] **Authorization/IDOR**: Access control verified, not just auth?39* [ ] **CSRF**: State-changing operations protected?40* [ ] **Race conditions**: TOCTOU in any read-then-write patterns?41* [ ] **Session**: Fixation, expiration, secure flags?42* [ ] **Cryptography**: Secure random, proper algorithms, no secrets in logs?43* [ ] **Information disclosure**: Error messages, logs, timing attacks?44* [ ] **DoS**: Unbounded operations, missing rate limits, resource exhaustion?45* [ ] **Business logic**: Edge cases, state machine violations, numeric overflow?4647## Phase 4: Verification4849For each potential issue:5051* Check if it's already handled elsewhere in the changed code52* Search for existing tests covering the scenario53* Read surrounding context to verify the issue is real5455## Phase 5: Pre-Conclusion Audit5657Before finalizing, you MUST:58591. List every file you reviewed and confirm you read it completely602. List every checklist item and note whether you found issues or confirmed it's clean613. List any areas you could NOT fully verify and why624. Only then provide your final findings6364## Output Format6566**Prioritize**: security vulnerabilities > bugs > code quality6768**Skip**: stylistic/formatting issues6970For each issue:7172* **File:Line** - Brief description73* **Severity**: Critical/High/Medium/Low74* **Problem**: What's wrong75* **Evidence**: Why this is real (not already fixed, no existing test, etc.)76* **Fix**: Concrete suggestion77* **References**: OWASP, RFCs, or other standards if applicable7879If you find nothing significant, say so - don't invent issues.8081Do not make changes - just report findings. I'll decide what to address.8283## Limitations84- Use this skill only when the task clearly matches the scope described above.85- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.86- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.8788---8990**Source:** [`sickn33/agentic-awesome-skills`](https://github.com/sickn33/agentic-awesome-skills) → `skills/find-bugs/SKILL.md`9192**Also appears in:** `sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills/skills/find-bugs/SKILL.md`, `sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills-claude/skills/find-bugs/SKILL.md`
Run npx skillmds add thedixitjain/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. 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.
thedixitjain (@thedixitjain) published this skill. Their other Agent Skills are listed on their SkillMD profile.