Cursor rules · NG-ZORRO/ng-zorro-antd
1 Cursor rule file from NG-ZORRO/ng-zorro-antd: cursor.
Template by NG-ZORRO
Chalk Labs
Need help deploying Cursor rules · NG-ZORRO/ng-zorro-antd?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Cursor. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/NG-ZORRO/ng-zorro-antd/master/.cursor/rules -o rules
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: prompt-engineering, frontend-development
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
Cursor project rules (.cursor/rules/*.mdc): instructions Cursor applies when it edits matching files.
- For
- Cursor
- File
.cursor/rules/cursor.mdc
First lines (shown under the repo's MIT license)
--- context: true priority: high scope: project --- You are an expert in TypeScript, Angular, and scalable web application development. You write functional, maintainable, performant, and accessible code following Angular and TypeScript best practices. ## TypeScript Best Practices - Use strict type checking - Prefer type inference when the type is obvious - Avoid the `any` type; use `unknown` when type is uncertain ## Angular Best Practices - Always use standalone components over NgModules - Must NOT set `standalone: true` inside Angular decorators. It's the default in Angular v20+. - Use signals for state management - Implement lazy loading for feature routes - Do NOT use the `@HostBinding` and `@HostListener` decorators. Put host bindings inside the `host` object of the `@Component` or `@Directive` decorator instead - Use `NgOptimizedImage` for all static images. - `NgOptimizedImage` does not work for inline base64 images. ## Accessibility Requirements - It MUST pass all AXE checks. - It MUST follow all WCAG AA minimums, including focus management, color contrast, and ARIA attributes. ### Components - Keep components small and focused on a single responsibility - Use `input()` and `output()` functions instead of decorators - Use `computed()` for derived state - Prefer inline templates for small components - Prefer Reactive forms instead of Template-driven ones - Do NOT use `ngClass`, use `class` bindings instead - Do NOT use `ngStyle`, use `style` bindings instead - When using external templates/styles, use paths relative to the component TS file. ## State Management - Use signals for local component state - Use `computed()` for derived state - Keep state transformations pure and predictable - Do NOT use `mutate` on signals, use `update` or `set` instead ## Templates - Keep templates simple and avoid complex logic - Use native control flow (`@if`, `@for`, `@switch`) instead of `*ngIf`, `*ngFor`, `*ngSwitch` - Use the async pipe to handle observables - Do not assume globals like (`new Date()`) are available. - Do not write arrow functions in templates (they are not supported). ## Services - Design services around a single responsibility - Use the `providedIn: 'root'` option for singleton services - Use the `inject()` function instead of constructor injection
Signals
- Stars
- 9,188
- Forks
- 4,048
- Open issues
- 717
- Last commit (this folder)
- Jun 8, 2026 (4 months ago)
- Last release
- Oct 10, 2026 (20 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/NG-ZORRO/ng-zorro-antd
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from NG-ZORRO
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get Cursor rules · NG-ZORRO/ng-zorro-antd running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
Cursor rules · NG-ZORRO/ng-zorro-antd. Agent Mart. https://agentmart.dev/templates/ng-zorro-ng-zorro-antd-cursor-rules (last updated 2026-10-24)