conventional-commit-gen

conventional-commit-gen is a skill for Claude Code, Codex from serejaris/kimi-skills. It costs 67 tokens per session (915 once invoked), scanned A, original, MIT.

A tool that reads a Git diff—the list of code changes—and suggests a commit message using the Conventional Commits format, a shared naming scheme for commits such as features, fixes, and documentation.

In plain words
What is it for?
Use it to generate messages from staged or unstaged changes, detect a scope from file paths, or override the suggested type or scope.
Why use it?
It removes the guesswork from choosing a commit type, scope, and short description, helping keep repository history consistent.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to generate messages from staged or unstaged changes, detect a scope from file paths, or override the suggested type or scope.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/serejaris/kimi-skills/conventional-commit-gen
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.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/serejaris/kimi-skills/conventional-commit-gen/github.svg)](https://agentmods.dev/skills/serejaris/kimi-skills/conventional-commit-gen)
Your own site
<a href="https://agentmods.dev/skills/serejaris/kimi-skills/conventional-commit-gen"><img src="https://agentmods.dev/badge/skills/serejaris/kimi-skills/conventional-commit-gen/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for conventional-commit-gen

Your own site · 80×15
<a href="https://agentmods.dev/skills/serejaris/kimi-skills/conventional-commit-gen"><img src="https://agentmods.dev/badge/skills/serejaris/kimi-skills/conventional-commit-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 915 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00067 $0.00915
Opus 5.5 $0.00027 $0.00366
Sonnet 5.5 $0.00013 $0.00183
Haiku 4.5 $0.00007 $0.00092

Measured 3mo ago against content hash 1a31958e1fec, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

conventional-commit-gen 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 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/analyze_diff.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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-gen/SKILL.md · 107 lines

How it starts

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

Conventional Commit Gen

Analyzes the current git diff and automatically generates a commit message that follows the Conventional Commits specification, with smart scope detection.

Quick Start

# Analyze unstaged changes and generate a commit message
python3 scripts/analyze_diff.py

# Analyze staged changes only
python3 scripts/analyze_diff.py --staged

# Specify a repository path
python3 scripts/analyze_diff.py --repo /path/to/repo

# JSON output (useful for programmatic integration)
python3 scripts/analyze_diff.py --staged --format json

# Manually override type or scope
python3 scripts/analyze_diff.py --staged --type-override feat --scope-override auth

Usage Workflow (SOP)

1. Get the Diff Analysis

Run the script in the user's git repository to get the automated analysis:

python3 scripts/analyze_diff.py --staged --format json

2. Review and Adjust

The script outputs:

  • type: The auto-detected commit type (feat / fix / docs / style / refactor / test / chore / perf / ci / build)
  • scope: The scope detected from file paths (e.g., auth, api, ui)
  • description: A brief description generated from the change summary
  • commit_message: The fully assembled commit message

After reviewing the output, adjust as needed:

  • If the type is inaccurate (e.g., the script detected chore but it's actually a feat), use --type-override to override
  • If the scope doesn't fit, use --scope-override to override
  • The description should ideally be hand-written based on the actual changes; treat the script output as a starting point

Note: Type detection is based on file paths and change statistics. It works well for types like test/docs/ci/build, but for modifications to existing source code files (feat vs fix vs refactor), you should read the diff content and make the final call.

3. Conventional Commits Reference

<type>(<scope>): <description>

[optional body]

[optional footer(s)]

Read the full file on GitHub · 107 lines

Files

What ships with it

2 files 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. 3mo ago First seen · 107 lines · 67 tokens per session scan A 1a31958e1fec

Subscribe to this mod's changes

conventional-commit-gen is a skill published in the GitHub repository serejaris/kimi-skills (13 stars, last pushed 4mo ago), licensed MIT. It adds 67 tokens to every session and 915 once invoked, about $0.0003 per session on Opus 5.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

conventional-commit-gen compared with skills from other repositories

conventional-commit-gen next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
conventional-commit-genserejaris/kimi-skillsSkill134mo agoMITA67Claude Code, Codex
changelog-generatormohitagw15856/pm-claude-skillsSkill1.6ktodayMITA96Claude Code, Codex
pr-description-writermohitagw15856/pm-claude-skillsSkill1.6ktodayMITA80Claude Code, Codex
release-notes-from-git-logmohitagw15856/pm-claude-skillsSkill1.6ktodayMITA66Claude Code, Codex
user-story-writermohitagw15856/pm-claude-skillsSkill1.6ktodayMITA79Claude Code, Codex
feature-prioritisationmohitagw15856/pm-claude-skillsSkill1.6ktodayMITA103Claude Code, Codex
morning-intelligencemohitagw15856/pm-claude-skillsSkill1.6ktodayMITA103Claude Code