mobile

mobile is a cursor rule for Cursor from inboxpraveen/Minimize-Cursor-Cost. It costs 0 tokens per session (631 once invoked), scanned A, original, Apache-2.0.

A set of rules for developing mobile apps with Swift, Kotlin, React Native, or Flutter.

In plain words
What is it for?
Use it when editing iOS or Android code, mobile UI, concurrency, dependency injection, permissions, or platform-specific project files.
Why use it?
It helps changes match the app’s existing framework, architecture, dependencies, permissions, and platform settings.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when editing iOS or Android code, mobile UI, concurrency, dependency injection, permissions, or platform-specific project files.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/inboxpraveen/minimize-cursor-cost/mobile
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.

Clone the repo
git clone --depth 1 https://github.com/inboxpraveen/Minimize-Cursor-Cost

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 mobile

README.md
[![agentmods](https://agentmods.dev/badge/rules/inboxpraveen/minimize-cursor-cost/mobile/github.svg)](https://agentmods.dev/rules/inboxpraveen/minimize-cursor-cost/mobile)
Your own site
<a href="https://agentmods.dev/rules/inboxpraveen/minimize-cursor-cost/mobile"><img src="https://agentmods.dev/badge/rules/inboxpraveen/minimize-cursor-cost/mobile/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.

agentmods 80×15 button for mobile

Your own site · 80×15
<a href="https://agentmods.dev/rules/inboxpraveen/minimize-cursor-cost/mobile"><img src="https://agentmods.dev/badge/rules/inboxpraveen/minimize-cursor-cost/mobile.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 631 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00000 $0.00631
Opus 5.5 $0.00000 $0.00252
Sonnet 5.5 $0.00000 $0.00126
Haiku 4.5 $0.00000 $0.00063

Measured 2mo ago against content hash e74aef9ca805, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mobile 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 2mo 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.

lean-cursor/.cursor/rules/mobile.mdc · 56 lines

How it starts

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

Mobile Rules

These apply when working on mobile-specific code. The TS/React rules still apply for React Native; this layers on top.

Universal mobile principles

  • Don't add new native dependencies (CocoaPods, Gradle, Flutter packages) without flagging.
  • Don't change minimum SDK / deployment target without asking.
  • Don't add new permissions to Info.plist / AndroidManifest without flagging.
  • Don't restructure the platform folder layout (ios/, android/, lib/).

Swift / SwiftUI / UIKit

  • Detect first: SwiftUI vs UIKit. Don't mix paradigms in a screen.
  • Match existing concurrency style: Combine vs async/await vs callbacks. Don't switch.
  • Don't add @MainActor / @Observable / @StateObject speculatively.
  • Don't change let ↔ var unless required.
  • Match existing dependency injection: protocol-oriented vs framework (Resolver, Swinject).

Kotlin Android

  • Detect first: Jetpack Compose vs Views (XML). Don't mix in a screen.
  • Match existing architecture: MVVM / MVI / Clean. Don't introduce a new layer.
  • Match existing DI: Hilt / Koin / manual. Don't switch.
  • Don't add coroutine scopes — match existing viewModelScope / lifecycleScope usage.
  • Don't add new lifecycle observers unless needed.

React Native

  • Match existing navigation: React Navigation / Expo Router. Don't switch.
  • Don't introduce a new state library — match existing.
  • Match existing styling: StyleSheet / styled-components / NativeWind / Tamagui.
  • Don't add platform-specific code (Platform.OS checks) unless the bug requires it.
  • Don't add new native modules unless asked.

Flutter

  • Match existing state management: Provider / Riverpod / Bloc / GetX / setState. Don't switch.
  • Don't restructure widget trees as a side-effect.
  • Match existing folder structure (feature-first vs layer-first).
  • Don't add const constructors retroactively unless asked.
  • Don't change StatefulWidget ↔ StatelessWidget unless required.

Output

  • Show the smallest changeable unit: a single function, widget, or composable.
  • Use // ... rest of class/widget unchanged to skip.
  • Don't reprint generated files (.g.dart, build outputs).

Read the full file on GitHub · 56 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. 2mo ago First seen · 56 lines · 0 tokens per session scan A e74aef9ca805

Subscribe to this mod's changes

mobile 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 631 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.