Files
Shaw_Consulting b035ed1763 Initial commit
2026-06-25 12:29:03 -07:00

29 lines
863 B
Plaintext

---
description: Conventional commit message format for clear git history
alwaysApply: true
---
# Conventional Commits
When writing commit messages, use this format:
```
<type>(<optional scope>): <short summary>
<optional body>
```
**Types:** `feat`, `fix`, `docs`, `style`, `refactor`, `test`, `chore`, `perf`, `ci`, `build`
**Rules:**
- Summary: imperative mood, lowercase, no period, ≤72 characters
- `feat` = new user-facing capability; `fix` = bug fix
- `refactor` = behavior unchanged; `chore` = tooling/deps with no user impact
- Breaking changes: add `BREAKING CHANGE:` in the body or `!` after type (`feat!: ...`)
- One logical change per commit. Do not mix unrelated fixes.
**Examples:**
- `fix(auth): handle expired refresh tokens`
- `feat(api): add pagination to user list endpoint`
- `refactor(db): extract query builder into shared module`