Git Commit Helper

Writes clean, conventional commit messages from staged changes. Use when the user asks to commit, write a commit message, or summarize staged changes.

nir130 Updated

File contents

Git Commit Helper

When the user asks to commit staged changes:

  1. Run git diff --staged to see what changed.
  2. Determine the change type (feat, fix, refactor, docs, test, chore).
  3. Write a concise conventional-commit subject line (<= 72 chars) plus an optional body explaining the "why".
  4. Show the proposed message and let the user confirm before committing.

Never commit secrets or large generated files. If you see credentials in the diff, stop and warn the user.

nir130/awesome-agent-skills/tree/main/skills/git-commit-helper commit e1462389ae

Frequently asked questions

npx skillmds@latest add nir130/git-commit-helper