mcpField
A
android-architecture

android-architecture

github.com/fandhe-aiDevelopment458 installsUpdated today
Repository

About android-architecture

android-architecture is a development reference skill distilled from Android’s official architecture guidance. It serves Android developers working on app structure, lifecycle, dependency injection, and paging.

Key features

  1. 01UI, Domain, and Data layer guidance
  2. 02ViewModel and lifecycle handling
  3. 03Hilt dependency injection reference
  4. 04Paging 3 guidance

Use cases

  1. 01Plan app layers and modularization
  2. 02Handle ViewModel and lifecycle state
  3. 03Design dependency injection with Hilt
  4. 04Build paged data flows and lists

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/fandhe-ai/agent-reference-skills --skill android-architecture

After installing, type/android-architecturein Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/di-hilt/
android-entry-point.md
binds.md
dagger-basics.md
entry-point.md
hilt-android-app.md
hilt-components-scopes.md
hilt-jetpack.md
hilt-multi-module.md
hilt-testing.md
hilt-view-model.md
hilt-viewmodel-compose-split.md
inject.md
manual-di.md
module-install-in.md
provides.md
qualifier-named.md
README.md
references/layers/
data-layer.md
domain-layer.md
intro.md
layers.md
models-and-naming-conventions.md
modularization-patterns.md
modularization.md
offline-first.md
README.md
recommendations.md
ui-events.md
ui-layer.md
ui-state-holders.md

Details

From the project README

Android Architecture リファレンス

Android 公式アーキテクチャガイド(推奨レイヤー構成、ViewModel / Lifecycle、Hilt、Paging 3)を蒸留したスキル。 ユーザーのタスクに応じて適切な README.md を読み、そこから個別ファイルへ辿ること。

対象: Paging 3.5.3 / Lifecycle 2.11.0

ディレクトリ構成

skills/android-architecture/
  SKILL.md
  references/
    layers/
      README.md
      layers.md
      intro.md
      ui-layer.md
      ui-state-holders.md
      ui-events.md
      ui-state-production.md
      domain-layer.md
      data-layer.md
      offline-first.md
      recommendations.md
      models-and-naming-conventions.md
      modularization.md
      modularization-patterns.md
    lifecycle-viewmodel/
      README.md
      viewmodel.md
      viewmodel-cheatsheet.md
      viewmodel-compose.md
      viewmodel-scoping-apis.md
      viewmodelprovider-factory.md
      viewmodelscope.md
      viewmodelstoreprovider.md
      androidviewmodel.md
      savedstatehandle.md
      saving-ui-state.md
      lifecycle.md
      lifecyclescope.md
      lifecycleowner.md
      defaultlifecycleobserver.md
      lifecycleeventobserver.md
      repeatonlifecycle.md
      flowwithlifecycle.md
      collectasstatewithlifecycle.md
      locallifecycleowner.md
      rememberlifecycleowner.md
      lifecycleeventeffect.md
      lifecyclestarteffect.md
      lifecycleresumeeffect.md
      livedata.md
      mutablelivedata.md
      observeasstate.md
      processlifecycleowner.md
      savedstateregistry.md
    di-hilt/
      README.md
      hilt-android-app.md
      android-entry-point.md
      inject.md
      module-install-in.md
      provides.md
      binds.md
      dagger-basics.md
      hilt-components-scopes.md
      hilt-jetpack.md
      hilt-multi-module.md
      qualifier-named.md
      hilt-view-model.md
      hilt-viewmodel-compose-split.md
      entry-point.md
      hilt-testing.md
      manual-di.md
    paging/
      README.md
      pager.md
      migrate-to-paging-3.md
      pagingconfig.md
      pagingsource.md
      closestitemaroundposition.md
      testpager.md
      pagingdata.md
      remotemediator.md
      loadstate.md
      cachedin.md
      pagingdata-transforms.md
      collectaslazypagingitems.md
      itemkey-itemcontenttype.md
      pagingdataadapter.md
      asitemsnapshotlistflow.md

探索手順

タスクからカテゴリを引き、カテゴリの README.md で目的のページを特定する:

  1. 下記マッピング表でタスクに対応するカテゴリを探す
  2. そのカテゴリの references/{category}/README.md を参照して目的のページを特定する
  3. 該当ページの .md を Read して詳細を確認する

タスク → カテゴリ マッピング

タスクカテゴリ参照 README
UI / Domain / Data layer の推奨構成を知りたいlayersreferences/layers/README.md
state holder / UI state / UI events の設計指針を知りたいlayersreferences/layers/README.md
オフラインファースト・モジュール化の方針を知りたいlayersreferences/layers/README.md
ViewModel / viewModelScope / SavedStateHandle を使いたいlifecycle-viewmodelreferences/lifecycle-viewmodel/README.md
Lifecycle / repeatOnLifecycle / collectAsStateWithLifecycle でライフサイクルを扱いたいlifecycle-viewmodelreferences/lifecycle-viewmodel/README.md
LiveData / observeAsState でデータを監視したいlifecycle-viewmodelreferences/lifecycle-viewmodel/README.md
Hilt でアノテーション・コンポーネント・スコープを使った DI を設計したいdi-hiltreferences/di-hilt/README.md
HiltViewModel / EntryPoint / Hilt テストの書き方を知りたいdi-hiltreferences/di-hilt/README.md
Pager / PagingSource / RemoteMediator でページング処理を実装したいpagingreferences/paging/README.md
collectAsLazyPagingItems / PagingDataAdapter でページングリストを表示したいpagingreferences/paging/README.md
ページング済みデータを UI 外で ItemSnapshotList として扱いたい / スクロールなしで手動 append・prepend・retry したいpagingreferences/paging/README.md

Room / DataStore は android-data、WorkManager / coroutines は android-background-work、画面遷移は android-navigation の担当。

Comments

Markdown supported