Skip to content

Commit 6329f05

Browse files
authored
docs(claude): add critical rule to never commit directly to main (#143)
1 parent 3a8416e commit 6329f05

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

.claude/CLAUDE.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,16 @@ Guidance for Claude Code when working with the dtvem codebase.
1717

1818
**These rules override all other instructions:**
1919

20-
1. **Follow the styleguide** - All code must comply with `GO_STYLEGUIDE.md`
21-
2. **Write tests** - All new/refactored code requires comprehensive unit tests
22-
3. **Cross-platform** - All features must work on Windows, macOS, and Linux
23-
4. **Conventional commits** - Format: `type(scope): description`
24-
5. **GitHub Issues for TODOs** - Use `gh` CLI to manage issues, no local TODO files. Use conventional commit format for issue titles
25-
6. **Pull Requests** - Use the conventional commit format for PR titles as you do for commits
26-
7. **Run validation before commits** - Run `npm run check` (format, lint, test) before committing and pushing
27-
8. **Working an issue** - When working an issue, always create a new branch from an updated main branch
28-
9. **Branch Names** - Always use the conventional commit `type` from the issue title as the first prefix, and the `scope` as the second, then a very short description, example `feat/ci/integration-tests`
20+
1. **NEVER commit directly to main** - Always create a feature branch and submit a pull request. No exceptions.
21+
2. **Follow the styleguide** - All code must comply with `GO_STYLEGUIDE.md`
22+
3. **Write tests** - All new/refactored code requires comprehensive unit tests
23+
4. **Cross-platform** - All features must work on Windows, macOS, and Linux
24+
5. **Conventional commits** - Format: `type(scope): description`
25+
6. **GitHub Issues for TODOs** - Use `gh` CLI to manage issues, no local TODO files. Use conventional commit format for issue titles
26+
7. **Pull Requests** - Use the conventional commit format for PR titles as you do for commits
27+
8. **Run validation before commits** - Run `npm run check` (format, lint, test) before committing and pushing
28+
9. **Working an issue** - When working an issue, always create a new branch from an updated main branch
29+
10. **Branch Names** - Always use the conventional commit `type` from the issue title as the first prefix, and the `scope` as the second, then a very short description, example `feat/ci/integration-tests`
2930
---
3031

3132
## Quick Reference

0 commit comments

Comments
 (0)