App Cross Platform Dev
ASecurityUse when designing, implementing, reviewing, debugging, testing, or shipping mobile app client features across Flutter, React Native, native Android, and native iOS, including navigation, state, API integration, offline/cache, platform capabilities, accessibility, performance, app build/release, and rendered device verification. Product-agnostic; use miniapp-product-dev for mini-programs, web-react-dev for React web, product-ui-ux-design for UI/UX, backend skills for services, and testing-str...
- 6 stars
- 0 votes
- 1 copy
- 11 views
- Added September 2, 2026
Works with
Security analysis
100/100Pro scans all 9 files and shows the line behind each finding
npx -y skills add ccoalm/ccl-skills --skill app-cross-platform-dev --agent claude-codeAre you the author of App Cross Platform Dev?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ccoalm-app-cross-platform-dev)---
name: app-cross-platform-dev
description: Use when designing, implementing, reviewing, debugging, testing, or shipping mobile app client features across Flutter, React Native, native Android, and native iOS, including navigation, state, API integration, offline/cache, platform capabilities, accessibility, performance, app build/release, and rendered device verification. Product-agnostic; use miniapp-product-dev for mini-programs, web-react-dev for React web, product-ui-ux-design for UI/UX, backend skills for services, and testing-strategy for test planning. Triggers include "移动端怎么做", "Flutter / React Native / iOS / Android App 端怎么写", "RN 端", "原生 iOS / Android 页面怎么写", "重构这个 App 页面/组件(局部)", "refactor an app screen/widget".
---
# App Cross-Platform Dev
Use this skill for mobile app and cross-platform client engineering. It covers Flutter, React Native, native Android, and native iOS. It does not own mini-programs, React web, backend service design, product requirements, or visual design rules. After code/test edits, self-check and invoke `code-review` automatically before completion.
## Routing
- Use `product-rd-workflow` first when the work spans product intent, architecture, design, implementation, testing, and release.
- Use `product-ui-ux-design` before or alongside coding for user-facing surfaces, interaction model, visual hierarchy, density, motion, empty/error states, and accessibility acceptance.
- Use `miniapp-product-dev` for WeChat/Alipay/Douyin/Baidu mini-program pages, host-platform APIs, developer tools, real-device preview, review submission, and miniapp release.
- Use `web-react-dev` for React web and browser-specific client work.
- Use Go or Python backend skills for server contracts, persistence, queues, auth services, and API ownership.
- Use `testing-strategy` to choose the test layer; return here for Flutter, React Native, Android, or iOS implementation details.
- For checking a cross-platform app against team standards (deterministic vs agent review split), read `references/mobile-quality-release.md`.
- Use `test-artifact-management` for structured Feishu Bitable cases derived from Feishu requirements or code before implementation.
- Use `defect-diagnosis` first for bugs, failed tests, flaky behavior, crashes, rendering regressions, build failures, or store/release symptoms.
- For money, quota, permission, tenant/user data, high-impact AI, repeated submit, async finality, or support-traceable incidents, apply `product-rd-workflow` high-risk resilience gates before treating the app flow as complete.
## Core Workflow
Before editing app code, native project files, platform configs, styles, assets, or tests, complete enough analysis and planning for the change to be reviewable. Scale the plan to risk: a simple low-risk single-screen change can use a short inline plan; multi-platform, API-visible, native-capability, release/store, bug-fix, branch/MR, unclear-risk, or high-risk work needs explicit task split, target-device matrix, acceptance checks, verification commands, rollback or stop conditions, and named handoffs to testing, backend, release, or diagnosis skills before edits. Runtime-visible work additionally consumes the canonical UI/UX delivery contract's Design brief and Test selection Phase 0 before the first implementation edit.
Repo-local agent contracts (`AGENTS.md` at the repo root and in source directories) are part of the delivery contract: when a change moves a stable boundary, generated surface, workflow, or directory-local rule, update the nearest contract in the same MR and keep coverage in sync per `product-rd-workflow`'s spec / repo-contract sync gate.
1. Resolve the target app shape.
- Flutter shared app, React Native app, native Android, native iOS, or mixed native plus shared module.
- Target devices, OS versions, form factors, app-store constraints, and native capability needs.
- Whether the feature is shared across platforms or intentionally platform-specific.
2. Analyze the existing client surface.
- Locate the owning feature/module, route entry, state owner, API client, local storage, platform adapter, and tests before editing. Load TC coverage lookup (`tcTest` / sidecar) before adding/changing tests and import-graph deprecation liveness rules in `references/mobile-quality-release.md` before deleting deprecated coverage or app code.
- Identify shared behavior versus platform-specific behavior; list which platforms must be changed and verified.
- Read local wrappers first: Flutter/Gradle/Xcode scripts, package managers, CI jobs, test targets, flavors/schemes, and generated files.
- If a design exists, map each visible state and interaction to code ownership before implementing.
- For every visible UI change, load `../product-ui-ux-design/references/delivery-contract.md` and consume either its full Design brief + Phase 0 or its valid low-risk copy-only record + lightweight Phase 0 before coding. The lightweight path checks semantics, accessible name, localization, rendered extent, and target render without inventing unrelated matrices; risk-bearing copy uses the full path. For full slices, map structure, state/adaptation matrices, behavior and criteria to shared/platform owners; record build target, device, safe area, keyboard, orientation, text scale, input/lifecycle, and preserved behavior. For a native WebView, this skill owns the container/bridge member while `web-react-dev` or the actual web-content owner supplies a separate content member; neither render closes the other layer.
- Before the first implementation edit, add the canonical `client_entry` defined there: local rule identifier or short quote and implementation decision, target surface/runtime, planned run/capture command, and behavior that must remain unchanged.
3. Define the client boundary before coding.
- Screens, routes, tabs, navigation stack, deep links, and back behavior. Load hybrid/WebView startup/auth/profile shell and precision workspace contracts in `references/mobile-platform-boundaries.md` before route, storage, or native-vs-hosted ownership decisions.
- UI state owner, domain/data state owner, and source of truth.
- API client contract, request cancellation, retry, auth/session behavior, and error mapping. Apply centralized finite-value mapping in `references/mobile-platform-boundaries.md`.
- Local persistence, offline/cache policy, invalidation, conflict handling, and sync triggers.
- Platform capabilities such as camera, files, notifications, background tasks, payments, share sheet, sensors, biometrics, and permissions.
- Observability: crash reporting, analytics events, logs, performance traces, and feature flags. Apply central-client API observability in `references/mobile-quality-release.md`.
- High-risk submit/finality behavior: duplicate tap protection, request cancellation semantics, offline/foreground recovery, durable pending/final states, retry rules, and a visible tracking identifier when support or reconciliation may be needed.
4. Keep architecture boring and inspectable.
- Keep view/widget code thin; move data loading, validation, command handling, and mapping out of render code.
- Use unidirectional data flow where practical: user action -> intent/command -> state update -> render.
- Separate transient UI state from durable domain/data state.
- Keep typed API clients and explicit error envelopes; do not let raw transport errors leak into UI copy.
- Isolate platform-specific code behind adapters, plugins, protocols, or modules.
- Treat route/deep-link behavior as a public contract with tests or smoke verification.
5. Implement by platform.
- Flutter: use feature-first modules when the repo allows it; keep widgets declarative; choose state management from the existing repo pattern; isolate platform channels and plugins; test with unit, widget, golden/screenshot when available, and integration tests for critical flows.
- React Native: keep navigation, storage, native modules, permissions, image/media pickers, and platform branches behind repo-owned adapters. Verify both JS behavior and native module availability on the affected iOS/Android target; do not treat a Metro bundle running as proof that the native capability works.
- Android: follow UI/data layer separation; use ViewModel or state holders for screen state; hoist Compose state; collect lifecycle-aware state; keep repositories as data boundaries; use WorkManager or platform APIs for background work when needed.
- iOS: use SwiftUI for new UI unless the repo is UIKit-first; keep views data-driven; use State/Binding/Observable-style ownership deliberately; isolate URLSession/client code; use async/await where it matches the repo; bridge UIKit only behind clear boundaries.
- Async content shells need stable loading, error, retry, empty, and children geometry. Put retry inside the failed content region, not only in a toast, so users can recover without losing route or scroll context.
- Mobile UI must treat safe area, keyboard, orientation, foreground/background, weak network, and app restart as first-class UX states, not late bug fixes.
- Codegen regeneration discipline (cross-stack — Flutter `build_runner`/`freezed`/`pigeon`, Android KSP/Hilt/Room/Moshi, iOS `Sourcery` and other accessor/mock generators): never hand-edit pure generator-owned files (mark them `// DO NOT EDIT`; they regenerate freely *only when their working copy is clean/committed* — a dirty or untracked generated file may hold local edits a regen would silently restore over, so it gets the same preimage snapshot/diff/approval as below) — put customization in extension points / handwritten files beside the generated code. A file that is generated once and then hand-maintained is a *different* class: mark it explicitly `FROZEN` / `HAND-MAINTAINED` (not `DO NOT EDIT`, which a reader treats as regenerate-freely), exclude it from normal regeneration, and overwrite it only on explicit request through the preimage gate below. Edit the source of truth (annotations / IDL / `.proto` / templates) first, then regenerate. Do not overwrite a hand-maintained or user-edited file on regeneration without an explicit request, and gate that overwrite on the *pre-overwrite* preimage — generate to a temp/backup path, diff against the current file, and only replace after that diff is reviewed and approved (deleting the backup only once generation succeeds). Reviewing the git diff *after* an in-place overwrite is too late, and silently loses edits in dirty/untracked files. After a generator or toolchain *upgrade* (not just an input change) the emitted shape can change, so a cache key built only on input source can silently serve stale output — force a fresh, no-cache full regeneration and review the resulting diff against expected drift (clean/no-op is a valid outcome when the upgrade is semantically neutral; the point is that the regen actually ran rather than being skipped by a stale cache). Record the regeneration evidence (the command, that it ran fresh/no-cache, and the generated diff or an explicit no-op note) when the source-of-truth or generator/toolchain changed; when a shape change is expected *or* appears in the regenerated diff, also confirm the runtime/consumer reflects the new schema and, for a generated artifact carrying a version/schema stamp, that the stamp advanced — a clean `build` alone is not proof the regeneration ran. A shape change that appears unexpectedly in the diff is a stop-for-approval signal, not something to wave through because it was not anticipated. A parallel codegen-regeneration discipline exists for backend protobuf/IDL/DI codegen — load that skill for backend work, since this app-skill bullet does not gate backend codegen: `go-microservice-dev` owns the fuller set (never hand-edit generated, edit-source-then-regenerate, guarded-backup before overwrite, fresh-regen smoke for generator-shape changes, regenerate-and-verify); `python-service-dev` owns the core (never hand-edit generated clients/protobuf, update source contract then regenerate, verify generated output is clean or intentionally reviewed).
- Accessibility is part of the implementation contract. Verify touch target size, focus order, programmatic names for icon-only controls, screen-reader labels for compact toolbars, text scaling, contrast, reduced-motion behavior, and keyboard/safe-area reachability for primary and recovery actions. Visible icon labels are not enough when compact modes hide text.
- Apply finite-value mapping, hybrid/WebView startup/auth/profile shells, bridge/orientation/keyboard contracts, media/upload/scan/annotation/review and microphone/camera/AI capture pipelines, mobile insight/report/resource shells, precision workspaces, interrupted restore, landscape tables, high-consequence account actions, and DPR-aware safe-area handling in `references/mobile-platform-boundaries.md`; `flutter create` scaffold hygiene in `references/flutter-dev.md`; iOS simulator registration in `references/ios-dev.md`; and conformance checks, API observability, runtime upload config, plus native app update flows in `references/mobile-quality-release.md`.
6. Debug systematically when behavior is wrong.
- Reproduce on the smallest affected target: device, emulator, simulator, preview, or focused test.
- Treat repeated device, emulator, simulator, Gradle, Xcode, CocoaPods, adb, or NDK blockers as app infrastructure defects, not fresh one-off environment gaps. If the same blocker appears again, fix or harden the setup script, readiness check, or toolchain pin before reporting the app test layer as unavailable.
- Classify the failure by layer: route/deep link, render/layout, state transition, API/client contract, cache/offline, platform permission/capability, build/signing, or release config.
- Inspect logs, crash traces, network payloads, lifecycle events, permission state, local storage, and feature flags before changing code.
- Prove the cause on each affected platform; do not assume a Flutter/shared fix covers native host behavior or store/runtime configuration.
- Add regression evidence at the lowest sufficient layer, then run broader device/build smoke based on risk.
7. Verify on rendered surfaces.
- Run the repo's formatter, analyzer/linter, typecheck/build, and focused tests.
- Test-code authoring: pick the matching § from the decision table in `testing-strategy/references/test-code-authoring-patterns.md`; smell lint: `testing-strategy/references/fitness-functions.md` §4.1.4.
- For UI/UX redesign evidence, include the target device/form factor, safe-area, keyboard, orientation, dynamic type/text scale, loading/empty/error/final states, and a screenshot or equivalent rendered artifact; mark each dimension covered or `N/A` with a one-line reason. `N/A` is valid only when the reason names a verifiable structural fact, explains why that fact makes the dimension unreachable or unchanged for this slice, and includes a checkable pointer such as a file path, config key, or commit that resolves at review time. Persist evidence artifacts where reviewers can access them using sanitized/test accounts and redacting tokens, PII, credentials, private paths, and raw personal data; remove temporary smoke files or scripts before commit unless the repo intentionally owns them.
- Apply **TC traceability** (`tcTest` / sidecar), **import-graph deprecation checks** across Flutter/Android/iOS/KMP, reusable smoke-harness and Android `adb` capture recipes, emulator serial readiness checks, and CI structural-vs-functional proof rules in `references/mobile-quality-release.md`.
- Inspect the screen in a real device, emulator, simulator, preview, or captured screenshot for any visible UI change.
- Return the complete canonical client-record member defined in `../product-ui-ux-design/references/delivery-contract.md` for testing Phase 1 and the design verdict. The member includes its applied rule/decision, affected files/components, preserved behavior, exact command, immutable candidate binding, producer member/version actually exercised, artifacts, tested build/device targets, dimensions/states/input and lifecycle modes, criterion-mapped observations, coverage boundary, and gaps. A screenshot proves only the captured host/member states; it cannot close an unbound producer member. `testing-strategy` records aggregate sufficiency before the design owner records the candidate-bound verdict.
- A missing or absent design verdict remains `pending` and blocks the canonical contract's `complete`, MR-ready, merge-ready, and normal MR/handoff readiness states; a mobile screenshot proves only that the app rendered and is never design acceptance. If a hierarchy, composition, behavior, safe-area/keyboard, or brief criterion fails, return that failure instead of self-adjudicating taste; the design owner applies `delivery-contract.md`'s rejected-candidate path and requires fresh runtime evidence for the revised candidate.
- For platform enablement, verify each newly added platform with a real platform build and an install/run smoke on the relevant emulator or simulator. Adding the host project or passing one platform does not complete the slice; record the platform targets, commands, and screenshot or runtime evidence.
- For mobile runtime changes, device/emulator/simulator smoke is a completion gate when lower layers cannot prove the behavior. This includes changes to native capabilities, WebView/native bridge callbacks, foreground/background recovery, orientation/safe-area/keyboard behavior, storage/session restore, route/deep-link behavior, upload/media flows, permissions, and rendered loading/error/final states. If the runner is missing, first attempt normal setup; if still unavailable, stop at `pre-runtime-test-ready` or `blocked` and name the owner, attempted commands, residual risk, and next unblock action. `pre-runtime-test-ready` is handoff-only, not merge-ready, release-ready, or complete.
- Check accessibility labels, dynamic type/text scale, focus order, screen reader reachability, contrast, and touch targets.
- Check startup impact, scroll/frame stability, image loading, memory, app size, and network failure behavior when relevant.
- For release work, verify signing/flavors/schemes, environment config, store metadata implications, crash reporting, rollback/feature flag path, and smoke path on installable builds.
## Non-Negotiable Rules
- Do not treat one platform passing as proof that all platforms pass.
- Do not let reorderable, insertable, or filterable lists fall back to array-index identity. React Native `FlatList`/`SectionList` derive the key from `item.key` then `item.id` and only then the array index — so provide an explicit `keyExtractor` (or a stable `item.key`/`item.id`) whenever items lack a stable id; Flutter list children need a `ValueKey`/`ObjectKey` on stable item identity. Without a stable key a reorder/insert/delete makes the framework reuse element state on the wrong row (scroll offset, `TextField`/`TextEditingController` contents, animation progress, and selection/checkbox state bleed across rows, and inline `dispose` can hit the wrong element). Same reconciliation class as the web index-key rule.
- Do not hide a platform-specific failure by weakening shared behavior unless product explicitly accepts the difference.
- Do not add live network, credentials, or store-only dependencies to default fast tests.
- Do not ship UI changes without rendered inspection when the change affects layout, hierarchy, interaction, or visual state.
- Do not add platform permission prompts, background work, biometric/payment flows, or push/deep-link behavior without explicit user-facing state and failure handling.
- Do not ship app-hosted H5/WebView UI with production-visible debug consoles, unbounded keyboard/layout fallbacks, or untested safe-area/orientation behavior on the target container.
- Do not ship debug-only instrumentation — debug bridges, in-app state/inspection servers, dev overlays/menus, network inspectors, verbose-token/remote-debug hooks, or mock-auth/bypass surfaces — in any build that can reach real users, real auth, or real PII (App Store/Play production AND TestFlight, enterprise, dogfood, internal/closed testing, staged rollout — scope by channel + data sensitivity, not an `isProduction` enum). Exclude it from the release dependency/target (not a runtime flag), and verify on the exact signed artifact per channel/variant with a release-blocking evidence row (digest + variant matrix + check output); a symbol grep alone or a manual pre-release removal is not the guard. See `references/mobile-quality-release.md` Release Readiness.
- Do not ship high-risk app actions with only optimistic UI or generic toast/error surfaces; users must be able to tell whether the operation is pending, succeeded, failed, retryable, blocked, or needs support after weak network, app restart, or foreground recovery.
- Do not treat a mobile API client as done until empty response, invalid JSON, non-2xx envelope, auth expiry, network failure, cancellation, and backend error message extraction are covered at the client or screen boundary when relevant.
- Centralize finite-value parsing, display labels, defaults, unknown-value handling, and non-boundary test literal migration per `references/mobile-platform-boundaries.md`.
- Do not debug app failures from code inspection alone when a runnable reproduction, trace, screenshot, or device log can be collected.
- Do not claim a mobile client fix is complete without naming the platform targets that were verified. If required device/emulator/simulator smoke is unavailable after remediation, the status is `pre-runtime-test-ready` or `blocked`, not complete.
## Reference Loading
- For source provenance, current extraction boundary, and keep/merge/discard decisions, read `references/source-evidence-map.md` when auditing or re-extracting this skill.
- For joint extraction from Figma design source AND the mobile app workspace (with package class mapping, design-token cross-validation, deprecation-marker detection), read `../skill-extraction-workflow/references/two-source-extraction-pattern.md`. Use when both sources are available; produces aligned design + implementation rules with cross-source token validation.
- For platform selection, shared-vs-native tradeoffs, and client boundaries, read `references/mobile-platform-boundaries.md`.
- For Flutter architecture, state, navigation, platform channels, testing, performance, and release checks, read `references/flutter-dev.md`.
- For native Android architecture, Compose, lifecycle, testing, quality, and release checks, read `references/android-dev.md`.
- For native iOS architecture, SwiftUI/UIKit boundaries, state, accessibility, testing, performance, and release checks, read `references/ios-dev.md`.
- For Kotlin Multiplatform (KMP) + Compose Multiplatform — adoption decision matrix, source-set hierarchy + expect/actual, iOS framework integration (direct / CocoaPods / SPM), Kotlin/Native runtime, Compose MP iOS Stable scope, code-reuse tiering, build/test matrix, platform-stability table — read `references/kotlin-multiplatform.md`. Required when evaluating shared logic across Android + iOS, or considering Compose Multiplatform iOS adoption.
- For mobile testing, accessibility, performance, observability, and release readiness across platforms, read `references/mobile-quality-release.md`.
Files in this skill
- SKILL.md
- agents/openai.yaml
- references/android-dev.md
- references/flutter-dev.md
- references/ios-dev.md
- references/kotlin-multiplatform.md
- references/mobile-platform-boundaries.md
- references/mobile-quality-release.md
- references/source-evidence-map.md
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.