android-architecture
/android-architecture
Pomaga ustawić i utrzymać nowoczesną architekturę aplikacji Android w Clean Architecture z Hiltem: strukturę projektu i moduły.
- Autor
- new-silvermoon ↗
- Repozytorium
- awesome-android-agent-skills ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 27.07.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 27.07.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
Co robi i kiedy
Pomaga ustawić i utrzymać nowoczesną architekturę aplikacji Android w Clean Architecture z Hiltem: strukturę projektu i moduły.
Oryginalny opis (EN)
Expert guidance on setting up and maintaining a modern Android application architecture using Clean Architecture and Hilt. Use this when asked about project structure, module setup, or dependency injection.
Jak działa
- Instructions
Podgląd SKILL.md
---
name: android-architecture
description: Expert guidance on setting up and maintaining a modern Android application architecture using Clean Architecture and Hilt. Use this when asked about project structure, module setup, or dependency injection.
---
# Android Modern Architecture & Modularization
## Instructions
When designing or refactoring an Android application, adhere to the **Guide to App Architecture** and **Clean Architecture** principles.
### 1. High-Level Layers
Structure the application into three primary layers. Dependencies must strictly flow **inwards** (or downwards) to the core logic.
* **UI Layer (Presentation)**:
* **Responsibility**: Displaying data and handling user interactions.
* **Components**: Activities, Fragments, Composables, ViewModels.
* **Dependencies**: Depends on the Domain Layer (or Data Layer if simple). **Never** depends on the Data Layer implementation details directly.
* **Domain Layer (Business Logic) [Optional but Recommended]**:
* **Responsibility**: Encapsulating complex business rules and reuse.
* **Components**: Use Cases (e.g., `GetLatestNewsUseCase`), Domain Models (pure Kotlin data classes).
* **Pure Kotlin**: Must NOT contain any Android framework dependencies (no `android.*` imports).
* **Dependencies**: Depends on Repository Interfaces.
* **Data Layer**:
* **Responsibility**: Managing application data (fetching, caching, saving).
* **Components**: Repositories (implementations), Data Sources (Retrofit APIs, Room DAOs).
* **Dependencies**: Depends only on external sources and libraries.
### 2. Dependency Injection with Hilt
Use **Hilt** for all dependency injection.
* **@HiltAndroidApp**: Annotate the `Application` class.
* **@AndroidEntryPoint**: Annotate Activities and Fragments.
* **@HiltViewModel**: Annotate ViewModels; use standard `constructor` injection.
* **Modules**:
* Use `@Module` and `@InstallIn(SingletonComponent::class)` for app-wide singletons (e.g., Network, Database).
* Use `@Binds` in an abstract class to bind interface implementations (cleaner than `@Provides`).
### 3. Modularization Strategy
For production apps, use a multi-module strategy to improve build times and separation of concerns.
* **:app**: The main entry point, connects features.
* **:core:model**: Shared domain models (Pure Kotlin).
* **:core:data**: Repositories, Data Sources, Database, Network.
* **:core:domain**: Use Cases and Repository Interfaces.
* **:core:ui**: Shared Composables, Theme, Resources.
* **:feature:[name]**: Standalone feature modules containing their own UI and ViewModels. Depends on `:core:domain` and `:core:ui`.
### 4. Checklist for implementation
- [ ] Ensure `Domain` layer has no Android dependencies.
- [ ] Repositories should default to main-safe suspend functions (use `Dispatchers.IO` internally if needed).
- [ ] ViewModels should interact with the UI layer via `StateFlow` (see `android-viewmodel` skill).
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · new-silvermoon/awesome-android-agent-skills | 90 | Apache-2.0 |
| lennonpetrick/android-engineering-skills | 100 | MIT |
| HoangNguyen0403/agent-skills-standard | 100 | MIT |
| TheBushidoCollective/han | 95 | Apache-2.0 |
Identyczna treść występuje jeszcze w 2 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.
Migawka bazy z 13.11.2026 · wersja paczki c03bdda820b0 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100android-development
Tworzy produkcyjne aplikacje Android według wytycznych Google, z Kotlinem, Compose, MVVM, Hilt, Room i modułami projektu. - 100android-clean-architecture
Stosuje wzorce Clean Architecture w projektach Android i Kotlin Multiplatform: strukturę modułów, reguły zależności, UseCase'y i warstwę danych. - 100android
Odpowiada na pytania o programowanie na Androida: Kotlin, Jetpack Compose, architektura, MVVM, Clean Architecture, Room, Hilt, Retrofit i testowanie. - 95android-development
Wspiera tworzenie aplikacji Android w Kotlinie z Jetpack Compose i nowoczesną architekturą, w tym Material Design i dobre praktyki Androida. - 100android-expert
Eksperckie wsparcie w rozwoju Android z Jetpack Compose, Material Design, ViewModel i nowoczesną architekturą. - 100architecture-review
Analizuje architekturę projektu Java na poziomie makro: strukturę pakietów, granice modułów, kierunek zależności i warstwy, oraz sprawdza zgodność z zasadami clean architecture.