Skip to content
Back to skills

Commitmsg

ASecurity

Generate a concise commit message by analyzing git diff changes

  • 666 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added February 8, 2026
developmentbashgitdocumentation

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill commitmsg --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Commitmsg?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Commitmsg
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-commitmsg/badge)](https://www.skillsdirectory.com/skills/majiayu000-commitmsg)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: commitmsg
description: Generate a concise commit message by analyzing git diff changes
---

# Commit Message Generator

This skill analyzes the changes in your git repository and generates a concise, single-line commit message that follows conventional commit standards.

## How to use this skill

When you want to create a commit message for your changes:

1. Run the `commitmsg.sh` script in this directory
2. The script will analyze the git diff of staged changes
3. It will output a single line commit message you can use

## Example usage

```bash
# Stage your changes first
git add .

# Generate commit message
./commitmsg.sh

# Use the output as your commit message
git commit -m "feat: add user authentication system"
```

## What the script does

The `commitmsg.sh` script:
- Checks if you're in a git repository
- Gets the diff of staged changes (or working directory if nothing staged)
- Analyzes the changed files and their content
- Generates a concise commit message following conventional commit format
- Outputs a single line suitable for `git commit -m`

## Conventional commit format

The generated messages follow the pattern:
- `feat:` for new features
- `fix:` for bug fixes
- `docs:` for documentation
- `style:` for formatting changes
- `refactor:` for code restructuring
- `test:` for test additions
- `chore:` for maintenance tasks

Each message includes a brief description of what changed.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.