Cursor Auto-Rule Generation: Meta-Rule Architecture for Consistent Agent Compliance Enforcement
A 'meta-rule'—a `.mdc` file that specifies how to create other rules including required frontmatter fields, naming conventions, and organizational structure—creates a self-reinforcing system where new Cursor rules are automatically generated with consistent format rather than manually configured. Agent-select rules (description present, no globs, `alwaysApply: false`) load conditionally when the agent determines context matches the description, keeping context lean while activating relevant constraints precisely when needed for architecture decisions, code changes, or security reviews. The three-step implementation chains: document standards in `PROJECT_SPECIFICATIONS.mdc` → reference the rule-generating agent → generate compliant rule files automatically, eliminating the common failure mode where rules are written but ignored because their frontmatter fails to activate at the right context boundary.
↳ Follow the thread