cross-platform
React Native+Expo (EAS), Flutter/Dart (Bloc/Riverpod), Capacitor, KMM — framework selection
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o cross-platform.zip https://jpskill.com/download/22256.zip && unzip -o cross-platform.zip && rm cross-platform.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/22256.zip -OutFile "$d\cross-platform.zip"; Expand-Archive "$d\cross-platform.zip" -DestinationPath $d -Force; ri "$d\cross-platform.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
cross-platform.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
cross-platformフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Claude が読む原文 SKILL.md(中身を展開)
この本文は AI(Claude)が読むための原文(英語または中国語)です。日本語訳は順次追加中。
cross-platform
Purpose
This skill guides the selection and implementation of cross-platform mobile frameworks like React Native with Expo, Flutter with Dart (using Bloc or Riverpod), Capacitor, and Kotlin Multiplatform Mobile (KMM). It focuses on choosing the right framework based on project needs and provides step-by-step integration for efficient mobile app development.
When to Use
Use this skill for projects requiring multi-platform deployment (iOS/Android) to reduce code duplication. Apply it when building apps with shared business logic, such as e-commerce apps, social networks, or productivity tools. Ideal for teams with limited resources or when rapid prototyping is needed, like integrating native modules or handling state management across platforms.
Key Capabilities
- Framework selection: Choose React Native for JavaScript-heavy apps, Flutter for custom UI with Dart, Capacitor for web-to-mobile conversion, or KMM for shared Kotlin codebases.
- Expo integration: Use EAS (Expo Application Services) for streamlined builds, including OTA updates and cloud services.
- State management: Implement Bloc for event-driven state in Flutter or Riverpod for reactive state in Flutter/Dart apps.
- Cross-platform features: Handle platform-specific code, like accessing device APIs (e.g., camera, GPS) via Capacitor's bridge or KMM's expect/actual declarations.
- Configuration: Manage app configs in JSON/YAML formats, such as Expo's app.json for routing and permissions.
Usage Patterns
To select a framework, evaluate based on tech stack: use React Native if the team knows JS; Flutter for high-performance UIs. Start by initializing a project:
- For React Native with Expo: Run
expo init MyApp --template blankthen add dependencies withnpm install @react-navigation/native. - For Flutter with Riverpod: Create a project with
flutter create MyAppand set up state:final counterProvider = StateProvider((ref) => 0);in a Dart file. Always wrap platform-specific code: In KMM, useexpect fun platformFunction() {}in common code and implement in iOS/Android modules. For Capacitor, convert a web app by runningnpx cap add androidafter setting up a web project.
Common Commands/API
- Expo (React Native): Use
expo login(requires $EXPO_API_KEY env var),eas build --platform allfor multi-platform builds, and API endpointPOST https://api.expo.dev/v2/projectsfor project management. - Flutter: Run
flutter pub add flutter_blocfor Bloc, orflutter run --device-id emulator-5554to target a specific emulator; access APIs likeBlocProvider.of(context).add(Event())for state changes. - Capacitor: Execute
npx cap syncto update native projects, ornpx cap open androidto launch Android Studio; use Capacitor's Plugins API, e.g.,Capacitor.Plugins.Camera.getPhoto()in JavaScript. - KMM: Build with
./gradlew buildin the shared module, and use KMM Bridge for iOS:import shared.Platform().hello()in Swift. Config formats: Edit Expo's app.json like{ "expo": { "name": "MyApp", "slug": "myapp", "platforms": ["ios", "android"] } }; for Flutter, modify pubspec.yaml withdependencies: flutter_riverpod: ^2.0.0.
Integration Notes
Integrate these frameworks with backends by setting environment variables for auth, e.g., export $BACKEND_API_KEY for API calls. For React Native, use Expo's Fetch API: fetch('https://api.example.com/data', { headers: { Authorization:Bearer ${process.env.BACKEND_API_KEY}} }). In Flutter, add HTTP packages: http.get(Uri.parse('https://api.example.com/data'), headers: {'Authorization': 'Bearer $envVar'}).then((response) => ...);. For Capacitor, bridge web requests: Install @capacitor/core and use CapacitorHttp.get({url: 'https://api.example.com/data', headers: {Authorization: $BACKEND_API_KEY}});. KMM integration: Share networking code via common module and call from native apps, ensuring Gradle sync for dependencies.
Error Handling
Handle common errors by checking for platform mismatches: In React Native, if expo build fails with "Invalid platform", verify app.json platforms array. For Flutter, if flutter run errors on "No devices", use flutter emulators --launch Pixel_API_33 then retry. Capacitor errors like "Plugin not found" require npx cap sync and verifying package.json. In KMM, resolve build failures with ./gradlew clean for corrupted caches. Always log errors: In Expo, use console.error(e) and check EAS build logs; in Flutter, wrap with try-catch: try { await http.get(...); } catch (e) { print(e.toString()); }. Use env vars for secure keys to avoid exposure.
Graph Relationships
- Connected to: mobile cluster
- Relates to: react-native skill, flutter skill, expo skill, capacitor skill
- Depends on: cross-platform tags for embedding
- Interacts with: kmm framework in mobile ecosystem