Skip to content

Commit 2ecb1b5

Browse files
committed
docs(claude): add commit style and scripts conventions
- Reference Conventional Commits style from socket-registry - Reference Package.json Scripts Convention - Add USER CONTEXT section for git-based user identification
1 parent b18507d commit 2ecb1b5

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

CLAUDE.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,26 @@
22

33
🚨 **MANDATORY**: Act as principal-level engineer with deep expertise in JavaScript, Node.js, and package URL parsing.
44

5+
## 👤 USER CONTEXT
6+
7+
- **Identify users by git credentials**: Extract name from git commit author, GitHub account, or context
8+
- 🚨 **When identity is verified**: ALWAYS use their actual name - NEVER use "the user" or "user"
9+
- **Direct communication**: Use "you/your" when speaking directly to the verified user
10+
- **Discussing their work**: Use their actual name when referencing their commits/contributions
11+
- **Example**: If git shows "John-David Dalton <[email protected]>", refer to them as "John-David"
12+
- **Other contributors**: Use their actual names from commit history/context
13+
514
## 📚 SHARED STANDARDS
615

716
**See canonical reference:** `../socket-registry/CLAUDE.md`
817

918
For all shared Socket standards (git workflow, testing, code style, imports, sorting, error handling, cross-platform, CI, etc.), refer to socket-registry/CLAUDE.md.
1019

11-
**Git Workflow Reminder**: When user says "commit changes" → create actual commits, use small atomic commits, follow all CLAUDE.md rules (NO AI attribution).
20+
**Git Workflow Reminder**: When user says "commit changes" → create actual commits, use small atomic commits, follow all CLAUDE.md rules:
21+
- Use [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) style: `<type>(<scope>): <description>`
22+
- NO AI attribution in commit messages
23+
24+
**Package.json Scripts**: Prefer `pnpm run foo --<flag>` over multiple `foo:bar` scripts (see socket-registry/CLAUDE.md)
1225

1326
---
1427

0 commit comments

Comments
 (0)