Reviews the current changes (uncommitted diff or a given branch/commit range) for security issues, lists them as P0–P3 with fixes. Use when the user says "sec-check", "check the security of this change", "pre-commit security check" or "review this diff for security".
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Sec Check?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/57blocks-sec-check-security-plugin)
---
name: sec-check
description: >-
Reviews the current changes (uncommitted diff or a given branch/commit range) for security issues, lists them as P0–P3 with fixes.
Use when the user says "sec-check", "check the security of this change", "pre-commit security check" or "review this diff for security".
user-invocable: true
---
# sec-check: review the current changes
Faster than sec-audit: looks only at the changes and their direct context, and does not require scanning tools.
## Input
- Default: `git diff HEAD` + untracked new files.
- If the user gives a range (branch name, `main...HEAD`, commit, PR), use that range.
## Steps
1. Read [sec-core](../sec-core/SKILL.md) and [severity.md](../sec-core/severity.md).
2. List the changed files, determine the domains involved using the sec-core table, and read the matching knowledge packs (`../sec-<domain>/SKILL.md`, and its `refs/` when needed). When a pack keeps its checklist in `refs/items-*.md`, read the item files covering the changed code.
3. For each changed function/endpoint/contract method:
- Trace input sources back to the entry point (do not look only at the diff; read callers and callees);
- Check item by item against the knowledge pack checklist;
- Record suspected issues.
4. **Verify each P0/P1**: write the exploit path "who calls what and gains what"; if no feasible path can be found or a protection already exists, downgrade or exclude it.
5. If gitleaks / semgrep are installed locally, optionally run them quickly on the changed files as a supplement (not required).
## Output
Write the result in the project language (sec-core "Output language"; default English), translating the headings of the format below.
```
## sec-check result: P0 x · P1 y · P2 z · P3 w
| # | Severity | Location | Issue | Item |
|---|---|---|---|---|
### 1. [P0] Title
Location / Exploit path / Impact / Fix (minimal diff)
...
Verdict: OK to commit | Fix P0/P1 before committing
```
- Do not write files or change code. Fix only after the user agrees (or have the user run `sec-fix`).
- When there are no issues, state explicitly which files and which domains were checked.