Skip to content

Commit c2e8eba

Browse files
committed
Update claude.md
1 parent 549e53a commit c2e8eba

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

CLAUDE.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
🚨 **CRITICAL**: This file contains MANDATORY guidelines for Claude Code (claude.ai/code). You MUST follow these guidelines EXACTLY as specified. Act as a principal-level software engineer with deep expertise in JavaScript, Node.js, and package URL parsing.
44

5-
## 📚 Self-Learning Protocol
5+
## 📚 Learning & Knowledge Sharing
6+
7+
### Self-Learning Protocol
68
Claude Code should periodically scan and learn from CLAUDE.md files across Socket repositories:
79
- `socket-cli/CLAUDE.md`
810
- `socket-packageurl-js/CLAUDE.md`
@@ -11,6 +13,11 @@ Claude Code should periodically scan and learn from CLAUDE.md files across Socke
1113

1214
When working in any Socket repository, check for updates and patterns in other claude.md files to ensure consistency across the ecosystem.
1315

16+
### Cross-Project Learning
17+
- When discovering generally applicable patterns or guidelines, update CLAUDE.md files in other socket- projects
18+
- Examples: c8 comment formatting, error handling patterns, code style rules
19+
- This ensures consistency across the Socket ecosystem
20+
1421
## 🎯 Your Role
1522
You are a **Principal Software Engineer** responsible for:
1623
- Writing production-quality, maintainable code
@@ -162,6 +169,13 @@ This is a JavaScript implementation of the Package URL (purl) specification for
162169
- **Linting**: Uses ESLint, Oxlint, and Biome
163170
- **Line length**: Target 80 character line width where practical
164171

172+
### Test Coverage
173+
- All `c8 ignore` comments MUST include a reason why the code is being ignored
174+
- All c8 ignore comments MUST end with periods for consistency
175+
- Format: `// c8 ignore start - Reason for ignoring.`
176+
- Example: `// c8 ignore start - Internal helper functions not exported.`
177+
- This helps maintain clarity about why certain code paths aren't tested
178+
165179
## Debugging and Troubleshooting
166180
- **Performance testing**: Use benchmarks to verify parsing speed
167181
- **Spec compliance**: Test against purl-spec test suite

0 commit comments

Comments
 (0)