/personal-skills:android-source-searchfrom personal-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.
Ships in personal-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Two separate source trees, two access strategies. AOSP lives on android.googlesource.com (Gitiles); AndroidX lives on GitHub. cs.android.com blocks automated fetching — it's for human browsing only.
If mcp__android-sources__* tools are available, always prefer them over WebFetch/gh. They provide local source with sub-10ms lookups:
| Goal | MCP tool |
|---|---|
| Find a class by name/pattern | mcp__android-sources__search_classes (glob, e.g. *ViewModel*) |
| Read full class source | mcp__android-sources__lookup_class (by fully qualified name) |
| Read a specific method | mcp__android-sources__lookup_method (class + method name) |
| List members of a class | mcp__android-sources__list_class_members |
| Get class hierarchy | mcp__android-sources__get_class_hierarchy |
| Search text/regex across sources | mcp__android-sources__search_in_source |
| List AndroidX artifact versions | mcp__android-sources__list_available_versions |
| Go to definition (requires LSP) | mcp__android-sources__goto_definition |
| Find references (requires LSP) | mcp__android-sources__find_references |
| Get type info/hover (requires LSP) | mcp__android-sources__get_type_info |
If MCP tools are not available, fall back to the WebFetch/gh strategies below.
| You need... | Source | Access method |
|---|---|---|
Framework internals (View, Activity, system services) | AOSP | WebFetch → Gitiles |
@hide APIs, internal constants, default attr values | AOSP | WebFetch → Gitiles |
AndroidX/Jetpack source (androidx.*) | AndroidX GitHub | WebFetch → raw.githubusercontent.com |
AndroidX samples (e.g. LookaheadScope, LazyColumn) | AndroidX GitHub | WebFetch → raw.githubusercontent.com |
| Directory listings (when path is unknown) | AndroidX GitHub | gh api via Bash |
https://android.googlesource.com/platform/frameworks/base/+/refs/heads/main/{path}
https://android.googlesource.com/platform/frameworks/base/+/refs/heads/main/{path}?format=TEXT
| Repo | Path | Contains |
|---|---|---|
platform/frameworks/base | core/java/android/ | View, Activity, Context, etc. |
platform/frameworks/base | services/core/java/ | System services (AMS, WMS, etc.) |
platform/frameworks/base | core/res/ | Default attrs, styles, drawables |
platform/libcore | ojluni/src/main/java/ | Java core libraries |
platform/development | samples/ | AOSP sample apps |
android.view.ViewGroup → core/java/android/view/ViewGroup.java
https://raw.githubusercontent.com/androidx/androidx/androidx-main/{path}
gh api repos/androidx/androidx/contents/{path} --jq '.[].name'
| Library | Path prefix |
|---|---|
| Compose UI | compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/ |
| Compose UI samples | compose/ui/ui/samples/src/main/java/androidx/compose/ui/samples/ |
| Compose Animation | compose/animation/animation/src/commonMain/kotlin/ |
| Compose Animation samples | compose/animation/animation/samples/src/main/java/ |
| Compose Foundation | compose/foundation/foundation/src/commonMain/kotlin/ |
| Navigation | navigation/navigation-compose/src/main/java/ |
https://raw.githubusercontent.com/androidx/androidx/androidx-main/compose/ui/ui/samples/src/main/java/androidx/compose/ui/samples/LookaheadScopeSamples.kt
cs.android.com as a human search UI to find the class/file pathraw.githubusercontent.com or list via gh api# Human search (not WebFetch — JS SPA)
https://cs.android.com/search?q=ClassName+methodName&ss=android
https://cs.android.com/search?q=ClassName&ss=androidx
| Goal | What to look for |
|---|---|
| Default attribute value | mGroupFlags |= or field initializer |
@hide method signature | Full method with /** @hide */ Javadoc |
| Delegation to system service | getService() or IActivityManager calls |
| API level gating | Build.VERSION.SDK_INT >= Build.VERSION_CODES.X |
| AndroidX sample for an API | {ClassName}Samples.kt in the samples/ subpath |
master branch on Gitiles — prefer refs/heads/main; use a tag like android-14.0.0_r74 for specific API levels.android.googlesource.com; use GitHub raw URLs.raw.githubusercontent.com for file content, gh api for listings.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub w0lzard/wolzard-s-marketplace --plugin personal-skills57 skills in this plugin
/android-data-layerUse when implementing the data layer in Android — Repository pattern, Room local database, offline-first synchronization, and coordinating local and remote sources./android-debuggingUse when debugging Android or KMP issues — supplements superpowers:systematic-debugging with Android-specific techniques covering Logcat, ADB, ANR traces, R8 stack trace decoding, memory leaks, Gradle build failures, and Compose recomposition bugs.
/android-devUse this skill as the baseline for ALL Android and Kotlin Multiplatform (KMP) work — whenever the user mentions Android, Kotlin (in an Android context), KMP, CMP, commonMain, androidMain, iosMain, AndroidManifest, Gradle, build.gradle, Hilt, Dagger, Room, Retrofit, Ktor, ViewModel, LiveData, StateFlow, SharedFlow, Compose, Activity, Fragment, Intent, ADB, Logcat, MVVM, MVI, repository pattern, or any Android SDK / Jetpack / AndroidX API. Always load this skill alongside more specific skills (android-skills:compose, android-skills:kotlin-flows, android-skills:kmp-ktor, android-skills:android-retrofit, etc.) — it provides the architectural baseline, existing-pattern audit, and project-adaptability rules those skills defer to. Casual mentions like "fix this bug in my Android app," "refactor this ViewModel," "my KMP project," or any work inside an Android project directory should trigger this skill./android-gradle-logicUse when setting up or refactoring Android Gradle build logic — convention plugins, composite builds, version catalogs, and shared build configuration across modules./android-retrofitUse when setting up or working with Retrofit in Android — service interface definitions, coroutines integration, OkHttp configuration, Hilt module setup, and error handling in the repository layer./android-testingUse when writing, fixing, or refactoring Android/KMP code in Kotlin — supplements superpowers:test-driven-development with Android's three-tier test model, fake-first strategy, coroutine testing, and Compose UI testing.