Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/Angular-Material-Dev/angular-material-ai-rulesWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/angular-material-dev/angular-material-ai-rules/angular-material-20)<a href="https://agentmods.dev/rules/angular-material-dev/angular-material-ai-rules/angular-material-20"><img src="https://agentmods.dev/badge/rules/angular-material-dev/angular-material-ai-rules/angular-material-20/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/angular-material-dev/angular-material-ai-rules/angular-material-20"><img src="https://agentmods.dev/badge/rules/angular-material-dev/angular-material-ai-rules/angular-material-20.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.02383 |
| Opus 5.5 | $0.00000 | $0.00953 |
| Sonnet 5.5 | $0.00000 | $0.00477 |
| Haiku 4.5 | $0.00000 | $0.00238 |
Grade A, and why
angular-material-20 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 353 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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.thememixin. 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:
import { MatButton } from '@angular/material/button';
import { MatIcon } from '@angular/material/icon';
import { MatCard, MatCardContent } from '@angular/material/card';
Bad:
import { MatButtonModule } from '@angular/material/button';
import { MatIconModule } from '@angular/material/icon';
import { MatCardModule } from '@angular/material/card';
Theming Configuration
Always use mat.theme mixin to configure the theme. Avoid using mat.define-theme, mat.define-light-theme, mat.define-dark-theme functions and mat.core mixin.
Basic Theme Configuration
The mat.theme mixin takes a map with the following properties:
color: Single color palette or a map of color palettestypography: Single typography or a map of typography propertiesdensity: Integer from 0 to -5 (0 = default spacing, -5 = most dense)
Simple Theme Example
@use '@angular/material' as mat;
html {
color-scheme: light dark;
@include mat.theme(
(
color: mat.$violet-palette,
typography: Roboto,
density: 0,
)
);
}
Advanced Theme with Multiple Color Palettes
@use '@angular/material' as mat;
html {
color-scheme: light dark;
@include mat.theme(
(
color: (
primary: mat.$violet-palette,
tertiary: mat.$orange-palette,
),
typography: (
plain-family: Roboto,
brand-family: Open Sans,
bold-weight: 900,
medium-weight: 500,
regular-weight: 300,
),
density: 0,
)
);
}
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 353 lines · 2,383 tokens per session scan A dcb897a9c4ab
angular-material-20 is a cursor rule published in the GitHub repository Angular-Material-Dev/angular-material-ai-rules (13 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,383 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other cursor rules, from other repositories
shadcn-ui
Cursor rule "shadcn-ui" from nedcodes-ok/cursorrules-collection, covering shadcn/ui rules, component usage, styling, forms and dialog/sheet/modal patterns.
align-grid
Build editorial/magazine/report webpages on a GENUINE Müller-Brockmann modular grid (International Typographic Style) — not a decorative one. Encodes the discipline (columns + modules + baseline, grotesque type, flush-left, restrained black/white/red palette) AND the hard-won front-end engineering to make the grid…
external-scale
Source: docs/agents/external-scale.md Regenerate: npm run agents:sync -w packages/openbridge-webcomponents -->.
building-blocks
Source: docs/agents/building-blocks.md Regenerate: npm run agents:sync -w packages/openbridge-webcomponents -->.
figma-refresh
Source: docs/agents/figma-refresh.md Regenerate: npm run agents:sync -w packages/openbridge-webcomponents -->.
components
Component patterns and UI conventions.