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.
[!IMPORTANT]
This skill MUST be executed strictly under the Omni-Architect Agent Protocol v1.0.
All tool executions, code modifications, and communications MUST adhere to the 13 core protocols.
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)
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: bug-hunter3description: 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---56# Find Bugs78> [!IMPORTANT]9> This skill MUST be executed strictly under the **Omni-Architect Agent Protocol v1.0**.10> All tool executions, code modifications, and communications MUST adhere to the 13 core protocols.1112Review changes on this branch for bugs, security vulnerabilities, and code quality issues.1314## When to Use This Skill1516Use this skill when:17- Asked to review changes18- Finding bugs in code19- Performing security reviews20- Auditing code on the current branch21- Reviewing pull request changes2223## Phase 1: Complete Input Gathering24251. Get the FULL diff: `git diff $(gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name')...HEAD`262. If output is truncated, read each changed file individually until you have seen every changed line273. List all files modified in this branch before proceeding2829## Phase 2: Attack Surface Mapping3031For each changed file, identify and list:3233* All user inputs (request params, headers, body, URL components)34* All database queries35* All authentication/authorization checks36* All session/state operations37* All external calls38* All cryptographic operations3940## Phase 3: Security Checklist (check EVERY item for EVERY file)4142* [ ] **Injection**: SQL, command, template, header injection43* [ ] **XSS**: All outputs in templates properly escaped?44* [ ] **Authentication**: Auth checks on all protected operations?45* [ ] **Authorization/IDOR**: Access control verified, not just auth?46* [ ] **CSRF**: State-changing operations protected?47* [ ] **Race conditions**: TOCTOU in any read-then-write patterns?48* [ ] **Session**: Fixation, expiration, secure flags?49* [ ] **Cryptography**: Secure random, proper algorithms, no secrets in logs?50* [ ] **Information disclosure**: Error messages, logs, timing attacks?51* [ ] **DoS**: Unbounded operations, missing rate limits, resource exhaustion?52* [ ] **Business logic**: Edge cases, state machine violations, numeric overflow?5354## Phase 4: Verification5556For each potential issue:5758* Check if it's already handled elsewhere in the changed code59* Search for existing tests covering the scenario60* Read surrounding context to verify the issue is real6162## Phase 5: Pre-Conclusion Audit6364Before finalizing, you MUST:65661. List every file you reviewed and confirm you read it completely672. List every checklist item and note whether you found issues or confirmed it's clean683. List any areas you could NOT fully verify and why694. Only then provide your final findings7071## Output Format7273**Prioritize**: security vulnerabilities > bugs > code quality7475**Skip**: stylistic/formatting issues7677For each issue:7879* **File:Line** - Brief description80* **Severity**: Critical/High/Medium/Low81* **Problem**: What's wrong82* **Evidence**: Why this is real (not already fixed, no existing test, etc.)83* **Fix**: Concrete suggestion84* **References**: OWASP, RFCs, or other standards if applicable8586If you find nothing significant, say so - don't invent issues.8788Do not make changes - just report findings. I'll decide what to address.
Run npx skillmds@latest add luissambrano/bug-hunter 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. 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.
LuisSambrano (@luissambrano) published this skill. Their other Agent Skills are listed on their SkillMD profile.