Claude Code Plugins

Community-maintained marketplace

Feedback

Instructions on how to author git commits

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name git-commits
description Instructions on how to author git commits

Git Commit Best Practices

Commit Message Structure

  1. First Line Guidelines

    • Limit to 50 characters or less
    • Use a gitmoji at the start to indicate commit type
    • Provide a clear, concise summary of the change
    • Capitalize the first letter
    • Do not end with a period
  2. Message Body

    • Leave a blank line after the first line
    • Explain the motivation for the change
    • Describe how the change solves the problem
    • Use bullet points for clarity
    • Wrap lines at 72 characters

Gitmoji Usage

Always start your commit message with an appropriate gitmoji to quickly communicate the commit's purpose:

  • ๐ŸŽจ: Improve code structure/format
  • โšก๏ธ: Improve performance
  • ๐Ÿ”ฅ: Remove code or files
  • ๐Ÿ›: Fix a bug
  • ๐Ÿš‘๏ธ: Critical hotfix
  • โœจ: Introduce new features
  • ๐Ÿ“: Add or update documentation
  • ๐Ÿš€: Deploy stuff
  • ๐Ÿ’„: Update UI and style
  • ๐ŸŽ‰: Begin a project
  • โœ…: Add, update, or pass tests
  • ๐Ÿ”’๏ธ: Fix security or privacy issues
  • ๐Ÿšง: Work in progress
  • โ™ป๏ธ: Refactor code
  • ๐ŸŒ: Internationalization and localization
  • ๐Ÿ”ง: Add or update configuration
  • ๐Ÿงช: Add or update tests

Example Commit Message

โœจ Add user authentication middleware

- Implement JWT-based authentication
- Create middleware to validate user tokens
- Add error handling for unauthorized requests

Resolves #123

Additional Best Practices

  • Avoid generic messages like "Fix bug" or "Update code"
  • Be specific about the changes and their impact
  • Reference issue numbers when applicable
  • Do not explain HOW the code works in the commit message
  • Focus on explaining WHY the change was made
  • Never add automatic Co-Authored-By or attribution lines