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.
npx agentmods add rules/vanessamarely/ai-playbook-reposito/react-componentsgit clone --depth 1 https://github.com/vanessamarely/ai-playbook-repositoWrote 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/vanessamarely/ai-playbook-reposito/react-components)<a href="https://agentmods.dev/rules/vanessamarely/ai-playbook-reposito/react-components"><img src="https://agentmods.dev/badge/rules/vanessamarely/ai-playbook-reposito/react-components.svg" alt="Measured on agentmods" 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 | $0.00000 | $0.01112 |
| Opus 5 | $0.00000 | $0.00556 |
| Sonnet 5 | $0.00000 | $0.00222 |
| Haiku 4.5 | $0.00000 | $0.00111 |
Grade A, and why
react-components 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.
How it starts
The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.
React Components
Create or modify React components using TypeScript with strict accessibility compliance (WCAG 2.2 Level AA), semantic HTML, and type safety. Not for Node.js services, API endpoints, database schemas, or non-React frameworks (Vue, Svelte, Angular).
For a guided end-to-end build (component + tests + summary), use /react-component-builder.
Procedure
- Validate the component name — PascalCase, check for conflicts with existing components in the target directory.
- Define the TypeScript interface for props — required props without
?, optional with?, specific types (avoidany), typed event handlers (e.g.,onClick?: (event: React.MouseEvent) => void). - Choose semantic HTML:
<button>for actions,<a>for navigation,<input>/<select>/<textarea>for form fields,<nav>/<header>/<main>/<footer>for landmarks,<article>/<section>for content structure. Avoid<div>/<span>for interactive elements. - Implement keyboard support for interactive components —
onKeyDownfor Enter/Space, arrow-key navigation for lists/menus, focus trap + restore for modals, ensure Tab reachability:const handleKeyDown = (event: React.KeyboardEvent) => { if (event.key === 'Enter' || event.key === ' ') { event.preventDefault() handleAction() } } - Add ARIA only when semantic HTML is insufficient:
aria-labelfor icon buttons without visible text,aria-labelledbyto reference visible labels,aria-describedbyfor extra context,aria-expandedfor toggles/dropdowns,aria-livefor dynamic updates. - Implement focus management for modals: move focus in on open, trap focus while open, restore focus to the trigger element on close.
const modalRef = useRef<HTMLDivElement>(null) useEffect(() => { if (isOpen && modalRef.current) modalRef.current.focus() }, [isOpen]) - Follow project-specific conventions already present in the codebase.
- Generate the component file: imports, TypeScript interface, component function with typed props, JSX with semantic elements and accessibility attributes, export.
- Validate accessibility: semantic HTML used correctly, keyboard handlers present, ARIA valid and necessary, focus management for modals, contrast meets 4.5:1 (normal text) / 3:1 (large text).
- Suggest testing: unit tests for logic, accessibility tests with
@axe-core/reactorjest-axe, manual keyboard navigation testing. Commands:npm run lint(ifeslint-plugin-jsx-a11yconfigured),npm test -- <ComponentName>.
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.
- 4d ago First seen · 72 lines · 0 tokens per session scan A dd075b187741
react-components is a cursor rule published in the GitHub repository vanessamarely/ai-playbook-reposito (2 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,112 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-08-31.
Other cursor rules, from other repositories
development-conventions
Development conventions, code style, and best practices for the Kaneo project.
general
Wonder Blocks design system conventions, component patterns, and coding standards.
backend
Backend development rules for TT Studio - AI model management backend.
new-component
Workflow for creating new React components.
component-patterns
React Component Patterns.
common-fixes
Utility for VAN QA common validation fixes.