conventional-commit

conventional-commit is a skill for Claude Code, Codex from rlespinasse/agent-skills. It costs 74 tokens per session (2,727 once invoked), scanned A, original, MIT.

A guide for committing staged files in Git, a tool for tracking code changes, using the Conventional Commits format.

In plain words
What is it for?
Use it to inspect staged changes and create feature, fix, documentation, test, or other standard commit messages.
Why use it?
It ensures the commit message accurately describes the staged changes and follows a consistent structure.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/rlespinasse/agent-skills/conventional-commit
Any agent
npx skills add rlespinasse/agent-skills --skill conventional-commit
Clone the repo
git clone --depth 1 https://github.com/rlespinasse/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for conventional-commit

README.md
[![agentmods](https://agentmods.dev/badge/skills/rlespinasse/agent-skills/conventional-commit.svg)](https://agentmods.dev/skills/rlespinasse/agent-skills/conventional-commit)
Your own site
<a href="https://agentmods.dev/skills/rlespinasse/agent-skills/conventional-commit"><img src="https://agentmods.dev/badge/skills/rlespinasse/agent-skills/conventional-commit.svg" alt="Measured on agentmods" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,727 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00074 $0.02727
Opus 5 $0.00037 $0.01363
Sonnet 5 $0.00015 $0.00545
Haiku 4.5 $0.00007 $0.00273

Measured 5d ago against content hash 0c9b647509e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

conventional-commit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/conventional-commit/SKILL.md · 306 lines

How it starts

The opening of the file, as written. The whole thing — 306 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Commit Staged Files with Conventional Commits

You are helping the user commit their currently staged (indexed) git files using the Conventional Commits specification and commit message best practices.

Pre-flight Checks

Before crafting a commit message, always:

  1. Run git status to see what files are staged
  2. Run git diff --cached to review the actual staged changes
  3. If nothing is staged, inform the user and stop — do not create an empty commit

Conventional Commit Format

<type>[optional scope]: <subject>

[optional body]

[optional footer(s)]

Types

Type When to use
feat A new feature or capability
fix A bug fix
docs Documentation-only changes
style Formatting, whitespace, semicolons — no logic change
refactor Code restructuring without behavior change
perf Performance improvement
test Adding or updating tests
build Build system or external dependency changes
ci CI/CD configuration changes
chore Maintenance tasks (deps update, tooling, config)
revert Reverting a previous commit

Note: Comment-only changes (adding, updating, or removing code comments) should use style or chore — never feat or fix. Keep commit messages concise; do not describe individual comments.

Scope

  • Optional, but recommended when the change targets a specific module, component, or area
  • Use lowercase, kebab-case: feat(auth):, fix(api-client):
  • Keep consistent with the project's existing scope conventions
  • Check recent git log (git log --oneline -50 or more) for scope patterns already used in the project
  • Also note whether the project actually uses conventional commits — if not, adapt to the project's style

Subject Line Rules

  • Imperative mood: "add feature" not "added feature" or "adds feature"
  • Lowercase first letter: "add feature" not "Add feature"
  • No period at the end
  • 50 characters or less — hard limit at 72
  • Complete the sentence: "If applied, this commit will <subject>"

Read the full file on GitHub · 306 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 306 lines · 74 tokens per session scan A 0c9b647509e5

Subscribe to this mod's changes

conventional-commit is a skill published in the GitHub repository rlespinasse/agent-skills (10 stars, last pushed 5d ago), licensed MIT. It adds 74 tokens to every session and 2,727 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

git-commit

Git commit message generator that creates conventional commit messages based on code changes.

JackyST0/awesome-agent-skills · 18 tokens

memorix-git-memory

Use when the task depends on commit history, what changed, when a fix shipped, or linking engineering evidence to reasoning memory.

AVIDS2/memorix · 31 tokens

pr-review

Reviews a GitHub pull request and posts inline comments plus one consolidated summary, adapting to any codebase by discovering the project's own test runner, requirement specs, and architecture conventions before running six specialized review agents in parallel. Stack-agnostic across language and framework; targets…

tech-leads-club/agent-skills · 124 tokens

git-commits

Write clear, semantic git commit messages and PR/MR titles following Conventional Commits. Use when the user asks to write commit messages, format git history, improve commit quality, or set a PR/MR title, or mentions "commit message", "conventional commits", "merge message", or "git history". For the full PR/MR body…

ErikaAX08/erikas-skills · 102 tokens

wednesday-git

Unified Git workflow. Manages the entire task lifecycle: branch creation (sprint), atomic commits (git-os), and PR opening (pr-create).

wednesday-solutions/ai-agent-skills · 35 tokens

conventional-commit

Prompt and workflow for generating conventional commit messages using a structured XML format. Guides users to create standardized, descriptive commit messages in line with the Conventional Commits specification, including instructions, examples, and validation.

aboalrejal-ai/skills · 45 tokens