Agent skill

Android Source Search

by rcosteira79 in rcosteira79/android-skills

A skill your agent uses when needing to fetch Android source code — AOSP platform internals (@hide APIs, framework classes, system services) or AndroidX/Jetpack library source and samples.

MITAuto-check passedMobile

Install Android Source Search

skills CLI
$ npx skills add rcosteira79/android-skills --skill android-source-search -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install rcosteira79/android-skills android-source-search --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/rcosteira79/android-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/android-skills/skills/android-source-search .claude/skills/android-source-search && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
android-source-search
GitHub stars
151
Token cost
~784 tokens
SKILL.md length
257 words
Files
1
Skills in repo
21
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when needing to fetch Android source code — AOSP platform internals (@hide APIs, framework classes, system services) or AndroidX/Jetpack library source and samples.

  • Needing to fetch Android source code — AOSP platform internals (@hide APIs
  • SKILL.md covers Preferred: the android-sources…, Fallback: WebFetch + gh and When the path is unknown
  • Calls gh; reaches android.googlesource.com and raw.githubusercontent.com
  • Framework classes

What it does

Android Source Search is an agent skill from rcosteira79/android-skills. Use when needing to fetch Android source code — AOSP platform internals (@hide APIs, framework classes, system services) or AndroidX/Jetpack library source and samples. Also use when public docs are insufficient to complete a task and implementation details must be read directly from source.

Its SKILL.md is about 780 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Mobile. It works with Android, Java, GitHub and Kotlin. The repository describes itself as: Claude Code skills for Android & KMP development. The licence is MIT.

When your agent uses it

  • Needing to fetch Android source code — AOSP platform internals (@hide APIs
  • Framework classes
  • System services)
  • AndroidX/Jetpack library source and samples

Example prompts

  • “/android-source-search”

What it can do on your machine

Read from SKILL.md and the folder at commit 0f9af5a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • android.googlesource.com
    • raw.githubusercontent.com
    • cs.android.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Android Source Search loads about 784 tokens when it runs. Until then it costs about 79 tokens; SKILL.md has 257 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~79
When it runs · the whole SKILL.md, loaded when a task matches
~784

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from rcosteira79/android-skills at commit 0f9af5a, republished under its MIT licence (© rcosteira79). 257 words, ~784 tokens.

Download SKILL.mdSave it as .claude/skills/android-source-search/SKILL.md (or your agent's skills folder).
name
android-source-search
description
Use when needing to fetch Android source code — AOSP platform internals (@hide APIs, framework classes, system services) or AndroidX/Jetpack library source and samples. Also use when public docs are insufficient to complete a task and implementation details must be read directly from source.

Two source trees, two access strategies. AOSP lives on android.googlesource.com (Gitiles); AndroidX lives on GitHub. cs.android.com blocks automated fetching — it's a human-browse JS SPA only (never WebFetch it).

Preferred: the android-sources MCP

If mcp__android-sources__* tools are available, always prefer them over WebFetch/gh — local source, sub-10ms lookups:

GoalMCP tool
Find a class by name/patternsearch_classes (glob, e.g. *ViewModel*)
Read full class / a method / its memberslookup_class / lookup_method / list_class_members
Class hierarchyget_class_hierarchy
Search text/regex across sourcessearch_in_source
List AndroidX artifact versionslist_available_versions
Definition / references / type info (LSP)goto_definition / find_references / get_type_info

Fall back to the WebFetch/gh strategies below only when the MCP tools aren't available.

Fallback: WebFetch + gh

AOSP (framework internals, @hide APIs, internal constants, default attr values) → Gitiles. Raw text is base64-encoded and smaller:

https://android.googlesource.com/platform/frameworks/base/+/refs/heads/main/{path}?format=TEXT

Use refs/heads/main (the active default branch), or a tag like android-14.0.0_r74 for a specific API level. Key repos: platform/frameworks/base (core/java/android/ → View/Activity/Context; services/core/java/ → system services; core/res/ → default attrs/styles), platform/libcore (ojluni/src/main/java/ → Java core).

AndroidX (androidx.* source + samples) → GitHub. File content via raw.githubusercontent.com; directory listings via gh api:

https://raw.githubusercontent.com/androidx/androidx/androidx-main/{path}
gh api repos/androidx/androidx/contents/{path} --jq '.[].name'

Samples live next to the source as {ClassName}Samples.kt under a samples/ subpath. Key path prefixes: Compose UI compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/, Foundation compose/foundation/foundation/src/commonMain/kotlin/, Animation compose/animation/animation/src/commonMain/kotlin/. AndroidX is mirrored on Gitiles (platform/frameworks/support, androidx-main), but the GitHub layout is the canonical, better-documented path for androidx.* — prefer it.

When the path is unknown

Use cs.android.com as a human search UI (not WebFetch — JS SPA) to locate the class/file, then fetch via Gitiles (AOSP) or raw.githubusercontent.com / gh api (AndroidX):

https://cs.android.com/search?q=ClassName+methodName&ss=android    # &ss=androidx for AndroidX

Both trees change frequently — always fetch current source rather than trusting remembered line numbers.

© rcosteira79, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/android-skills/skills/android-source-search of rcosteira79/android-skills.

Open the folder on GitHubat commit 0f9af5a

Compare with similar skills

Android Source Search next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Android Source Search compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Android Source Search this skillrcosteira79/android-skills151—~784Automated safety check: PassMIT
Android Maps Ktxgooglemaps/android-maps-ktx360—~897Automated safety check: PassApache-2.0
Guided PR Fixupalexvanyo/composelife267—~1kAutomated safety check: PassApache-2.0
Android Audio E2Ehyochan/react-native-nitro-sound961—~814Automated safety check: PassMIT
Project Binding Adapter From SourceafkT/DevUtils1.6k—~1.6kAutomated safety check: PassApache-2.0
Pre Push Guardqianyumeng0228/ShizukuX115—~584Automated safety check: PassApache-2.0

Similar skills

  • Android Maps Ktx

    googlemaps/android-maps-ktx

    Provides idiomatic Kotlin extension (KTX) patterns, reactive Flow event streams, and multi-subscriber shareIn rules for Google Maps SDK for Android and its Utility Library.

    360 GitHub stars~897 tokensUpdated yesterday
    MobileAuto-check passed
  • Guided PR Fixup

    alexvanyo/composelife

    Performs a guided fixup of a given GitHub PR. An agent skill from alexvanyo/composelife.

    267 GitHub stars~1k tokensUpdated today
    MobileAuto-check passed
  • Android Audio E2E

    hyochan/react-native-nitro-sound

    Build and run device-backed Android end-to-end checks for react-native-nitro-sound permissions, recording, playback, listeners, pause/resume, seek, speed, audio focus, lifecycle behavior, and rapid…

    961 GitHub stars~814 tokensUpdated 9 days ago
    MobileAuto-check passed
  • 根据用户给出的 Java/Kotlin 工具类或 View 相关源码,设计并实现 androidx.databinding.BindingAdapter。

    1.6k GitHub stars~1.6k tokensUpdated 1 mo ago
    MobileAuto-check passed
  • Pre Push Guard

    qianyumeng0228/ShizukuX

    ShizukuX codebase integrity checks. An agent skill from qianyumeng0228/ShizukuX.

    115 GitHub stars~584 tokensUpdated 2 days ago
    MobileAuto-check passed
  • Kotlin

    margelo/react-native-skills

    Design, implement, and review Kotlin and Android APIs. An agent skill from margelo/react-native-skills.

    175 GitHub stars~3k tokensUpdated 1 mo ago
    MobileAuto-check passed

More from rcosteira79/android-skills

All 21 skills in this repo
  • Guides writing correct, performant Compose and Compose Multiplatform UI across Android, desktop, iOS and web, from state and animation to design-to-code and crash fixes.

    151 GitHub stars~2.6k tokensUpdated 19 days ago
    Auto-check passed
  • Kotlin Multiplatform Boundaries

    rcosteira79/android-skills

    Helps choose how common Kotlin Multiplatform code reaches platform APIs: expect/actual, a common interface with platform bindings, or separate platform screens.

    151 GitHub stars~1.5k tokensUpdated 19 days ago
    Auto-check passed
  • Android Data Layer and Room in KMP

    rcosteira79/android-skills

    Sets out the repository pattern's error-propagation model for Android and Kotlin Multiplatform, plus the Room setup for commonMain.

    151 GitHub stars~1.2k tokensUpdated 19 days ago
    Auto-check passed
  • Android Debugging

    rcosteira79/android-skills

    Android and KMP debugging techniques for crashes, ANRs, memory leaks, R8 traces, Gradle failures and Compose recomposition, built on finding the root cause first.

    151 GitHub stars~2.6k tokensUpdated 19 days ago
    Auto-check passed
  • Android and KMP Baseline

    rcosteira79/android-skills

    Sets house defaults for Android and Kotlin Multiplatform work and routes to the right specialized skill for Compose, networking, testing or build tooling.

    151 GitHub stars~3k tokensUpdated 19 days ago
    Auto-check passed
  • Android Gradle Build Logic

    rcosteira79/android-skills

    Sets up Android Gradle convention plugins in a build-logic composite build, including the version catalog wiring and shared configuration that are easy to get wrong.

    151 GitHub stars~959 tokensUpdated 19 days ago
    Auto-check passed

Categories

Questions about Android Source Search

What does Android Source Search do?

A skill your agent uses when needing to fetch Android source code — AOSP platform internals (@hide APIs, framework classes, system services) or AndroidX/Jetpack library source and samples. Android Source Search is an agent skill from rcosteira79/android-skills. Use when needing to fetch Android source code — AOSP platform internals (@hide APIs, framework classes, system services) or AndroidX/Jetpack library source and samples.

When should I use Android Source Search?

Android Source Search fits situations like: needing to fetch Android source code — AOSP platform internals (@hide APIs; framework classes; system services); androidX/Jetpack library source and samples.

How do I install Android Source Search in Claude Code?

Run `npx skills add rcosteira79/android-skills --skill android-source-search -a claude-code`. Or copy the skill folder (plugins/android-skills/skills/android-source-search in rcosteira79/android-skills) into .claude/skills/android-source-search in your project. Claude Code loads it when a task matches its description.

How do I install Android Source Search in Codex?

Run `npx skills add rcosteira79/android-skills --skill android-source-search -a codex`. Or copy the skill folder (plugins/android-skills/skills/android-source-search in rcosteira79/android-skills) into .agents/skills/android-source-search in your project. Codex loads it when a task matches its description.

Can I use Android Source Search in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add rcosteira79/android-skills --skill android-source-search -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/android-source-search, .gemini/skills/android-source-search, .github/skills/android-source-search and .opencode/skills/android-source-search in your project.

What does Android Source Search need to run?

Going by SKILL.md and its folder, Android Source Search needs the command-line tools its instructions call (gh).

Does Android Source Search access the network?

SKILL.md names 3 domains. In commands or code: android.googlesource.com, raw.githubusercontent.com and cs.android.com; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Android Source Search safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Android Source Search use?

Android Source Search is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Android Source Search use?

About 784 tokens (SKILL.md is roughly 3.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Android Source Search?

Skills that share tags, products or a category with Android Source Search: Android Maps Ktx (googlemaps/android-maps-ktx, 360 stars), Guided PR Fixup (alexvanyo/composelife, 267 stars), Android Audio E2E (hyochan/react-native-nitro-sound, 961 stars) and Project Binding Adapter From Source (afkT/DevUtils, 1.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Android Source Search?

rcosteira79 (a GitHub user) maintains it in rcosteira79/android-skills, which has 151 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on September 19, 2026.

Source: rcosteira79/android-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.