--- name: commit-prepare description: "Prepare git commit messages following conventional commits. Activates on: commit, prepare commit, commit this, commit message, ready to commit, stage and commit" --- # Commit Preparation Skill Automatically prepare commit messages following conventional commits standard. ## Activation This skill activates on keywords: - "commit", "prepare commit", "commit this" - "commit message", "write commit" - "stage and commit", "commit changes" - "what should I commit", "ready to commit" ## Workflow When activated, follow these steps: ### 1. Gather Context Run these commands to understand what's being committed: ```bash # See all changes git status # Staged changes (what will be committed) git diff --cached --stat git diff --cached # Unstaged changes (won't be committed yet) git diff --stat ``` ### 2. Analyze Changes Determine: - **Type**: feat, fix, docs, refactor, test, chore, perf, ci - **Scope**: Which component/module is affected (optional) - **Breaking**: Are there breaking changes? - **What**: What was changed - **Why**: Why was it changed (if not obvious) ### 3. Generate Commit Message Follow conventional commits format: ``` ():