Skip to content
Back to skills

Commit

ASecurity

Select applicable checks and validate or create a focused conventional commit

  • 1,153 stars
  • 0 votes
  • 1 copy
  • 8 views
  • Added September 2, 2026
ai-agentsrustgotestinggitapidocumentation

Works with

  • api

Security analysis

A100/100

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

Scanned September 12, 2026

npx -y skills add vm0-ai/vm0 --skill commit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Commit?

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

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

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
description: Select applicable checks and validate or create a focused conventional commit
context: fork
---

# Commit

Use `check` to verify staged work, `message` to propose or validate its message,
or both when a commit is requested.

## Scope and Checks

1. Inspect `git status --short`, `git diff`, and `git diff --cached`. Stage only
   the requested change; preserve unrelated worktree and staged content.
2. Follow [development and verification](../../../CLAUDE.md#development-and-verification)
   for the affected files, workspaces, generated outputs, and runtime consumers.
   Read the matching [testing guide](../../../docs/testing.md) when behavior
   changes.
3. Run applicable formatting, lint/static analysis, type checks, and tests.
   Await each heavy check; run one Vitest or Cargo check at a time.
4. Fix actual failures. After checks pass, repeat them only if a new change,
   failure, or unresolved concern warrants it. Documentation does not require
   unrelated language suites.

`lefthook.yml` is the staged-file hook configuration. Hooks do not replace
behavior verification. For local Rust `ENOMEM` failures, check for competing
compiler/linker processes and retry once with `CARGO_BUILD_JOBS=1`; investigate
actual compiler failures separately. Do not delete installed dependencies as a
generic response to a slow hook.

## Message

Use `<type>[optional scope]: <description>`. The authoritative rules and allowed
types are in [commitlint.config.mjs](../../../commitlint.config.mjs): lowercase
type and subject, no final period, and at most 100 header characters. Use an
imperative description of the actual change.

Examples:

- `feat: add agent sharing`
- `fix(api): preserve webhook idempotency`
- `docs: simplify testing guidance`

Choose the type from the change, not from a desired version bump. See
[release behavior](release-triggers.md) when release impact matters.

Before committing, review the complete staged diff and relevant check results.
Report the commit SHA, scope, and validation; distinguish failed or unrun checks
from passes. Push or open a PR when requested by the caller.

Files in this skill

  • SKILL.md7.2 KB
  • examples.md11.1 KB
  • release-triggers.md6.6 KB
  • types.md5.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.

Comments

Loading comments…