Cmd. /security-review
Analyze the current branch diff for vulnerabilities.
Written and reviewed by Eric Han · Co-founder & CTO, reopt
Key takeaways
- Analyze the current branch diff for vulnerabilities.
- Check the input surface and availability before using the examples below.
Purpose
Analyze the current branch diff for vulnerabilities.
/security-reviewAvailability
| Field | Value |
|---|---|
| Input surface | Running CLI prompt |
| Kind | Built-in |
| Status | Conditional |
| Aliases | — |
| Documented minimum | Not specified |
| Reviewed against | 2026-10-23 · Claude Code 2.1.308 |
Requires a Git repository with an origin remote and a resolvable base branch.
Examples
/security-reviewEffects and persistence
Reviews the diff between the current branch and origin's default branch for security issues.
Cautions
Ensure origin's default branch resolves locally; missing origin/HEAD can prevent the comparison.