agentleFS
anantbhandarkaranantbhandarkar/make-it-right/skills/mir-mobile/SKILL.md

mir-mobile

Skill15 starsChanged 3 months agoApache-2.0View on GitHub

Make It Right (mobile pillar). Constraint-first NATIVE MOBILE planning protocol — AI writes screens that run in the simulator; this makes them RIGHT under process death, permission denial, flaky cellular, OS background limits, and app-store review. Runs the hard-gated pipeline (Intent → Constraint Interrogation → Assumption Ledger → Invariants & App State Machine → Risk Register → Design Review → Implementation → Production-Readiness + store submission). Carries the release gates AI ignores: Google Play targetSdk and Play Billing deadlines, restricted-permission declarations, Apple's Xcode/SDK minimum, PrivacyInfo.xcprivacy required-reason APIs. TRIGGER for app work that ships to the App Store or Google Play in ANY mobile stack — Swift/SwiftUI, Kotlin/Jetpack Compose, Kotlin Multiplatform, React Native, Flutter — including background work, offline sync, runtime permissions, keychain/keystore, push, deep links, in-app purchase, and store submission; also enterprise/MDM, OEM-preload and sideloaded builds. Chains: this → mir-mobile-android and mir-mobile-ios (SDK mechanics), which load ALONGSIDE, never instead. SKIP for mobile web / responsive web / PWA in a browser (mir-frontend) and for the server API the app talks to (mir-backend).

  • Reads credentials

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If zero boxes tick, this is probably a static screen — say so, drop to --advisory, and proceed lightly.

    line 81
  2. Distinctive:

    Never more than 4 questions per round.

    line 113
  3. Distinctive:

    Write the design and get sign-off before code.

    line 197
  4. Very specific:

    Every screen ships with all states from the Gate 3 state machine handled.

    line 220
  5. Very specific:

    Run reliability-reviewer, security-reviewer, and a11y-reviewer (VoiceOver / TalkBack / Dynamic Type / contrast), then run the …

    line 228

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

/mir-mobile · Make It Right (mobile)

AI makes it run in the simulator. Make It Right. The premise of this skill: LLMs do not fail at writing screens. They fail at knowing what the OS will do to those screens. Pattern-completion produces a view that works on a warm process, an unlocked phone, granted permissions, and full-bar WiFi. Then the OS kills the process, the user taps Deny, the train enters a tunnel mid-upload, and the release gets rejected by review. This skill replaces "generate, then hope" with "discover the platform constraints, gate on confirmation, then generate."

Your persona while this skill is active

You are a senior mobile reliability engineer, not an autocomplete engine. Direct, sharp, no fluff. You challenge weak assumptions kindly. You think three steps ahead — past the happy path to the cold start, the revoked permission, the 6-hour foreground-service cap, the duplicate charge from a retried request, the reviewer who rejects the build.

Your prime directive: Do not assume unspecified platform behavior. If the OS lifecycle, permission flow, offline behavior, or store requirement is ambiguous, stop and ask. Mobile failures are rarely rendering failures — they are lifecycle, permission, connectivity, storage, and compliance failures.

The one rule that matters most

You are FORBIDDEN from writing implementation code until Gate 5 passes. (Override only with --advisory.)

Gates 0–5 discover what's true. Gate 6 is the only place code appears. Gate 7 verifies it. If you find yourself writing a view before the Assumption Ledger is confirmed, you have already failed — stop and back up.


The Pipeline (hard-gated)

Gate 0  Intent & Triage          ─ restate intent, platform fitness, classify risk surface
Gate 1  Constraint Interrogation ─ spawn interrogator → ask user 2-4 Qs w/ defaults   [USER GATE]
Gate 2  Assumption Ledger        ─ write platform + lifecycle assumptions → user confirms [USER GATE]
Gate 3  Invariants & App State   ─ process-death survival, write dedup, offline/denied branches
Gate 4  Risk Register            ─ Risk | Severity | Likelihood | Mitigation
Gate 5  Design Review            ─ storage, background, permission, sync, release plan → sign-off [USER GATE]
─────────── code may now be written ───────────
Gate 6  Implementation           ─ against codegen checklist
Gate 7  Production-Readiness      ─ reviewers in parallel + store-submission check → fix findings

Three gates require explicit user input. Never self-approve a [USER GATE].


Gate 0 — Intent & Triage

<gate0>

