Skip to content

Commit af131b3

Browse files
committed
ai(rules[AGENTS]) Cap title/body, space why/what
why: Standardize commit guidance so titles stay scannable and bodies wrap predictably across repos. what: - Cap subject at 50 chars (excluding trailing (#NN) PR ref) - Wrap body lines at 72 chars - Require a blank line between the why: and what: blocks
1 parent 8aa864c commit af131b3

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,35 @@ Assert on `caplog.records` attributes, not string matching on `caplog.text`:
212212

213213
### Git Commit Standards
214214

215+
Format commit messages as:
216+
```
217+
Scope(type[detail]): concise description
218+
219+
why: Explanation of necessity or impact.
220+
221+
what:
222+
- Specific technical changes made
223+
- Focused on a single topic
224+
```
225+
226+
Keep the subject ≤50 chars (excluding any trailing `(#NN)` PR ref); wrap
227+
body lines at ≤72 chars. Separate the `why:` and `what:` blocks with a
228+
blank line.
229+
230+
Common commit types:
231+
- **feat**: New features or enhancements
232+
- **fix**: Bug fixes
233+
- **refactor**: Code restructuring without functional change
234+
- **docs**: Documentation updates
235+
- **chore**: Maintenance (dependencies, tooling, config)
236+
- **test**: Test-related updates
237+
- **style**: Code style and formatting
238+
- **py(deps)**: Dependencies
239+
- **py(deps[dev])**: Dev Dependencies
240+
- **ai(rules[AGENTS])**: AI rule updates
241+
- **ai(claude[rules])**: Claude Code rules (CLAUDE.md)
242+
- **ai(claude[command])**: Claude Code command changes
243+
215244
#### Release commits
216245

217246
Never create tags. Never push tags. The user handles tagging and tag

0 commit comments

Comments
 (0)