app_rules

app_rules is a cursor rule for Cursor from chohra-med/expo_boilerplate. It costs 12,680 tokens per session, scanned A, original, MIT.

A set of project rules for MobileLauncher LT, a starter codebase for building mobile apps. It defines how features, shared code, files, and project structure should be organized.

In plain words
What is it for?
Use it when adding mobile-app features, deciding where files belong, or checking whether new code follows the boilerplate's architecture.
Why use it?
It gives contributors one consistent way to structure and maintain the code, reducing confusion as the project grows.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Install

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.

agentmods
npx agentmods add rules/chohra-med/expo_boilerplate/app_rules
Clone the repo
git clone --depth 1 https://github.com/chohra-med/expo_boilerplate

Made for: Cursor.

Wrote 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.

agentmods badge for app_rules

README.md
[![agentmods](https://agentmods.dev/badge/rules/chohra-med/expo_boilerplate/app_rules.svg)](https://agentmods.dev/rules/chohra-med/expo_boilerplate/app_rules)
Your own site
<a href="https://agentmods.dev/rules/chohra-med/expo_boilerplate/app_rules"><img src="https://agentmods.dev/badge/rules/chohra-med/expo_boilerplate/app_rules.svg" alt="Measured on agentmods" height="20"></a>
Per session 12,680 This file is loaded in full into every session.
When invoked 12,680 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.12680 $0.12680
Opus 5 $0.06340 $0.06340
Sonnet 5 $0.02536 $0.02536
Haiku 4.5 $0.01268 $0.01268

Measured 6d ago against content hash 30a1b15267ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

app_rules 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 6d 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.

.cursor/rules/app_rules.mdc · 2,008 lines

How it starts

The opening of the file, as written. The whole thing — 2,008 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MobileLauncher LT - Development Rules & Guidelines

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.

🏗️ Architecture Rules

1. Feature-First Structure

  • Always organize code by business features, not technical layers
  • Each feature must be self-contained with its own:
    • components/ - Feature-specific UI components
    • screens/ - Screen components
    • hooks/ - Custom hooks for business logic
    • store/ - Redux slice and selectors
    • api/ - RTK Query endpoints
    • services/ - Business logic services
    • types/ - TypeScript type definitions
    • index.ts - Barrel exports

Example:

src/features/auth/
├── components/
│   ├── login-form.tsx
│   └── index.ts
├── screens/
│   ├── login-screen.tsx
│   └── index.ts
├── hooks/
│   ├── use-auth.ts
│   └── index.ts
├── store/
│   ├── auth-slice.ts
│   ├── auth-selector.ts
│   └── index.ts
├── api/
│   ├── auth.api.ts
│   └── index.ts
├── services/
│   ├── auth.service.ts
│   └── index.ts
├── types/
│   ├── index.ts
├── index.ts

2. Shared Resources

  • Extract common functionality to global directories (src/ui/, src/services/, src/utils/)
  • Never duplicate code - if used in 2+ features, move to shared
  • Use absolute imports with #root/ prefix for clean imports
  • Expo ecosystem: use expo.dev ecosystem for packages and yarn to install packages.

Example:

// ❌ Wrong - duplicated across features
// features/auth/components/button.tsx
// features/settings/components/button.tsx

// ✅ Correct - shared component
// src/ui/components/button.tsx
import { Button } from '#root/ui/components/button';

// ✅ Correct - shared utility
// src/utils/format-date.ts
import { formatDate } from '#root/utils/format-date';

🎨 UI Component Rules

3. Component Design

  • Use Restyle for all styling - never use StyleSheet directly
  • Create type-safe components with proper TypeScript interfaces
  • Export prop interfaces for reusability
  • Use React.memo for performance optimization
  • Follow single responsibility principle
  • Memorzie Functions: use useCallback for functions
  • Avoid inline functions: extract functions outside render or use useCallback
  • Avoid inline styling: use theme values and component variants instead

Read the full file on GitHub · 2,008 lines

Changes

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.

  1. 6d ago First seen · 2,008 lines · 12,680 tokens per session scan A 30a1b15267ae

Subscribe to this mod's changes

app_rules is a cursor rule published in the GitHub repository chohra-med/expo_boilerplate (32 stars, last pushed 4d ago), licensed MIT. It adds 12,680 tokens to every session, about $0.0634 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.