Google Android Skills: An Open Repository of Official Skills for Android AI Coding AgentsArticle · digest for October 11
Google Android Skills repository: connecting modular skill.md knowledge packages for coding agents via Android CLI and transforming legacy XML into Jetpack Compose.
Article1 section≈ 5 min

Google Android Skills: An Open Repository of Official Skills for Android AI Coding Agents

Any mobile developer who has trusted modern coding agents like Claude Code, Cursor, or Gemini Code Assist to refactor an Android app knows the "time machine" effect. Trained on massive repositories from five years ago, language models stubbornly output outdated XML layouts, suggest deprecated Android Gradle Plugin (AGP) setups, and invent library syntax that breaks on modern Kotlin.

To close the gap between stale model weights and the fast-moving Android ecosystem, Google introduced the official open-source Android Skills repository (github.com/android/skills). Built on the open Agent Skills specification, it turns dry Google Developers documentation into modular, executable knowledge packages that an agent can load into context on demand.

The Curse of Legacy Training Data: Why Models Confuse Compose and XML

The issue isn't that base models are "dumb." It's the sheer inertia of large training corpora. Public GitHub repos are still dominated by millions of lines of legacy code: multi-page XML layouts, clunky RecyclerView adapters, old findViewById calls, and unsafe screen transitions.

When you ask an agent to build a new screen, it picks the most statistically likely path and writes five-year-old code. Trying to fix this with giant system prompts quickly eats up the context window and confuses instructions. Developers needed a standard way to deliver fresh engineering context: 2026 Jetpack Compose BOM libraries, AGP 9 build rules, and Navigation 3 specs.

The Agent Skills Standard: Knowledge as a Modular Package

Google Android Skills solves this with portable, self-contained skills. Each skill is an isolated directory in your project containing three core parts:

  1. skill.md instruction manifest: A structured natural-language task guide with YAML metadata specifying minimum compatible tool versions, target files, and a step-by-step workflow.
  2. Templates & Linters: Reference code snippets that keep the agent from inventing its own architectural workarounds.
  3. Verification scripts: Deterministic tests that the agent must run after making edits to prove the build succeeds.

The standard isn't locked to proprietary Google tools. Any terminal agent or IDE that supports the Agent Skills specification can use it.

Terminal Workflow: Managing Skills via Android CLI

Developers manage skills using the standard android CLI utility. Instead of copying files from documentation by hand, a single command sets everything up:

# Browse the catalog of official skills in Google's repository
android skills list

# Add the step-by-step Jetpack Compose migration skill to your project
android skills add compose-migration --project=.

# Add the pre-release audit skill for the R8 optimizer and AGP 9
android skills add agp9-r8-audit --project=.

# Check if locally installed knowledge modules are up to date
android skills status

Once run, a .skills/ directory appears at the root of your repository. Your IDE's coding agent gains instant access to it while analyzing the codebase.

Inside the Manifest: How a Migration Scenario Works in skill.md

A skill manifest leaves no room for guesswork. It locks down build dependencies and spells out exact rules for converting old views into declarative functions.

Here is a snippet from the UI migration skill (.skills/compose-migration/skill.md) that teaches an agent how to rewrite screens on the modern declarative stack:

---
name: compose-migration
description: Step-by-step migration of UI components from legacy XML layouts to declarative Jetpack Compose with Material 3.
compatibility:
  agp_min: "9.0.0"
  compose_bom: "2026.10.00"
---

# Instructions for Android Agent

## Step 1: Inspect Layout Dependencies
Check `app/build.gradle.kts`. Make sure `buildFeatures.compose = true` is enabled and the current Compose BOM is connected:

```kotlin
buildFeatures {
    compose = true
}
dependencies {
    val composeBom = platform("androidx.compose:compose-bom:2026.10.00")
    implementation(composeBom)
    implementation("androidx.compose.material3:material3")
}

Step 2: Convert XML Views to Composable Functions

  • Replace every <TextView> with a Text() call.
  • Replace <LinearLayout android:orientation="vertical"> containers with Column().
  • For <RecyclerView> lists, use LazyColumn with an items(itemsList) block.
  • Move all outer margins to the Modifier.padding(...) modifier.

Following this manifest, the agent works step by step. First it checks the Gradle config, adds missing artifacts, and only then rewrites the UI layout.

#### Testing on Real Hardware: Cloud Streaming and Google Play Audits

Google went beyond code generation and connected skills to cloud testing tools:

* **Android Device Streaming**: Using CLI commands, the agent can send a compiled APK to a cloud pool of physical Google Pixel phones. It checks in real time whether the UI renders properly in Edge-to-Edge mode without overlapping system navigation bars.
* **Play Policy Audit**: Before a commit goes out, a dedicated skill checks `AndroidManifest.xml` against current Google Play Store security rules, blocking unnecessary permissions like background location or SMS access.

The Android Skills catalog shows the right direction for developer tools. Instead of waiting endlessly for next-generation models, engineers are packaging platform expertise into standardized, executable modules.
Want a deep diveVotes help us choose what to break down in detail. This material has 0 votes.
Sources · 2