android-source-search

android-source-search is a skill for Claude Code from rcosteira79/android-skills. It costs 60 tokens per session (786 once invoked), scanned A, original, MIT.

A tool for finding Android platform source code and AndroidX library code. Android platform source is the code behind the operating system, while AndroidX is Google's collection of supporting libraries for Android apps.

In plain words
What is it for?
Use it to search classes and text, read methods, inspect class hierarchies, find definitions and references, and check available AndroidX versions.
Why use it?
Public documentation may not explain internal behavior or implementation details. Reading the source can clarify how framework classes, system services, and library features actually work.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the android-skills plugin — 21 skills shipped together

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 skills/rcosteira79/android-skills/android-source-search
Any agent
npx skills add rcosteira79/android-skills --skill android-source-search
Clone the repo
git clone --depth 1 https://github.com/rcosteira79/android-skills

Made for: Claude Code.

Or install android-skills, the plugin that ships this one along with the rest of its 21 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for android-source-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/rcosteira79/android-skills/android-source-search.svg)](https://agentmods.dev/skills/rcosteira79/android-skills/android-source-search)
Your own site
<a href="https://agentmods.dev/skills/rcosteira79/android-skills/android-source-search"><img src="https://agentmods.dev/badge/skills/rcosteira79/android-skills/android-source-search.svg" alt="Measured on agentmods" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 786 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.1 $0.00060 $0.00786
Opus 5 $0.00030 $0.00393
Sonnet 5 $0.00012 $0.00157
Haiku 4.5 $0.00006 $0.00079

Measured 6d ago against content hash da3f4612c09e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

android-source-search 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 6d 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.

plugins/android-skills/skills/android-source-search/SKILL.md · 53 lines

How it starts

The opening of the file, as written. The whole thing — 53 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

Goal MCP tool
Find a class by name/pattern search_classes (glob, e.g. *ViewModel*)
Read full class / a method / its members lookup_class / lookup_method / list_class_members
Class hierarchy get_class_hierarchy
Search text/regex across sources search_in_source
List AndroidX artifact versions list_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.

Read the full file on GitHub · 53 lines

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. 6d ago First seen · 53 lines · 60 tokens per session scan A da3f4612c09e

Subscribe to this mod's changes

android-source-search is a skill published in the GitHub repository rcosteira79/android-skills (136 stars, last pushed 11d ago), licensed MIT. It adds 60 tokens to every session and 786 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

orca-emulator-android

Control an Android emulator / device from inside Orca using the orca CLI. Use for listing/booting AVDs, taps, swipes, typing, hardware buttons (incl. Back and Recents), rotation, app install/launch, runtime permissions, the accessibility tree, and logcat — driving a real adb-connected device or emulator.…

stablyai/orca · 104 tokens

android-tombstone-symbolication

Symbolicate the .NET runtime frames in an Android tombstone file. Extracts BuildIds and PC offsets from the native backtrace, downloads debug symbols from the Microsoft symbol server, and runs llvm-symbolizer to produce function names with source file and line numbers. USE FOR triaging a .NET MAUI or Mono Android app…

dotnet/skills · 176 tokens

dogfood

Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.

callstack/agent-device · 55 tokens

winapp-maui

Package and sign .NET MAUI Windows apps with winapp, resolving the resizetizer manifest dependency. Use when packaging or signing a .NET MAUI Windows app, building a MAUI MSIX or signed unpackaged build in CI, or fixing 'manifest contains unresolved placeholders ($placeholder$)' errors from winapp package.

microsoft/winappCli · 71 tokens

apple-search-ads

When the user wants to set up, optimize, or scale Apple Search Ads (ASA) campaigns — including keyword bidding, match types, campaign structure, Creative Product Sets, CPP routing, and ROAS optimization. Use when the user mentions "Apple Search Ads", "ASA", "Search Ads", "Search tab ads", "Today tab ads", "CPT"…

Eronred/aso-skills · 127 tokens

android-pentest

安卓应用渗透测试 — APK分析、Hook、自动化测试、运行态驱动、签名恢复、抓包分析.

Netw0rkNoob/VulnClaw · 32 tokens