Skip to content

Commit 40a6210

Browse files
committed
docs: update CLAUDE.md with info about latest changes
1 parent 06aa9f0 commit 40a6210

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
@@ -107,4 +107,23 @@ Rules are defined as TypeScript objects and exported from category-specific file
107107
2. Use feature flags to control new functionality rollout across environments
108108
3. Collections allow users to save and share rule combinations with authentication
109109
4. The MCP server enables programmatic access for AI assistants (Cursor, Claude, etc.)
110-
5. Run `npm run generate-rules` after modifying rules to update `preparedRules.json` for MCP server
110+
5. Run `npm run generate-rules` after modifying rules to update `preparedRules.json` for MCP server
111+
112+
## Important Development Instructions
113+
114+
### Key Development Principles
115+
- Do what has been asked; nothing more, nothing less
116+
- NEVER create files unless they're absolutely necessary for achieving your goal
117+
- ALWAYS prefer editing existing files to creating new ones
118+
- NEVER proactively create documentation files (*.md) or README files unless explicitly requested
119+
120+
### Working with Rules
121+
- When adding new rules, they must be added to both `src/data/rules/` TypeScript files AND corresponding translations in `src/i18n/translations.ts`
122+
- Unit tests will fail if translations are missing for new rules
123+
- Always run `npm run migrate-rules` after adding rules to sync them with the database
124+
- Run `npm run generate-rules` after modifying rules to update `preparedRules.json` for the MCP server
125+
126+
### Database vs File-Based Rules
127+
- The system supports both database-stored rules (default) and file-based fallback
128+
- Use `USE_DATABASE_RULES=false` environment variable to force file-based rules during development
129+
- Database rules allow updates without code deployments

0 commit comments

Comments
 (0)