Skip to content
Back to skills

Commit Messages

ASecurity

Generate conventional commit messages based on staged changes. Use when writing commit messages, understanding conventional commit format, or ensuring consistent commit history.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
code-qualitygocode-reviewgit

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill commit-messages --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Commit Messages?

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

Security grade badge for Commit Messages
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-commit-messages/badge)](https://www.skillsdirectory.com/skills/david-li0406-commit-messages)

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: commit-messages
description: Generate conventional commit messages based on staged changes. Use when writing commit messages, understanding conventional commit format, or ensuring consistent commit history.
---

# Commit Message Guide

Generates conventional commit messages that are clear, consistent, and
informative.

## Core Principles

1. **Follow Project Style** - Mimic existing `git log` patterns above all else.
2. **Imperative mood** - "add feature" not "added feature"
3. **Explain why** - Body explains motivation, not just what changed
4. **Concise subject** - 72 characters or less, no period
5. **Scope when helpful** - Include scope when it clarifies the change

## Commit Formats

### 1. Conventional Commits (Standard)

The most common standard, widely used across the industry.

```
<type>(<scope>): <subject>
```

_Example:_ `feat(auth): add login page`

### 2. Path-Based / Scoped (Alternative)

Common in monorepos or systems like Nixpkgs.

```
<path/to/component>: <subject>
```

_Example:_ `programs/waybar: update config`

## Detailed Reference Material

- [reference.md](reference.md) - **Commit Types** table, Scope determination,
  **Breaking Changes**, and **Alternative Conventions**.
- [examples.md](examples.md) - Good and bad examples for various scenarios.

## Analyzing Changes for Commit Type

1. **Look at files changed**
   - New files = likely `feat`
   - Test files only = `test`
   - Config/build files = `build` or `ci`
   - README/docs = `docs`

2. **Examine the diff**
   - Bug fix patterns = `fix`
   - New exports/functions = `feat`
   - Restructuring = `refactor`
   - Optimizations = `perf`

3. **Check `git log`**
   - Verify if the repo uses `type(scope):` or `path/to/file:` style.

## See Also

- **Code review**: See [code-review](../code-review/) for reviewing commits
- **Git workflows**: See [git-workflows](../git-workflows/) for branching
  strategies

Files in this skill

  • SKILL.md1.9 KB
  • examples.md1.3 KB
  • reference.md2.4 KB

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…