| name | check-security |
| description | Perform a security code review on pending changes or specified files |
| disable-model-invocation | true |
| context | fork |
| agent | Explore |
| allowed-tools | Bash(git diff*), Bash(git show*), Bash(git log*), Read, Grep, Glob |
Security Code Review
Perform a comprehensive security audit of the code changes.
Scope
Review changes from: !git diff --name-only HEAD~1 or files specified in $ARGUMENTS
Security Checklist
1. Injection Vulnerabilities
2. Authentication & Authorization
3. Data Exposure
4. Input Validation
5. Dependencies
6. Secrets Management
7. Deno-Specific
Output Format
Provide a structured report:
## Security Review Summary
**Risk Level**: [LOW | MEDIUM | HIGH | CRITICAL]
**Files Reviewed**: X files
### Findings
#### [SEVERITY] Finding Title
- **File**: path/to/file.ts:line
- **Issue**: Description of the vulnerability
- **Impact**: What could happen if exploited
- **Recommendation**: How to fix it
### Approved Changes
- List of changes that passed security review
### Action Required
- [ ] Fix critical/high issues before merge
- [ ] Address medium issues in follow-up
- [ ] Low issues can be tracked as tech debt
Invocation
/check-security # Review uncommitted changes
/check-security src/pdc/services/ # Review specific directory
/check-security HEAD~3..HEAD # Review last 3 commits