/android-engineering-skills:android-architecturefrom Android Engineering Skills
Defines Clean Architecture project structure, package layout, layer boundaries, naming conventions, and dependency injection setup for Android projects. Use when creating new projects, adding features, scaffolding screens, setting up DI, naming classes, or reviewing/refactoring code.
Ships in Android Engineering 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.
Use this skill to keep Android projects consistent, scalable, and easy to navigate.
Follow Clean Architecture inspired layering:
domain is the business core.data handles remote, local, and other external data sources.presentation coordinates state and mapping for the UI.ui contains Compose screens, reusable components, and theme.di contains dependency injection modules.Dependency flow always points inward:
ui -> presentation -> domain <- data
Rules:
domain must not depend on Android, Compose, Retrofit, database, or DI APIs.presentation must not depend on Retrofit, Room, or DTOs.data may depend on domain, not the other way around.ui must stay focused on rendering and user interaction.Prefer a feature-first layout with shared infrastructure only where it truly belongs.
com.company.app/
├── AppApplication.kt
├── MainActivity.kt
│
├── di/
│ ├── NetworkModule.kt
│ ├── DatabaseModule.kt
│ ├── RepositoryModule.kt
│ └── DispatcherModule.kt
│
├── domain/
│ ├── model/
│ ├── repository/
│ └── usecase/
│
├── data/
│ ├── api/
│ │ └── model/
│ ├── datasource/
│ ├── mapper/
│ └── repository/
│
├── presentation/
│ ├── <feature>/
│ │ ├── <Feature>ViewModel.kt
│ │ ├── model/
│ │ ├── mapper/
│
└── ui/
├── <feature>/
│ ├── <Feature>Screen.kt
│ ├── components/
└── theme/
Rules:
utils or helpers folders as a dumping ground.Contains only pure Kotlin code.
Typical contents:
Handles anything outside the app process or outside the pure domain model.
Typical contents:
Owns screen behavior and state orchestration.
Typical contents:
Owns rendering.
Typical contents:
Owns object graph wiring only.
Typical contents:
Use explicit and consistent names.
[Feature]ViewModel[Feature]Screen[Feature]ScreenUiState[Feature]UiState[Feature]UiAction[Feature]UiEvent[Feature]Repository[Feature]RepositoryImpl[Verb][Subject]UseCase[Source]Mapper or [Target]Mapper[Type]Parser[Name]Provider[Entity]DtoExamples:
ObserveRateForCurrenciesUseCaseExchangeViewModelExchangeScreenUiStateExchangeRepositoryImplCurrencyMapperAmountParserRules:
Manager, Helper, Processor, or Utils.internal by default for implementation classes.Use the narrowest visibility that still works.
Default rules:
internal for most app implementation classespublic only for intended shared APIsprivate for local helpers and implementation detailsPractical guidance:
internal.internal.internal.internal or private if only used locally.Use Hilt with constructor injection.
Preferred pattern:
@HiltViewModel
internal class ExampleViewModel @Inject constructor(
private val repository: ExampleRepository,
) : ViewModel()
Rules:
@Binds for interface to implementation bindings.@Provides for objects that need construction logic.di/.javax.inject.Inject.Common module types:
Do not use:
jakarta.inject.InjectRecommended app entry points:
Application annotated with @HiltAndroidAppMainActivity annotated with @AndroidEntryPointPrefer:
When adding a new feature:
di.When moving code:
domaindatapresentationuiA piece of code belongs in the correct place only if:
Refactor when:
Use this skill when deciding where code belongs.
domaindatapresentationuidiWhen uncertain, choose the lowest layer that can own the logic without leaking framework concerns upward.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lennonpetrick/android-engineering-skills --plugin android-engineering-skills3 skills in this plugin
/android-patternsDefines all implementation patterns for Android features: Unidirectional Data Flow (UDF), ViewModel design, Flow composition, error handling, repository pattern, domain UseCases, and Compose UI patterns. Use this skill whenever implementing a ViewModel, designing state or action models, writing a repository or UseCase, composing Flows, handling errors, building Compose screens or components, or reviewing code for correctness of reactive patterns or state management./android-testingDefines testing standards for Android projects, including JUnit 5, Turbine, Mockito or MockK, descriptive backtick test names, parameterized tests, and flow testing patterns. Use this skill when creating, reviewing, or refactoring unit tests for ViewModels, use cases, mappers, calculators, repositories, or other pure Kotlin Android components.Other plugins' skills for the same job