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/kws-projects/react-boilerplate/project-structuregit clone --depth 1 https://github.com/kws-projects/react-boilerplateWhat 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.00920 | $0.00920 |
| Opus 5 | $0.00460 | $0.00460 |
| Sonnet 5 | $0.00184 | $0.00184 |
| Haiku 4.5 | $0.00092 | $0.00092 |
Grade A, and why
project-structure 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 yesterday.
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 — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Project Structure
This is a React + Vite + TypeScript app. Use the @/ alias for imports from
src (e.g. @/components/ui/Button). Never use long relative paths like
../../../.
Folders (src/)
app/- application shell.App.tsxmounts the router inside the providers;app/providers/composes global providers (Helmet, React Query, Theme, Direction, i18n);app/router.tsxdefines routes (react-router-dom). Add new routes as children of the root layout, pointing at feature pages.components/- shared, reusable components used across features.components/layout/- layout components (e.g.RootLayout.tsxwith the header and<Outlet />).components/shadcn/- pristine, vendored shadcn/ui originals. Never import these directly in app code; treat as vendored for easy upgrades.components/ui/- project-facing components that wrap (re-export or extend) theshadcn/originals. App code imports only from here. See theadd-shadcn-componentskill for the full workflow.
features/<feature>/- feature modules. Each feature owns its slice and may containcomponents/,hooks/,api/, andtypes/. Features should not import from each other's internals; share viacomponents/,lib/, orhooks/.lib/- cross-cutting utilities and third-party integration adapters (utils.ts,analytics.ts,monitoring.ts). Wrap external SDKs behind a thin interface here so call sites stay decoupled. Never import@sentry/reactor callwindow.gtagoutside of the adapters inlib/.config/- typed configuration.env.tsis the single source of truth for environment variables; do not readimport.meta.envdirectly elsewhere.i18n/- i18next config andlocales/<lang>/<namespace>.json.hooks/- shared hooks not tied to a single feature. IncludesuseAnalytics,useMonitoring, andusePageTracking.types/- shared TypeScript types. Includes typed GA4 event definitions (analytics.ts), monitoring types (monitoring.ts), and window augmentation (global.d.ts).test/- global Vitest setup and shared helpers (renderWithProviders). This is distinct from the per-directory__tests__/folders described below.
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.
- yesterday First seen · 69 lines · 920 tokens per session scan A acc6e02aff5c
project-structure is a cursor rule published in the GitHub repository kws-projects/react-boilerplate (3 stars, last pushed 2mo ago), licensed MIT. It adds 920 tokens to every session, about $0.0046 per session on Opus 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.
Other cursor rules, from other repositories
library-conventions
React Native library conventions for this starter. Apply when creating or editing components, hooks, types, or tests in src/.
design
Design system, accessibility standards, and industry-specific styling guidelines.
services
Service layer architecture, API patterns, and data management with TanStack Query.
components
Component development patterns and composition rules.
quality
Code quality checklist and anti-patterns to avoid before shipping.
typescript
TypeScript type definitions and utility patterns for the application.