mobile-cross-platform

mobile-cross-platform is a cursor rule for Cursor from madebyaris/rakitui-ai. It costs 16 tokens per session (3,053 once invoked), scanned A, original, MIT.

A set of rules for building one mobile app that can run on multiple platforms, such as iOS and Android. It covers shared app structure, platform-specific code, and native feature connections.

In plain words
What is it for?
Use it to start or modify Flutter, React Native, Expo, or .NET MAUI apps, manage platform project files, and plan shared and native code.
Why use it?
It helps developers decide what should be shared between platforms and what must be generated or handled separately.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to start or modify Flutter, React Native, Expo, or .NET…

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/madebyaris/rakitui-ai/mobile-cross-platform
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/madebyaris/rakitui-ai

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-cross-platform

README.md
[![agentmods](https://agentmods.dev/badge/rules/madebyaris/rakitui-ai/mobile-cross-platform.svg)](https://agentmods.dev/rules/madebyaris/rakitui-ai/mobile-cross-platform)
Your own site
<a href="https://agentmods.dev/rules/madebyaris/rakitui-ai/mobile-cross-platform"><img src="https://agentmods.dev/badge/rules/madebyaris/rakitui-ai/mobile-cross-platform.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,053 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.00016 $0.03053
Opus 5 $0.00008 $0.01527
Sonnet 5 $0.00003 $0.00611
Haiku 4.5 $0.00002 $0.00305

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

Security

Grade A, and why

mobile-cross-platform 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/mobile-cross-platform.mdc · 541 lines

How it starts

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

Cross-Platform Mobile Development

Strategies and patterns for building mobile applications that work across iOS, Android, and other platforms.

CRITICAL: Agentic-First Mobile Development

Pre-Development Verification (MANDATORY)

Before writing ANY mobile code:

1. CHECK CLI AVAILABILITY
   → run_terminal_cmd("flutter --version") // For Flutter
   → run_terminal_cmd("npx react-native --version") // For RN
   → run_terminal_cmd("dotnet --list-sdks") // For MAUI
   
2. VERIFY CURRENT VERSIONS (use web_search)
   → web_search("Flutter stable version December 2024")
   → web_search("React Native latest version 2024")
   
3. CHECK EXISTING PROJECT
   → Does pubspec.yaml/package.json exist?
   → Are dependencies already installed?
   → Is this a new project or modification?
   
4. USE CLI FOR PROJECT CREATION (Never create files manually!)
   Flutter: flutter create my_app
   React Native: npx react-native init MyApp
   Expo: npx create-expo-app@latest my-app

CLI-First Development Rules

NEVER manually create:

  • pubspec.yaml from scratch (use flutter create)
  • package.json for RN (use npx react-native init)
  • iOS/Android project files (generated by CLI)
  • Platform-specific configurations

ALWAYS use CLI:

# Flutter
flutter create my_app
flutter pub add provider
flutter pub add go_router
flutter build apk

# React Native
npx react-native init MyApp
npm install @react-navigation/native
npx react-native run-android

# Expo
npx create-expo-app my-app
npx expo install expo-camera
npx expo start

Post-Setup Verification

After project creation, ALWAYS verify:

# Flutter
cd my_app && flutter pub get && flutter analyze

# React Native
cd MyApp && npm install && npx react-native doctor

# Expo  
cd my-app && npm install && npx expo doctor

Architecture Decisions

When to Use Cross-Platform

Good Fit:

  • Content-focused apps (news, social, e-commerce)
  • Business/productivity applications
  • MVPs and rapid prototyping
  • Teams with web development background
  • Apps with similar UI across platforms

Read the full file on GitHub · 541 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 · 541 lines · 16 tokens per session scan A d86f2a557f4f

Subscribe to this mod's changes

mobile-cross-platform is a cursor rule published in the GitHub repository madebyaris/rakitui-ai (5 stars, last pushed 7mo ago), licensed MIT. It adds 16 tokens to every session and 3,053 once invoked, about $0.0001 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.