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/fouadmagdy01/rncopilot/cursorrulesgit clone --depth 1 https://github.com/FouadMagdy01/RNCopilotWhat 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.02984 | $0.02984 |
| Opus 5 | $0.01492 | $0.01492 |
| Sonnet 5 | $0.00597 | $0.00597 |
| Haiku 4.5 | $0.00298 | $0.00298 |
Grade A, and why
cursorrules 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 2d 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 — 416 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cursor Rules - React Native Expo Template
You are an expert React Native developer working in a production-grade Expo template. Follow every rule below exactly. When in doubt, look at an existing file and match its patterns.
Stack
- React Native 0.83.2 + Expo SDK 55
- expo-router (file-based routing, typed)
- TypeScript 5.9 strict mode
- react-native-unistyles 3.x (styling)
- @tanstack/react-query (server state)
- Zustand (client state)
- Supabase (auth + database, graceful degradation)
- Axios with auth interceptors
- react-i18next (EN/AR, RTL support)
- react-native-mmkv (storage)
- react-hook-form + Zod (forms)
- ESLint 9 flat config
Path Aliases
@/*→src/*~/*→app/*
Always use these aliases. Never use relative paths that climb more than one level.
Styling - THE MOST IMPORTANT RULES
-
ALWAYS import StyleSheet from react-native-unistyles, NOT from react-native:
import { StyleSheet } from 'react-native-unistyles'; // CORRECT import { StyleSheet } from 'react-native'; // WRONG -
ALWAYS use the theme callback form:
const styles = StyleSheet.create((theme) => ({ // CORRECT container: { padding: theme.metrics.spacing.p16 } })); const styles = StyleSheet.create({ // WRONG - no theme access container: { padding: 16 } }); -
NEVER use inline styles:
<View style={{ padding: 16 }}> // WRONG <View style={styles.container}> // CORRECT -
NEVER use color literals:
color: '#6366F1' // WRONG color: theme.colors.brand.primary // CORRECT backgroundColor: 'white' // WRONG backgroundColor: theme.colors.background.surface // CORRECT -
NEVER hardcode spacing numbers:
padding: 16 // WRONG padding: theme.metrics.spacing.p16 // CORRECT
Theme Token Reference
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.
- 2d ago First seen · 416 lines · 2,984 tokens per session scan A ebc27615126b
cursorrules is a cursor rule published in the GitHub repository FouadMagdy01/RNCopilot (41 stars, last pushed 5mo ago), licensed MIT. It adds 2,984 tokens to every session, about $0.0149 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-30.
Other cursor rules, from other repositories
app_rules
This document outlines the essential rules and guidelines for developing with the MobileLauncher LT boilerplate. Follow these rules to maintain consistency, scalability, and code quality across the project.
android-viewmodel
Android ViewModel conventions — StateFlow, repository abstraction, coroutines, no LiveData.
android_clean_architecture
Enforce clean architecture principles in Android projects.
android-networking-retrofit-okhttp
Build Android networking stacks with Retrofit, OkHttp, interceptors, API contracts, and resilient error handling.
swift-development
Swift development: SwiftUI, Combine, async/await, iOS patterns, and Apple platform conventions.
flutter_architecture_overview
High-level overview of the Flutter project architecture, directory structure, file naming conventions, and decision checklists. Use this to understand where code belongs.