| name | commit |
| description | Create git commits for dotfiles changes, grouping by component with conventional prefix style |
When the user asks you to commit changes in this dotfiles repo, follow these steps:
Important Context
- This is a stow-based dotfiles repo using git (not jj)
- Changes are organized by component directories:
emacs/, zsh/, home-manager/, scripts/, etc.
- Commits follow the format:
[component] brief description
- Each component's changes should be a separate commit
- Do NOT add
Co-Authored-By lines unless the user asks for it
Steps
1. Understand Current State
Run these in parallel:
git status
git diff --staged
git diff
git log --oneline -10
2. Group Changes by Component
- Look at modified file paths and group them by their top-level directory (e.g.
emacs/, zsh/, home-manager/)
- Files in the same component that are part of the same logical change go in one commit
- If a component has unrelated changes, split into separate commits
3. Draft Commit Messages
For each group, draft a message following the existing style:
- Format:
[component] brief-area: what changed
- Examples from this repo:
[emacs] fix dired block brackets
[zsh] tweak how reporoot and gitroot is set
[scripts] ,markdown-to-pdf: use gfm input format and fix parameter handling