Auto-Detect from package.json
Paste dependencies JSON to auto-select matching framework rules in 0.1s:
1. Frontend Framework
Pick one or none2. Backend & Architecture
Pick one3. UI, ORM & Database Modules
Multi-select4. Code Quality & Guardrails
Anti-Hallucination & EfficiencySimulate which rules Cursor AI injects when editing a file in your project:
.cursor/rules/ folder straight into your project root. Cursor will automatically match relevant rules to files using glob patterns without polluting unrelated contexts.
Production Guardrails & Context Dilution Preventions
Never exceed 500 lines or 2,500 tokens in a single rule file. Overloaded rules dilute LLM instruction adherence by up to 64%; always split into modular .mdc files.
Avoid catch-all globs like **/* on domain-specific rules. Specify tight path scopes and explicit YAML descriptions so the model injects rules conditionally.
Forbid unconditional build or lint commands before conversational answers. Enforce clear terminal exit codes and stop-conditions.