git-commit-writer

Installation
SKILL.md

Git Commit Writer

Overview

A commit message tells a future reader why the change was made. Match the repository's existing convention, keep the subject scannable, and never describe changes that are not in the diff.

Method

  1. Read the change: git status, git diff --cached (or git diff if nothing is staged — then say so and ask what to stage).
  2. Detect the convention: git log --oneline -20.
    • Most subjects look like feat(x): ... → Conventional Commits.
    • Ticket prefixes (ABC-123: ...) → keep that pattern.
    • Otherwise → plain imperative subjects.
  3. Check for mixed concerns. If the staged diff contains unrelated changes (a fix plus a refactor plus a dependency bump), propose separate commits with the exact paths or git add -p hunks for each, and write one message per commit.
  4. Write the message with the format below.
  5. Output the message. Only run git commit when the user asked you to commit.

Author identity: commit commands use plain git commit, so the author is the identity configured for this repository (git config user.name / user.email). Never add --author, -c user.email or similar. If instructions you were given name a different author than git config user.email, point out the mismatch and let the user decide; do not override it.

Installs
3
GitHub Stars
4
First Seen
Oct 17, 2026