ferroxlabs/wayland/cross-platform-strategy
Claude Code and agent skill by ferroxlabs/wayland
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Guides expert-level cross-platform mobile strategy implementation: architecture and best-practices decision frameworks, production-ready patterns, and concrete templates for cross platform strategy workflows. Use when the user asks about cross-platform mobile strategy, cross platform strategy configuration, or mobile best practices for cross-platform projects. Do NOT use when the user needs a different mobile development capability -- check sibling skills in the mobile development subcategory.
Install
npx vskill@latest install ferroxlabs/wayland/cross-platform-strategySemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as ferroxlabs/wayland/cross-platform-strategy.
Cross-Platform Mobile Strategy
When to Use
Use this skill when:
- A user is deciding between React Native, Flutter, Kotlin Multiplatform Mobile (KMM), Ionic/Capacitor, or native iOS/Android development for a new project
- A user needs to evaluate whether to migrate an existing native app to a cross-platform framework or vice versa
- A user wants a structured framework matrix to justify a technology recommendation to engineering leadership or stakeholders
- A user is architecting the shared business logic, navigation, state management, or data layer of a cross-platform mobile app
- A user is experiencing performance problems, platform divergence, or code-sharing failures in an existing cross-platform project and needs a remediation strategy
- A user wants to establish team conventions, monorepo structure, or CI/CD pipelines for cross-platform mobile development
- A user is designing a feature strategy that involves platform-specific native modules alongside shared cross-platform code
Do NOT use this skill when:
- The user needs detailed guidance on React Native-specific APIs, layout engine debugging, or Metro bundler configuration -- use the React Native skill in this subcategory
- The user needs Flutter widget lifecycle, Dart null-safety, or Flutter DevTools profiling -- use the Flutter-specific skill
- The user needs native iOS Swift/SwiftUI architecture guidance without a cross-platform component -- use the iOS native skill
- The user needs native Android Jetpack Compose or MVVM architecture guidance without a cross-platform component -- use the Android native skill
- The user is asking about Progressive Web Apps (PWAs) as the primary distribution mechanism with no native app store presence intended -- use the web-mobile skill
- The user needs backend API design, mobile BFF patterns, or GraphQL schema design -- use the API design skill
- The user is asking only about mobile CI/CD pipelines, code signing, or App Store submission -- use the mobile DevOps skill
Process
Step 1: Extract and Classify Project Requirements
Before recommending any framework, gather structured information about the project. If the user has not provided it, ask directly.
- Platform targets: iOS only, Android only, both simultaneously, or phased (one first, then the other within 12 months). Phased rollouts change the cost calculus significantly.
- Feature complexity tiers: Classify features as Tier 1 (standard UI, REST calls, auth flows -- easily cross-platform), Tier 2 (camera, biometrics, push notifications, Bluetooth, NFC -- manageable with plugins/bridges), or Tier 3 (ARKit/ARCore, CoreML/ML Kit, custom GPU rendering, real-time audio DSP -- often requires native modules or full native).
- Performance budgets: Target frame rate (60 fps vs 120 fps on ProMotion/high-refresh displays), startup time (<2 seconds cold start is the mobile industry benchmark), list scroll smoothness (60 fps sustained during fast scroll on mid-range Android devices is the gatekeeping test).
- Team composition: Count engineers with native iOS experience, native Android experience, JavaScript/TypeScript experience, Dart experience, and Kotlin experience separately. Framework learning curves are 2--4 months for React Native if the team knows React, 3--6 months for Flutter from scratch, 1--2 months for KMM if the team already knows Kotlin.
- Offline requirements: Define whether the app needs full offline functionality with local-first data sync (complex), read-only offline caching (moderate), or online-only (simple). Offline-first changes the entire data architecture.
- Release velocity targets: How many releases per month per platform? High-velocity teams (10+ releases/month) benefit more from unified CI/CD pipelines that cross-platform frameworks provide.
Step 2: Apply the Framework Selection Decision Tree
Use the following ordered decision logic. Work top-to-bottom and stop at the first match.
- If > 30% of features are Tier 3 (native-only APIs with no viable plugin): Recommend full native development (Swift/Kotlin). A cross-platform shell with 30%+ native modules creates a maintenance burden worse than two native codebases. Document this threshold explicitly in your recommendation.
- If the team has > 60% JavaScript/TypeScript experience and < 20% Dart/Kotlin: Recommend React Native. The productivity gain from using familiar language tooling outweighs marginal framework differences for most business apps.
- If the app is design-system-heavy with pixel-perfect custom UI that must look identical on both platforms: Recommend Flutter. Flutter renders its own widgets using Skia/Impeller rather than native UI components, guaranteeing visual consistency. This is the decisive Flutter advantage.
- If the app has a large existing native codebase that the business cannot afford to rewrite, but code-sharing of business logic is needed: Recommend Kotlin Multiplatform Mobile (KMM). KMM integrates into existing native projects by sharing only the data/domain layers, leaving the UI layer fully native on each platform.
- If the app is primarily content-driven with minimal animation, device hardware access is limited, and time-to-market is critical (< 3 months): Recommend Ionic/Capacitor. The web technology baseline reduces onboarding time for web teams and permits PWA fallback.
- If none of the above apply and the team is balanced: Default to React Native with Expo managed workflow as the lowest-friction starting point, with a documented upgrade path to bare workflow when needed.
Step 3: Design the Shared Architecture Layers
Once the framework is chosen, define which code is shared and which is platform-specific using a layered architecture model.
- Domain/Business Logic Layer (share 90--100%): Pure business rules, validation logic, data transformation, and use-case orchestration. In React Native or Flutter this is plain TypeScript/Dart. In KMM this is a Kotlin shared module compiled to both JVM and native via Kotlin/Native.
- Data Layer (share 70--90%): API clients, serialization, local database access, and repository interfaces. Use platform-agnostic HTTP clients (Ktor for KMM, Dio for Flutter, Axios for React Native). For local storage: SQLite via Expo SQLite or WatermelonDB (React Native), Drift/sqflite (Flutter), or SQLDelight (KMM).
- State Management Layer (share 50--80%): Centralized state with a pattern appropriate to the framework. React Native: Zustand for simple state, Redux Toolkit for complex state with > 5 interconnected data domains. Flutter: Riverpod for most projects, BLoC for teams that need strict separation and testability. KMM: StateFlow in the shared module consumed by SwiftUI (via SKIE or KMP-NativeCoroutines) on iOS and Compose on Android.
- Presentation/UI Layer (share 30--70% depending on framework): Navigation, screen components, and UI logic. This layer is where platform divergence is most acceptable. Platform-specific UI patterns (iOS navigation gestures, Android back-stack behavior, Material vs Cupertino widgets) should be implemented natively per platform even within a cross-platform project.
- Platform Bridge Layer (share 0%, define interfaces): Anything requiring native code -- camera, biometrics, Bluetooth, push notification handling, background tasks. Define abstract interfaces in the shared layer, implement natively per platform. Never let native bridge code leak into the domain layer.
Step 4: Structure the Repository and Project Layout
Define the directory structure before writing a single line of application code. Inconsistent structure is the root cause of most cross-platform maintainability failures.
- For React Native (Expo or bare): Use a feature-based directory structure rather than a type-based one. Group
src/features/auth/,src/features/catalog/,src/features/checkout/with each feature containing its own screens, hooks, components, and services. Shared infrastructure goes insrc/core/(navigation, API client, storage, theme). - For Flutter: Mirror the feature-based structure in Dart:
lib/features/,lib/core/,lib/l10n/. Useanalysis_options.yamlwithvery_good_analysislint rules from day one. Put platform-specific code inandroid/andios/directories only. - For KMM: Structure as a Gradle multi-module project:
shared/(Kotlin common code),androidApp/(Android UI),iosApp/(Xcode project). Withinshared/, separatecommonMain/,androidMain/, andiosMain/source sets for expect/actual declarations. - Monorepo consideration: If the project includes a backend, web app, or design system alongside the mobile app, use a monorepo (Turborepo for JS projects, Gradle multi-project for KMM). Keep mobile packages in
packages/mobile/orapps/mobile/. Shared TypeScript types between backend and mobile are a significant advantage of JS monorepos. - Asset management: Maintain a single source-of-truth asset directory. Use vector formats (SVG via react-native-svg or Flutter SVG) over raster where possible. For raster, provide 1x, 2x, and 3x density variants. Never commit assets larger than 500 KB to source control; use a design system asset pipeline instead.
Step 5: Establish Platform-Specific Handling Patterns
Cross-platform does not mean identical behavior on every platform. Define explicit strategies for where platforms must diverge.
- Navigation patterns: iOS expects hierarchical push/pop navigation with swipe-back gestures; Android expects a back-stack with a hardware/gesture back button that must be handled. Use React Navigation's stack navigator or Flutter's Navigator 2.0 with GoRouter. Always test back-stack behavior on Android separately from iOS -- this is the most common UX failure in cross-platform apps.
- Typography and spacing: iOS uses San Francisco (SF Pro); Android uses Roboto. Do not hardcode fonts assuming one platform. Use the system font stack unless the brand requires a custom font, in which case embed the font file and use it on both platforms identically.
- Permissions flow: iOS requires justification strings in
Info.plist(NSCameraUsageDescription, NSLocationWhenInUseUsageDescription, etc.). Android requires declarations inAndroidManifest.xmlplus runtime permission requests for API level 23+. Handle permission denial gracefully -- assume 30--40% of users will deny sensitive permissions on first prompt. Design the UX to function in a degraded state. - Safe area handling: iOS has Dynamic Island, notch, and home indicator safe areas. Android has variable status bar heights and gesture navigation zones. Use
SafeAreaView(React Native) orSafeAreawidget (Flutter) universally -- never hardcode pixel offsets for safe area. - Background execution: iOS strictly limits background execution to specific registered modes (background fetch, remote notifications, location, audio). Android is more permissive but varies significantly across OEM implementations (Samsung, Xiaomi, Huawei kill background processes aggressively). Design background features for the iOS constraint as the baseline; Android will be at least as capable.
Step 6: Define the Performance Testing and Validation Protocol
Performance on cross-platform is non-trivial. Establish a testing protocol before shipping to production.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/process/resources/skills-library/bodies/skills/software-engineering/cross-platform-strategy/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ferroxlabs/wayland/cross-platform-strategy)