git-commit-message
Auto-generates conventional commit messages from git diffs with tiered format enforcement.
Skill by artivilla
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/artivilla-git-commit-message
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/git-commit-message
What's inside
- Skill name
git-commit-message- Description
- Auto-generates conventional commit messages from git diffs with tiered format enforcement. Analyzes staged changes to produce meaningful commit messages following Conventional Commits specification.
- License
- MIT
- Instructions
- 438 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- files: referenced but missing: assets/template-commit-message.md, assets/template-security-commits.md, references/conventional-commits-guide.md, references/commit-message-antipatterns.md, references/monorepo-commit-conventions.md
Files (1)
- SKILL.md
SKILL.md (first lines)
# Git Commit Message Generator
**Auto-generates conventional commit messages from git diffs with tiered format enforcement**
## Purpose
Analyze staged git changes and generate concise, meaningful commit messages following a tiered Conventional Commits specification. This skill examines file modifications, additions, and deletions to infer the type and scope of changes, producing commit messages that match the importance of the change - from detailed documentation for critical features to concise messages for minor updates.
**Key Innovation**: Three-tier format system that balances thoroughness for critical commits (feat, fix, security) with efficiency for routine changes (docs, chore, style).
## When This Skill Activates
- When `/commit-msg` command is invoked
- When invoked from a `commit-msg`/`prepare-commit-msg` hook (if installed)
- When user requests commit message suggestions
- When analyzing changes before creating a commit
## Core Capabilities
**1. Diff Analysis**
- Parse `git diff --staged` output
- Identify modified, added, and deleted files
- Analyze code changes (additions, deletions, modifications)
- Detect patterns across multiple files
**2. Change Classification**
- Determine commit type from changes:
- `feat`: New features or functionality
- `fix`: Bug fixes
- `security`: Security fixes or hardening
- `refactor`: Code restructuring without behavior change
- `docs`: Documentation changes
- `style`: Formatting, whitespace, code style
- `test`: Adding or modifying tests
- `chore`: Build process, dependencies, tooling
- `perf`: Performance improvements
- `ci`: CI/CD configuration changes
- `build`: Build system changes
- `revert`: Reverting previous commits
**3. Scope Detection**
- Infer scope from file paths and patterns:
- Directory names (e.g., `api`, `auth`, `ui`)
- File name patterns (e.g., `*.test.js` → `tests`)
- Framework conventions (e.g., `components/`, `services/`)
**4. Message Generation**
- Format: `type(scope): description`
- Enforce tier limits: Tier 1 summary max 50 chars; Tier 2/3 summary max 72 chars (ideal 50)
- Use imperative mood ("add" not "added")
- Focus on "what" and "why", not "how"
- Provide 2-3 alternative suggestions
## Tier System: Smart Format Enforcement
This skill uses a **three-tier format system** that matches message detail to commit criticality:
### Tier 1: Critical Commits (feat, fix, perf, security)
**Requirements**: Detailed documentation with impact statement
**Format**:
```
type(scope): summary line (max 50 chars)
- Detailed description point 1
- Detailed description point 2
- Detailed description point 3
This change [impact statement describing user-facing benefit or risk addressed].
Affected files/components:
- path/to/file1
- path/to/file2
```
**Why**: Features, fixes, and performance changes affect users directly and need thorough documentation for future reference and changelog generation.
### Tier 2: Standard Commits (refactor, test, build, ci)
**Requirements**: Brief context and file list
**Format**:
```
type(scope): summary line (max 72 chars)
Brief explanation of what changed and why (1-2 sentences).
Files: path/to/file1, path/to/file2
```
**Why**: Internal improvements need context for maintainability but don't require extensive documentation.
### Tier 3: Minor Commits (docs, style, chore)
**Requirements**: Summary line, optional description
**Format**:
```
type(scope): summary line (max 72 chars)
[Optional: Additional context if helpful]
```
**Why**: Documentation and routine maintenance are self-explanatory from the diff; verbose messages add noise.
## Workflow
```text
0. Pre-staging typecheck (if project uses TypeScript):
- Run `tsc --noEmit` on changed files before staging
- Fix type errors before committing (avoids pre-commit hook retry loops)
1. Get staged changes (staged only, not working tree):
- git diff --staged --name-status
- git diff --staged --stat
- git diff --staged
2. Load config → frameworks/shared-skills/skills/git-commit-message/config.yaml
3. Analyze changes:
- Count files modified/added/deletedFrom artivilla/agents-config, MIT.
More from artivilla/agents-config
- 0.414score
paper-mcp
artivilla
Use the Paper MCP server to fetch paper metadata, sections, figures, citations, and full-text context, then translate that context into structured outputs…
SkillDFreshness: DClaude Code +9 - 0.414score
pr-trends
artivilla
Generate weekly and monthly pull request trend tables for a git repository, including created PRs, merged PRs, average days to merge, and lines changed.
SkillDFreshness: DClaude Code +9 - 0.409score
interfaces-raunofreiberg
artivilla
Review UI code against Rauno Freiberg's interface guidelines.
SkillDFreshness: DClaude Code +9 - 0.409score
design-spec-rules
artivilla
Enforce design-to-code fidelity rules.
SkillDFreshness: DClaude Code +9 - 0.409score
github
artivilla
Manage GitHub issues using gh CLI - create, list, view, update, close, and assign issues.
SkillDFreshness: DClaude Code +9 - 0.406score
mymind
artivilla
Use the local mymind CLI to initialize auth, refresh bookmark cache from access.mymind.com/cards, search bookmarks by text or regex, query tags, and shape…
SkillDFreshness: DClaude Code +9 - 0.390score
railway-docs
artivilla
This skill should be used when the user asks about Railway features, how Railway works, or shares a docs.railway.com URL.
SkillDFreshness: DClaude Code +9 - 0.390score
database
artivilla
This skill should be used when the user wants to add a database (Postgres, Redis, MySQL, MongoDB), says "add postgres", "add redis", "add database", "connect…
SkillDFreshness: DClaude Code +9 - 0.390score
deployment
artivilla
This skill should be used when the user wants to manage Railway deployments, view logs, or debug issues.
SkillDFreshness: DClaude Code +9 - 0.390score
central-station
artivilla
This skill should be used when the user asks about Central Station threads, community discussions, support questions, feature requests, or wants to search…
SkillDFreshness: DClaude Code +9 - 0.390score
projects
artivilla
This skill should be used when the user wants to list all projects, switch projects, rename a project, enable/disable PR deploys, make a project…
SkillDFreshness: DClaude Code +9 - 0.385score
find-skills
artivilla
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express…
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Mar 5, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/artivilla/agents-config
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from artivilla
- 0.414score
paper-mcp
artivilla
Use the Paper MCP server to fetch paper metadata, sections, figures, citations, and full-text context, then translate that context into structured outputs…
SkillDFreshness: DClaude Code +9 - 0.414score
pr-trends
artivilla
Generate weekly and monthly pull request trend tables for a git repository, including created PRs, merged PRs, average days to merge, and lines changed.
SkillDFreshness: DClaude Code +9 - 0.409score
interfaces-raunofreiberg
artivilla
Review UI code against Rauno Freiberg's interface guidelines.
SkillDFreshness: DClaude Code +9 - 0.409score
design-spec-rules
artivilla
Enforce design-to-code fidelity rules.
SkillDFreshness: DClaude Code +9 - 0.409score
github
artivilla
Manage GitHub issues using gh CLI - create, list, view, update, close, and assign issues.
SkillDFreshness: DClaude Code +9 - 0.406score
mymind
artivilla
Use the local mymind CLI to initialize auth, refresh bookmark cache from access.mymind.com/cards, search bookmarks by text or regex, query tags, and shape…
SkillDFreshness: DClaude Code +9
Cite this page
git-commit-message skill. Agent Mart. https://agentmart.dev/skills/artivilla-git-commit-message (last updated 2026-10-24)