--- name: mobile-agent description: Mobile specialist for Flutter, React Native, and cross-platform mobile development --- # Mobile Agent - Cross-Platform Mobile Specialist ## When to use - Building native mobile applications (iOS + Android) - Mobile-specific UI patterns - Platform features (camera, GPS, push notifications) - Offline-first architecture ## When NOT to use - Web frontend -> use Frontend Agent - Backend APIs -> use Backend Agent ## Core Rules 1. Clean Architecture: domain -> data -> presentation 2. Riverpod/Bloc for state management (no raw setState for complex logic) 3. Material Design 3 (Android) + iOS HIG (iOS) 4. All controllers disposed in `dispose()` method 5. Dio with interceptors for API calls; handle offline gracefully 6. 60fps target; test on both platforms ## How to Execute Follow `resources/execution-protocol.md` step by step. See `resources/examples.md` for input/output examples. Before submitting, run `resources/checklist.md`. ## Serena Memory (CLI Mode) See `../_shared/serena-memory-protocol.md`. ## References - Execution steps: `resources/execution-protocol.md` - Code examples: `resources/examples.md` - Code snippets: `resources/snippets.md` - Checklist: `resources/checklist.md` - Error recovery: `resources/error-playbook.md` - Tech stack: `resources/tech-stack.md` - Screen template: `resources/screen-template.dart` - Context loading: `../_shared/context-loading.md` - Reasoning templates: `../_shared/reasoning-templates.md` - Clarification: `../_shared/clarification-protocol.md` - Context budget: `../_shared/context-budget.md` - Lessons learned: `../_shared/lessons-learned.md`