File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -107,4 +107,23 @@ Rules are defined as TypeScript objects and exported from category-specific file
1071072 . Use feature flags to control new functionality rollout across environments
1081083 . Collections allow users to save and share rule combinations with authentication
1091094 . 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
You can’t perform that action at this time.
0 commit comments