android-source-search

android-source-search is a skill for Claude Code from rcosteira79/android-skills. It costs 60 tokens per session (648 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

Good fit Use it to search classes and text, read methods, inspect class hierarchies, find definitions and references, and check available AndroidX versions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rcosteira79/android-skills/android-source-search
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.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for android-source-search

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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 648 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00648
Opus 5.5 $0.00024 $0.00259
Sonnet 5.5 $0.00012 $0.00130
Haiku 4.5 $0.00006 $0.00065

Measured 23d ago against content hash 5a2312cba21a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 23d 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 · 42 lines

How it starts

The opening of the file, as written. The whole thing — 42 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. Fall back to the strategies below only when they aren't.

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):

Read the full file on GitHub · 42 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. 23d ago Changed · -11 lines 5a2312cba21a
  2. 3mo 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 (185 stars, last pushed 23d ago), licensed MIT. It adds 60 tokens to every session and 648 once invoked, about $0.0002 per session on Opus 5.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

android-source-search compared with skills from other repositories

android-source-search next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
android-source-searchrcosteira79/android-skillsSkill18523d agoMITA60Claude Code
orca-emulator-androidstablyai/orcaSkill154ktodayMITA102Claude Code, Codex
android-multiprofilechromium/chromiumSkill26ktodayBSD-3-ClauseA73Claude Code, Codex
glance-canonical-layoutsandroid/skillsSkill11k10d agoApache-2.0A56Claude Code
android-tombstone-symbolicationdotnet/skillsSkill6.4ktodayMITA176Claude Code
dogfoodcallstack/agent-deviceSkill5.6ktodayMITA55Claude Code
winapp-mauimicrosoft/winappCliSkill1.4ktodayMITA68Claude Code