Armory
Source
Browse
Hooks

conventional-commits-2

❌ Invalid commit message format Your message: {commit_msg} Commit messages must follow Conventional Commits: type(scope): description Types: feat: New feature fix: Bug fix docs: Documentation changes style: Code style changes (formatting) refactor: Code refactoring perf: Performance improvements test: Adding or updating tests chore: Maintenance tasks ci: CI/CD changes build: Build system changes revert: Revert previous commit Examples: ✅ feat: add user authentication ✅ feat(auth): implement JWT tokens ✅ fix: resolve memory leak in parser ✅ fix(api): handle null responses ✅ docs: update API documentation Invalid: ❌ Added new feature (no type) ❌ feat:add feature (missing space after colon) ❌ feature: add login (wrong type, use 'feat') 💡 Tip: Start your message with one of the types above followed by a colon and space.

Score
Unranked
Evidence
No signals yet
Last commit
Not known
Listed

Install

armory install conventional-commits-2 --cli claude

writes the file to.claude/hooks/conventional-commits-2Listed as compatible

Configuration
# fetches the hook script into:
.claude/hooks/conventional-commits-2
# then register it in your settings.json "hooks" block.

↳ Add the hook entry to settings.json, then restart the harness.

Needs the armory CLI · not on npm yet, build it from cli/ in the repository

What it is

❌ Invalid commit message format Your message: {commit_msg} Commit messages must follow Conventional Commits: type(scope): description Types: feat: New feature fix: Bug fix docs: Documentation changes style: Code style changes (formatting) refactor: Code refactoring perf: Performance improvements test: Adding or updating tests chore: Maintenance tasks ci: CI/CD changes build: Build system changes revert: Revert previous commit Examples: ✅ feat: add user authentication ✅ feat(auth): implement JWT tokens ✅ fix: resolve memory leak in parser ✅ fix(api): handle null responses ✅ docs: update API documentation Invalid: ❌ Added new feature (no type) ❌ feat:add feature (missing space after colon) ❌ feature: add login (wrong type, use 'feat') 💡 Tip: Start your message with one of the types above followed by a colon and space.

When to use it

❌ Invalid commit message format Your message: {commit_msg} Commit messages must follow Conventional Commits: type(scope): description Types: feat: New feature fix: Bug fix docs: Documentation changes style: Code style changes (formatting) refactor: Code refactoring perf: Performance improvements test: Adding or updating tests chore: Maintenance tasks ci: CI/CD changes build: Build system changes revert: Revert previous commit Examples: ✅ feat: add user authentication ✅ feat(auth): implement JWT tokens ✅ fix: resolve memory leak in parser ✅ fix(api): handle null responses ✅ docs: update API documentation Invalid: ❌ Added new feature (no type) ❌ feat:add feature (missing space after colon) ❌ feature: add login (wrong type, use 'feat') 💡 Tip: Start your message with one of the types above followed by a colon and space.

How to install / invoke

# Wire this hook script into .claude/settings.json
curl -sL https://raw.githubusercontent.com/davila7/claude-code-templates/main/cli-tool/components/hooks/git/conventional-commits.py -o .claude/hooks/conventional-commits.py

Notes

Extracted from davila7/claude-code-templates, git category.