# /caveman-commit: Write short Conventional Commits that explain why

Source: https://trendhub.net/skills/juliusbrussee-caveman/caveman-commit
Skill folder: https://github.com/JuliusBrussee/caveman/tree/main/skills/caveman-commit
Pack: Caveman (https://trendhub.net/skills/juliusbrussee-caveman)
Works with: All detected agents (Caveman CLI), Skills only (npx skills), Claude Code (plugin), Claude Code (inside a session), Gemini CLI, Every agent via script (macOS, Linux), Every agent via script (Windows)

This skill writes commit messages in Conventional Commits form with an imperative subject of about 50 characters and a body only when the reason is not obvious. A body is mandatory for reverts, security work, breaking API changes and data migrations, and the message leaves out narration, emoji and AI attribution unless your project rules call for them.

## When to use it

- Your agent writes commit messages that describe the diff line by line.
- Your team follows Conventional Commits and wants consistent types and scopes.
- A breaking change or migration needs the context recorded for later debugging.

## How it works

1. **Build the subject**: The agent writes type, optional scope and an imperative summary, aiming for 50 characters and never past 72, with no trailing period.
2. **Decide on a body**: A body is added only for a non-obvious reason, breaking changes, migration notes or linked issues, wrapped at 72 characters.
3. **Cut what the diff shows**: Phrases like this commit does, first-person wording and file names already covered by the scope are left out.
4. **Hand it over**: The message is returned as a code block ready to paste; the skill does not stage, commit or amend.

## What it steers the agent away from

- Past-tense or third-person subjects such as added or adds.
- Subject-only messages for breaking changes or security fixes.
- Generated-with or other AI attribution lines unless required.

## What it can touch

Reads the diff and outputs a commit message only; it never runs git.

## Pairs well with

- `/caveman-review`

## Questions

### Which commit types does it use?

The standard Conventional Commits set, including feat, fix, refactor, perf, docs and test plus chore, build, ci, style and revert, with capitalisation after the colon matching your project.

### Does it add an AI attribution trailer?

Not by default. If your own rules require an Assisted-by or similar trailer, it adds it as a trailer.
