oma-mobile

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Mobile Agent - Cross-Platform Mobile Specialist

移动领域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
  • 网页前端开发 -> 请使用前端领域Agent
  • 后端API开发 -> 请使用后端领域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. API调用使用带拦截器的Dio;优雅处理离线场景
  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
中的检查项。

Execution Protocol (CLI Mode)

执行协议(CLI模式)

Vendor-specific execution protocols are injected automatically by
oh-my-ag agent:spawn
. Source files live under
../_shared/runtime/execution-protocols/{vendor}.md
.
供应商专属执行协议由
oh-my-ag agent:spawn
自动注入。 源文件存放在
../_shared/runtime/execution-protocols/{vendor}.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/core/context-loading.md
  • Reasoning templates:
    ../_shared/core/reasoning-templates.md
  • Clarification:
    ../_shared/core/clarification-protocol.md
  • Context budget:
    ../_shared/core/context-budget.md
  • Lessons learned:
    ../_shared/core/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/core/context-loading.md
  • 推理模板:
    ../_shared/core/reasoning-templates.md
  • 澄清协议:
    ../_shared/core/clarification-protocol.md
  • 上下文预算:
    ../_shared/core/context-budget.md
  • 经验总结:
    ../_shared/core/lessons-learned.md