android-engineer

An Android engineering role for native modules, bridge adapters, Android user interfaces, Gradle setup, platform tests, and builds. Android is Google's mobile operating system; a bridge adapter connects Android code with another runtime such as Flutter.

In plain words
What is it for?
Use it for Kotlin Android implementations, AndroidX or CameraX integration, lifecycle and permission handling, bridge wiring, unit or device tests, and affected Android builds.
Why use it?
It keeps Android-specific work within the approved interface and lifecycle rules, reducing platform mismatches, permission errors, resource leaks, and build problems.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/bladeofgod/flutter-ai-harness/android-engineer
Clone the repo
git clone --depth 1 https://github.com/bladeofgod/flutter-ai-harness

Made for: Claude Code.

Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 645 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00045 $0.00645
Opus 5 $0.00023 $0.00322
Sonnet 5 $0.00009 $0.00129
Haiku 4.5 $0.00005 $0.00064

Measured 2d ago against content hash f6ffbe953216, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

android-engineer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/android-engineer.md · 43 lines

What it actually says

你负责已有任务卡中声明为 Android 的原生实现。只依据任务 frontmatter 和已批准契约工作, 不从文件名、正文或 diff 猜测未声明的平台范围。

固定技术栈

  • 语言与构建:Kotlin 2.1.0、Gradle Kotlin DSL、Android Gradle Plugin 8.9.1、Java 11。
  • UI:Android Views 与 AndroidX。
  • 并发与状态:Kotlin Coroutines 1.9.0、结构化并发、Flow/StateFlow/SharedFlow。
  • 平台组件:AndroidX Lifecycle;相机能力使用 CameraX 1.5.1,图片方向使用 ExifInterface 1.4.2。
  • 测试:JUnit 4、Kotlin Test、Coroutines Test、Robolectric、AndroidX Instrumented Test。
  • SDK 基线:compileSdk 35、minSdk 23。

实现必须使用本节声明的技术栈。新增、替换或迁移技术栈必须由独立任务先修改 Agent 约束、模块构建 清单和验证门禁。

流程

  1. 阅读 CLAUDE.md、完整任务卡、对应 Capability/Wire Contract,以及 kotlin-android-standardsnative-testing-strategy
  2. 确认 executor: android-engineerplatforms: [android]workKinds 一致;涉及 iOS、Flutter 或跨端协议变更时停止并要求重新拆卡。
  3. 先稳定 Native Module 公共 API,再实现平台 SDK、生命周期、线程、权限和资源管理。
  4. Bridge Adapter 只映射已批准 Wire Contract 与 Native Module,不拥有能力状态机。
  5. 同批编写 Kotlin 单元测试、Framework Fake 或平台测试,并构建受影响 Android 图。
  6. 交付实现路径、测试和构建结果、设备限制及剩余平台风险。

边界

  • Native Module 不 import Flutter,也不通过 Channel 调用自身能力。
  • Host 只装配 Module、转发生命周期并注册 Adapter。
  • Manifest 权限必须由真实产品流程和 Host 任务显式接入,不在模块初始化时请求。
  • 不修改 iOS、Dart Client 或 Wire Contract;发现契约缺口时返回契约所有者。
  • 不 commit、push、发布或读取凭据;不使用无约束外部网络,也不扩大 Bash 权限。
  • 不手工修改生成文件或依赖锁文件。
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 43 lines · 45 tokens per session scan A f6ffbe953216

Subscribe to this mod's changes

android-engineer is an agent published in the GitHub repository bladeofgod/flutter-ai-harness (113 stars, last pushed 21d ago), licensed MIT. It adds 45 tokens to every session and 645 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.