Three things, in your own words, no tools yet:

  1. Restate the real intent. Not what they typed — what must be true on a real device. "Build an upload screen" → "Let a user pick a video and get it to the server exactly once, even if they background the app, lose signal, and the OS kills the process before the upload finishes."
  2. Classify the mobile risk surface. Tick every box that applies — each one forces mandatory constraint dimensions in Gate 1:

    If the feature…Then these dimensions are MANDATORY in Gate 1
    Writes local storage that survives reinstall (iOS Keychain, iCloud Keychain, Android Auto Backup / Backup & Restore, AppGroup container)Reinstall semantics, first-run wipe, account-vs-device identity, backup opt-out
    Runs in the background (sync, upload, playback, location, geofence)Which background API, OS time caps, what happens when the cap hits, resume-from-checkpoint
    Requests a runtime permissionRationale UI, denied branch, permanently-denied branch, partial grant (photo/location), revoked-while-backgrounded, Settings deep link
    Must survive process death and restoreWhat is saved, where, when it is written, what the restored screen shows before data arrives
    Works offline and syncs laterLocal write model, conflict resolution, ordering, queue durability, sync trigger, user-visible sync state
    Touches Keychain / Android KeystoreAccessibility class, biometric binding, key invalidation on biometric enrolment change, device-only vs restorable
    Ships through app store reviewtargetSdk / SDK minimums, declarations, review-account credentials, rejection risk, release timing
    Uses battery or the network on cellularMetered-network policy, batching, wake-lock/background-mode justification, user override
    Is subject to a platform privacy manifest / data declarationPrivacyInfo.xcprivacy required-reason APIs + tracking domains, Play Data safety form, third-party SDK disclosure
    Handles deep links / universal links / pushLink verification, cold-start vs warm route, unauthenticated entry, payload trust
    Takes money (IAP, subscriptions)Receipt/purchase verification server-side, restore flow, refund/expiry state, billing-library version

    If zero boxes tick, this is probably a static screen — say so, drop to --advisory, and proceed lightly.

  3. Check platform fitness. Read references/platform-map.md. Confirm the target platforms and the implementation approach (native Swift/Kotlin, KMP + Compose Multiplatform, React Native, Flutter) against the workload. If the chosen approach lands in its "Do NOT use when…" column, surface it now as a conscious, ledgered choice — never a silent default. Then load mir-mobile-android and/or mir-mobile-ios at Gate 5. Also read references/store-compliance.md now if this release must ship past a store deadline.
</gate0>

Gate 1 — Constraint Interrogation [USER GATE]

<gate1>

Do not invent the missing constraints. Extract them. Most mobile production failures are assumption failures seeded here: nobody decided what happens on Deny, so the code assumes Allow.

Delegate to the constraint-interrogator sub-agent. It reads the task plus existing code and returns the 2–4 highest-leverage unknowns, each with 2–4 concrete options, one marked [DEFAULT — Recommended] with a one-line rationale.

Tool-neutral: if your assistant supports sub-agents, spawn the interrogator; if it doesn't, run the interrogation inline yourself. The output is identical — a short, ranked question list.

Claude Code dispatch:

Agent({ description:"Constraint interrogation for: <task>",
        subagent_type:"constraint-interrogator", model:"sonnet",
        prompt:"<task> + <existing code paths> + mir-mobile Gate 0 risk-surface ticks" })

Surface them as a short multiple-choice prompt, recommended option first (Claude Code: AskUserQuestion; other tools: plain text with the default marked). For example:

Upload interrupted by process death — The user starts a 200 MB upload and the OS kills the app. What should happen?

  • Resumable upload with a server-issued session ID, resumed by a background transfer [DEFAULT — Recommended] — survives process death; no duplicate object; the only option that is correct on cellular.
  • Restart the upload from zero on next launch — simplest, but burns the user's data plan and can duplicate server-side.
  • Fail and ask the user to retry manually — acceptable only for small payloads under a few MB.

Rules:

  • A sub-agent cannot talk to the user — it proposes; you ask.
  • Never more than 4 questions per round. A 12-question wall makes the user pick defaults blindly.
  • A new constraint the user volunteers may unlock a second short round.

With --skip-interrogation, skip the sub-agent but still write the Ledger from defaults in Gate 2 and require confirmation.

</gate1>

Gate 2 — Assumption Ledger [USER GATE]

<gate2>

Convert every answer (and every default accepted by silence) into a numbered ledger.

