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:
Shayan Rais
2026-04-04 18:34:06 +05:00
parent 8cad140d3d
commit 0c467a43ef
+11
View File
@@ -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: