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/adonai-labs/agent-runwayWrote 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/adonai-labs/agent-runway/react)<a href="https://agentmods.dev/rules/adonai-labs/agent-runway/react"><img src="https://agentmods.dev/badge/rules/adonai-labs/agent-runway/react/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/adonai-labs/agent-runway/react"><img src="https://agentmods.dev/badge/rules/adonai-labs/agent-runway/react.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.01530 |
| Opus 5.5 | $0.00000 | $0.00612 |
| Sonnet 5.5 | $0.00000 | $0.00306 |
| Haiku 4.5 | $0.00000 | $0.00153 |
Grade A, and why
react 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 1mo 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 — 179 lines — stays where its author put it; the contents beside it link to each section on GitHub.
React Best Practices
Directives for React development. Use Australian English spelling (organisation, behaviour, etc.).
Directory Structure
src/
├── components/
│ ├── ui/ # Reusable UI (Button/, Input/, Modal/)
│ ├── features/ # Feature-specific (auth/, dashboard/)
│ └── layouts/ # MainLayout, Sidebar
├── hooks/
├── contexts/
├── services/api/
├── utils/
├── types/
├── pages/
├── App.tsx
└── main.tsx
- Co-locate component, styles, and tests in the same directory.
- Each module has a single responsibility.
- Avoid circular dependencies.
File Naming Conventions
- Components: PascalCase (
MyComponent.tsx) - Hooks: camelCase prefixed with
use(useAuth.ts) - Contexts: PascalCase +
Context(ThemeContext.tsx) - Services/Utils: camelCase (
apiClient.ts) - CSS Modules:
.module.cssor.module.scss
Component Patterns
- Use functional components only; no class components.
- Define TypeScript props interfaces; extend
BaseComponentPropsfor shared props (className,children). - Prefer composition over inheritance.
- Use compound components (e.g.
Tabs+Tab) for related UI. - Prefer custom hooks over HOCs and render props.
- Use barrel exports (
index.ts) for component directories. - Always provide a unique, stable
keywhen rendering lists.
Custom Hooks Patterns
- Name hooks with
useprefix; return a tuple or object. - Return
[value, setter] as constfor useState-like APIs. - Include cleanup in
useEffect(event listeners, timers, subscriptions). - Use
useCallbackfor returned callbacks to avoid unnecessary re-renders. - Document dependencies correctly in
useEffectarrays.
Modern React 18+
- useTransition: Mark non-urgent updates (e.g. search results) so the UI stays responsive.
- useDeferredValue: Defer expensive children when input changes rapidly.
- Server Components (React 18.3+): Use for data fetching and static content; mark client components with
'use client'. - Automatic batching: State updates are batched; no need for
unstable_batchedUpdates.
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.
- 1mo ago First seen · 179 lines · 0 tokens per session scan A d89bd9c2090b
react is a cursor rule published in the GitHub repository adonai-labs/agent-runway (2 stars, last pushed 17d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,530 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-09-03.
Other cursor rules, from other repositories
single-responsibility-principle
The Single Responsibility Principle states that "A module should be responsible to one, and only one, actor." In simpler terms, a class or function should have only one reason to change.
react-chakra-ui-cursorrules-prompt-file
Cursor rules for React development with Chakra UI integration.
react-redux-typescript-cursorrules-prompt-file
Cursor rules for React development with Redux and TypeScript integration.
optimize-dry-solid-principles-cursorrules-prompt-f
Cursor rules for optimization development with DRY and SOLID principles integration.
solana-transaction-safety
Safe Solana transaction submission patterns using Helius Sender.
context-management
Context window management — prevents AI from losing track during long sessions.