modus-semantic-html-solidjs

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

A SolidJS and Vite rule set that requires div elements for most page content and limits which HTML elements and form controls can be used.

In plain words
What is it for?
Use it when deciding which HTML elements and form controls to use in this specific SolidJS application.
Why use it?
It aims to avoid styling conflicts with Tailwind CSS, though the excerpt does not explain the complete set of allowed patterns.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when deciding which HTML elements and form controls to use in this specific SolidJS application.

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

README.md
[![agentmods](https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-semantic-html-solidjs.svg)](https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-semantic-html-solidjs)
Your own site
<a href="https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-semantic-html-solidjs"><img src="https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-semantic-html-solidjs.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,254 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 91% copy Near-identical to another mod 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.03254
Opus 5 $0.00000 $0.01627
Sonnet 5 $0.00000 $0.00651
Haiku 4.5 $0.00000 $0.00325

Measured 4d ago against content hash 6d333d9a28f3, 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-solidjs 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

This is a copy

91% identical to modus-semantic-html-react — 265 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

templates/solidjs/.cursor/rules/modus-semantic-html-solidjs.mdc · 433 lines

How it starts

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

Semantic HTML Usage in SolidJS + Vite

🚨 CRITICAL: Use Div Elements Only

MANDATORY: This SolidJS + 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 class="text-4xl font-bold">Title</h1>
<h2 class="text-3xl font-semibold">Subtitle</h2>
<h3 class="text-2xl font-medium">Heading</h3>
<p class="text-base">Paragraph text</p>
<section class="mb-8 p-4">Content section</section>
<header class="bg-background">Header content</header>
<footer class="bg-muted">Footer content</footer>
<nav class="flex space-x-4">Navigation</nav>
<main class="flex-1">Main content</main>
<aside class="w-64">Sidebar</aside>
<article class="prose">Article content</article>
<span class="text-sm">Inline text</span>

Never Use Form Elements

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

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

<ol class="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 class="text-4xl font-bold">Title</div>
<div class="text-3xl font-semibold">Subtitle</div>
<div class="text-2xl font-medium">Heading</div>
<div class="text-base">Paragraph text</div>
<div class="mb-8 p-4">Content section</div>
<div class="bg-background">Header content</div>
<div class="bg-muted">Footer content</div>
<div class="flex space-x-4">Navigation</div>
<div class="flex-1">Main content</div>
<div class="w-64">Sidebar</div>
<div class="prose">Article content</div>
<div class="text-sm">Inline text</div>

Read the full file on GitHub · 433 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 · 433 lines · 0 tokens per session scan A 6d333d9a28f3

Subscribe to this mod's changes

modus-semantic-html-solidjs 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,254 tokens. A static security scan graded it A with 0 findings. It is 91% identical to modus-semantic-html-react, differing in 265 lines, and is treated as a copy.