
Android clean architecture
Guides Android and KMP project structure with layered modules, UseCases and repositories
Android clean architecture is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 66
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Android clean architecture
This skill gives the agent a layered architecture reference for Android and Kotlin Multiplatform projects. It describes a module layout that separates app wiring, core utilities, a pure Kotlin domain layer, data, presentation and a design system, along with the dependency rules that keep those layers apart.
It walks through the building blocks of each layer with Kotlin examples: UseCases that wrap a single business operation, domain models, repository interfaces and their implementations, mappers between entities and domain objects, and a Result or sealed error type for propagating failures to the UI. Persistence examples cover Room on Android and SQLDelight for KMP, and networking covers a Ktor client. Dependency injection is shown with both Koin and Hilt, and Gradle convention plugins are shown for sharing KMP build setup across modules.
The skill also lists common anti-patterns to avoid, such as framework imports in the domain layer, leaking DTOs to the UI and circular module dependencies. It has no scripts and no tool requirements; it is guidance the agent applies while writing or reviewing code in an Android or KMP codebase.
When your agent uses it
Clean Architecture patterns for Android and Kotlin Multiplatform projects — module structure, dependency rules, UseCases, Repositories, and data layer patterns. Use when structuring modules, layers, or data flow in an Android or KMP project.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 2 files (9 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the rea-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add smartworldarafath/REA_Skill
/plugin install rea-skills@smartworldarafathOr copy only this skill to ~/.claude/skills/android-clean-architecture:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/android-clean-architecture &&
cp -R "$tmp/.agents/skills/android-clean-architecture" ~/.claude/skills/android-clean-architecture &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/android-clean-architecture inside it instead.
Copy the skill folder to ~/.agents/skills/android-clean-architecture to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/android-clean-architecture &&
cp -R "$tmp/.agents/skills/android-clean-architecture" ~/.agents/skills/android-clean-architecture &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/android-clean-architecture inside it instead.
Copy the skill folder to ~/.cursor/skills/android-clean-architecture to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/android-clean-architecture &&
cp -R "$tmp/.agents/skills/android-clean-architecture" ~/.cursor/skills/android-clean-architecture &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/android-clean-architecture inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/smartworldarafath/REA_Skill.git --path .agents/skills/android-clean-architectureOr copy the folder to ~/.gemini/skills/android-clean-architecture yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/android-clean-architecture:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/android-clean-architecture &&
cp -R "$tmp/.agents/skills/android-clean-architecture" ~/.copilot/skills/android-clean-architecture &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/android-clean-architecture inside it instead.
Get the folder:
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.gitThen copy REA_Skill/.agents/skills/android-clean-architecture into your agent's skills folder as android-clean-architecture. Agents that support SKILL.md read one folder per skill.
What it does
- Module layout rules
- Defines the recommended module structure and which modules may depend on which.
- UseCase and repository patterns
- Shows how to structure single-purpose UseCases and repository interfaces in the domain layer.
- Data layer examples
- Covers repository implementations, mappers, Room, SQLDelight and Ktor client setup.
- Dependency injection setup
- Provides module wiring examples for both Koin and Hilt.
- Error handling approach
- Describes a Result or sealed error type pattern for passing failures to ViewModels.
- Anti-pattern checklist
- Lists common architecture mistakes to avoid in Android and KMP code.
Good for
- Plan the module split for a new Android app
- Refactor a ViewModel that contains business logic into UseCases
- Set up Room or SQLDelight with a repository layer
- Wire Koin or Hilt bindings for repositories and UseCases
- Review a KMP project for dependency rule violations
Android clean architecture FAQ
What does the skill need to run?
It has no scripts or tool requirements. It is a SKILL.md with guidance and code examples that the agent reads when a task involves Android or KMP project structure.
When does Android clean architecture trigger?
It is meant for structuring modules, layers or data flow in an Android or Kotlin Multiplatform project, as stated in its description.
Which persistence and DI libraries does Android clean architecture cover?
It covers Room and SQLDelight for storage, Ktor for networking, and Koin or Hilt for dependency injection.
How do I install Android clean architecture in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/android-clean-architecture to use it in all your projects, or to .claude/skills/android-clean-architecture in one project. Or install the rea-skills plugin, which includes it: /plugin marketplace add smartworldarafath/REA_Skill, then /plugin install rea-skills@smartworldarafath.
Does Android clean architecture run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Android clean architecture?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Android clean architecture?
The closest alternatives to Android clean architecture are Kotlin springboot, Compose multiplatform patterns, Espresso skill, Android SDK knowledge patch and Flutter apply architecture best practices.
Where this comes from
- Description: from the skill's own SKILL.md.
More from smartworldarafath/REA_Skill

Guides building and auditing UI to WCAG 2.2 AA across web, iOS and Android
- Open source
- 66 GitHub stars
- Developer tools

Diagnoses agent and LLM stacks for hidden failures and ranks the fixes by severity
- Open source
- 66 GitHub stars
- Developer tools

Compare coding agents head-to-head on your own tasks by pass rate, cost and time
- Open source
- 66 GitHub stars
- Developer tools

Guides an agent to design tool sets, observations and error recovery for better completion
- Open source
- 66 GitHub stars
- Developer tools

Gives an agent a structured capture-diagnose-recover loop for failing runs
- Open source
- 66 GitHub stars
- Developer tools

Lets an AI agent make x402 payments within per-task budgets and spending policies
- Open source
- 66 GitHub stars
- Finance and payments




