/android-review:architecturefrom android-review
Enforces Clean Architecture with MVVM/MVI patterns, Hilt DI, and modularization for Android Kotlin apps. Guides layer reviews, ViewModel/Repository/UseCase creation, and offline-first data patterns.
Ships in android-review. 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.
Read when SKILL.md points to them.
Enforce Clean Architecture patterns with MVVM/MVI for Android Kotlin applications.
Evaluate code against ALL layers. Output findings as:
[ARCH-XXXXX] severity: CRITICAL | HIGH | MEDIUM | LOW
Finding: <architecture violation or improvement>
Location: <file:line>
Fix: <concrete refactoring guidance>
┌─────────────────────────────────┐
│ Presentation Layer │ UI, ViewModel, UiState
│ (app / feature) │
├─────────────────────────────────┤
│ Domain Layer │ UseCase, Domain Model, Repository Interface
│ (optional) │
├─────────────────────────────────┤
│ Data Layer │ Repository Impl, DataSource, DTO, API, DB
│ (data / network) │
└─────────────────────────────────┘
Dependencies flow INWARD only:
com.example.app/
├── di/ # Hilt modules
│ ├── AppModule.kt
│ ├── NetworkModule.kt
│ └── DatabaseModule.kt
├── data/
│ ├── local/
│ │ ├── dao/ # Room DAOs
│ │ ├── entity/ # Room entities
│ │ └── AppDatabase.kt
│ ├── remote/
│ │ ├── api/ # Retrofit interfaces
│ │ ├── dto/ # Data Transfer Objects
│ │ └── interceptor/
│ ├── mapper/ # DTO ↔ Domain mappers
│ └── repository/ # Repository implementations
├── domain/
│ ├── model/ # Domain models (pure Kotlin)
│ ├── repository/ # Repository interfaces
│ └── usecase/ # Use cases
└── ui/ # Presentation
├── navigation/
├── theme/
├── component/ # Reusable composables
└── screen/
├── login/
│ ├── LoginScreen.kt
│ ├── LoginViewModel.kt
│ └── LoginUiState.kt
└── home/
├── HomeScreen.kt
├── HomeViewModel.kt
└── HomeUiState.kt
Each reference file contains full code examples, patterns, and detailed checklists. Read the relevant file when reviewing that layer.
| # | Reference File | Content | When to Load |
|---|---|---|---|
| 1 | references/presentation.md | ViewModel, UiState, Actions, Events, Screen Composable | Reviewing presentation layer or ViewModel patterns |
| 2 | references/domain.md | UseCase pattern, Domain Model, Repository Interface | Reviewing domain layer or use case design |
| 3 | references/data.md | Repository Impl, Mapper, Offline-First pattern | Reviewing data layer or repository implementation |
| 4 | references/di.md | Hilt Module Structure, scope rules | Setting up or reviewing dependency injection |
| 5 | references/modularization.md | Module types, dependency graph, when to modularize | Planning module boundaries |
| 6 | references/error-handling.md | Error pattern, exception hierarchy | Designing error handling strategy |
Context, Activity, or View.StateFlow (NOT LiveData for new code).Channel.receiveAsFlow().invoke operator (one operation per UseCase).Result<T> for operations that can fail.runCatching — NEVER throw unhandled exceptions.LocalDataSource + RemoteDataSource → Repository.@Binds for interface→implementation bindings (more efficient than @Provides).@InstallIn scope (SingletonComponent, ViewModelComponent, ActivityComponent).Activity or Fragment into non-UI classes.@ApplicationContext when Context is needed in singletons.:core:domain and :core:ui only.:core:domain has ZERO Android dependencies.:app module is thin — only navigation and DI wiring.Result<T> for all fallible operations in domain/data layers.For Compose UI patterns, see the compose-ui skill. For OWASP security audit, see the security-audit skill.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
clean-architecture, mvvm, mvi, android-architecture, hilt-di, modularization
npx claudepluginhub liuyi0808/android-review --plugin android-review6 skills in this plugin
/compose-uiJetpack Compose UI best practices and patterns for Material 3. Use when: writing or reviewing Compose UI code, implementing state hoisting, using side effects (LaunchedEffect, DisposableEffect), setting up type-safe navigation, building responsive layouts with WindowSizeClass, implementing accessibility (content descriptions, touch targets, semantics), creating animations (AnimatedVisibility, animateXAsState), or designing reusable composable components./kotlin-qualityKotlin code quality review for Android projects. Covers coroutine structured concurrency, Flow operators, null safety, type design (sealed classes, data classes, value objects), and collection/functional patterns. Use when: reviewing Kotlin code in PRs, auditing coroutine usage, checking null safety patterns, evaluating type design decisions, or improving code readability and correctness./performanceAudit Android (Kotlin/Compose) apps for performance issues and produce structured findings. Use when: app cold start exceeds 500ms, UI jank or dropped frames, memory leaks or OOM, ANR rate above 0.47% in Play Vitals, Compose recomposition waste, missing baseline profiles, battery drain, reviewing performance before release, or general performance optimization./play-storeGoogle Play submission and compliance audit for personal loan apps targeting Africa and Latin America. Covers organization account verification, market-specific licensing, loan restrictions, permissions, mandatory three-way privacy verification (collection, in-app disclosure, and privacy policy), reviewer access, and general Play publishing requirements./security-auditAndroid application security audit based on OWASP MASVS v2.0 and Kotlin secure coding practices. Use when: writing or reviewing code involving sensitive data storage (SharedPreferences, Room), cryptography (encryption keys, Keystore), authentication (biometrics, token management), network security (TLS, cert pinning), WebView hardening, Content Provider security, reverse engineering resilience (root detection, tamper detection), or user privacy (data minimization, consent).Other plugins' skills for the same job