modus-semantic-html-react

modus-semantic-html-react is a cursor rule for Cursor from julianoczkowski/create-trimble-app. It costs 0 tokens per session (3,344 once invoked), scanned A, original, MIT.

Detailed React and Vite rules requiring div elements for content instead of semantic elements such as h1, p, section, nav, and form controls.

In plain words
What is it for?
Use them when building page structure and styling content with Tailwind classes under this project's Modus conventions.
Why use it?
They are intended to prevent conflicts with Tailwind's default browser styles, but the approach can require deliberate accessibility handling.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use them when building page structure and styling content with Tailwind classes under this project's Modus conventions.

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

README.md
[![agentmods](https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-semantic-html-react.svg)](https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-semantic-html-react)
Your own site
<a href="https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-semantic-html-react"><img src="https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-semantic-html-react.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 3,344 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.03344
Opus 5 $0.00000 $0.01672
Sonnet 5 $0.00000 $0.00669
Haiku 4.5 $0.00000 $0.00334

Measured 4d ago against content hash 39e19b925e1f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

modus-semantic-html-react 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 4d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

templates/react/.cursor/rules/modus-semantic-html-react.mdc · 428 lines

How it starts

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

Semantic HTML Usage in React + Vite

🚨 CRITICAL: Use Div Elements Only

MANDATORY: This React + Vite application uses div elements exclusively for all content (except <i> for icons) to avoid conflicts with Tailwind CSS default browser styles.

Rule: Use div elements with Tailwind classes instead of semantic HTML elements.

FORBIDDEN: Semantic HTML Elements

Never Use Semantic HTML Elements

// ❌ WRONG: Semantic HTML elements
<h1 className="text-4xl font-bold">Title</h1>
<h2 className="text-3xl font-semibold">Subtitle</h2>
<h3 className="text-2xl font-medium">Heading</h3>
<p className="text-base">Paragraph text</p>
<section className="mb-8 p-4">Content section</section>
<header className="bg-background">Header content</header>
<footer className="bg-muted">Footer content</footer>
<nav className="flex space-x-4">Navigation</nav>
<main className="flex-1">Main content</main>
<aside className="w-64">Sidebar</aside>
<article className="prose">Article content</article>
<span className="text-sm">Inline text</span>

Never Use Form Elements

// ❌ WRONG: Form elements
<form className="space-y-4">
  <label className="block">Label</label>
  <input type="text" className="w-full" />
  <button type="submit">Submit</button>
</form>

// ❌ WRONG: List elements
<ul className="space-y-2">
  <li>List item 1</li>
  <li>List item 2</li>
</ul>

<ol className="space-y-2">
  <li>Ordered item 1</li>
  <li>Ordered item 2</li>
</ol>

CORRECT: Div Elements with Tailwind

Use Div Elements for All Content

// ✅ CORRECT: Div elements with Tailwind classes
<div className="text-4xl font-bold">Title</div>
<div className="text-3xl font-semibold">Subtitle</div>
<div className="text-2xl font-medium">Heading</div>
<div className="text-base">Paragraph text</div>
<div className="mb-8 p-4">Content section</div>
<div className="bg-background">Header content</div>
<div className="bg-muted">Footer content</div>
<div className="flex space-x-4">Navigation</div>
<div className="flex-1">Main content</div>
<div className="w-64">Sidebar</div>
<div className="prose">Article content</div>
<div className="text-sm">Inline text</div>

Read the full file on GitHub · 428 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. 4d ago First seen · 428 lines · 0 tokens per session scan A 39e19b925e1f

Subscribe to this mod's changes

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