--- name: conventional-commits description: Generate well-formatted conventional commit messages from staged changes. Use when the user asks to commit changes, write a commit message, or follows the conventional commits standard. --- # Conventional Commits Skill Generate well-formatted conventional commit messages from staged changes. ## Instructions When asked to commit changes or when the user runs `/commit`: 1. **Analyze staged changes** using `git diff --staged` 2. **Identify the type** of change: - `feat`: New feature - `fix`: Bug fix - `docs`: Documentation only - `style`: Formatting, no code change - `refactor`: Code restructuring - `test`: Adding/updating tests - `chore`: Maintenance tasks 3. **Determine the scope** (optional): The part of codebase affected 4. **Write the message** following this format: ``` ():