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.
git clone --depth 1 https://github.com/Kevin-Liu-01/Sigil-UIWrote 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.
[](https://agentmods.dev/rules/kevin-liu-01/sigil-ui/react-conventions)<a href="https://agentmods.dev/rules/kevin-liu-01/sigil-ui/react-conventions"><img src="https://agentmods.dev/badge/rules/kevin-liu-01/sigil-ui/react-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.
<a href="https://agentmods.dev/rules/kevin-liu-01/sigil-ui/react-conventions"><img src="https://agentmods.dev/badge/rules/kevin-liu-01/sigil-ui/react-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01040 | $0.01040 |
| Opus 5.5 | $0.00416 | $0.00416 |
| Sonnet 5.5 | $0.00208 | $0.00208 |
| Haiku 4.5 | $0.00104 | $0.00104 |
Grade A, and why
react-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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.
React Conventions
Imported from Kevin's wiki (
wiki/style/react.md). Cross-reference:sigil-conventions.mdc(component rules),sigil-design-system.mdc(token consumption),css-ui-enforcement.mdc(styling stack).
Styling
All UI via className={cn(...)} and Tailwind utilities. No CSS modules or co-located .css for normal components. Raw CSS belongs almost only in globals.css. Do not combine style={{ ... }} with Tailwind on the same node. See css-ui-enforcement.mdc.
Rules of Hooks
Hooks are identified by position in an array. Call order must be identical on every render.
- Hooks at the top level of a component or custom hook only.
- Before any conditional logic.
- No hooks inside conditions, loops, event handlers, callbacks passed to
useMemo/useReducer/useEffect, or after early returns. - Most common violation: early return before hooks. Move hooks above the conditional.
Custom Hooks
Name the hook after what it returns, not what it does internally. useOrgData > useFetchAndCacheOrgDataWithLoading.
Exhaustive Dependencies
useEffect, useMemo, useCallback dependency arrays must include every referenced value. Missing dependencies cause stale closures. If adding a dependency causes an infinite loop, restructure (extract to ref, memoize the dependency, move to event handler) — do not suppress the warning.
setState in Effects
The React compiler flags synchronous setState inside effect bodies. Canonical alternative: useSyncExternalStore. Migrate incrementally.
Linting Rules (Ultracite/oxlint)
| Rule | Severity | Notes |
|---|---|---|
react-hooks/rules-of-hooks |
error | Non-negotiable, never disable |
react-hooks/exhaustive-deps |
warn | Fix stale closures, do not suppress |
react/self-closing-comp |
error | <Foo /> not <Foo></Foo> |
react/jsx-curly-brace-presence |
error | No {"text"} when text suffices |
Architecture-Policy Rules
Custom ESLint rules for repo-specific patterns that oxlint cannot express:
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.
- 3mo ago First seen · 77 lines · 1,040 tokens per session scan A 944039413135
react-conventions is a cursor rule published in the GitHub repository Kevin-Liu-01/Sigil-UI (10 stars, last pushed 1mo ago), licensed MIT. It adds 1,040 tokens to every session, about $0.0042 per session on Opus 5.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.
react-conventions compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| react-conventionsKevin-Liu-01/Sigil-UI | Cursor rule | 10 | 1mo ago | MIT | A | 1,040 | Cursor |
| cursorrulesbitjaru/styleseed | Cursor rule | 1.1k | 2d ago | MIT | A | 921 | Cursor |
| frontendgracefullight/krds | Cursor rule | 47 | 2d ago | none | A | 0 | Cursor |
| react-chakra-ui---folder-structureholtwood/awesome-cursorrules-zh | Cursor rule | 244 | 1mo ago | MIT | A | 0 | Cursor |
| ui-design-systemkrivoox/agent-stack-template | Cursor rule | 30 | 2mo ago | MIT | A | 0 | Cursor |
| hatch3r-component-conventionshatch3r/hatch3r | Cursor rule | 26 | 2mo ago | MIT | A | 0 | Cursor |
| nextjs-react-tailwind-cursorrules-prompt-fileXD3an/awesome-ai-coding-all-in-one | Cursor rule | 14 | yesterday | none | A | 891 | Cursor |