git-conventional-commit

A skill that writes a Git commit message from the current code changes using the Conventional Commits format. Git is a system for tracking file history, while a commit records a selected set of changes.

In plain words
What is it for?
Use it when you want to commit current work or formulate a commit message. It helps classify changes such as features, fixes, refactors, performance work, documentation, tests, and dependency updates.
Why use it?
It removes the need to decide the commit type, scope, subject, and optional details by hand. It bases the message on the staged changes, or on unstaged changes when nothing is staged, and checks the project’s local conventions first.

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/jtprogru/bear-skills/git-conventional-commit
Any agent
npx skills add jtprogru/bear-skills --skill git-conventional-commit
Clone the repo
git clone --depth 1 https://github.com/jtprogru/bear-skills

Made for: Claude Code, Codex.

Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,113 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.00093 $0.01113
Opus 5 $0.00046 $0.00557
Sonnet 5 $0.00019 $0.00223
Haiku 4.5 $0.00009 $0.00111

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

Security

Grade A, and why

git-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 2d 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.

domains/git/skills/git-conventional-commit/SKILL.md · 102 lines

How it starts

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

git-conventional-commit — Conventional Commit message для текущего diff

Цель: вместо того чтобы пользователь сам формулировал commit-message, ты анализируешь diff и формируешь сообщение по конвенции ~/.claude/rules/git-conventions.md.

Перед началом прочитай ~/.claude/rules/git-conventions.md — там полный список допустимых type, формат scope и принципы.

Шаг 1. Собери контекст

Запусти:

  • git status --short — посмотри, что изменено
  • git diff --staged (если есть staged) или git diff (если нет) — содержание изменений
  • git log --oneline -10 — стиль предыдущих коммитов в проекте (особенно язык: русский/английский)

Если staged пуст и unstaged тоже — скажи пользователю и остановись.

Шаг 2. Определи type

Прочитай diff и реши:

diff показывает type
новый файл с функциональностью, новый endpoint, новая фича feat
правка логики, чтобы баг перестал воспроизводиться fix
перенос/переименование/упрощение без изменения поведения refactor
только улучшение производительности perf
только .md, комментарии в коде docs
только тесты добавлены или поправлены test
package.json, go.mod, requirements.txt, Dockerfile, CI-конфиги build или ci
зависимости, версии тулинга chore(deps)
откат предыдущего коммита revert

Если diff смешанный (например, и fix и refactor) — остановись и предложи пользователю разбить на несколько коммитов. Не пиши «feat: исправил баг и отрефакторил» — это анти-паттерн.

Шаг 3. Определи scope (опционально)

Scope — короткое имя модуля/папки/SDK. Эвристика:

  • если все файлы под одной папкой первого уровня (src/auth/, sdk-go/, cli/) — scope = имя этой папки
  • если затронуто 2-3 файла в разных папках — scope можно опустить
  • если поправлен один конкретный компонент (UserCard.tsx) — scope = имя компонента в kebab-case

Шаг 4. Сформулируй subject

  • 50-72 символа
  • глагол в настоящем времени, без заглавной буквы, без точки
  • если коммиты в проекте на русском — пиши на русском, если на английском — на английском (смотри git log)
  • субъект описывает что изменилось, не «что я сделал»

Read the full file on GitHub · 102 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. 2d ago First seen · 102 lines · 93 tokens per session scan A ce109e4bc969

Subscribe to this mod's changes

git-conventional-commit is a skill published in the GitHub repository jtprogru/bear-skills (1 stars, last pushed 15d ago), licensed MIT. It adds 93 tokens to every session and 1,113 once invoked, about $0.0005 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

commit-archaeologist

Reconstructs why code exists from local git history, including the introducing commit, later changes, current authors, repeated companion files, and likely intent. Use when the user asks "why does this code exist", "who wrote this function and why", or to "explain the history of this function" before a rewrite…

Shubhamsaboo/awesome-llm-apps · 82 tokens

pr-draft-summary

Create the required PR-ready summary block, branch suggestion, title, and draft description for openai-agents-python. Use before the final response whenever the current task changed runtime code, tests, examples, build/test configuration, or docs with behavior impact, regardless of perceived change size and including…

openai/openai-agents-python · 114 tokens

adk-git

Writes commit messages and pull request descriptions for the adk-python repository: Conventional Commits types and scopes, subject lines that say why a change was made, and the linked-issue and testing-plan sections the PR template requires. Use when writing or rewording a commit message, squashing commits before a…

google/adk-python · 138 tokens

commit-context

Trace a file, function, or line back to the agent session that produced its current commit. Use when the user asks "why is this code here", "what was the agent doing when this changed", "who wrote this", or wants context on a specific location in the codebase.

rohitg00/agentmemory · 61 tokens

commit-history

List recent git commits linked to agent sessions, optionally filtered by branch or repo. Use when the user asks "show agent commits", "what has the agent shipped", "list linked commits", or wants commits with their session context.

rohitg00/agentmemory · 49 tokens

caveman-commit

Ultra-compressed commit message generator. Cuts noise from commit messages while preserving intent and reasoning. Conventional Commits format. Subject ≤50 chars, body only when "why" isn't obvious. Use when user says "write a commit", "commit message", "generate commit", "/commit", or invokes /caveman-commit.…

stevesolun/ctx · 79 tokens