Conventional Commit
Trigger
- Runs when drafting a Conventional Commit message from staged or unstaged repository changes.
Inputs
<scope-or-issue-ref> (optional): Scope noun or issue reference (e.g., dotfiles, #143) to incorporate when appropriate.
Workflow
Allowed Types
feat: A new featurefix: A bug fixdocs: Documentation-only changesstyle: Formatting or whitespace changes with no behavior changerefactor: Code change that neither fixes a bug nor adds a featureperf: Performance improvementtest: Adding or updating testsbuild: Build system or external dependency changesci: CI configuration and workflow changeschore: Routine maintenance tasksrevert: Reverts a previous commit
Guidelines
- Scope: Optional lowercase noun naming the affected module or area (e.g.,
parser, ui, dotfiles). - Description: Required concise imperative summary in lowercase without a trailing period (e.g.,
add array parsing). - Breaking Changes: Append
! after type/scope and/or include a BREAKING CHANGE: <details> footer. - Body & Footers: Separate subject, body, and footers with a blank line; place breaking changes or issue references (e.g.,
Closes #123) in footers.
Examples
feat(parser): add ability to parse arrays
feat(auth)!: require API token for CLI requests
BREAKING CHANGE: unauthenticated requests are no longer accepted.
Closes #42
Constraints
- Read-Only Git Inspection: Never run
git add or git commit (including --amend); return the drafted text for the user or caller to apply. - Message-Only Reply: Return only the ready-to-use Conventional Commit message text with no surrounding commentary or shell commands.