android-architecture

Enforce MVVM, clean architecture, and Hilt dependency injection in Android projects.

187|20|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/TheBushidoCollective/han --skill android-architecture
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-architecture
Source: https://github.com/TheBushidoCollective/han/tree/main/jutsu/jutsu-android/skills/android-architecture
Command: npx skills add https://github.com/TheBushidoCollective/han --skill android-architecture

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides you in implementing modern Android architecture patterns, making code easier to test, maintain, and scale, while promoting separation of concerns and testability.

Core Features & Use Cases

  • MVVM Pattern: Clear separation of UI and business logic to improve testability and maintainability.
  • Clean Architecture Layers: Structured project layout with data, domain, and presentation layers.
  • Dependency Injection with Hilt: Manage dependencies with a scalable, test-friendly approach.

Quick Start

Tell me how to scaffold an Android app following MVVM with Hilt and clean architecture.

Frequently Asked Questions about android-architecture

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I architect an Android app with MVVM and clean architecture?

MVVM separates UI from business logic across presentation, domain, and data layers. Implement ViewModels to manage UI state, use repositories to abstract data access, and organize code into distinct layers for improved testability and maintainability.

What's the best way to set up dependency injection in Android with Hilt?

Hilt automates dependency injection by generating boilerplate code and managing scopes. Annotate your Android components with @HiltAndroidApp, use @Inject for field injection, and define dependencies with @Provides or @Binds to create a scalable, test-friendly DI graph.

How do I structure an Android project with clean architecture layers?

Clean architecture divides code into presentation, domain, and data layers. The presentation layer holds UI and ViewModels, domain contains business logic and entities, and data implements repositories and external APIs. This structure reduces coupling and improves testing.

Can I migrate an existing Android app to MVVM without rewriting everything?

Yes, MVVM migration is incremental. Start by introducing ViewModels for new features, extract business logic from Activities, implement the repository pattern gradually, and add Hilt to manage dependencies across features as you refactor.

Why use the repository pattern in Android development?

The repository pattern abstracts data sources and creates a boundary between domain and data layers. It centralizes data logic, makes testing easier by allowing mock implementations, and lets you swap data sources without affecting business logic.