with one click
security-audit
Use when: pre-commit security audit (tests, vulns, code quality)
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Use when: pre-commit security audit (tests, vulns, code quality)
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | security-audit |
| description | Use when: pre-commit security audit (tests, vulns, code quality) |
| allowed-tools | Bash, Read, Grep, Glob |
| triggers | ["security-audit","/security-audit","security audit","audit security"] |
Check your initial prompt. If it contains the literal string "Use the security-audit skill", then:
YOU ARE THE EXECUTOR. Follow these rules:
../../PATTERN.md relative to this SKILL.md, and follow it step by step.csa run, csa review, csa debate, or ANY csa command. You must perform the work DIRECTLY. Running any csa command causes infinite recursion.Only if you are the main agent (Claude Code / human user):
Run a three-phase adversarial security audit on staged/changed files before committing. The auditor adopts an attacker mindset: find problems, not confirm correctness. Phases: test completeness verification, vulnerability scan, and code quality check. Returns PASS, PASS_DEFERRED, or FAIL verdict.
git diff --cached or git diff HEAD)csa run --sa-mode true --skill security-audit "Audit the staged changes for security issues"
When operating under SA mode (e.g., dispatched by /sa or any autonomous workflow),
ALL csa invocations MUST include --sa-mode true. This includes csa run,
csa review, csa debate, and any other execution commands. Omitting --sa-mode
at root depth causes a hard error; passing false when the caller is in SA mode
breaks prompt-guard propagation.
git diff --cached --name-only (or HEAD for committed changes).#[cfg(test)], *_test.rs, tests/ directory).| Command | Effect |
|---|---|
/security-audit | Audit staged changes with all three phases |
/security-audit scope=src/executor/ | Audit only files in executor module |
commit (Step 7), dev2merge (Step 8), dev-to-merge (legacy alias)Use when: full dev cycle branch->plan->implement->review->PR->merge
Use when: executing tasks via csa run/review/debate, session mgmt
Use when: iterative review-fix loop until csa review --diff is clean
Use when: running CSA-driven code review, independent model selection
Use when: three-layer manager-employee orchestration for delegation
Use when: legacy alias, redirects to dev2merge pipeline