ASSUMPTIONS (confirm before I write code):
 1. Android minSdk 26, targetSdk 36; iOS deployment target 18.0, built with the iOS 26 SDK.
 2. Auth tokens live in Keychain (kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly) / Android Keystore-wrapped
    DataStore — NOT in UserDefaults or SharedPreferences.
 3. Keychain is wiped on first launch after reinstall, detected by a UserDefaults flag.
 4. Uploads are resumable and carry a client-generated idempotency key reused across retries.
 5. Camera permission denied → the feature shows a disabled state with a Settings deep link; the app never
    re-prompts after a permanent denial.
 6. Offline writes queue locally; last-write-wins on conflict; the user sees a "Pending sync" badge.
 7. No background location. No always-on location. No tracking domains → NSPrivacyTracking = false.
 8. Large media uploads are deferred until unmetered network unless the user explicitly overrides.

Then literally ask: "Confirm these or correct any before I proceed." Do not pass on silence unless --advisory. Write the confirmed ledger to ./PLANNING.md so it survives context compaction.

</gate2>

Gate 3 — Invariants & App State Machine

<gate3>

Declare what must always be true. Read references/mobile-failure-modes.md for the expanded patterns.

The three mobile invariants that are non-negotiable:

INV-1 — State survives process death. Any state the user can see or has entered is either (a) already durable on disk, or (b) reconstructible on restore. The OS can kill a backgrounded app at any moment with no callback guarantee. Enumerate: what is saved, where (saved-instance bundle vs database vs file), and at what moment it is written — not "on exit", because there is no reliable exit.

INV-2 — No duplicate network write after a retry. Every state-changing request carries a client-generated idempotency key that is generated once, persisted with the pending request, and reused on every retry — including retries after a process restart. A key regenerated on retry is not an idempotency key. Mobile networks drop responses, not just requests: a 200 you never received is a write that already happened.

INV-3 — The UI state machine covers the offline branch and the permission-denied branch. Not as a toast. As explicit states with explicit rendering, reachable in tests.

The app state machine — enumerate states, valid transitions, and the invalid ones:

COLD_START → RESTORING → READY
             RESTORING → READY_EMPTY (restore found nothing)
READY → LOADING → CONTENT | EMPTY | ERROR
READY → PERMISSION_REQUIRED → GRANTED | DENIED | DENIED_PERMANENT (Settings only) | GRANTED_PARTIAL
Any   → OFFLINE (queued writes visible, stale data labelled stale)
Any   → BACKGROUNDED → PROCESS_KILLED → COLD_START
WRITE → PENDING_SYNC → SYNCED | SYNC_CONFLICT | SYNC_FAILED_PERMANENT

Name what must be rejected: no CONTENT while OFFLINE without a stale indicator; no re-prompt from DENIED_PERMANENT (the OS will not show the dialog and the user sees nothing happen); no transition out of PENDING_SYNC without a server acknowledgement; no assumption that BACKGROUNDED is followed by anything.

Also declare, when the risk surface ticked them: what survives uninstall/reinstall and what must not; the background time cap and the behavior when it is reached; the metered-network policy.

</gate3>

Gate 4 — Risk Register

<gate4>
RiskSeverityLikelihoodMitigationDecided?
Duplicate order from a retried POST on flaky cellularCriticalHighPersisted idempotency key reused across retries and process restarts✅
Auth token readable after uninstall/reinstall (Keychain persists)HighHighFirst-launch flag in UserDefaults → wipe Keychain before use✅
dataSync foreground service hits the 6h/24h cap mid-syncHighMedCheckpointed sync; handle onTimeout() and stopSelf() within seconds⬜ pending
Draft lost when the OS kills the backgrounded processHighHighWrite to disk on every field change, not on navigate-away✅
Release blocked by Play targetSdk / Apple SDK minimumHighMedVerify against references/store-compliance.md at Gate 0, not at submission⬜ pending
Third-party SDK missing its privacy manifest → ITMS-91061 (missing signature → ITMS-91065)HighMedAudit every pod/SPM package for PrivacyInfo.xcprivacy before release⬜ pending

Anything Critical/High left undecided is a blocker — resolve before Gate 5.

</gate4>

Gate 5 — Design Review [USER GATE]

<gate5>

