android-source-search

在需要获取 Android 源码时使用 —— 包括 AOSP 平台内部实现(如 @hide API、框架类、系统服务)或 AndroidX/Jetpack 库的源码和示例。当公开文档不足以完成任务,必须直接从源码读取实现细节时使用此方法。

仓库最近推送
GitHub Stars
183
Forks
22
Issues / PRs
0

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "android-source-search":https://skillpi.com/zh/skills/deepskill-544abe1dcbe1045054c4071acf537f1d3900e8731911df6dbb9db3822221f906。安装前核对上游来源和版本:https://github.com/rcosteira79/android-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

在需要获取 Android 源码时使用 —— 包括 AOSP 平台内部实现(如 @hide API、框架类、系统服务)或 AndroidX/Jetpack 库的源码和示例。当公开文档不足以完成任务,必须直接从源码读取实现细节时使用此方法。

0 下载

介绍来源: third_party · rcosteira79 · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
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.

Android Source Search

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

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.

版本历史

  1. v5.2.0 GitHub ↗
    原版更新说明

    First tagged release of the **5.x** line — capturing everything merged since `v3.0.0` (89 commits, 12 PRs). The through-line: repeated roster audits that grew the collection to 21 skills and then trimmed each one to the content that actually earns its place against a strong base model. ## Highlights ### New skills - **`pdf-annotations`** — platform PDF annotation & page-object editing (API 36.1 / SDK-extension-18 surface) (#29) - **`koin`**, **`kmp-boundaries`**, **`modularization`**, **`datastore`**, **`paging`** — added across the roster audits (#4, #6) - **`android-testing`** — renamed and reorganised from `android-tdd`, with the compose reference reorg (#10) ### Roster audits & quality passes - **Sonnet 4.6 baseline audit** — trimmed every skill to its earned core; fixed stale claims across the roster (#13) - **Roster audit v1 / v2** — new skills plus multi-source depth passes across references (#4 → 4.1.0, #6 → 5.0.0) - **JetBrains skills audit** — README link + AGP 9 additions across three skills (#7 → 4.2.0) - **Verified micro-lifts** — debug-log hygiene, perf baseline, pass-through red flag (#12) ### Integrations & maintenance - Integrated findings from **skydoves/android-testing-skills**, with a documented cherry-pick subset (#5, #9) - **Upstream drift watcher** for credited skill repos (#8) - Re-baselined the upstream-audit ledger (#11) - Lint hygiene: stale frontmatter/link fixes (#30) ### This release - Restructured **README** with a centered badge header; the version badge tracks the plugin manifest via a dynamic JSON badge, so it never drifts - Trimmed `pdf-annotations` provenance asides while keeping every API contract and the version gate --- ## What's Changed * Roster audit: 2 new skills, 4 contradiction fixes, depth pass across 8 references (4.1.0) by @rcosteira79 in https://github.com/rcosteira79/android-skills/pull/4 * JetBrains skills audit: README link + AGP 9 additions across 3 skills (4.2.0) by @rcosteira79 in https://github.com/rcosteira79/android-skills/pull/7 * Integrate findings from skydoves/android-testing-skills by @rcosteira79 in https://github.com/rcosteira79/android-skills/pull/5 * Add upstream drift watcher for credited skill repos by @rcosteira79 in https://github.com/rcosteira79/android-skills/pull/8 * Document skydoves cherry-pick subset and breadcrumb it to android-tdd by @rcosteira79 in https://github.com/rcosteira79/android-skills/pull/9 * Roster audit v2: 3 new skills + multi-source depth pass across 13 files (5.0.0) by @rcosteira79 in https://github.com/rcosteira79/android-skills/pull/6 * Rename android-tdd → android-testing + compose reference reorg by @rcosteira79 in https://github.com/rcosteira79/android-skills/pull/10 * chore: re-baseline upstream-audit-ledger (2026-06-01) by @rcosteira79 in https://github.com/rcosteira79/android-skills/pull/11 * Verified micro-lifts: debug-log hygiene, perf baseline, pass-through red flag by @rcosteira79 in https://github.com/rcosteira79/android-skills/pull/12 * Audit the android-skills roster against the Sonnet 4.6 baseline — trim to the earned core by @rcosteira79 in https://github.com/rcosteira79/android-skills/pull/13 * Add pdf-annotations skill: platform PDF annotation & page-object editing by @rcosteira79 in https://github.com/rcosteira79/android-skills/pull/29 * Fix stale skill frontmatter/link (lint hygiene) by @rcosteira79 in https://github.com/rcosteira79/android-skills/pull/30 **Full Changelog**: https://github.com/rcosteira79/android-skills/compare/v3.0.0...v5.2.0

  2. v3.0.0 GitHub ↗
    原版更新说明

    ## Highlights The 3.0.0 cycle adds a new networking skill for KMP, sharper guidance across existing skills via paired RIGHT/WRONG examples, and integration with Google's `android` CLI for runtime UI inspection and authoritative documentation lookup. ## New skill - **`kmp-ktor`** — Ktor client setup for Kotlin Multiplatform and Android: per-platform engine selection (OkHttp/Darwin/CIO), `kotlinx.serialization` with the `encodeDefaults` guard, bearer token auth with refresh via the `Auth` plugin and `markAsRefreshTokenRequest()`, `MockEngine` testing, and `DataError` mapping at the repository boundary. ## Skill improvements - RIGHT vs WRONG sections added to four skills: `kotlin-flows`, `android-retrofit`, `coil-compose`, `android-data-layer` - `compose` skill: Authoritative Docs section using `android docs search` - `android-debugging` skill: Runtime UI Inspection via `android layout` - `compose/references/performance.md`: `android layout --diff` as a CLI alternative to Android Studio's Layout Inspector ## Tooling and documentation - Google's `android` CLI documented as a recommended companion tool - `android-source-explorer-mcp` promoted from optional to recommended - README restructured: agent install steps first, companion tools last - Related Projects expanded with `compose-skill` (Meet-Miyani), `compose_skill` (hamen), and `android-reverse-engineering-skill` ## Inspiration credits The `kmp-ktor` skill draws on the Ktor reference structure from [Meet-Miyani/compose-skill](https://github.com/Meet-Miyani/compose-skill).

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 精准定位 Android 开发者在查阅 AOSP/AndroidX 源码时的核心痛点
  • 区分平台内部实现与 Jetpack 库两类场景,实用性强
触发精准90/100

亮点

  • description 明确界定使用时机:文档不足或需直接读取源码实现细节
  • 覆盖 AOSP 与 AndroidX 两大主流源码树,边界清晰
结构规范90/100

亮点

  • 结构分层清晰:优先使用 MCP 工具 → fallback 到 WebFetch/gh → 路径未知时的搜索策略
  • 提供可直接复用的 Gitiles/GitHub URL 模板及 gh api 命令示例
执行可靠88/100

亮点

  • 明确指出 cs.android.com 不可自动化抓取,避免误用
  • 强调实时拉取源码而非依赖记忆行号,保障结果时效性
证据可验 (前四项均值)88/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

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

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。