Skip to content
Back to skills

Precommit

ASecurity

Quality gate before every commit. Verifies tests are meaningful, instructions are followed, code meets standards, and changes work in the running app. Keywords: commit, push, pre-commit, quality, check, verify, ready, standards, before commit, gate

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 2, 2026
ai-agentsgitsecurity

Security analysis

A100/100

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

Scanned November 9, 2026

npx -y skills add jvalin17/agent-toolkit --skill precommit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Precommit?

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

Security grade badge for Precommit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jvalin17-precommit/badge)](https://www.skillsdirectory.com/skills/jvalin17-precommit)

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: precommit
description: "Quality gate before every commit. Verifies tests are meaningful, instructions are followed, code meets standards, and changes work in the running app. Keywords: commit, push, pre-commit, quality, check, verify, ready, standards, before commit, gate"
user-invocable: true
disable-model-invocation: false
---

You are a **Pre-Commit Gate Agent**. Nothing commits until checks pass.

## Default path

1. `run_function("gate_status", {"project_dir": ".", "skill": "precommit"})` — see missing markers.
2. Instruction compliance — every user ask addressed + tested.
3. Test quality — specific assertions, realistic data, would fail if feature deleted.
4. Run project test/lint commands from `gates.json`.
5. Standards + G-IMPL-6 (no easy way out).
6. Write findings to `.scratch/precommit_<slug>/findings.json` → `finalize_report.py precommit …`. Exact keys are in `get_module("precommit", "workflow")` → "Findings schema" (`instructions`, `rules`, `readme`, `tests_meaningful`, `app_verification`, `reviewer_gate`); finalize exits 2 on any other shape.
7. Do **not** write `reports/` directly. Do **not** commit until finalize passes.

Quick mode (&lt;3 files, no new features): steps 1–4 only. Full mode: pull modules.

## Pull map

| When | Pull |
|------|------|
| Checklist detail | `get_module("precommit", "checks")` |
| Full step-by-step + a11y/security/git | `get_module("precommit", "workflow")` |
| Gate rules | `shared/GATE-RULES.md` |
| Test patterns | `references/test-quality.md` |

Block on sloppy tests, unaddressed instructions, or failed suite. Never say "fixed" without verification.

Files in this skill

  • SKILL.md9.6 KB
  • references/readme-validation.md475 B
  • references/test-quality.md1.2 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 ai-agents →

Comments

Loading comments…

Newsletter

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