dianyike/claude-code-insights/security-review
Claude Code and agent skill by dianyike/claude-code-insights
- community
Checking that the SKILL.md file is still in the repository.
Run a read-only dual-verification security audit (Semgrep + Codex cross-validation). Use when: user says "security review", "audit code", "scan for vulnerabilities", "is this safe", "check for secrets", "before merge security scan", or invokes /security:review. Produces a confidence-scored report; never modifies source code. For remediation, see /security:fix.
Install
npx vskill@latest install dianyike/claude-code-insights/security-reviewSKILL.md
/security:review — Read-Only Security Audit
Run the security-reviewer subagent to produce a dual-verification security report. This command is always read-only — it will never modify source code files.
Command Syntax
Target Resolution
Determine the review scope before invoking the subagent:
Priority Order
- If
--base <branch>is specified → branch diff mode
- Run:
git merge-base HEAD <branch>→git diff --name-only <merge-base>..HEAD
- If
--scopeis specified → explicit scope mode
staged:git diff --staged --name-onlyworking-tree:git diff --name-only+git ls-files --others --exclude-standard
- If neither specified and working tree is dirty → auto: working-tree
- If neither specified and working tree is clean → auto: branch diff against default branch
Path Filtering
If [path...] arguments are provided, filter the resolved file list to only include files whose paths start with any of the given prefixes.
Handoff to Subagent
Pass the resolved scope to the security-reviewer subagent:
Background Execution
When --background is specified:
- Launch the
security-reviewersubagent withrun_in_background: true - Return immediately with: "Security review started. Use
/security:statusto check progress." - When the subagent completes, the notification will include the verdict and report path.
When --wait (default):
- Launch the
security-reviewersubagent in foreground - Display the verdict and report path when complete
Related Commands
/security:fix <report>— Opt-in remediation based on a review report (requires explicit user action)
Job Management (Phase 1 — not yet implemented)
The following commands are planned but not yet available as separate skills. Until implemented, use natural language (e.g., "check the security scan status") and the main agent will handle it via the Agent tool's built-in background notification.
/security:status [job-id]— Check background job progress. Without ID, list all active jobs/security:result <job-id>— Retrieve completed job verdict and report path/security:cancel <job-id>— Mark a running job as CANCELLED (subagent may still complete in background)
Expected behavior (for future implementation):
- Job state is persisted at
.agents-output/security/jobs/<job-id>.json - States: QUEUED → RUNNING → COMPLETED / FAILED / CANCELLED
- On session restart, any RUNNING job is marked STALE (detected by checking
status == RUNNINGwithcreated_atolder than the current session start)
Completion Criteria
- [ ] Target resolution produced a concrete file list (or "no changes found" if empty)
- [ ]
security-reviewersubagent invoked with resolved scope - [ ] Verdict and report path displayed to user
- [ ] If
--background: job ID returned immediately, no blocking - [ ] No source code files modified
Gotchas
--baseand--scopeare mutually exclusive in practice — if both specified,--basewins (priority order). Don't warn the user; just follow priority- When working tree is clean AND no default branch is detectable (e.g., fresh repo with only one commit), auto mode falls through to an empty file list. Surface this clearly instead of running Semgrep on zero files
--backgroundrelies on Claude Code'srun_in_backgroundfor the Agent tool — the subagent cannot be cancelled mid-execution;/security:cancelonly marks the job as CANCELLED and stops waiting for results- Path filters are prefix-matched, not glob-matched.
src/authmatchessrc/auth/login.tsandsrc/auth-utils/helper.ts. If users expect glob semantics, clarify - Iterate this section: After each real usage, append new gotchas here
What This Command Does NOT Do
- Does not modify source code (read-only)
- Does not enter the Fix-Verify Loop (Section 4 of the protocol)
- Does not auto-remediate findings
- Does not require Write or Edit tool permissions
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingexamples/security-reviewer/skills/security-review/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dianyike/claude-code-insights/security-review)