Security Scan
When to Use
- Before releasing a new version or deploying to production
- After adding new dependencies
- During periodic security reviews
- When onboarding to an unfamiliar codebase
- After a security incident to check for similar vulnerabilities
When NOT to Use
| Instead of security-scan | Use |
|--------------------------|-----|
| PR-diff-only security review | pr-security-review |
| Agent / MCP / LLM risk review | agent-owasp-check |
| Strategic threat-model audit | security-audit or threat-model-analyst |
Prerequisites
- Access to the project source code and dependency manifests
- Package manager CLI available (npm, pip, go, etc.)
- Understanding of the application's architecture (web, API, CLI, etc.)
Workflow
0. Choose the operating mode
This skill can run in three distinct modes without becoming a separate skill:
- Secure-by-default implementation — when writing new code or refactoring risky paths,
identify the stack first, load any matching security references, and keep safe defaults
in mind while implementing.
- Passive detection during the current task — while you are already reading or editing
files, call out only high-impact violations of the loaded guidance. This is not a
background watcher; it applies only to the files you are actively handling.
- Explicit security report — when the user asks for a review or report, produce a
prioritized findings list with IDs, severity, and concrete file:line references.
0a. Load stack-specific security references
Before scanning deeply, identify the language and primary framework in scope. If the shared