commit-security-scan
Skill516 starsChanged 4 months agoMITView on GitHub
Scan code changes for security vulnerabilities using Bug Hunter-native artifacts and STRIDE context. Use whenever the user asks for PR security review, commit-diff scanning, staged-change security checks, branch-comparison security review, or pre-merge security analysis of changed code.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Factory-AI/skillstheir own version, first seen Dec 29, 2025
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Factory-AI/skills★ 8same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- llms-full.txtllms.txt
- llms.txtllms.txt
- bug-hunterSkill
- doc-lookupSkill
- fixerSkill
- hunterSkill
- reconSkill
- refereeSkill
- security-reviewSkill
- skepticSkill
- threat-model-generationSkill
- vulnerability-validationSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
commit / commit-range security scanning
- Very specific: line 24
commit range → use git diff --name-only <base>..<head>
- Distinctive: line 28
Ensure threat-model context exists.
- Very specific: line 32
If missing, run the bundled threat-model-generation skill first.
- Distinctive: line 36
Read the full contents of the changed source files, not just the patch.
- Distinctive: line 48
use STRIDE + CWE labels
- Very specific: line 51
If the user wants only a focused security diff review, stop after the findings report.
- Very specific: line 52
If the user wants deeper validation, hand off to the bundled vulnerability-validation skill.
- Very specific: line 63
Use it as the lightweight security fast-path before invoking the broader security-review flow.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Commit Security Scan
This is a bundled local Bug Hunter companion skill. It is portable and self-contained: use .bug-hunter/* artifacts, never .factory/* paths.
Purpose
Review changed code for security issues only. This skill is optimized for:
- PR review
- staged diff review
- branch diff review
- commit / commit-range security scanning
Inputs
Resolve the scan scope from the user request:
- PR review → use
scripts/pr-scope.cjs - staged review → use
git diff --cached --name-only - branch diff → use
git diff --name-only <base>...<head> - commit range → use
git diff --name-only <base>..<head>
Workflow
- Ensure threat-model context exists.
- Preferred artifacts:
.bug-hunter/threat-model.md.bug-hunter/security-config.json
- If missing, run the bundled
threat-model-generationskill first.
- Preferred artifacts:
- Resolve the changed-file scope.
- Read the full contents of the changed source files, not just the patch.
- Focus on STRIDE-oriented issues in changed code:
- Spoofing: auth/session/token mistakes
- Tampering: SQLi, XSS, path traversal, command injection, mass assignment
- Repudiation: security-sensitive actions with no auditability
- Information Disclosure: IDOR, secret exposure, verbose errors
- DoS: unbounded input, missing limits, expensive regex/queries
- Elevation of Privilege: missing authorization, role bypass, privilege escalation
- Reuse Bug Hunter-native security conventions:
- findings should be compatible with
.bug-hunter/hunter-findings.json - use STRIDE + CWE labels
- include confidence scores
- findings should be compatible with
- If the user wants only a focused security diff review, stop after the findings report.
If the user wants deeper validation, hand off to the bundled
vulnerability-validationskill.
Output
Preferred outputs:
.bug-hunter/hunter-findings.jsonwhen integrating with the main Bug Hunter pipeline.bug-hunter/report.mdas a rendered companion if needed
Notes
- This skill is intentionally diff-scoped; it does not replace full-repository audits.
- Use it as the lightweight security fast-path before invoking the broader
security-reviewflow.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

