kklimuk/security-review
Review code for security vulnerabilities. Use when the user says 'security review', 'security audit', 'check for vulnerabilities', 'pentest the code', 'OWASP check', or any variation of wanting a security assessment.
npx skills add https://github.com/kklimuk/docx-cli --skill security-review
Audit changed files for security vulnerabilities, focusing on the OWASP Top 10 and issues specific to the project's stack.
When running locally as a forked subagent, the main session does not see any files you read or any reasoning you do — only the final report you return. When running in CI (e.g. via claude-code-action), the workflow takes the report and turns it into GitHub PR review comments. Either way, take your time, read every changed file completely, and produce a thorough, actionable report. The consumer of this report uses it as a worklist, so it must be complete and self-contained.
Determine the diff to review:
git diff main...HEAD --name-only to get files changed on this branch vs main.main, detached worktree, etc.), fall back to git diff HEAD --name-only for uncommitted changes, then git diff --cached --name-only for staged files.Read every changed file completely before starting the review. Read CLAUDE.md first to understand the project's stack and any subsystems with security-sensitive surface area (auth, real-time, payments, file uploads).
Bun.$, child_process, subprocess, os.system) without sanitization.dangerouslySetInnerHTML, or reflected into HTML/JS without escaping. Check contentEditable fields that accept pasted HTML... traversal.Object.assign or spread on user-controlled objects without allowlisting keys.(Only relevant if the project has a WebSocket layer — see CLAUDE.md.)
Math.random() / random.random() used for security-sensitive operations instead of crypto.randomUUID() / secrets.token_*().ws:// in production contexts.bun audit / npm audit / pip-audit is available, check for known CVEs.Return the complete formatted report as your final message — not a summary or TL;DR. Whatever consumes the report (a main Claude session locally, or a CI workflow that posts inline GitHub PR comments) uses it as a worklist, so it must be self-contained.
Organize findings by severity:
Exploitable now with no authentication required. Data loss, unauthorized access, or remote code execution.
Exploitable with some preconditions (e.g., needs authenticated user, specific timing). Privilege escalation, significant data leakage.
Defense-in-depth issues. Missing validation that's currently protected by another layer but shouldn't rely on it.
Hardening recommendations. Not exploitable today but reduce attack surface.
For each finding, include enough detail that the consumer can apply the fix without re-reading the entire file:
path:line (or path:start-end for ranges); list every site for cross-file findingsThe fix phase (or PR-comment-posting phase) happens in whatever consumes this report — not here. Your job ends when you return the report. Make sure it has enough information for that consumer to act on findings without re-reading the codebase. Locally, the main session will work through findings in severity order with minimal, targeted fixes and run bun run check + bun test after each. In CI, the workflow will turn each finding into a GitHub PR review comment.
Take kklimuk/security-review from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.