android-engineering-skills
Skills that teach AI coding agents how to structure, write and test Android apps with Kotlin and Jetpack Compose.
Works alongside Google's official Android skills.
Google's skills handle specific tasks, like migrating XML to Compose or upgrading AGP.
These skills cover how an Android project is structured, written and tested.
Use both together.
Code is read more often than it is written. These skills optimize for the next engineer reading the code, not the current engineer writing it.
Skills
| Skill | What it covers | When the agent uses it |
|---|
android-architecture | Feature-first package layout, layer boundaries, naming, visibility and Hilt setup | Creating a project or feature, adding DI bindings, naming classes, deciding where code belongs |
android-patterns | Unidirectional data flow, ViewModels, state and actions, Flow composition, error handling, repositories, use cases and Compose UI | Writing ViewModels, state models, repositories, use cases or Compose screens |
android-testing | JUnit 5, Turbine, MockK or Mockito-Kotlin, test naming and structure, parameterized tests | Writing or reviewing unit tests for ViewModels, use cases, mappers and repositories |
Agents load a skill only when a task matches it, so the skills don't add to every prompt.
What the skills enforce
These are opinionated. Check that they match how your team works before adopting them.
Architecture
- Layers are
ui → presentation → domain ← data, and dependencies always point inward.
domain has no Android, Compose, Retrofit, database or DI dependencies.
- Code is organized by feature. No
utils or helpers dumping grounds.
Patterns
- State flows down from the ViewModel, and actions flow up from the UI through callbacks.
- Screens expose a single UI state through
StateFlow. One-shot events go through SharedFlow.
- Operations that can fail return
Result, with errors mapped to explicit types.
Testing
- Test names use backticks and read like a sentence:
`When amount is valid then it returns parsed value`.
- The class under test is always named
sut.
- Each test follows the same order: create objects and mocks, stub, act, assert.
- Flows are tested with Turbine inside
runTest.
Assumed stack
Kotlin, Jetpack Compose, Coroutines and Flow, Hilt, Retrofit, JUnit 5, Turbine, and MockK or Mockito-Kotlin.
If your project uses something else, like Koin or XML views, the skills still apply in principle. You can also fork them and adjust them (see Customize the skills).
How to Set Up
There are two ways to set up the skills:
- Install them as a plugin if you use Claude Code or Codex. It takes one or two commands, and updating is one more.
- Copy the skill folders into your project. This works with any agent, including Gemini in Android Studio.
Option 1: Install as a plugin
Claude Code
Run this inside a Claude Code session (version 2.1.275 or later):
/plugin install android-engineering-skills --marketplace lennonpetrick/android-engineering-skills
On earlier versions, add the marketplace first and then install:
/plugin marketplace add lennonpetrick/android-engineering-skills
/plugin install android-engineering-skills@android-engineering-skills
Codex
codex plugin marketplace add lennonpetrick/android-engineering-skills
codex plugin add android-engineering-skills@android-engineering-skills
Option 2: Copy the skill folders
Each coding agent reads skills from its own folder:
| Agent | Project folder | User folder (all projects) |
|---|
| Gemini in Android Studio | .agents/skills/ | ~/.agents/skills/ |
| Codex | .agents/skills/ | ~/.agents/skills/ |
| Claude Code | .claude/skills/ | ~/.claude/skills/ |
1. Clone this repo
Clone it somewhere outside your project.
macOS / Linux:
git clone --depth 1 https://github.com/lennonpetrick/android-engineering-skills.git /tmp/android-engineering-skills
Windows (PowerShell):
git clone --depth 1 https://github.com/lennonpetrick/android-engineering-skills.git "$env:TEMP\android-engineering-skills"
2. Copy the skills into your project
Run the commands for your agent from your project's root folder. They never overwrite anything: if you already have a skill with the same name, yours is kept.
Gemini in Android Studio and Codex
Both read .agents/skills/, so one copy works for both.
macOS / Linux:
mkdir -p .agents/skills
cp -Rn /tmp/android-engineering-skills/android-* .agents/skills/
Windows (PowerShell):