What problem does it solve?
Inconsistent commit messages hinder automated changelog generation, code history analysis, and collaboration, especially with AI-generated commits. This skill automates the enforcement of conventional commit messages, ensuring clarity and machine-readability.
Core Features & Use Cases
- Conventional Commits Enforcement: Ensures commit messages follow the
type(scope?): subject format, with valid types like feat, fix, docs, chore.
- GitHub Copilot Compatibility: Provides relaxed subject rules (any case, warning for length/punctuation) and specific
.copilot-commit-message-instructions.md to guide AI-generated messages.
- Husky Integration: Automates commit message validation via a
commit-msg Git hook, blocking non-compliant commits.
- Dependency Validation: Ensures
@commitlint/cli, @commitlint/config-conventional, and husky are correctly installed.
- Use Case: Configure a project to enforce conventional commit messages, ensuring AI tools like GitHub Copilot generate compliant messages for automated changelogs and a clear project history.
Quick Start
Create commitlint.config.js and Copilot instructions for the current repository.