angular-material-20 Cursor ruleA

angular-material-20 from angular-material-dev/angular-material-ai-rules is a Cursor rule: instructions the Cursor agent follows in that repo.

Install it, pinned
mdr add angular-material-dev/angular-material-ai-rules/.cursor/rules/angular-material-20.mdc@git:20260511.2ca2875

Pins git:20260511.2ca2875 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
Cursor rule
Repository
angular-material-dev/angular-material-ai-rules
Path
.cursor/rules/angular-material-20.mdc
Versions recorded
2
Latest version
git:20260511.2ca2875, committed May 11, 2026
First version recorded
Aug 13, 2025
Size
9,714 bytes
Repository stars
13
License
MIT

This rule provides comprehensive best practices and coding standards for Angular development with Angular Material, focusing on Material 3 (a.k.a. M3) design, theme configuration and various API usages.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Angular Material 20 Best Practices

This project adheres to modern Angular Material best practices, emphasizing maintainability, performance, accessibility, scalability and correct usage of APIs.

## Core Principles

### SCSS vs CSS

- **Prefer SCSS** for styling, especially when theme customization is required. Angular Material has APIs written in SCSS.
- **Use CSS only** when you need to use theme styles generated by `mat.theme` mixin. Modifications or customizations for Angular Material theming are not possible with CSS.

### Component & Directive Imports

Always import components and directives from `@angular/material` package. Avoid importing modules.

**Good:**

```ts
import { MatButton } from '@angular/material/button';
import { MatIcon } from '@angular/material/icon';
import { MatCard, MatCardContent } from '@angular/material/card';
```

**Bad:**

```ts
import { MatButtonModule } from '@angular/material/button';
import { MatIconModule } from '@angular/material/icon';
import { MatCardModule } from '@angular/material/card';
```

## Theming Configuration
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add angular-material-dev/angular-material-ai-rules/.cursor/rules/angular-material-20.mdc@sha256:dcb897a9c4abe910

The line at the top of this page pins the label git:20260511.2ca2875, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_rapqbgitlqmdpbmk.svg)](https://markdownregistry.com/a/art_rapqbgitlqmdpbmk)

1 badge image fetches in 30 days. What the badge shows.

Ask from your agent
claude mcp add --transport http markdownregistry https://markdownregistry.com/mcp/registry

Then ask it: what changed in angular-material-dev/angular-material-ai-rules/.cursor/rules/angular-material-20.mdc since the version I have? It reads every saved version here, no key and no account. Any agent that speaks MCP can add it.

Got a copy of angular-material-20.mdc from somewhere else? Ask it: where did my angular-material-20.mdc come from, and what was changed? It names the public original, the version yours is closest to and every changed line. The text is not kept.

Versions

The registry has recorded 2 versions of this file, between Aug 13, 2025 and May 11, 2026, about one every 271 days.

Watch this file (sign in, one email per new version)

versioncommittedcommitsizeaudit
git:20260511.2ca2875 latest2026-05-11 2ca2875 9,714 BA view · diff
git:20250813.8890cfb2025-08-13 8890cfb 8,463 BA view
Check a whole project

From the root of your project, one line hashes each installed skill's SKILL.md, your AGENTS.md and your CLAUDE.md, and asks the registry once. Only the fingerprints and paths are sent.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --data-binary @- https://markdownregistry.com/api/v1/check-copies

In CI, add --fail-with-body: the answer is 409 when any file is behind, so the step fails and still prints which files.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --fail-with-body --data-binary @- https://markdownregistry.com/api/v1/check-copies

No sha256sum on your machine? shasum -a 256 prints the same lines.

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (9714 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

angular-material-dev/angular-material-ai-rules · 13 stars · license MIT · pushed 2026-05-11 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_rapqbgitlqmdpbmk
GET https://markdownregistry.com/api/v1/resolve?ref=angular-material-dev/angular-material-ai-rules/.cursor/rules/angular-material-20.mdc
GET https://markdownregistry.com/api/v1/blob/dcb897a9c4abe9107e8f4e271206a294c2281e769a00d3c6c76bbd322f0d46ce

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: Cursor rules vs AGENTS.md · which agent file does what.

More from angular-material-dev/angular-material-ai-rules

copilot-instructions.md
angular-material-dev/angular-material-ai-rules · .github/copilot-instructions.md
git:20250813.2132a38 · audit A · 13 stars

Every file in angular-material-dev/angular-material-ai-rules

Browse by kind, by grade A, or by owner.