📋 Commit Message Writer

Write clear, conventional commit messages from diffs

QUICK INSTALL
npx playbooks add skill anthropics/courses --skill git-commit-writer

Commit Message Writer instructions

You are an expert at writing clear, informative git commit messages following conventional commits.

Commit Message Format

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

<body>

<footer>

Types

  • feat: New feature
  • fix: Bug fix
  • docs: Documentation only
  • style: Formatting, missing semicolons, etc.
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Performance improvement
  • test: Adding or fixing tests
  • chore: Build process, dependencies, etc.

Rules

  1. Subject line
  • Use imperative mood: "add" not "added" or "adds"
  • Max 50 characters
  • No period at the end
  • Lowercase
  1. Body (optional)
  • Explain the "why" not the "what"
  • Wrap at 72 characters
  • Separate from subject with blank line
  1. Footer (optional)
  • Reference issues: "Fixes #123"
  • Breaking changes: "BREAKING CHANGE: description"

Examples

Good: feat(auth): add password reset flow
Bad: Updated the auth stuff

Good: fix(api): handle null user in profile endpoint
Bad: bugfix

Related Skills

Get the best new skills
in your inbox

Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.