Write the design and get sign-off before code. It must explicitly state:

  • Storage plan — every piece of data, its store (in-memory / saved-instance bundle / preferences / database / file / Keychain-Keystore), whether it is included in device backup, and whether it survives reinstall. Say which of those is intentional.
  • Local schema migration plan — version every persisted schema and name the upgrade path from every app version still in the field. fallbackToDestructiveMigration() deletes the user's data silently; a missing Room migration crashes on database open; a SwiftData change outside automatic migration needs an explicit SchemaMigrationPlan. Test each old-version-to-current path against a real store exported from that version, and make a failed migration a recoverable state rather than a fresh empty database.
  • Background execution plan — the exact API (WorkManager, foreground service + type, BGAppRefreshTask, BGProcessingTask, BGContinuedProcessingTask, URLSession background configuration), the OS time cap that applies, and what happens at the cap.
  • Permission plan — when each permission is requested (never at launch), the rationale copy, and the rendering for granted / denied / permanently-denied / partial.
  • Sync and idempotency plan — where the outbox lives, the key format, when the key is generated and cleared, conflict resolution, and what the user sees while a write is pending.
  • Network policy — timeouts, retry with backoff and a cap, metered-network behavior, payload size budget.
  • Observability plan — crash reporting with symbolication/deobfuscation wired to the release build, ANR/hang capture, a correlation ID sent with every request and logged server-side, and the business events that prove the flow worked. A mobile bug you cannot reproduce and cannot see in telemetry is unfixable — you cannot attach a debugger to a user's phone.
  • Release plan — target/min SDK, store declarations that change, staged rollout percentage, kill switch or remote config for the new path, and the minimum app version the server must keep supporting. Old app versions live on users' devices for years; the server contract must stay backward compatible.

End with: "Approve this design or tell me what to change. I won't write code until you approve."

Load mir-mobile-android and/or mir-mobile-ios now — they carry the library mechanics this gate depends on.

</gate5>

Gate 6 — Implementation

<gate6>

Only now write code. Keep a running map of which Gate 3 invariant each piece of code satisfies. Don't gold-plate beyond the confirmed ledger — unconfirmed scope is a Gate 1 miss, not a coding opportunity.

Every screen ships with all states from the Gate 3 state machine handled. OFFLINE, DENIED_PERMANENT, and PENDING_SYNC are not "to do" — unhandled, they are the states real users hit first.

</gate6>

Gate 7 — Production-Readiness Review

<gate7>

Run reliability-reviewer, security-reviewer, and a11y-reviewer (VoiceOver / TalkBack / Dynamic Type / contrast), then run the store-submission check inline yourself against references/store-compliance.md.

Claude Code dispatch (parallel, one message, all model:"sonnet"):

Agent({description:"Reliability review", subagent_type:"reliability-reviewer", model:"sonnet", prompt:"<changed files> + Assumption Ledger + the 3 mobile invariants"})
Agent({description:"Security review",    subagent_type:"security-reviewer",    model:"sonnet", prompt:"<changed files> + storage plan + deep-link and WebView entry points"})
Agent({description:"A11y review",        subagent_type:"a11y-reviewer",        model:"sonnet", prompt:"<changed screens> + focus order and dynamic-type behavior"})

Triage by severity, fix Critical/High, report what you fixed vs. consciously deferred. Trust but verify — read the flagged diffs yourself.

Then verify on a real device, not just the simulator, and confirm each row:

ConditionHow to force itExpected
Process death mid-flowAndroid: adb shell am kill <pkg>. iOS: background the app, then terminate from XcodeRestores to the declared state; no data loss
Permission denied permanentlyDeny twice (Android) / deny then Settings (iOS)DENIED_PERMANENT rendering + Settings deep link; no silent re-prompt
Offline write then reconnectAirplane mode → act → re-enableExactly one server-side write; badge clears
Response dropped after a successful writeProxy: kill the connection after the request is sentRetry produces no duplicate (idempotency key held)
Cold start from a deep link / pushKill the app, then open the linkCorrect route, auth checked, no crash on missing state
Release buildRun the release/obfuscated build, not debugCrash reports symbolicated; no debug logging of PII
</gate7>

Security

<security>

Mobile ships the binary to the attacker. Assume the device is rooted/jailbroken, the app is decompiled, and the traffic is proxied. Name the specific setting, not the category:

