en un clic
security-review
// Security audit for code changes. Triggered by "/security-review" when reviewing auth, crypto, input handling, or when user explicitly requests a security audit.
// Security audit for code changes. Triggered by "/security-review" when reviewing auth, crypto, input handling, or when user explicitly requests a security audit.
Multi-phase project assessment with scoring. Triggered by "/assess" to evaluate project health across dimensions and generate a comprehensive report.
Comprehensive rule-based check. Triggered by "/check [target]" to evaluate all source files against project rules and report every violation.
Set and track project goals. Triggered by "/goal" to define objectives, track milestones, or review progress.
Schedule recurring tasks with notifications. Triggered by "/loop <interval> <prompt>" to set up periodic monitoring.
Review code for efficiency and performance. Triggered by "/optimize" when user wants to identify bottlenecks or improve performance.
Review pull requests or code changes. Triggered by "/review [pr_link]" or when user asks to review pending changes.
| name | security-review |
| description | Security audit for code changes. Triggered by "/security-review" when reviewing auth, crypto, input handling, or when user explicitly requests a security audit. |
| tools | Bash, Read |
Use when:
/security-reviewDo NOT use when:
/review)/optimize)git diff main..HEAD
git diff --name-only main..HEAD
Check dependency changes if relevant:
cat package.json # or pyproject.toml, go.mod, etc.
| Pattern | Risk |
|---|---|
| User input without validation | Injection |
eval(), exec(), shell_exec() | Command injection |
| SQL concatenation | SQL injection |
innerHTML, dangerouslySetInnerHTML | XSS |
| Weak crypto (MD5, SHA1 for passwords) | Cryptographic failure |
| Hardcoded secrets | Secret exposure |
| File ops with user paths | Path traversal |
| Missing rate limiting | Brute force |
Use the output format below.
## Security Review
### Scope
Files: N | Lines changed: +N/-N
### Findings
#### 🔴 Critical
[Description, location, exploit scenario, fix]
#### 🟠 High
[...]
#### 🟡 Medium
[...]
#### 🟢 Info
[...]
### Summary
Total: N | Critical: N | High: N | Medium: N
## Recommendations
1. [Priority fix]
2. [Next steps]