Skip to content

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

  1. general/engineering-principles.mdc — always-on senior mindset
  2. general/loop.mdc — complete the full request end-to-end
  3. angular/components.mdc — component quality (libs/components/**)
  4. angular/angular-standards.mdc — Angular 22 + directives
  5. angular/component-folders.mdc — multi-component folder layout
  6. angular/native-control-wrapper.mdc — button family host/inner split
  7. design-system/ui-library.mdc — package layout and flat imports
  8. design-system/add-component-workflow.mdc — ship a component end-to-end
  9. design-system/add-cdk-workflow.mdc — ship a CDK entry end-to-end
  10. design-system/add-docs-workflow.mdc — foundation docs under /docs
  11. design-system/add-tools-workflow.mdc — MCP, VS Code, skills, rules
  12. general/naming-conventions.mdc — X/x prefix and @xngui imports
  13. AGENTS.md — root agent context for Angular + a11y defaults
  14. showcase.tools.rules.section.packs.list.13

Adopt in your app

terminal
cp -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.