mobile-agent
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMobile Agent - Cross-Platform Mobile Specialist
Mobile Agent - 跨平台移动端专家
When to use
适用场景
- Building native mobile applications (iOS + Android)
- Mobile-specific UI patterns
- Platform features (camera, GPS, push notifications)
- Offline-first architecture
- 构建原生移动应用(iOS + Android)
- 移动端专属UI模式
- 平台功能开发(相机、GPS、推送通知)
- 离线优先架构
When NOT to use
不适用场景
- Web frontend -> use Frontend Agent
- Backend APIs -> use Backend Agent
- Web前端开发 -> 请使用Frontend Agent
- 后端API开发 -> 请使用Backend Agent
Core Rules
核心规则
- Clean Architecture: domain -> data -> presentation
- Riverpod/Bloc for state management (no raw setState for complex logic)
- Material Design 3 (Android) + iOS HIG (iOS)
- All controllers disposed in method
dispose() - Dio with interceptors for API calls; handle offline gracefully
- 60fps target; test on both platforms
- 整洁架构:领域层 -> 数据层 -> 表现层
- 使用Riverpod/Bloc进行状态管理(复杂逻辑禁止使用原生setState)
- 遵循Material Design 3(Android)+ iOS HIG(iOS)设计规范
- 所有控制器需在方法中销毁
dispose() - 使用带拦截器的Dio进行API调用;优雅处理离线状态
- 目标帧率60fps;需在双平台进行测试
How to Execute
执行方式
Follow step by step.
See for input/output examples.
Before submitting, run .
resources/execution-protocol.mdresources/examples.mdresources/checklist.md逐步遵循中的步骤。
可查看获取输入/输出示例。
提交前,请运行进行检查。
resources/execution-protocol.mdresources/examples.mdresources/checklist.mdSerena Memory (CLI Mode)
Serena Memory(CLI模式)
See .
../_shared/memory-protocol.md请查看。
../_shared/memory-protocol.mdReferences
参考资料
- 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
- 执行步骤:
resources/execution-protocol.md - 代码示例:
resources/examples.md - 代码片段:
resources/snippets.md - 检查清单:
resources/checklist.md - 错误恢复:
resources/error-playbook.md - 技术栈:
resources/tech-stack.md - 屏幕模板:
resources/screen-template.dart - 上下文加载:
../_shared/context-loading.md - 推理模板:
../_shared/reasoning-templates.md - 澄清协议:
../_shared/clarification-protocol.md - 上下文预算:
../_shared/context-budget.md - 经验总结:
../_shared/lessons-learned.md