mirror of
https://github.com/dnlbauer/dotfiles.git
synced 2026-09-10 21:45:30 +00:00
feat: add claude commands
This commit is contained in:
23
dot_claude/commands/commit.md
Normal file
23
dot_claude/commands/commit.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# Commit
|
||||
|
||||
Create commits with a well-formatted commit messages
|
||||
using conventional commit messages.
|
||||
|
||||
## Process
|
||||
|
||||
1. Check for changes (`git status`). If something is staged, consider only staged changes.
|
||||
Otherwise, review and stage appropriate files.
|
||||
2. Determine the commit type (e.g. feat, fix, docs, refactor, ...).
|
||||
3. Generate descriptive commit message using conventional commit standards.
|
||||
Include scope if applicable: `type(scope): description`.
|
||||
5. Add body for complex changes explaining the why.
|
||||
6. Execute commit
|
||||
|
||||
## Best Practices
|
||||
|
||||
- Keep commits atomic and focused
|
||||
- Write in imperative style (use "Add feature" not "Added feature")
|
||||
- Explain why, not just what
|
||||
- Reference issues/PRs when relevant
|
||||
- Split unrelated changes into separate commits.
|
||||
- Do not add Claude Code as co-author to the commit.
|
||||
Reference in New Issue
Block a user