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/inboxpraveen/Minimize-Cursor-CostWrote 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/inboxpraveen/minimize-cursor-cost/react)<a href="https://agentmods.dev/rules/inboxpraveen/minimize-cursor-cost/react"><img src="https://agentmods.dev/badge/rules/inboxpraveen/minimize-cursor-cost/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/inboxpraveen/minimize-cursor-cost/react"><img src="https://agentmods.dev/badge/rules/inboxpraveen/minimize-cursor-cost/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.00471 |
| Opus 5.5 | $0.00000 | $0.00188 |
| Sonnet 5.5 | $0.00000 | $0.00094 |
| Haiku 4.5 | $0.00000 | $0.00047 |
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.
What it actually says
React Rules
Output Format
- Single component change → show only the changed JSX section + affected hooks.
- Use
// ... rest of componentto skip unchanged JSX. - Don't reprint the import block unless adding new imports.
Components
- Don't extract a new component unless asked or unless the same JSX repeats 3+ times.
- Don't switch a function component to a class component (or vice versa).
- Don't rename props, state variables, or event handlers.
Hooks
- Don't add
useMemo/useCallbackunless the task is performance. - Don't introduce
useReducerifuseStateis already in use. - Don't add
useEffectto "be safe" — only when a side-effect is required. - Don't change the dependency array of an existing
useEffectunless the bug is in there.
State
- Match existing state library: Redux / Zustand / Jotai / Context. Never introduce a second.
- Don't lift state without asking.
- Don't add a new context provider unless the data is genuinely tree-wide.
Data Fetching
- Match existing pattern:
fetch/axios/ TanStack Query / SWR / RTK Query. - Don't introduce a query library if the codebase uses raw
fetch. - Don't add loading/error states beyond what siblings have.
Styling
- Match existing system: CSS Modules / Tailwind / styled-components / Emotion / vanilla CSS.
- Don't switch styling systems within a file.
- Don't add
classNameprops for styles that don't exist yet.
Forms
- Match existing form library: React Hook Form / Formik / native. Don't switch.
- Don't add validation libraries (zod, yup) if the project doesn't use one.
Never
- Don't add
keyprops on non-list elements. - Don't add
React.memospeculatively. - Don't add
forwardRefunless a parent actually passes a ref. - Don't add inline
onClick={() => handler(arg)}if there's an existing pattern usinguseCallback. - Don't add new ESLint disable comments — fix the underlying issue.
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 · 50 lines · 0 tokens per session scan A 0136e14ba54c
react is a cursor rule published in the GitHub repository inboxpraveen/Minimize-Cursor-Cost (10 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 471 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
sample_cursor_rule
React component best practices.
solana-transaction-safety
Safe Solana transaction submission patterns using Helius Sender.
component-patterns
Frontend component architecture and patterns. Apply when creating or editing UI components.
state-management
Frontend state management patterns and best practices. Apply when managing client state.
performance
Frontend performance optimization rules. Apply when optimizing UI or bundle.
10-imports
Import policy — React Router only, never Remix or react-router-dom. See rules/core/imports.md.