mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-08 01:07:23 +08:00
claude-code/command/c: Add component prefix guidelines for commit messages
This commit is contained in:
parent
949d97dd31
commit
c867d7db63
1 changed files with 4 additions and 2 deletions
|
|
@ -32,11 +32,13 @@ This command commits the current changes to git.
|
|||
- Analyze the git diff to understand what changed
|
||||
- Create a concise, descriptive commit message that explains the purpose of the changes
|
||||
- Focus on the "what" and "why" rather than generic descriptions
|
||||
- Prefix the commit message with component (and subcomponent if it exists, separated by /), e.g., `claude-code/command/c: Include component path in commit message`
|
||||
- Examples of good vs bad messages:
|
||||
- Good: "Add tmux configuration with custom key bindings"
|
||||
- Good: "tmux: Add configuration with custom key bindings"
|
||||
- Bad: "Update home configuration"
|
||||
- Good: "Fix broken SSH agent forwarding in development environment"
|
||||
- Good: "ssh: Fix broken agent forwarding in development environment"
|
||||
- Bad: "Update configuration files"
|
||||
- Good: "claude-code/command/c: Add commit message generation guidelines"
|
||||
|
||||
**Prerequisites**:
|
||||
- Must be in a git repository
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue