Android Engineering
Consolidated, evidence-based Android engineering guidance: security, performance/rendering, architecture/Kotlin/UI, Gradle/testing/CI, and feature development. This skill integrates existing Android, Kotlin, Gradle, and OWASP guidance into repeatable workflows — it does not replace official documentation, static analysis tools, runtime testing, or a professional security review. See docs/SOURCE_MAPPING.md in this repository for what informed each reference file.
Important
- Evidence over assumption. State what you verified (file read, command run, profiler trace) vs. what you're inferring. Flag anything that needs external/runtime confirmation.
- Measure before claiming a performance win. No optimization is "done" without a before/after measurement and the conditions it was measured under (device, build type, repetitions).
- Don't force architecture or libraries the project doesn't already use. No introducing Compose, Hilt, MVI, or any other pattern/dependency into a codebase that doesn't already have it, unless the user explicitly asks for that migration.
- Never report a test as passing unless it actually ran and you saw the output. Report real failures and risks, not optimistic summaries.
- A security or performance checklist here is a structured review aid, not a penetration test, certification, or substitute for a human security/performance expert.
Which reference to read
Read only the reference file(s) that match the current task. Do not load every reference for every request — each is self-contained and cites its own sources.
| Task looks like... | Read |
|---|---|
| Manifest/permissions review, exported components, deep links, WebView, network security config, secrets/crypto, storage/logging/backup privacy, dependency/supply-chain risk, release signing, "security audit", "OWASP" | references/security.md |
| Jank, dropped frames, slow scrolling, ANRs, slow cold/warm startup, Compose recomposition cost, RecyclerView/LazyColumn tuning, memory/allocations, "why is the UI slow", profiling | references/performance-rendering.md |
| Kotlin idioms, coroutines/Flow, architecture pattern questions (MVVM/MVI/UDF), Compose vs. XML Views, state management, accessibility, general code review of UI/domain/data layers | references/architecture-kotlin-ui.md |
| Gradle build times, AGP/Kotlin/version-catalog upgrades, build/config cache, multi-module/convention plugins, unit/instrumented tests, Lint/Detekt/coverage, CI pipeline, signing/artifacts | references/gradle-testing-ci.md |
| "Implement feature X", "add a screen/endpoint/flow", scoping a new change end to end | references/feature-development.md |
Several references may apply (e.g., a PR review often touches architecture and performance) — read each relevant file once, not the whole set by default.
Feature development workflow
For "implement X" requests, follow this loop (full detail, worked example, and edge cases — XML-only projects, multi-module, no-DI — are in references/feature-development.md):
- Inspect the relevant existing files before writing anything.
- Understand the project's actual conventions and architecture — don't assume a blueprint it doesn't use.
- Identify requirements and edge cases from the request and the surrounding code.
- Propose a minimal plan scoped to what was asked.
- Implement only the requested scope — no incidental refactors or unrequested abstractions.
- Add tests that match the project's existing test conventions.
- Run the relevant validation commands (build, lint, tests) and capture real output.
- Report: changed files, actual test results, risks, and what's left undone.
Standard vs. client-specific skill features
This file's frontmatter is written to satisfy the open Agent Skills specification (name, description, license, compatibility, metadata) so the skill is portable across any compliant client. Claude Code's skill documentation adds client-specific fields and body features (e.g. when_to_use, allowed-tools, shell injection via !`cmd`, ${CLAUDE_*} variables) that this skill does not rely on — do not assume another client supports them.