Skip to content
Back to skills

Commit Guards

ASecurity

Load to add, tune, or debug a commit guard lane, its git hooks, or COMMIT_GUARDS_* settings.

  • 92 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added October 6, 2026
ai-agentspythongobashdebugginggit

Works with

  • cli

Security analysis

A100/100

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

Scanned November 27, 2026

npx -y skills add vanillagreencom/kendex --skill commit-guards --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Commit Guards?

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

Security grade badge for Commit Guards
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vanillagreencom-commit-guards-kendex/badge)](https://www.skillsdirectory.com/skills/vanillagreencom-commit-guards-kendex)

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: commit-guards
description: "Load to add, tune, or debug a commit guard lane, its git hooks, or COMMIT_GUARDS_* settings."
summary: "Commit guards for bytes, conflicts, changelog, markdown and Python names, plus git hook shims."
license: MIT
user-invocable: true
metadata:
  author: vanillagreen
  source: kendex
  repository: "https://github.com/vanillagreencom/kendex"
  bugs: "https://github.com/vanillagreencom/kendex/issues"
tags: [automation]
dependencies:
  optional: [docs-writing]
repo-effects:
  summary: "Arms git pre-commit, commit-msg and pre-push hooks, so every commit in this repository runs the guard chain and every push retains enabled destination binary-growth checks, for everyone who commits or pushes here, not only for kendex."
  writes:
    - ".git/hooks/kendex-guards"
    - ".git/hooks/pre-commit"
    - ".git/hooks/commit-msg"
    - ".git/hooks/pre-push"
    - ".git/kendex/lane-data/commit-guards-runs.tsv"
  installer: "scripts/install-git-hooks"
  uninstaller: "scripts/install-git-hooks --uninstall"
  checker: "scripts/install-git-hooks --check"
  removal: "kendex guard uninstall, or any kendex CLI verb that drops the package (remove, an apply or refresh that takes it away, marketplace unsubscribe --remove-packages) runs the uninstaller before the files go; it drops only the helper and one marked line, leaving any hook you wrote. Deleting the package any other way leaves shims that exec scripts which are gone and fail every commit and every push closed. The uninstaller keeps the run log in kendex/lane-data under the common git directory. You can delete that log by hand."
  companions:
    - "doc-limits"
    - "preflight"
    - "bot-instructions"
    - "github-repository-settings"
  notes:
    - "Pre-commit skips a missing companion silently. Preflight is skipped on a first commit. A companion installed with its script missing or not executable is named unrun and blocks nothing, except the selected github-repository-settings owner, which blocks with exit 2. The selected review-file check's `unconfigured` record with its `renders=none` attestation at exit 0 or the older exit 2 is named not adopted and blocks nothing; every other companion or guard failure blocks the commit, a stale review-file render included."
    - "Every hook blocks on a nonzero result; Git's no-verify flag bypasses the commit hooks for one commit and the pre-push hook for one push."
    - "Git runs no hook when it replays a commit, so a rebase or a cherry-pick can carry a violation onto a branch unseen; CI judges replayed content and the pre-push hook retains only enabled destination binary-growth checks."
    - "Git does not clone hooks; arm every clone once."
---

# Commit Guards

```bash
.agents/skills/commit-guards/scripts/commit-guards all --staged          # commit scope
.agents/skills/commit-guards/scripts/commit-guards all --base origin/main # branch scope
.agents/skills/commit-guards/scripts/commit-guards CHECK --help           # one check's interface
.agents/skills/commit-guards/scripts/md-reflow PATH...                    # paragraph reflow
```

- Before adding, tuning or debugging a check, read [CHECKS.md](CHECKS.md). It owns check contracts, scopes, exit codes and unavailable-tool conditions.
- `scripts/commit-guards --help` names the batch checks and flags.

## Git hooks

- Obtain the repository owner's consent before setup runs repository scripts. Arming and disarming affect the whole repository.
- Disarm before removing the skill.
- Before installing, checking or repairing Git hooks, read `scripts/install-git-hooks --help`.
- Before changing setup, hook order or the repo-local check, read [hooks and settings](references/hooks-and-settings.md).
- Before judging a push, read its [Pre-push scope](references/hooks-and-settings.md#pre-push-scope) contract.
- For installer maintenance or ref/scope collection mechanics, read [DEVELOPMENT.md](https://github.com/vanillagreencom/kendex/blob/main/skills/commit-guards/DEVELOPMENT.md).

## Configuration

- Before resolving a setting, writing a settings file, exclusions or a baseline, or enabling release collation, read [hooks and settings](references/hooks-and-settings.md#settings-resolution). That reference owns settings resolution, grammar and exclusion/baseline formats.
- Use [kendex.settings.toml.example](kendex.settings.toml.example) for project declarations. It also declares the command-safety hook's keys, each with its requirements in its comment.
- Use the matching [CHECKS.md](CHECKS.md) section for check-specific semantics. Each check's script owns its defaults.

## Generated-file exclusions

Before changing render exclusions or handling an unread inventory, read [Generated-file exclusions](references/hooks-and-settings.md#generated-file-exclusions).

Files in this skill

  • CHECKS.md44.1 KB
  • DEVELOPMENT.md27.6 KB
  • README.md4.1 KB
  • SKILL.md19.1 KB
  • kendex.settings.toml.example5.5 KB
  • scripts/byte-ceiling17.9 KB
  • scripts/changelog-entries25 KB
  • scripts/comments13.3 KB
  • scripts/commit-guards13.2 KB
  • scripts/commit-msg11.9 KB
  • scripts/conflict-markers3.2 KB
  • scripts/install-git-hooks35.6 KB
  • scripts/install-gitleaks3.9 KB
  • scripts/lib/atomic-install.sh6.6 KB
  • scripts/lib/changelog-collate.sh12.8 KB
  • scripts/lib/changelog-grammar.sh16.3 KB
  • scripts/lib/changelog-record-scope.sh5 KB
  • scripts/lib/command-position.sh13.3 KB
  • scripts/lib/comment-text.sh15.2 KB
  • scripts/lib/commit-changes.sh6.5 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.