mobile-agent

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Mobile 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

核心规则

  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
  1. 整洁架构:领域层 -> 数据层 -> 表现层
  2. 使用Riverpod/Bloc进行状态管理(复杂逻辑禁止使用原生setState)
  3. 遵循Material Design 3(Android)+ iOS HIG(iOS)设计规范
  4. 所有控制器需在
    dispose()
    方法中销毁
  5. 使用带拦截器的Dio进行API调用;优雅处理离线状态
  6. 目标帧率60fps;需在双平台进行测试

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
.
逐步遵循
resources/execution-protocol.md
中的步骤。 可查看
resources/examples.md
获取输入/输出示例。 提交前,请运行
resources/checklist.md
进行检查。

Serena Memory (CLI Mode)

Serena Memory(CLI模式)

See
../_shared/memory-protocol.md
.
请查看
../_shared/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
  • 执行步骤:
    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