security-review
What it does
This skill guides the agent through a security check of code, a module, or a feature. It looks for weaknesses that an attacker could really use, and explains how to fix each one.
When to use it
- ✓When you ask for a security review of new code before it goes live.
- ✓When you suspect a feature may let users see or change data they should not.
- ✓When you want a check for leaked passwords, keys, or unsafe commands in a project.
Skill link
https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/security-review/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you check my login feature for security holes and tell me how to fix anything risky?”
5 new skills a week. 1 minute to read.
How it works
The agent maps where outside input enters the code and where it can cause harm. It then follows that data step by step and reports only the problems it can point to, with the file and fix.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Security Review
Produce findings a reviewer can verify, not a vibes pass. Every finding names the file, the reachable path that makes it real, and the fix.
Scope the review first
- What is under review: a diff, a module, a plugin bundle, a network surface. Say the boundary out loud before reading.
- Trust boundaries: where untrusted input enters (HTTP handlers, MCP tool args, file parsers, CLI flags, env vars, rendered content) and where authority is exercised (fs writes, network egress, process spawn, credential reads, signing).
- Prerequisites: a checked-out tree and the project's own test runner. Ask for credentials only if a live path genuinely needs them; never read secrets from the environment or keychain yourself.
Procedure
- Map entry points and sinks.
rgfor the handlers, deserializers, and exec/fs/net calls in scope. Follow data from entry to sink before judging it. - Authn/authz. Every mutating or sensitive handler checks identity and object-level authorization. Look for checks that exist on one path but not its sibling, and for checks done on the client only.
- Injection. Command lines, SQL, template eval, shell expansion, path joins under user influence, and markup that will render later — including generated HTML/markdown that carries repo content into a browser surface.
- Secrets.
rgfor token/key/secret patterns andgit log -pthe diff for credentials. Also check what gets logged or embedded in receipts, exports, or error messages. - Dependencies. Run the project's audit gate if it exists
(
cargo audit,npm audit,osv-scanner) — report versions and CVEs, not "deps look old". - Denial and abuse paths. Unbounded reads/allocations, missing timeouts on network calls, resource leaks in error paths, retry storms.
- Verify a finding before reporting it. Trace the real call path or write a minimal proof. A finding that "looks suspicious" but has no reachable path is a note, not a finding.
Findings format
For each: severity (exploitability × impact), file:line, the reachable path, a one-paragraph explanation, and the fix. Order by severity. Then a short "checked and clean" list naming what was audited and cleared — the scope statement means something only if the clear list is honest.
Recovery and limits
- If you cannot prove reachability, downgrade the claim and say what evidence is missing.
- Do not claim a formal audit, certification, or absence of vulnerabilities. This review finds defects; it does not prove none exist.
- Never fix-and-stay-quiet on a security finding in someone else's in-flight code — report it first.
Completion criteria
- Every entry point in scope was traced to its sinks.
- Findings carry file:line + reachability + fix; the clear list names what was actually checked.
- Severity ordering is defensible by exploitability, not by how loudly the code smells.
FAQ
Is this the same as a normal code review?
No. It focuses on exploitable weaknesses rather than general quality, style, or code cleanliness.
Will the agent read my passwords or keys?
The skill says the agent should not read secrets from the environment or keychain itself, and asks for credentials only when a live test truly needs them.
Does every finding come with a fix?
Yes. Each finding names the file, the path that makes it a real risk, and the suggested fix.
Details
Original description by the author
Review a change, module, or surface for exploitable defects — trust boundaries, authn/authz, injection, secret exposure, filesystem and network reach, dependency risk. Use when the user asks for a security review, audit, or vulnerability check of concrete code. Not for general code review, lint, or compliance paperwork.
repo: codewhale-hq/Codewhale
Popularity
- GitHub stars
- 41k
- Ranking position
- #6552
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
best-of-n
41kHelps your agent produce several independent answers to a hard problem, judge them against one rubric, and apply only the one that passes checks.
dataviz
41kHelps your agent choose a suitable chart or dashboard for your data, with clear labels, source notes, and checks on axes and missing values.
debug
41kHelps your agent find the real cause of a bug by reproducing it, narrowing it down, and fixing only when you approve, instead of guessing.
delegate
41kTeaches your agent to split a large task into focused parallel helpers, while keeping planning, integration, and the final check in its own hands.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.