modus-angular-20

modus-angular-20 is a cursor rule for Cursor from julianoczkowski/create-trimble-app. It costs 967 tokens per session, scanned A, original, MIT.

A set of Angular 20 and TypeScript coding rules for building maintainable applications with standalone components and Signals, Angular’s way to track changing state.

In plain words
What is it for?
Designing Angular components and routes, managing changing data, checking TypeScript types, optimising images, and structuring new features.
Why use it?
It helps keep Angular code consistent and avoids older or less preferred patterns. It also sets rules for type safety, loading speed, accessibility, and scaling the application.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Designing Angular components and routes, managing changing data, checking TypeScript types, optimising images, and structuring new features.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/julianoczkowski/create-trimble-app/modus-angular-20
Install

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.

Clone the repo
git clone --depth 1 https://github.com/julianoczkowski/create-trimble-app

Made for: Cursor.

Wrote 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.

agentmods badge for modus-angular-20

README.md
[![agentmods](https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-angular-20/github.svg)](https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-angular-20)
Your own site
<a href="https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-angular-20"><img src="https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-angular-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.

agentmods 80×15 button for modus-angular-20

Your own site · 80×15
<a href="https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-angular-20"><img src="https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-angular-20.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 967 This file is loaded in full into every session.
When invoked 967 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00967 $0.00967
Opus 5.5 $0.00387 $0.00387
Sonnet 5.5 $0.00193 $0.00193
Haiku 4.5 $0.00097 $0.00097

Measured 1mo ago against content hash 301ba1d65339, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

modus-angular-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.

templates/angular/.cursor/rules/modus-angular-20.mdc · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Angular 20 Best Practices

This project adheres to modern Angular best practices, emphasizing maintainability, performance, accessibility, and scalability.

TypeScript Best Practices

  • Strict Type Checking: Always enable and adhere to strict type checking.
  • Prefer Type Inference: Allow TypeScript to infer types when they are obvious from the context.
  • Avoid any: Do not use the any type unless absolutely necessary. Prefer unknown when a type is uncertain.

Angular Best Practices

  • Standalone Components: Always use standalone components, directives, and pipes. Avoid using NgModules for new features.
  • Implicit Standalone: Do not explicitly set standalone: true inside the @Component, @Directive and @Pipe decorators, as it is implied by default.
  • Signals for State Management: Utilize Angular Signals for reactive state management within components and services.
  • Lazy Loading: Implement lazy loading for feature routes to improve initial load times.
  • NgOptimizedImage: Use NgOptimizedImage for all static images to automatically optimize image loading and performance.
  • Host bindings: Do NOT use the @HostBinding and @HostListener decorators. Put host bindings inside the host object of the @Component or @Directive decorator instead.

Components

  • Single Responsibility: Keep components small, focused, and responsible for a single piece of functionality.
  • input() and output() Functions: Prefer input() and output() functions over the @Input() and @Output() decorators:
    import { input, output } from '@angular/core';
    
    userId = input<string>('');
    userSelected = output<string>();
    
  • computed() for Derived State: Use the computed() function from @angular/core for derived state based on signals.
  • ChangeDetectionStrategy.OnPush: Always set changeDetection: ChangeDetectionStrategy.OnPush in the @Component decorator.
  • Inline Templates: Prefer inline templates (template: ...) for small components. For larger templates, use external HTML files.
  • Reactive Forms: Prefer Reactive forms over Template-driven forms for complex forms.
  • No ngClass / NgClass: Do not use the ngClass directive. Instead, use native class bindings:
    <section [class.active]="isActive"></section>
    <section [class]="{'active': isActive}"></section>
    
  • No ngStyle / NgStyle: Do not use the ngStyle directive. Instead, use native style bindings:
    <section [style.font-size.px]="fontSize"></section>
    

Read the full file on GitHub · 83 lines

Changes

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.

  1. 1mo ago First seen · 83 lines · 967 tokens per session scan A 301ba1d65339

Subscribe to this mod's changes

modus-angular-20 is a cursor rule published in the GitHub repository julianoczkowski/create-trimble-app (3 stars, last pushed 3mo ago), licensed MIT. It adds 967 tokens to every session, about $0.0039 per session on Opus 5.5. 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-31.