Android API Diff
gkd-kit/gkd
Looks up Android framework Java and AIDL APIs across versions with the android-api-diff CLI: signatures, availability, source files and hidden-API access code.
Android 架构、依赖注入、数据层、测试规范官方参考。涵盖 UDF/MVI 模式、Hilt/Dagger、Room、Paging、 DataStore、WorkManager、ViewModel、测试策略等。安卓开发第一要义:参考官方文档和案例!
$ npx skills add Kototoro-app/Kototoro --skill android-architecture-reference -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Kototoro-app/Kototoro android-architecture-reference --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Kototoro-app/Kototoro.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.pi/skills/android-architecture-reference .claude/skills/android-architecture-reference && rm -rf skills-srcUse ~/.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/
Install the "android-architecture-reference" agent skill from https://github.com/Kototoro-app/Kototoro/tree/devel/.pi/skills/android-architecture-reference into .claude/skills/android-architecture-reference/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "android-architecture-reference", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Kototoro-app/Kototoro/tree/devel/.pi/skills/android-architecture-referenceType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Kototoro-app/Kototoro --skill android-architecture-reference -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Kototoro-app/Kototoro android-architecture-reference --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Kototoro-app/Kototoro.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.pi/skills/android-architecture-reference .agents/skills/android-architecture-reference && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "android-architecture-reference" agent skill from https://github.com/Kototoro-app/Kototoro/tree/devel/.pi/skills/android-architecture-reference into .agents/skills/android-architecture-reference/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "android-architecture-reference", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Kototoro-app/Kototoro --skill android-architecture-reference -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Kototoro-app/Kototoro android-architecture-reference --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Kototoro-app/Kototoro.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.pi/skills/android-architecture-reference .cursor/skills/android-architecture-reference && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "android-architecture-reference" agent skill from https://github.com/Kototoro-app/Kototoro/tree/devel/.pi/skills/android-architecture-reference into .cursor/skills/android-architecture-reference/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "android-architecture-reference", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Kototoro-app/Kototoro.git --path .pi/skills/android-architecture-reference--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Kototoro-app/Kototoro --skill android-architecture-reference -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Kototoro-app/Kototoro android-architecture-reference --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Kototoro-app/Kototoro.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.pi/skills/android-architecture-reference .gemini/skills/android-architecture-reference && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "android-architecture-reference" agent skill from https://github.com/Kototoro-app/Kototoro/tree/devel/.pi/skills/android-architecture-reference into .gemini/skills/android-architecture-reference/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "android-architecture-reference", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Kototoro-app/Kototoro android-architecture-referenceInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Kototoro-app/Kototoro --skill android-architecture-reference -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Kototoro-app/Kototoro.git skills-src && mkdir -p .github/skills && cp -r skills-src/.pi/skills/android-architecture-reference .github/skills/android-architecture-reference && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "android-architecture-reference" agent skill from https://github.com/Kototoro-app/Kototoro/tree/devel/.pi/skills/android-architecture-reference into .github/skills/android-architecture-reference/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "android-architecture-reference", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Kototoro-app/Kototoro --skill android-architecture-reference -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Kototoro-app/Kototoro android-architecture-reference --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Kototoro-app/Kototoro.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.pi/skills/android-architecture-reference .opencode/skills/android-architecture-reference && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "android-architecture-reference" agent skill from https://github.com/Kototoro-app/Kototoro/tree/devel/.pi/skills/android-architecture-reference into .opencode/skills/android-architecture-reference/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "android-architecture-reference", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
android-architecture-referenceAndroid 架构、依赖注入、数据层、测试规范官方参考。涵盖 UDF/MVI 模式、Hilt/Dagger、Room、Paging、 DataStore、WorkManager、ViewModel、测试策略等。安卓开发第一要义:参考官方文档和案例!
Android Architecture Reference is an agent skill from Kototoro-app/Kototoro. Android 架构、依赖注入、数据层、测试规范官方参考。涵盖 UDF/MVI 模式、Hilt/Dagger、Room、Paging、 DataStore、WorkManager、ViewModel、测试策略等。安卓开发第一要义:参考官方文档和案例! Triggers: "Android 架构", "MVVM", "MVI", "UDF", "Hilt", "Dagger", "Room", "Paging", "ViewModel", "WorkManager", "DataStore", "测试", "架构设计", "DI", "依赖注入"
Its SKILL.md is about 1.7k 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 and Gradle. The repository describes itself as: Manga, Novel, and Video reader for Android. The licence is Apache-2.0.
Read from SKILL.md and the folder at commit 3df24c7. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are kotlin).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
github.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Android Architecture Reference loads about 1.7k tokens when it runs. Until then it costs about 77 tokens; SKILL.md has 170 words of instructions outside code blocks.
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.
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.
The full file from Kototoro-app/Kototoro at commit 3df24c7, republished under its Apache-2.0 licence (© Kototoro-app). 170 words, ~1,678 tokens.
.claude/skills/android-architecture-reference/SKILL.md (or your agent's skills folder).安卓开发第一要义:参考官方文档和案例!
官方推荐的架构演进路径:
传统 MVP/MVVM → 推荐 UDF (Unidirectional Data Flow)当前推荐模式(main 分支):
核心原则:
StateFlow 暴露// 推荐模式
@HiltViewModel
class TaskViewModel @Inject constructor(
private val taskRepository: TaskRepository,
) : ViewModel() {
private val _uiState = MutableStateFlow(TaskUiState())
val uiState: StateFlow<TaskUiState> = _uiState.asStateFlow()
fun onAction(action: TaskAction) { /* 处理用户操作 */ }
}💡 这是 Kototoro 最相关的单一参考仓库 — 一个仓库覆盖 Compose、Room、Hilt、Navigation、Coroutines、WorkManager、Paging、DataStore 八项核心技术栈。
模块化架构参考:
app/
├── :core:data → 数据层(Room DAO、Entity、Repository、离线优先)
├── :core:datastore → DataStore 偏好存储
├── :core:domain → 领域层(UseCase)
├── :core:model → 数据模型
├── :core:network → 网络层(OkHttp + Retrofit + kotlinx-serialization)
├── :core:ui → UI 基础组件(主题、导航、通用 Compose)
├── :core:data-test → 测试数据
├── :core:testing → 测试工具
├── :sync:work → WorkManager 后台同步
├── :feature:for_you → 推荐页 Feature
├── :feature:bookmarks → 书签 Feature
├── :feature:topic → 话题 Feature
├── :feature:settings → 设置 Feature
└── :benchmark → Macrobenchmark 性能测试构建系统:
⚠️ Kototoro 差异:nowinandroid 使用 Kotlin DSL (
.kts),而 Kototoro 的app/build.gradle使用 Groovy DSL —— 学习架构和代码模式,但不要直接复制构建脚本。
与本项目的技术栈对应:
| NIA 模块 | Kototoro 对应 | 学习重点 |
|---|---|---|
:core:data | manga 数据层 | Room DAO 模式、Entity 设计、Flow 查询 |
:core:network | OkHttp 网络层 | 拦截器、缓存策略、离线处理 |
:core:ui | Compose 基础组件 | Material3 主题、导航基础设施 |
:core:datastore | 用户偏好 | 阅读设置、主题选择 |
:sync:work | 章节下载/同步 | Worker 约束、唯一定期任务 |
:feature:* | 各 Feature 模块 | 页面级 Composition、ViewModel |
:benchmark | (建议添加) | 启动性能、滚动性能 |
官方 Hilt 参考在 architecture-samples 和 nowinandroid 中。
关键模式:
// 1. Application 级模块
@Module
@InstallIn(SingletonComponent::class)
object DataModule {
@Provides @Singleton
fun provideDatabase(@ApplicationContext ctx: Context): AppDatabase =
Room.databaseBuilder(ctx, AppDatabase::class.java, "app.db").build()
}
// 2. ViewModel 注入
@HiltViewModel
class FeatureViewModel @Inject constructor(
private val repository: FeatureRepository,
) : ViewModel()
// 3. Compose 集成
@Composable
fun FeatureScreen(
viewModel: FeatureViewModel = hiltViewModel(),
)参考:codelab-android-room-with-a-view ⭐768
@Entity(tableName = "items")
data class Item(
@PrimaryKey val id: String,
val title: String,
val timestamp: Long,
)
@Dao
interface ItemDao {
@Query("SELECT * FROM items ORDER BY timestamp DESC LIMIT :limit")
fun getRecent(limit: Int = 20): Flow<List<Item>>
}
@Database(entities = [Item::class], version = 1)
abstract class AppDatabase : RoomDatabase()参考:codelab-android-paging ⭐512
// Room 分页
@Query("SELECT * FROM items ORDER BY timestamp DESC")
fun pagingSource(): PagingSource<Int, Item>
// Repository 层
fun getItems(): Flow<PagingData<Item>> = Pager(
config = PagingConfig(pageSize = 20),
pagingSourceFactory = { dao.pagingSource() }
).flow参考:storage-samples ⭐1.7k
// Preferences DataStore
val Context.dataStore by preferencesDataStore(name = "settings")参考:codelab-android-workmanager ⭐559
// 定义 Worker
@HiltWorker
class SyncWorker @AssistedInject constructor(
@Assisted ctx: Context,
@Assisted params: WorkerParameters,
private val repository: SyncRepository,
) : CoroutineWorker(ctx, params) {
override suspend fun doWork(): Result {
return try {
repository.sync()
Result.success()
} catch (e: Exception) {
Result.retry()
}
}
}
// 调度
val request = PeriodicWorkRequestBuilder<SyncWorker>(15, TimeUnit.MINUTES)
.setConstraints(Constraints(requiredNetworkType = NetworkType.CONNECTED))
.build()
WorkManager.getInstance(context).enqueue(request)参考:testing-samples ⭐9.3k
/\
/UI\ 10% - Compose UI 测试(少量端到端验证)
/----\
/ 集成 \ 20% - Hilt + Room 集成测试
/--------\
/ 单元测试 \ 70% - Repository / ViewModel 单元测试
/------------\| 层级 | 工具 | 参考 |
|---|---|---|
| 单元测试 | JUnit5 + Kotest + MockK | testing-samples |
| 集成测试 | Hilt Testing + Room In-Memory | nowinandroid |
| UI 测试 | Compose Testing + Espresso | compose-samples |
| Mock Web | MockWebServer (OkHttp) | 本项目已有 |
| 快照测试 | Roborazzi / Paparazzi | nowinandroid |
@Test
fun `when data loaded, uiState shows items`() = runTest {
val repo = mockk<FeatureRepository> { coEvery { getItems() } returns flowOf(testItems) }
val viewModel = FeatureViewModel(repo)
viewModel.uiState.test {
assertEquals(expectItemCount, awaitItem().items.size)
}
}当遇到架构决策时:
1. architecture-samples → 看推荐模式(UDF + StateFlow)
2. nowinandroid → 看模块化划分、Gradle 配置
3. sunflower → 看 Room + Paging + WorkManager 组合用法
4. testing-samples → 看测试如何组织关键原则:
© Kototoro-app, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .pi/skills/android-architecture-reference of Kototoro-app/Kototoro.
Open the folder on GitHubat commit 3df24c7
Android Architecture Reference 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Android Architecture Reference this skillKototoro-app/Kototoro | 605 | — | ~1.7k | Automated safety check: Pass | Apache-2.0 | |
| Android API Diffgkd-kit/gkd | 43k | — | ~796 | Automated safety check: Pass | GPL-3.0 | |
| Android Developmentdpconde/claude-android-skill | 336 | — | ~1.7k | Automated safety check: Pass | MIT | |
| Run Jetpack Android Appwordpress-mobile/WordPress-Android | 3.2k | — | ~886 | Automated safety check: Pass | GPL-2.0 | |
| Orca Android Emulator Controlstablyai/orca | 87k | — | ~558 | Automated safety check: Pass | Apache-2.0 | |
| Claude Android NinjaDrjacky/claude-android-ninja | 124 | — | ~5.2k | Automated safety check: Pass | Apache-2.0 |
gkd-kit/gkd
Looks up Android framework Java and AIDL APIs across versions with the android-api-diff CLI: signatures, availability, source files and hidden-API access code.
dpconde/claude-android-skill
Create production-quality Android applications following Google's official architecture guidance and NowInAndroid best practices.
wordpress-mobile/WordPress-Android
Builds the Jetpack debug app with Gradle and installs it on a connected Android device or an emulator started from an available AVD.
stablyai/orca
Android device and emulator control from inside Orca over adb, with the live device view in Orca's emulator pane. Use when driving an adb-connected emulator…
Drjacky/claude-android-ninja
Build and migrate Android apps with Kotlin, Jetpack Compose, MVVM, Hilt, Room 3 (KSP, SQLiteDriver, Flow/suspend DAOs), Navigation3, and multi-module Gradle.
mweinbach/agent-coworker
Helps add Expo and React Native to an existing native iOS or Android app, and choose between a prebuilt AAR or XCFramework and a fully integrated build.
Kototoro-app/Kototoro
Jetpack Compose 官方示例与最佳实践参考。涵盖 Compose UI 实现、动画、手势、导航、Material3 主题、 性能优化、测试等所有方面。安卓开发第一要义:参考官方文档和案例!
Kototoro-app/Kototoro
Android 官方示例代码库完整索引。涵盖架构、Compose UI、性能、测试、存储、网络、相机、媒体、安全等所有领域。
Kototoro-app/Kototoro
诊断 Kototoro 主壳"空闲永不定居"式 Compose 自持重绘循环(idle 帧数不为 0). An agent skill from Kototoro-app/Kototoro.
Kototoro-app/Kototoro
Diagnose and fix Kototoro Browse/Explore page content source scrolling jank when many sources exist.
Kototoro-app/Kototoro
Diagnose and fix Kototoro Android issues where returning from reader or video player to details causes flicker, cover reload, panorama reload, progress reset, status bar jump, Compose subtree…
Kototoro-app/Kototoro
Diagnose and fix Kototoro main screen loading flicker, blank flashes, chrome jumps, transient empty states, and route switching flashes.
Categories
Android 架构、依赖注入、数据层、测试规范官方参考。涵盖 UDF/MVI 模式、Hilt/Dagger、Room、Paging、 DataStore、WorkManager、ViewModel、测试策略等。安卓开发第一要义:参考官方文档和案例!. Android Architecture Reference is an agent skill from Kototoro-app/Kototoro.
Android Architecture Reference fits situations like: mobile work in your project.
Run `npx skills add Kototoro-app/Kototoro --skill android-architecture-reference -a claude-code`. Or copy the skill folder (.pi/skills/android-architecture-reference in Kototoro-app/Kototoro) into .claude/skills/android-architecture-reference in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Kototoro-app/Kototoro --skill android-architecture-reference -a codex`. Or copy the skill folder (.pi/skills/android-architecture-reference in Kototoro-app/Kototoro) into .agents/skills/android-architecture-reference in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Kototoro-app/Kototoro --skill android-architecture-reference -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-architecture-reference, .gemini/skills/android-architecture-reference, .github/skills/android-architecture-reference and .opencode/skills/android-architecture-reference in your project.
SKILL.md names no scripts, command-line tools or credentials: Android Architecture Reference is instructions for the agent only.
SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.
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.
Android Architecture Reference is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.7k tokens (SKILL.md is roughly 6.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Android Architecture Reference: Android API Diff (gkd-kit/gkd, 43k stars), Android Development (dpconde/claude-android-skill, 336 stars), Run Jetpack Android App (wordpress-mobile/WordPress-Android, 3.2k stars) and Orca Android Emulator Control (stablyai/orca, 87k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Kototoro-app (a GitHub organization) maintains it in Kototoro-app/Kototoro, which has 605 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 7, 2026.
Source: Kototoro-app/Kototoro on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.