modus-angular-development-workflow

A development and testing checklist for Angular and Vite projects using Modus, including style, color, icon, border, opacity, and TypeScript checks.

In plain words
What is it for?
Use it before and during feature work, and run the listed checks before considering a component or change ready.
Why use it?
It catches design-system violations and type errors during development instead of leaving them for later review.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/julianoczkowski/create-trimble-app/modus-angular-development-workflow
Clone the repo
git clone --depth 1 https://github.com/julianoczkowski/create-trimble-app

Made for: Cursor.

Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,032 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
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 $0.00000 $0.01032
Opus 5 $0.00000 $0.00516
Sonnet 5 $0.00000 $0.00206
Haiku 4.5 $0.00000 $0.00103

Measured 2d ago against content hash df456bbc8031, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

modus-angular-development-workflow 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 2d 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 border utilities -->
templates/angular/.cursor/rules/modus-angular-development-workflow.mdc · 146 lines

How it starts

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

Development Workflow & Quality Assurance for Angular + Vite

MANDATORY: Always Run Linting Commands During Development

CRITICAL: Before making any code changes, always run these linting commands to ensure design system compliance:

# Check for inline styles that should use Tailwind classes
npm run lint:styles

# Check for non-Modus colors (hex, RGB, Tailwind colors)
npm run lint:colors

# Check for non-Modus icons (Font Awesome, Material Icons, etc.)
npm run lint:icons

# Check for border violations (Tailwind color classes in borders)
npm run lint:borders

# Check for opacity violations (using /80 syntax instead of custom utilities)
npm run lint:opacity

# Validate Modus icon names
npm run lint:icon-names

# Run TypeScript type checking
npm run type-check

# Run all linting checks at once
npm run lint:all

Pre-Development Checklist

Before starting any new feature or component:

  1. Run Design System Lints:

    npm run lint:styles    # Check inline styles
    npm run lint:colors    # Check color usage
    npm run lint:icons     # Check icon usage
    npm run lint:borders   # Check border violations
    npm run lint:opacity   # Check opacity utilities
    npm run type-check     # TypeScript validation
    
  2. Verify Theme Compatibility:

    • Test with all 6 Modus themes (classic/modern, light/dark, connect themes)
    • Ensure components work in both light and dark modes
  3. Check Component Architecture:

    • Use single configurable components (not multiple specific ones)
    • Follow Modus Web Components wrapper patterns
    • Use signals for state management

Common Violations to Watch For

Inline Styles (lint:styles):

// VIOLATION: Inline styles
template: `<div style="background-color: var(--modus-wc-color-base-page)">`;
template: `<div [style.margin-right.px]="8">`;

// CORRECT: Tailwind classes
template: `<div class="bg-background mr-2 text-foreground">`;

Color Usage (lint:colors):

// VIOLATION: Non-Modus colors
template: `<div style="background-color: #ffffff">`;
template: `<div class="bg-blue-500 text-red-400">`;

// CORRECT: Modus design system colors
template: `<div class="bg-background text-foreground">`;

Read the full file on GitHub · 146 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. 2d ago First seen · 146 lines · 0 tokens per session scan C df456bbc8031

Subscribe to this mod's changes

modus-angular-development-workflow is a cursor rule published in the GitHub repository julianoczkowski/create-trimble-app (3 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,032 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.