modus-angular-border-usage

modus-angular-border-usage is a cursor rule for Cursor from julianoczkowski/create-trimble-app. It costs 0 tokens per session (1,754 once invoked), scanned C, original, MIT.

A set of rules for choosing borders in an Angular and Vite application that uses the Modus Design System, a shared set of interface components and styles.

In plain words
What is it for?
Use it when adding or changing borders in Angular templates so they follow the Modus Design System conventions.
Why use it?
It prevents inconsistent borders by requiring the project's design-system utilities instead of generic Tailwind classes or inline styles.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when adding or changing borders in Angular templates so they follow the Modus Design System conventions.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/julianoczkowski/create-trimble-app/modus-angular-border-usage
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-border-usage

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-angular-border-usage"><img src="https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-angular-border-usage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,754 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00000 $0.01754
Opus 5.5 $0.00000 $0.00702
Sonnet 5.5 $0.00000 $0.00351
Haiku 4.5 $0.00000 $0.00175

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

Security

Grade C, and why

modus-angular-border-usage scanned grade C with 1 finding 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- CORRECT: Design system utilities -->
templates/angular/.cursor/rules/modus-angular-border-usage.mdc · 287 lines

How it starts

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

Border Usage Guidelines - Modus Design System (Angular)

CRITICAL: Use Design System Border Utilities

When working with borders in this Angular + Vite app, always use custom design system border utilities instead of Tailwind color classes or inline styles.

NEVER Do These

1. Tailwind Color Classes in Borders

<!-- WRONG: Tailwind color classes -->
<div class="border border-red-500">Error message</div>
<div class="border-2 border-green-500">Success message</div>
<div class="border border-blue-500">Info message</div>
<div class="border border-yellow-500">Warning message</div>

2. Inline Border Styles

<!-- WRONG: Inline styles -->
<div [style.border]="'1px solid var(--border)'">Content</div>
<div [style.border]="'2px solid var(--modus-wc-color-success)'">Content</div>

3. Generic Tailwind Border Classes

<!-- WRONG: Generic Tailwind classes -->
<div class="border border-gray-300">Content</div>
<div class="border-2 border-slate-400">Content</div>

ALWAYS Do These

1. Use Design System Border Utilities

<!-- CORRECT: Design system utilities -->
<div class="border-default">Default border</div>
<div class="border-success">Success border</div>
<div class="border-warning">Warning border</div>
<div class="border-destructive">Error border</div>
<div class="border-primary">Primary border</div>

2. Use Thick Border Utilities for Emphasis

<!-- CORRECT: Thick borders for emphasis -->
<div class="border-thick">Default thick border</div>
<div class="border-thick-success">Success thick border</div>
<div class="border-thick-warning">Warning thick border</div>
<div class="border-thick-destructive">Error thick border</div>
<div class="border-thick-primary">Primary thick border</div>

3. Use Directional Border Utilities

<!-- CORRECT: Directional borders -->
<div class="border-top-default">Top border only</div>
<div class="border-bottom-default">Bottom border only</div>
<div class="border-left-default">Left border only</div>
<div class="border-right-default">Right border only</div>

Read the full file on GitHub · 287 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 · 287 lines · 0 tokens per session scan C 022199783923

Subscribe to this mod's changes

modus-angular-border-usage is a cursor rule published in the GitHub repository julianoczkowski/create-trimble-app (3 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,754 tokens. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.