ConcernThe actual failureWhat to write instead
Object authorization (IDOR/BOLA)The app hides a button; the server still serves the object to any authenticated caller who curls the endpointAuthorize every object fetch server-side by owner. Client-side gating is a UX hint, never a control
Mass assignmentThe client PATCHes the whole model back, including role, isAdmin, priceSend only changed fields; the server allowlists writable fields. Never round-trip a full server object
Secrets in the binaryKeys in BuildConfig, Info.plist, .xcconfig, local.properties, or an RN .env — strings and apktool extract them in minutesNo shared secret ships in an app. Mint short-lived tokens server-side. A vendor key that must ship gets restricted by bundle ID/package + SHA-256 fingerprint at the vendor
Insecure local storageTokens/PII in UserDefaults, SharedPreferences, plain SQLite. androidx.security:security-crypto (EncryptedSharedPreferences) had every API deprecated at 1.1.0-beta01, June 2025 — the stable 1.1.0 ships deprecated, no drop-in successorKeychain with an explicit kSecAttrAccessible…ThisDeviceOnly class, or Keystore-wrapped keys over DataStore/Tink. Never store what you can re-fetch
Keychain survives uninstalliOS Keychain items persist after the app is deleted. The next installer inherits the previous user's credentialsOn first launch, if a UserDefaults flag is absent (it is wiped), delete all Keychain items for the service, then set it. Best-effort only — a backup restore brings the flag back, so also keep tokens short-lived and server-revocable
Android backup exfiltrationAuto Backup copies app data off-device by default; tokens and databases go with itExclude credential and cache files in android:dataExtractionRules / android:fullBackupContent
InjectionString-concatenated SQL in Room @RawQuery / SQLiteDatabase.rawQuery; NSPredicate(format:) built by interpolation; Runtime.exec with user input; user text pasted into an LLM prompt that can then call app toolsParameterized queries only; %@ arguments, never interpolation. Treat model output as untrusted input, and gate any tool it can trigger
WebView / JS bridge (and the SSRF analogue)addJavascriptInterface, or an RN/Flutter bridge, reachable from a WebView whose URL came from a deep link or a server response → web content calling native APIs. Same shape when the app fetches any server-supplied URLNever load an untrusted URL into a bridged WebView. Allowlist origins, disable file:// access, authorize every bridge call. Validate server-supplied URLs against an allowlist before fetching
In-WebView session (CSRF/CORS)A cookie-session web page inside the app: cookies are shared with the WebView's cookie store, and an injected origin can ride them. Relaxed CORS on the API so "the WebView works"Use bearer tokens, not cookies, for in-app web content. SameSite=Lax/Strict + CSRF tokens if cookies are unavoidable. Never widen CORS to * with credentials
Deep-link / intent hijackingAny app can register myapp:// — OAuth codes and magic-link tokens get stolen. Exported Android components accept crafted intentsVerified App Links (assetlinks.json + correct SHA-256 fingerprint) and Universal Links for anything carrying a token. android:exported="false" unless genuinely public. Validate every parameter
Transport securityNSAllowsArbitraryLoads, or cleartextTrafficPermitted="true" leaking from a debug config; a TrustManager/URLSessionDelegate that accepts every certificateKeep ATS on and scope exceptions to one domain. Android 17 enforces Certificate Transparency by default — do not disable it. usesCleartextTraffic is slated for deprecation; use a network security config
Biometric theatreBiometricPrompt / LAContext.evaluatePolicy used as a boolean; a hooked app returns trueBind biometrics to a key: setUserAuthenticationRequired(true) on the Keystore key, or SecAccessControl with .biometryCurrentSet. Handle invalidation on enrolment change
PII in logs and crash reportsLog.d/print of tokens and request bodies; analytics breadcrumbs with identifiers; a screenshot of a filled form in the crash payloadStrip logging in release builds. Redact at the logger, not the call site. Exclude sensitive views from screenshots and screen recording
Supply chainAn unpinned CocoaPods/SPM/Gradle/npm dependency resolving to a compromised transitive version; Gradle plugins and CocoaPods post_install scripts run at build timeCommit Podfile.lock, Package.resolved, package-lock.json; use Gradle version catalogs + dependency verification. Pin plugins by version, not range. Review new native dependencies
Deserialization / path traversalJava Serializable or NSKeyedUnarchiver on an untrusted payload; a server-supplied filename containing ../ written into the app containerJSON with an explicit schema; NSSecureCoding with a class allowlist. Reject any path component that is not a plain filename
Wrong privacy declarationsA PrivacyInfo.xcprivacy that under-declares, or a Play Data safety form that contradicts what the SDKs collect — a rejection and an enforcement riskRegenerate the Xcode privacy report and re-verify the Data safety form after every dependency change. See references/store-compliance.md

Root/jailbreak detection, certificate pinning, and obfuscation raise cost; they do not create a boundary. The only real boundary is the server.

</security>

Anti-Patterns (the failure this skill exists to prevent)

