affaan-m avatar

Android Clean Architecture

Solid reference for setting up Clean Architecture in Android and KMP projects. Covers the full stack: module boundaries with strict dependency rules (domain never depends on data or presentation), UseCase and Repository patterns, and concrete examples for Room, SQLDelight, and Ktor. The mapper pattern guidance and DI setup for both Koin and Hilt are immediately useful. What I like here is the opinionated structure, it doesn't hedge on how layers should communicate. If you're past the tutorial phase and need to organize a real multi-module Android project without reinventing every architectural decision, this gives you working patterns to copy.

skills.sh installs
6K
GitHub stars
229.1K
last updated
Jul 14, 2026

Install

$ npx -y skills add affaan-m/everything-claude-code --skill android-clean-architecture --agent claude-code

Installs into .claude/skills of the current project.

Files

Android Clean Architecture

Clean Architecture patterns for Android and KMP projects. Covers module boundaries, dependency inversion, UseCase/Repository patterns, and data layer design with Room, SQLDelight, and Ktor.

When to Activate

  • Structuring Android or KMP project modules
  • Implementing UseCases, Repositories, or DataSources
  • Designing data flow between layers (domain, data, presentation)
  • Setting up dependency injection with Koin or Hilt
  • Working with Room, SQLDelight, or Ktor in a layered architecture

Module Structure

Recommended Layout

project/
├── app/                  # Android entry point, DI wiring, Application class
├── core/                 # Shared utilities, base classes, error types
├── domain/               # UseCases, domain models, repository interfaces (pure Kotlin)
├── data/                 # Repository implementations, DataSources, DB, network
├── presentation/         # Screens, ViewModels, UI models, navigation
├── design-system/        # Reusable Compose components, theme, typography
└── feature/              # Feature modules (optional, for larger projects)
    ├── auth/
    ├── settings/
    └── profile/

Sponsors

Details

Repository
github.com/affaan-m/everything-claude-code
Categories
Code Review & Quality, Mobile Development
First seen
Apr 16, 2026

More from affaan-m/everything-claude-code

All 256
1forcedotcom avataragentforce-architecture-analyzeforcedotcom/sf-skillsDeclared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA plugins. Renders a human-readable arch5.9Kskills.sh installs
2github avatarsecurity-reviewgithub/awesome-copilotAI-powered codebase security scanner that reasons about code like a security researcher — tracing data flows, understanding component interactions, and catching5.8Kskills.sh installs
3affaan-m avataragent-architecture-auditaffaan-m/eccFull-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden5.8Kskills.sh installs
4claude-office-skills avatarcontract-reviewclaude-office-skills/skillsAnalyze contracts for risks, check completeness, and provide actionable recommendations. Supports employment contracts, NDAs, service agreements, and more.5.6Kskills.sh installs
5wshobson avatarreview-agent-setupwshobson/agentsConfigure human-in-the-loop gating for AI agent review actions in Claude Code. Use when setting up a project where an agent may post PR reviews, comments, merge5.6Kskills.sh installs
6affaan-m avatarquality-nonconformanceaffaan-m/eccCodified expertise for quality control, non-conformance investigation, root cause analysis, corrective action, and supplier quality management in regulated manu5.4Kskills.sh installs