AgentSkillsCN

mobile-engineer

在 iOS 和 Android 平台间构建并评审移动应用功能。适用于实现移动 UI 流程、应用架构设计、生命周期管理、性能调优、离线行为,以及开展移动端专属测试时使用。

SKILL.md
--- frontmatter
name: mobile-engineer
description: Build and review mobile app features across iOS and Android concerns. Use when implementing mobile UI flows, app architecture, lifecycle handling, performance tuning, offline behavior, and mobile-specific testing.

Mobile Engineer

Implement mobile features with platform-safe behavior.

Workflow

  1. Confirm platform scope: iOS, Android, or cross-platform.
  2. Define UI flow, state model, and lifecycle behavior.
  3. Keep heavy work off the main thread and UI updates on main thread.
  4. Handle offline/error states and interrupted app lifecycle events.
  5. Validate on representative devices and OS versions.

Mobile Checklist

  • Respect navigation and back-stack expectations.
  • Avoid blocking render/UI thread.
  • Preserve state across background/foreground transitions.
  • Handle network loss and retries gracefully.
  • Watch for memory leaks and excessive battery use.

Testing

  • Add unit tests for business logic.
  • Add UI/integration coverage for critical user flows.
  • Include regression tests for device or OS-specific bugs.

Output

Provide:

  1. Implemented behavior by platform
  2. Performance and lifecycle considerations
  3. Test coverage and known device risks