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/wataru-maeda/react-native-boilerplate/coding-guidelinesgit clone --depth 1 https://github.com/wataru-maeda/react-native-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.01305 | $0.01305 |
| Opus 5 | $0.00652 | $0.00652 |
| Sonnet 5 | $0.00261 | $0.00261 |
| Haiku 4.5 | $0.00130 | $0.00130 |
Grade A, and why
coding-guidelines 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 — 198 lines — stays where its author put it; the contents beside it link to each section on GitHub.
React Native Expo Project - Coding Guidelines
Project Overview
React Native Expo SDK 54 project with TypeScript, Expo Router v6, Redux Toolkit, and modern development practices.
Built-in Features to Always Use
Configuration Management
- Use
utils/config.tsfor all environment variables and app configuration - Use
utils/deviceInfo.tsfor platform detection and device dimensions - Never hardcode environment values, always go through config
Theme System
- Always import from
@/themefor colors, fonts, and images - Use
@/theme/colorsinstead of hardcoded color values - Use theme system for consistent dark/light mode support
- Load assets through
@/theme/imagesand@/theme/fonts
Custom Hooks
- Use
useColorSchemefrom@/hooksfor theme detection - Use
useDataPersistfrom@/hooksfor local storage operations - Use
useKeyboardfrom@/hooksfor keyboard state management - Use
useAppSlicefrom@/slicesfor global state management
State Management
- Use Redux Toolkit slices in
@/slicesfor global state - Import from
@/slicesfor all state operations - Keep local state minimal, prefer global state for shared data
Services Layer
- Use
@/servicesfor all API calls and external integrations - Never make direct API calls from components
- Use the services layer for data transformation
Type Safety
- Use types from
@/typesfor all interfaces - Define component props interfaces for all components
- Use TypeScript strict mode - project is configured for it
Directory Structure Rules
Component Organization
components/elements- Reusable UI components (Button, Image, etc.)components/layouts- Layout-specific components (headers, navigation)scenes- Screen components (renamed from pages)app- Expo Router routes only, delegate to scenes
File Naming
- Components: PascalCase (
Button.tsx,NavigationHeader.tsx) - Hooks: camelCase with "use" prefix (
useColorScheme.ts) - Utils: camelCase (
deviceInfo.ts,config.ts) - Types: PascalCase (
User.ts,ApiResponse.ts)
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 · 198 lines · 1,305 tokens per session scan A 1b97c3f9130a
coding-guidelines is a cursor rule published in the GitHub repository wataru-maeda/react-native-boilerplate (513 stars, last pushed 20d ago), licensed MIT. It adds 1,305 tokens to every session, about $0.0065 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_feature_first_architecture
Feature-first architecture is a design pattern that organizes code by business features rather than technical layers. This approach promotes better maintainability, scalability, and team collaboration by keeping related functionality together and reducing coupling between different parts of the application.
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.
best_practices
Advanced Best Practices covering Error Handling, Environment Variables, Performance, and Accessibility rules.
cursorrules
React Native/Expo Mobile Development Project.
ios26-modern-design
APP 正在進行現代化 UI 重構,目標是引入 2026 年流行的設計趨勢,特別是 iOS 26 原生新特性。所有 UI 改動都應遵循以下優先級:.
tonal-color-system
Tonal Color System(色調配色系統)- 主題色透明度分級規範.