Skip to content
Back to skills

Sec Check

ASecurity

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".

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
securitygitsecurity

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add 57blocks/security-plugin --skill sec-check --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sec Check?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sec Check
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/57blocks-sec-check-security-plugin/badge)](https://www.skillsdirectory.com/skills/57blocks-sec-check-security-plugin)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Files in this skill

  • README.md522 B
  • SKILL.md2.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.