Skip to content
Security
Command

/precommit

Run the pre-commit security gate on the current changeset and report a single pass/fail verdict.

From plugin
awesome-claude-security
613 skills17 agents13 commands1 MCP
Install
$ npx -y skills add jassics/awesome-claude-security --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/precommit

Context preview

What this command does when you run it.

Run the pre-commit security gate on the current changeset and report a single pass/fail verdict.

Command definition

precommit.md
description: Run the pre-commit security gate on the current changeset and report a single pass/fail verdict.
argument-hint: [optional: path/scope to check instead of the full diff]

Run the pre-commit security gate for: **$ARGUMENTS** (default: the current staged/unstaged changeset).

1. **Scope** — `git status` / `git diff --cached` (fall back to `git diff` if nothing is staged) to find changed files. Stay scoped to the diff; this is a fast pre-commit check, not a full-repo audit. 2. **Run the gate** — `/developer:pre-commit-gate` to aggregate secret/gitignore hygiene, SAST/SCA on the diff, and (if relevant) IaC and Claude-config checks into one verdict. 3. **Report** — a single **BLOCK** or **PASS** line at the top, followed by the verdict table (check · result · blocking findings). On BLOCK, give the exact fix for each blocking finding, not just the diagnosis.

For deep, multi-step coordination beyond a single commit gate (e.g. reviewing a whole new feature's security posture), hand off to the `developer` agent.

Ships withawesome-claude-security

A Claude Code plugin marketplace for the full cybersecurity & GenAI-security lifecycle — from recon and threat modeling to detection engineering, GRC, and CISO-level strategy. A pentester knows which OWASP test bends a broken-access-control endpoint.

Get the whole plugin, auto-invoked
Stats
6
Stars
0
Views
0
Forks
Active
Maintenance
Python
Language
GPL-3.0
License
1d ago
Last commit
2mo ago
Created

Repo: jassics/awesome-claude-security