Skip to content

Commit 8ac1cf4

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 77cb04f commit 8ac1cf4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,16 @@ Format commit messages as:
358358
Scope(type[detail]): concise description
359359
360360
why: Explanation of necessity or impact.
361+
361362
what:
362363
- Specific technical changes made
363364
- Focused on a single topic
364365
```
365366

367+
Keep the subject ≤50 chars (excluding any trailing `(#NN)` PR ref); wrap
368+
body lines at ≤72 chars. Separate the `why:` and `what:` blocks with a
369+
blank line.
370+
366371
Common commit types:
367372
- **feat**: New features or enhancements
368373
- **fix**: Bug fixes
@@ -380,6 +385,7 @@ Example:
380385
url/git(feat[GitURL]): Add support for custom SSH port syntax
381386
382387
why: Enable parsing of Git URLs with custom SSH ports
388+
383389
what:
384390
- Add port capture to SCP_REGEX pattern
385391
- Update GitURL.to_url() to include port if specified
@@ -400,6 +406,7 @@ git commit -m "$(cat <<'EOF'
400406
feat(Component[method]) add feature description
401407
402408
why: Explanation of the change.
409+
403410
what:
404411
- First change
405412
- Second change

0 commit comments

Comments
 (0)