AgentSkillsCN

mobile-development

iOS(Swift、SwiftUI)、Android(Kotlin、Compose)、跨平台(Flutter、React Native)和游戏开发(Unity、Unreal)。

SKILL.md
--- frontmatter
# ═══════════════════════════════════════════════════════════════════════════
# SKILL: Mobile Development
# Version: 2.0.0 | Updated: 2025-01
# ═══════════════════════════════════════════════════════════════════════════
name: mobile-development
description: iOS (Swift, SwiftUI), Android (Kotlin, Compose), cross-platform (Flutter, React Native), and game development (Unity, Unreal).

# ACTIVATION TRIGGERS
triggers:
  - ios
  - android
  - flutter
  - react native
  - mobile
  - swift
  - kotlin
  - unity
  - game development

# SKILL PARAMETERS
parameters:
  platform:
    type: string
    enum: [ios, android, cross-platform, games]
    required: true
  project_type:
    type: string
    required: false
    description: Type of app (social, productivity, game, etc.)

# OUTPUT SPECIFICATION
outputs:
  recommended_stack:
    type: object
  learning_path:
    type: array
  portfolio_projects:
    type: array

# RELIABILITY
retry:
  max_attempts: 3
  backoff: exponential

# OBSERVABILITY
observability:
  log_level: info

level: advanced
prerequisites:
  - core-development

sasmp_version: "1.3.0"
bonded_agent: 01-core-paths
bond_type: PRIMARY_BOND

Mobile Development Skill

Quick Reference

PlatformLanguageFrameworkTimelineJob Market
iOSSwiftSwiftUI6-9 moHigh
AndroidKotlinCompose6-9 moHigh
Cross-PlatformDartFlutter4-6 moGrowing
GamesC#Unity12-24 moModerate

Learning Paths

iOS Development

code
[1] Swift Fundamentals (4-6 wk)
 │  └─ Types, optionals, closures, protocols
 │
 ▼
[2] SwiftUI (4-6 wk)
 │  └─ Views, modifiers, state, binding
 │
 ▼
[3] Navigation + Data (3-4 wk)
 │  └─ NavigationStack, SwiftData/Core Data
 │
 ▼
[4] Networking + Async (2-3 wk)
 │  └─ URLSession, async/await, Combine
 │
 ▼
[5] Testing + App Store (2 wk)
    └─ XCTest, TestFlight, submission

2025 Stack: Swift 5.10 + SwiftUI + SwiftData + Xcode 16


Android Development

code
[1] Kotlin Fundamentals (4-6 wk)
 │  └─ Null safety, coroutines, data classes
 │
 ▼
[2] Jetpack Compose (4-6 wk)
 │  └─ Composables, state, effects
 │
 ▼
[3] Architecture (3-4 wk)
 │  └─ MVVM, Room, Navigation
 │
 ▼
[4] Networking + DI (2-3 wk)
 │  └─ Retrofit, Hilt, Flow
 │
 ▼
[5] Testing + Play Store (2 wk)
    └─ JUnit, Espresso, release

2025 Stack: Kotlin 2.0 + Jetpack Compose + Room + Hilt


Flutter (Cross-Platform)

code
[1] Dart Fundamentals (2-3 wk)
 │
 ▼
[2] Flutter Widgets (3-4 wk)
 │
 ▼
[3] State Management (2-3 wk)
 │  └─ Riverpod or Bloc
 │
 ▼
[4] Backend Integration (2 wk)
 │  └─ Firebase, REST APIs
 │
 ▼
[5] Deploy to Both Stores (1 wk)

2025 Stack: Flutter 3.x + Dart 3.x + Riverpod + Firebase


Game Development

code
[1] Game Basics (4-6 wk)
 │  └─ Game loop, input handling
 │
 ▼
[2] Unity/C# Fundamentals (6-8 wk)
 │  └─ GameObjects, Components, Scripts
 │
 ▼
[3] Physics + Graphics (4-6 wk)
 │  └─ Rigidbody, colliders, shaders
 │
 ▼
[4] Audio + Polish (2-4 wk)
 │
 ▼
[5] Publish (ongoing)
    └─ Steam, App Store, Play Store

2025 Stack: Unity 6 LTS + C# OR Unreal 5.4 + C++


Platform Decision Tree

code
Which platform?
│
├─► Apple ecosystem only?
│   └─► iOS (Swift + SwiftUI)
│
├─► Android ecosystem only?
│   └─► Android (Kotlin + Compose)
│
├─► Both platforms?
│   ├─► Performance-critical? → Native for both
│   ├─► Budget/time limited? → Flutter
│   └─► Web developer background? → React Native
│
└─► Making games?
    ├─► 2D/3D indie → Unity
    ├─► AAA quality → Unreal
    └─► Simple 2D → Godot

Game Engine Comparison

EngineMarketLanguageLearningBest For
Unity51%C#MediumIndie, mobile, VR
Unreal31%C++/BPHardAAA, high-fidelity
Godot10%GDScriptEasyIndie, 2D

Troubleshooting

code
Native vs Cross-platform?
├─► Need platform-specific APIs (HealthKit, ARCore)? → Native
├─► Performance-critical (AR/VR, complex animations)? → Native
├─► Budget or time limited? → Flutter
├─► Team knows JavaScript? → React Native
└─► Starting from scratch? → Flutter (best DX)

Simulator works, device doesn't?
├─► Missing entitlements/capabilities?
├─► Different iOS/Android version?
├─► Network connectivity issues?
└─► Always test on real devices from day 1

App rejected by store?
├─► Read rejection reason carefully
├─► Check App Store Review Guidelines
├─► Most common: metadata issues, crashes, spam
└─► Appeal if unjustified

Common Failure Modes

SymptomRoot CauseRecovery
Slow UIToo many recompositionsProfile, optimize state
Memory leaksNot cleaning up resourcesUse lifecycle-aware components
App rejectedGuidelines violationRead guidelines BEFORE building
Game stuttersDraw call overheadObject pooling, LOD, batching

Portfolio Projects

Mobile (Progressive)

  1. Todo App - CRUD basics
  2. Weather App - API integration
  3. Chat App - Real-time, auth
  4. Payment App - Stripe, security

Games

  1. 2D Platformer - Physics basics
  2. 3D Runner - 3D graphics, particles
  3. Multiplayer Game - Networking

Next Actions

Specify your target platform for a detailed learning plan.