add git commit rules section — enforce one commit per file for cleaner history
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -106,6 +106,17 @@ From experience with this repository:
|
||||
- Use browser automation MCPs (Claude in Chrome, Playwright, Chrome DevTools) for Claude to inspect console logs
|
||||
- Provide screenshots when reporting visual issues
|
||||
|
||||
## Git Commit Rules
|
||||
|
||||
When committing changes, **create separate commits per file**. Do NOT bundle multiple file changes into a single commit. Each file gets its own commit with a descriptive message specific to that file's changes.
|
||||
|
||||
For example, if `README.md`, `best-practice/claude-subagents.md`, and a skill file all changed:
|
||||
- Commit 1: `git add README.md` → commit with README-specific message
|
||||
- Commit 2: `git add best-practice/claude-subagents.md` → commit with subagents-doc-specific message
|
||||
- Commit 3: `git add .claude/skills/weather-fetcher/SKILL.md` → commit with skill-specific message
|
||||
|
||||
This makes the git history cleaner and easier to review, revert, or cherry-pick individual changes.
|
||||
|
||||
## Documentation
|
||||
|
||||
See `.claude/rules/markdown-docs.md` for documentation standards. Key docs:
|
||||
|
||||
Reference in New Issue
Block a user