via “ui-library-and-design-system-enforcement”
ai-rules is a governance framework designed to solve "Architectural Decay" in AI-driven development. It forces AI Agents (Cursor, Windsurf, Copilot) to respect your project's boundaries, UI libraries, and design patterns.
Unique: Specifically targets UI library enforcement for AI agents by maintaining a component registry and validating generated code against allowed components and their APIs. Unlike generic linting, it understands design system semantics and can enforce composition patterns (e.g., 'Button must be wrapped in ButtonGroup, not standalone').
vs others: More targeted than generic ESLint rules for UI enforcement; directly addresses the problem of AI agents ignoring design systems and creating inconsistent components, which standard linters don't prevent.