--- name: git-commits description: Best practices for creating high-quality Git commits. Covers commit message conventions (Conventional Commits), atomic commits, staging strategies, and when to amend vs create new commits. Helps AI agents generate clean, meaningful commit history. --- # Git Commit Best Practices **Purpose:** This skill teaches AI agents to create high-quality commits with clear messages, proper granularity, and effective use of the staging area. ## Core Principles 1. **Atomic Commits** - One logical change per commit 2. **Clear Messages** - Follow Conventional Commits format 3. **Meaningful History** - Each commit tells a story 4. **Smart Staging** - Stage only what belongs together ## Commit Message Format ### Conventional Commits Structure ``` ():