Skip to content

Commit 35f58dd

Browse files
committed
Add commit message guidelines and tsgo preservation rule
- Add pithy message guideline for concise commit messages - Add mandatory tsgo preservation rule to prevent performance regressions
1 parent 231baf8 commit 35f58dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CLAUDE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ You are a **Principal Software Engineer** responsible for:
128128
- **🚨 FORBIDDEN**: Do NOT include "Generated with Claude Code" or similar AI attribution in commit messages
129129
- **Commit messages**: Should be written as if by a human developer, focusing on the what and why of changes
130130
- **Professional commits**: Write clear, concise commit messages that describe the actual changes made
131+
- **Pithy messages**: Keep commit messages concise and to the point - avoid lengthy explanations
131132
- **Commit without tests**: `git commit --no-verify` (skips pre-commit hooks including tests)
132133

133134
### Package Management
@@ -427,6 +428,7 @@ These are patterns and instructions that should be consistently applied across a
427428
3. **Object Mappings**: Use `{ __proto__: null, ...mapping }` for static string-to-string mappings to prevent prototype pollution
428429
4. **Import Separation**: ALWAYS separate type imports (`import type`) from runtime imports
429430
5. **Node.js Imports**: ALWAYS use `node:` prefix for Node.js built-in modules
431+
6. **🚨 TSGO PRESERVATION**: NEVER replace tsgo with tsc - tsgo provides enhanced performance and should be maintained across all Socket projects
430432

431433
### 🧪 Test Patterns & Cleanup
432434
1. **Remove Duplicate Tests**: Eliminate tests that verify the same functionality across multiple files

0 commit comments

Comments
 (0)