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/janhesters/react-router-saas-templateWrote 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/janhesters/react-router-saas-template/jsx-and-tsx)<a href="https://agentmods.dev/rules/janhesters/react-router-saas-template/jsx-and-tsx"><img src="https://agentmods.dev/badge/rules/janhesters/react-router-saas-template/jsx-and-tsx/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/janhesters/react-router-saas-template/jsx-and-tsx"><img src="https://agentmods.dev/badge/rules/janhesters/react-router-saas-template/jsx-and-tsx.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.00000 | $0.00790 |
| Opus 5 | $0.00000 | $0.00395 |
| Sonnet 5 | $0.00000 | $0.00158 |
| Haiku 4.5 | $0.00000 | $0.00079 |
Grade A, and why
jsx-and-tsx 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 9d 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 — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.
React guide
Act as a top-tier software engineer with extensive React ecosystem knowledge to build high-quality fullstack web applications.
Before Writing Code
- Observe the project's relevant existing code.
- Conform to existing code style, patterns, and conventions unless directed otherwise. Note: these instructions count as "directed otherwise" unless the user explicitly overrides them.
Principles
- Display/container component pattern
- Split your component into display components, which are pure functions that map props to JSX, and container components, which are (optional) stateful components that wrap one display component.
- Then compose them together in the parent or page/route component.
Constraints { Be concise. You're using React Router V7 (the successor to Remix). Use ShadCN/ui for components. If a component is missing, install it. Modularize by feature; one concern per file or component; prefer named exports. This project uses TailwindCSS V4, so you can use things like container queries and child selectors. }
NamingConstraints {
Use clear, descriptive, consistent naming.
Components should be postfixed with Component.
Props should be the component's name, postifxed with ComponentProps.
}
TypeConstraints { Use proper React TypeScript types: MouseEventHandler, ChangeEventHandler, ReactNode, React.Ref, ComponentProps<'element'>, etc. Never use generic () => void or (event: any) => void. When extending HTML elements or existing components, use ComponentProps to inherit their props: ComponentProps<'input'>, ComponentProps<'button'>, ComponentProps. This project uses Prisma. If a prop comes from a database entity, use the entities type for it, e.g.: - type UserMenuProps = Pick<UserAccount, 'id' | 'name' | 'email'> & { onLogout: MouseEventHandler; organizationName: Organization['name']; } When using server/database return types: Awaited<ReturnType>, wrap with NonNullable<> if guaranteed to exist. }
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.
- 9d ago First seen · 76 lines · 790 tokens per session scan A 1ab0f3297fa1
jsx-and-tsx is a cursor rule published in the GitHub repository janhesters/react-router-saas-template (48 stars, last pushed 13d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 790 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-30.
Other cursor rules, from other repositories
frontend-development
Most coagents examples have a ui/ folder with Next.js applications.
forms
USE WHEN: Constructing forms, validating inputs, and managing form state with Zod schemas.
storybook-stories
Guides the creation and modification of Storybook files specifically within the 'packages/docs' package. It covers conventions, best practices, and helps answer questions about existing story implementations within 'packages/core'.
new-component-implementation
Provides a systematic, research-driven workflow for implementing new Vibe components - for the @vibe/core library (located in "packages/core") - from initial research through final validation. Emphasizes studying existing patterns, following established conventions, and systematic progression through types, component…
base-components
Comprehensive guide for base components in @vibe/core library (BaseInput, BaseList, BaseListItem, InfoText, FieldLabel). Documents their usage patterns, accessibility requirements, form integration patterns, and what consumers need to provide for optimal accessibility and UX. These components serve as foundational…
component-internal-structure
This rule defines conventions for the internal structure of React components within the @vibe/core library (located in "packages/core" directory). Adhering to these conventions ensures consistency, readability, and maintainability across the codebase.