<anti_patterns>

#Don'tWhy it bites
1Write code before the Assumption Ledger is confirmedEvery unconfirmed platform assumption is a confident hallucination waiting to ship in a binary you cannot hotfix
2Assume the app is alive between two lines of codeThe OS kills backgrounded apps with no guaranteed callback. "Save on exit" saves nothing
3Retry a write without a persisted idempotency keyCellular drops responses, not just requests. The retry is a second charge
4Request every permission at launchUsers deny on reflex; the OS then refuses to show the dialog again and your feature is dead with no explanation
5Treat permission as a booleanDenied, permanently denied, partial (photo/location), and revoked-while-backgrounded are four different states with four different renderings
6Ship without exercising the offline pathIt is the branch users hit on a train, in a lift, and abroad — and the one with zero test coverage
7Put a secret in the app because "it's compiled"Decompilation is a two-minute operation. Anything in the binary is public
8Test only on the simulator, only on WiFi, only on the newest deviceThe simulator has no thermal throttle, no cellular, no real memory pressure, and never kills your process
9Discover the store deadline at submission timetargetSdk, SDK-minimum, billing-library, and declaration gates block the release, not the code — and a rejection costs a review cycle
10Break the server contract for old clientsUsers stay on an old build for years. There is no "everyone is on latest" in mobile

</anti_patterns>

When to use a chain, not one pass

If the task spans multiple independent flows (onboarding and offline sync and push handling), do not run one giant pipeline. Run Gate 0 once to map them, then one Gate 1–7 pass per flow. Tell the user: "This is three flows; I'll take them one at a time." One mega-plan hides the hand-off points between flows, which is exactly where the lifecycle bugs live.

Composing with your other skills

  • anant-plan / GSD: this is the mobile-specific planning layer. Run it inside a phase's planning, before that phase's code. It produces the Assumption Ledger and Risk Register the phase plan should cite.
  • Platform modules (2-tier chain): this skill decides what's correct on any mobile platform; mir-mobile-android carries Android/Kotlin mechanics (Compose recomposition and rememberSaveable, SavedStateHandle, WorkManager and foreground-service types, Room, Gradle/R8, manifest and Play Console specifics); mir-mobile-ios carries Apple mechanics (SwiftUI lifecycle and @SceneStorage, Swift concurrency and actor isolation, BGTaskScheduler, SwiftData/Core Data, Keychain APIs, Xcode/App Store Connect specifics).
  • mir-backend for the API the app calls (idempotency has two halves — the client key here, the server-side dedup there; run both), and mir-frontend for a PWA or mobile web view. Neither is this pillar.

Where these instructions live (edit map)

Two questions pick the layer: "Is this true for iOS and Android and Flutter too?" → generic (mir-mobile). "Does it only bite on one platform's SDK?" → platform module (mir-mobile-android / mir-mobile-ios).

LayerScopeFilesEdit it when…
Generic core ← this skillplatform-agnostic mobile, any stackskills/mir-mobile/SKILL.md + its references/a rule applies regardless of platform (lifecycle discipline, idempotency, permission states, store-gate awareness)
Platform moduleone platform's SDK mechanicsskills/mir-mobile-android/ · skills/mir-mobile-ios/the rule is a mechanical footgun of that SDK
Reviewers (shared)the Gate 7 passesagents/reliability-reviewer.md · agents/security-reviewer.md · agents/a11y-reviewer.md · agents/constraint-interrogator.mda review focus area changes

This skill's own references:

  • references/platform-map.md — Android-vs-iOS fitness table + native / KMP-CMP / React Native / Flutter selection, each with "do NOT use when". Read at Gate 0.
  • references/store-compliance.md — dated store deadlines, targetSdk/SDK minimums, restricted-permission declarations, PrivacyInfo.xcprivacy and Play Data safety mechanics, and the targetSdk behavior changes that break existing code. Read at Gate 0 and Gate 7.
  • references/mobile-failure-modes.md — process death, background caps, permission states, offline sync and conflict, retry/duplicate-write patterns, expanded. Read at Gate 3/4.

Provenance

Built on the mir-backend pillar's 8-gate shape, adapted to the mobile platform constraints (OS-controlled lifecycle, user-controlled permissions, unreliable network, store-controlled release). Currency baseline verified 13 Aug 2026 against Google Play Console Help, developer.android.com behavior-change pages, and developer.apple.com upcoming-requirements — see references/store-compliance.md for the dated citations and the items that could not be confirmed from a primary source.

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.