AlessandroCaula

Msg — Git skill for Claude Code

Git community

Suggest a commit message for the current staged changes.

How to install Msg

Installs to ~/.claude/skills/alessandrocaula-dot-claude-msg/SKILL.md

Terminal
mkdir -p ~/.claude/skills/alessandrocaula-dot-claude-msg && curl -fsSL https://raw.githubusercontent.com/AlessandroCaula/dot-claude/HEAD/commands/msg.md -o ~/.claude/skills/alessandrocaula-dot-claude-msg/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Msg does

Suggest a commit message for the current staged changes. **Do not commit. Do not stage. Do not run any git write commands. Output the message and stop.**

Steps

  1. **Check staged changes** with `git diff --staged`

    • If nothing is staged, run git diff instead and note that changes are unstaged
    • If there are no changes at all, say so and stop
  2. **Determine the commit type** from the diff:

    • feat: new capability or command added
    • fix: corrects broken behaviour
    • docs:

Alternatives in Git

  • Yeet — Stage, commit, push code, and open a GitHub pull request via CLI 14.6k ★
  • Gen Commit Msg — Generate intelligent commit messages based on staged changes 5.7k ★
  • Commit Msg — 生成 Git Commit Message 1k ★

Full documentation available on GitHub

View Source Repository