sigil-conventions

sigil-conventions is a cursor rule for Cursor from Kevin-Liu-01/Sigil-UI. It costs 546 tokens per session, scanned A, original, MIT.

A set of coding rules for the Sigil user interface, covering CSS variables, components, layout, colors, spacing, accessibility, and motion.

In plain words
What is it for?
Naming CSS variables with the --s- prefix, placing components in the expected folders, using shared design tokens, and requiring keyboard-accessible interaction.
Why use it?
It keeps interface code consistent and makes design decisions reusable across components.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Naming CSS variables with the --s- prefix, placing components in the expected folders, using shared design tokens, and requiring keyboard-accessible interaction.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/kevin-liu-01/sigil-ui/sigil-conventions
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/Kevin-Liu-01/Sigil-UI

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 sigil-conventions

README.md
[![agentmods](https://agentmods.dev/badge/rules/kevin-liu-01/sigil-ui/sigil-conventions/github.svg)](https://agentmods.dev/rules/kevin-liu-01/sigil-ui/sigil-conventions)
Your own site
<a href="https://agentmods.dev/rules/kevin-liu-01/sigil-ui/sigil-conventions"><img src="https://agentmods.dev/badge/rules/kevin-liu-01/sigil-ui/sigil-conventions/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 sigil-conventions

Your own site · 80×15
<a href="https://agentmods.dev/rules/kevin-liu-01/sigil-ui/sigil-conventions"><img src="https://agentmods.dev/badge/rules/kevin-liu-01/sigil-ui/sigil-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 546 This file is loaded in full into every session.
When invoked 546 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.00546 $0.00546
Opus 5 $0.00273 $0.00273
Sonnet 5 $0.00109 $0.00109
Haiku 4.5 $0.00055 $0.00055

Measured 10d ago against content hash 338ce38217d5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

sigil-conventions 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 10d 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.

.cursor/rules/sigil-conventions.mdc · 43 lines

How it starts

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

Sigil UI Development Conventions

Also read sigil-design-system.mdc for the full enforced design rules (color, typography, spacing, motion, etc.).

Token Variable Prefix

All CSS variables use the --s- prefix: var(--s-primary), var(--s-surface), etc.

Component Rules

  • Every component is a "use client" component if it uses hooks or interactivity
  • Every component accepts a className prop for Tailwind overrides
  • Use cn() from utils for class merging (clsx + tailwind-merge)
  • All colors reference CSS variables, never hardcoded hex
  • All spacing uses the token scale (4, 8, 12, 16, 24, 32, 48, 64, 80, 96)
  • Components use var(--s-*) tokens, not Tailwind color classes directly
  • All interactive components must be keyboard-accessible
  • All components include JSDoc comments
  • Shadows use shadow-[var(--s-shadow-*)], never Tailwind shadow-sm etc.
  • Motion uses duration-[var(--s-duration-*)], never hardcoded duration-150
  • Borders use border-[style:var(--s-border-style,solid)] for preset-driven styles

File Structure

  • Layout primitives: packages/components/src/layout/
  • Core UI: packages/components/src/ui/
  • Navigation: packages/components/src/navigation/
  • Overlays: packages/components/src/overlays/
  • Shapes: packages/components/src/shapes/
  • 3D components: packages/components/src/3d/
  • Diagrams: packages/components/src/diagrams/
  • Marketing: packages/components/src/marketing/
  • Patterns: packages/components/src/patterns/
  • Animation: packages/components/src/animation/

Naming

  • Component files: PascalCase (Button.tsx, Card3D.tsx)
  • Utility files: camelCase (utils.ts, animate.ts)
  • Export components as named exports, not default
  • Sigil layout primitives use clean names (Stack, Grid, Section)
  • The page-level frame is SigilPageGrid (5-column: margin | gutter | content | gutter | margin)

Presets

Each preset provides a complete SigilTokens object. Presets live in packages/presets/src/. 46 presets total: 44 named + default + _template. Seven categories: structural, minimal, dark, colorful, editorial, industrial, edgeless.

Read the full file on GitHub · 43 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. 10d ago First seen · 43 lines · 546 tokens per session scan A 338ce38217d5

Subscribe to this mod's changes

sigil-conventions is a cursor rule published in the GitHub repository Kevin-Liu-01/Sigil-UI (9 stars, last pushed 1mo ago), licensed MIT. It adds 546 tokens to every session, about $0.0027 per session on Opus 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.