Rules
Cursor rules and AGENTS.md for consistent, accessible codegen.
Cursor rules
components.mdc
Quality checklist — ARIA, keyboard, slots, tokens.
component-folders.mdc
One folder per component when a package ships multiple.
naming-conventions.mdc
X/x prefix and flat @xngui imports.
Rule packs
- general/engineering-principles.mdc — always-on senior mindset
- general/loop.mdc — complete the full request end-to-end
- angular/components.mdc — component quality (libs/components/**)
- angular/angular-standards.mdc — Angular 22 + directives
- angular/component-folders.mdc — multi-component folder layout
- angular/native-control-wrapper.mdc — button family host/inner split
- design-system/ui-library.mdc — package layout and flat imports
- design-system/add-component-workflow.mdc — ship a component end-to-end
- design-system/add-cdk-workflow.mdc — ship a CDK entry end-to-end
- design-system/add-docs-workflow.mdc — foundation docs under /docs
- design-system/add-tools-workflow.mdc — MCP, VS Code, skills, rules
- general/naming-conventions.mdc — X/x prefix and @xngui imports
- AGENTS.md — root agent context for Angular + a11y defaults
- showcase.tools.rules.section.packs.list.13
Adopt in your app
terminalcp -R pathtoxngui.cursorrulesangular pathtoyour-app.cursorrules
cp pathtoxnguiAGENTS.md pathtoyour-appAGENTS.md
Tune globs in each .mdc file so rules apply to your src/ layout. Start with naming-conventions and components.mdc.