commit-message

Installation
SKILL.md

Git Commit Message Generator

Generate concise, descriptive Git commit messages in English.

Process

  1. Run git diff --cached directly (NOT git -C <path> diff --cached, NOT cd <path> && git diff --cached) to check for staged changes
  2. If staged changes exist: generate commit message based on staged changes only
  3. If no staged changes: run git diff directly (NOT git -C <path> diff, NOT cd <path> && git diff) and git status directly (NOT git -C <path> status, NOT cd <path> && git status) to view unstaged and untracked files
  4. For untracked files, intelligently assess which need content review (code/config files) vs which can be inferred from filename (assets, dependencies)
  5. Generate a single-line commit message

Output

Output ONLY the commit message — a single line, no explanation, no follow-up questions, no code block fencing.

Format

Related skills

More from ycs77/skills

Installs
26
Repository
ycs77/skills
First Seen
Feb 1, 2026