agentleFS
vindreshsinghvindreshsingh/engineering-skills/skills/mobile-patterns/SKILL.md

mobile-patterns

Skill0 starsChanged 5 months agoMITView on GitHub

Applies mobile app best practices — navigation, offline, push, performance, and platform conventions. Use when building or reviewing React Native, Flutter, or native iOS/Android features.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No error state on failed API

    line 87

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Mobile Patterns

Mobile is not a narrow website — offline, battery, app store rules, and platform conventions matter. This skill covers cross-platform mobile delivery; web-specific UI stays in [[ui-craft]] and [[react-patterns]].

Pairs with [[ux-design]] for flows, [[test-first]] / [[e2e-testing]] for device tests, [[perf-budget]] for startup and jank, [[hardening]] for secure storage, and [[launch-readiness]] for store releases.

When to Use

  • Building React Native, Flutter, or native mobile features
  • Navigation, deep links, or app state issues
  • Offline/sync behavior
  • Push notifications
  • App store submission prep
  • Mobile performance (startup, list scroll, memory)

Skip for responsive web-only — use [[ui-craft]] and [[react-patterns]].

Process

1. Platform scope

Document:

  • Framework — RN, Flutter, Swift, Kotlin
  • Min OS versions — iOS / Android
  • Offline requirement — read-only vs read-write offline

2. Navigation architecture

  • One primary navigation pattern (tabs, stack, drawer — not all three)
  • Deep links map to screens with auth guard
  • Back behavior matches platform (Android back, iOS swipe)
  • Modal vs push — modals for short tasks only

3. State and data

  • API client with timeout/retry ([[resilience]])
  • Optimistic UI where safe; rollback on failure
  • Secure token storage (Keychain/Keystore — never AsyncStorage for secrets)
  • Cache strategy for offline read ([[caching-strategy]])

4. Performance

AreaTarget
Cold start<2s to interactive
List scroll60fps; virtualized lists
ImagesSized, cached, WebP where supported
BundleMonitor size per release

Profile on real device, not simulator only.

5. Push and permissions

  • Request permission in context — after user sees value
  • Handle denied permission gracefully
  • Payload → deep link to relevant screen
  • Unsubscribe / notification settings in app

6. Release checklist

  • Version/build number bumped
  • Store screenshots and metadata ([[technical-writing]])
  • Privacy nutrition labels / Data safety form accurate
  • Crash reporting wired ([[observability]])
  • Staged rollout (Play %) / TestFlight before 100%

Common Rationalizations

  • "Mobile web is enough" — Push, offline, and store discovery need native/hybrid.
  • "Works on my iPhone" — Test Android mid-range and small screens.
  • "We’ll add offline later" — Network assumptions break on subway and flights.

Red Flags

  • Secrets in plain storage
  • WebView for entire app (store rejection risk)
  • No error state on failed API
  • Lists without virtualization (1000+ items)
  • Push permission on first launch before value

Verification

  • Navigation and deep links documented
  • Token storage uses secure platform APIs
  • Offline behavior defined and tested
  • Performance checked on real device
  • Store release checklist passed for ship

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.