agentleFS
juninmdjuninmd/skills/.agents/skills/mobile-engineering/SKILL.md

mobile-engineering

Skill2 starsChanged 6 days agoMITView on GitHub

Build and review cross-platform mobile apps; native iOS and Swift work belongs to ios-engineering. Use for React Native, Expo, Flutter, and native Android UI, lifecycle, navigation, permissions, offline behavior, accessibility, localization, device integration, tests, and builds. Trigger on 'React Native screen', 'Expo Router', 'Flutter layout', 'the Android build fails'.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    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:

    Keep heavy work off the UI thread and make cancellation and retry explicit.

    line 23
  2. Distinctive:

    Test the state matrix below, not just the happy path.

    line 24
  3. Distinctive:

    Run formatter and analyzer, focused tests, a release build, and a physical-device smoke.

    line 25
  4. Distinctive:

    Read the crash report first.

    line 61
  5. Distinctive:

    Verify declared platform permissions and entitlements — a missing usage-description string is an instant, silent launch crash on iOS.

    line 63
  6. Distinctive:

    Only a debug build was verified.

    line 71

≈ “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 Engineering

Not this skill: native Apple-platform work — Swift, SwiftUI, UIKit, Metal, WidgetKit (ios-engineering) — web UI in a browser (frontend-engineering), or the backend the app calls (backend-systems).

Preflight

adb devices || xcrun simctl list devices booted     # is there real hardware attached?
rg -n 'minSdk|IPHONEOS_DEPLOYMENT_TARGET' android/ ios/ | head

Minimum OS decides which APIs exist at all. Read it before designing anything around one.

Workflow

  1. Identify platform, framework and version, minimum OS, architecture, state and navigation approach, and build variants. Minimum OS decides which APIs exist at all.
  2. Define lifecycle, permissions, offline behavior, deep links, accessibility, and device constraints before the UI.
  3. Keep heavy work off the UI thread and make cancellation and retry explicit.
  4. Test the state matrix below, not just the happy path.
  5. Run formatter and analyzer, focused tests, a release build, and a physical-device smoke.

The State Matrix

Mobile has more states than web because the OS is an adversary: it kills, rotates, revokes, and disconnects.

StateTriggerMust do
Loading / empty / errornormalshow, and be recoverable
Permission denied permanentlyuser picked "Don't ask again"the OS stops prompting — deep-link into system settings
Offlineairplane mode, dead zonequeue or degrade, never spin forever
Background → foregroundapp switch, callresume without losing input
Process deathOS reclaims memoryrestore from saved state, not from memory
Rotation / resizedevice turn, split screen, foldablekeep state, re-lay out
Cold-start deep linknotification, linkrestore the full back stack, not just the destination

Process death is the one that gets skipped, and it is the one that produces "the app lost my form".

adb shell am kill <package>              # simulate process death (Android)
adb shell settings put global always_finish_activities 1
xcrun simctl terminate booted <bundleid> # iOS

Simulator Lies About

CapabilityWhy the simulator cannot tell you
Camera, biometrics, GPSfaked or absent
Push notificationsdifferent delivery path
Thermal and battery throttlingdesktop CPU, wall power
Real network conditionsloopback latency
Release-build behaviorminification, stripped symbols, optimizations

Anything touching those is proven on hardware or not proven at all.

Crash on Launch — Triage Order

  1. Read the crash report first. Guessing before reading the stack costs an hour every time.
  2. Reproduce on a physical device, not a simulator.
  3. Verify declared platform permissions and entitlements — a missing usage-description string is an instant, silent launch crash on iOS.
  4. Then check initialization order and native module linking.

Reference Routing

  • The topic map is the single entry point for this directory: pick the platform and concern there, then read only the files it names. Skip platform material the task does not need.

Stop

  • A capability the simulator fakes — camera, biometrics, GPS, push, thermal — is untested on hardware. It is unproven.
  • Only a debug build was verified. Build release and run it on a device before shipping.
  • Process death loses user input. Fix restoration before shipping; it is the state everyone skips.

Rules

  • Hand off web interfaces to frontend-engineering, API endpoints to backend-systems, and test engineering to test-engineering.
  • Nothing blocking on the main thread: disk, JSON, image decode, and crypto move off it, or the frame budget is gone and the UI stutters visibly.
  • Break retain cycles in every closure and delegate that captures self. A leaked screen keeps its timers, observers, and network callbacks running forever.
  • Background execution is metered and killed. Use the platform's scheduled-work API, assume the process dies mid-task, and make the work resumable.
  • Watch binary size per dependency — assets and duplicated native libraries dominate it, and app-store size limits are hard.
  • Code signing, provisioning, and entitlements live in CI with secrets out of the repository. A signing mismatch surfaces only at install time, usually the day of the release.
  • Release builds differ from debug in ways that break working code. Build release and run it on hardware before shipping.
  • Delegate profiling methodology to performance-engineering, accessibility auditing to accessibility, and screen-state design to frontend-engineering.

Checklist

  • Platform, minimum OS, and build variants identified before writing.
  • Every row of the state matrix handled, process death included.
  • Main thread free of blocking work; no retained screens.
  • Deep link restores the full navigation stack from cold start.
  • Binary size and permission declarations checked.
  • Tests, a release build, and a physical-device smoke all pass.

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.