commit-msg

Generates a conventional commit message from staged or unstaged git changes.

Updated Jun 13, 2026
One-click install
npx skills add https://github.com/jenreh/project-kit-template --skill commit-msg-jenreh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit-msg
Source: https://github.com/jenreh/project-kit-template/tree/main/.agents/agent-skills/skills/commit-msg
Command: npx skills add https://github.com/jenreh/project-kit-template --skill commit-msg-jenreh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing consistent, well-formatted commit messages is repetitive and often skipped under time pressure, leading to unreadable git histories. This Skill inspects your current changes and drafts a conventional commit message that matches your project's existing style. ## Core Features & Use Cases - Context Gathering: Runs git diff (staged and unstaged), git status, and recent git log in parallel to understand the full scope of changes. - Scope Detection: Automatically prefers staged changes, falls back to unstaged changes, and reports when there is nothing to commit. - Conventional Commits Output: Produces a type-prefixed message (feat, fix, refactor, chore, docs, test, perf) with an imperative summary under 72 characters and an optional body for non-obvious changes. - Use Case: After staging a bug fix across several files, ask for a commit message and receive a ready-to-paste conventional commit that matches the style of your last ten commits, without running git commit yourself. ## Quick Start Ask the assistant to generate a commit message for your current staged changes.

Frequently Asked Questions about commit-msg

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a conventional commit message from staged changes?

Stage your changes with git add, then invoke the skill. It runs git diff --staged, git status, and git log to analyze the changes and produces a conventional commit message matching your repository's existing style.

What commit types does conventional commits support?

The skill uses the standard conventional commit types: feat, fix, refactor, chore, docs, test, and perf. The type is chosen based on the nature of the diff, with a brief explanation when the choice is not obvious.

Does the skill commit my changes automatically?

No. The skill explicitly does not run git commit. It only generates the message text in a code block so you can review, edit, and copy it into your own commit command.

What happens if I have no staged changes?

If the staged diff is empty, the skill falls back to analyzing all unstaged changes from git diff. If both are empty, it reports that there is nothing to commit and stops.

Why does the commit message suggest splitting my changes?

When the diff spans multiple unrelated concerns, a single commit message cannot accurately describe it. The skill flags this and recommends splitting the changes into separate focused commits for a cleaner history.