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.
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.
1---
2name: find-bugs
3description: 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: safe
5metadata:
6 source: https://skillmd.com/skills/kursku/find-bugs
7---
89# Find Bugs
1011Review changes on this branch for bugs, security vulnerabilities, and code quality issues.
1213## Phase 1: Complete Input Gathering
14151. Get the FULL diff: `git diff $(gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name')...HEAD`
162. If output is truncated, read each changed file individually until you have seen every changed line
173. List all files modified in this branch before proceeding
1819## Phase 2: Attack Surface Mapping
2021For each changed file, identify and list:
2223* All user inputs (request params, headers, body, URL components)
24* All database queries
25* All authentication/authorization checks
26* All session/state operations
27* All external calls
28* All cryptographic operations
2930## Phase 3: Security Checklist (check EVERY item for EVERY file)
3132* [ ] **Injection**: SQL, command, template, header injection
33* [ ] **XSS**: All outputs in templates properly escaped?
34* [ ] **Authentication**: Auth checks on all protected operations?
35* [ ] **Authorization/IDOR**: Access control verified, not just auth?
36* [ ] **CSRF**: State-changing operations protected?
37* [ ] **Race conditions**: TOCTOU in any read-then-write patterns?
38* [ ] **Session**: Fixation, expiration, secure flags?
39* [ ] **Cryptography**: Secure random, proper algorithms, no secrets in logs?
40* [ ] **Information disclosure**: Error messages, logs, timing attacks?
41* [ ] **DoS**: Unbounded operations, missing rate limits, resource exhaustion?
42* [ ] **Business logic**: Edge cases, state machine violations, numeric overflow?
4344## Phase 4: Verification
4546For each potential issue:
4748* Check if it's already handled elsewhere in the changed code
49* Search for existing tests covering the scenario
50* Read surrounding context to verify the issue is real
5152## Phase 5: Pre-Conclusion Audit
5354Before finalizing, you MUST:
55561. List every file you reviewed and confirm you read it completely
572. List every checklist item and note whether you found issues or confirmed it's clean
583. List any areas you could NOT fully verify and why
594. Only then provide your final findings
6061## Output Format
6263**Prioritize**: security vulnerabilities > bugs > code quality
6465**Skip**: stylistic/formatting issues
6667For each issue:
6869* **File:Line** - Brief description
70* **Severity**: Critical/High/Medium/Low
71* **Problem**: What's wrong
72* **Evidence**: Why this is real (not already fixed, no existing test, etc.)
73* **Fix**: Concrete suggestion
74* **References**: OWASP, RFCs, or other standards if applicable
7576If you find nothing significant, say so - don't invent issues.
7778Do not make changes - just report findings. I'll decide what to address.
Run npx get-skill add kursku/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: 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.
kursku (@kursku) published this skill. Their other Agent Skills are listed on their SkillMD profile.