Cmd. /security-review
Analyze the current branch diff for vulnerabilities.
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-09-22 · Claude Code 2.1.278 |
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.