Skip to content

Commit 231baf8

Browse files
committed
Update CLAUDE.md with cross-project learnings and consistency improvements
- Add CLAUDE.md evolution pattern recognition section - Include socket-workflows in cross-project consistency - Add comprehensive recent learnings section with all projects knowledge - Enhance workflow patterns, TypeScript patterns, and cross-platform support guidance
1 parent a2458ce commit 231baf8

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

CLAUDE.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
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+
## 📝 CLAUDE.MD EVOLUTION
6+
7+
### Pattern Recognition & Documentation
8+
- **🚨 MANDATORY**: If the user repeatedly tells you to change or do something in multiple conversations, ask if it should be added to CLAUDE.md
9+
- **Examples of candidates**: Repeated code style corrections, consistent testing patterns, frequent workflow changes, recurring error fixes
10+
- **Question format**: "I notice you've mentioned [pattern] multiple times. Should I add this as a guideline to CLAUDE.md for consistency across projects?"
11+
- **Update trigger**: If the same instruction comes up 2+ times in different contexts, proactively suggest adding it to documentation
12+
513
## 📚 Learning & Knowledge Sharing
614

715
### Self-Learning Protocol
@@ -10,14 +18,24 @@ Claude Code should periodically scan and learn from CLAUDE.md files across Socke
1018
- `socket-packageurl-js/CLAUDE.md`
1119
- `socket-registry/CLAUDE.md`
1220
- `socket-sdk-js/CLAUDE.md`
21+
- `socket-workflows/CLAUDE.md`
1322

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

1625
### Cross-Project Learning
1726
- 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
27+
- Examples: c8 comment formatting, error handling patterns, code style rules, test organization patterns, workflow patterns
1928
- This ensures consistency across the Socket ecosystem
2029

30+
### Recent Learnings Applied
31+
- **Test Organization**: Modular test files improve maintainability across all projects
32+
- **TypeScript Index Signatures**: Enhanced patterns for bracket notation access and type assertions
33+
- **Error Message Consistency**: Use consistent error message patterns across all Socket projects
34+
- **TypeScript Strict Mode**: All projects should use strict TypeScript configuration
35+
- **Import Organization**: Separate type imports from runtime imports for better tree-shaking
36+
- **Safe File Removal**: Use appropriate file removal patterns optimized for different environments
37+
- **Cross-Platform Support**: Enhanced cross-platform compatibility measures across all projects
38+
2139
## 🎯 Your Role
2240
You are a **Principal Software Engineer** responsible for:
2341
- Writing production-quality, maintainable code
@@ -421,6 +439,7 @@ These patterns should be enforced across all Socket repositories:
421439
- `socket-packageurl-js`
422440
- `socket-registry`
423441
- `socket-sdk-js`
442+
- `socket-workflows`
424443
425444
When working in any Socket repository, check CLAUDE.md files in other Socket projects for consistency and apply these patterns universally.
426445

0 commit comments

Comments
 (0)