android-clean-architecture
Clean Architecture patterns for Android and Kotlin Multiplatform projects — module structure, dependency rules, UseCases, Repositories, and data layer patterns.
Skill by nguyentrunghieutcu
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/nguyentrunghieutcu-android-clean-architecture
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: data
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/android-clean-architecture
What's inside
- Skill name
android-clean-architecture- Description
- 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.
- License
- MIT
- Metadata
- origin: ECC
- Instructions
- 335 lines in SKILL.md · view on GitHub
Files (2)
- LICENSE.ecc
- SKILL.md
SKILL.md (first lines)
# 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/
```
### Dependency Rules
```
app → presentation, domain, data, core
presentation → domain, design-system, core
data → domain, core
domain → core (or no dependencies)
core → (nothing)
```
**Critical**: `domain` must NEVER depend on `data`, `presentation`, or any framework. It contains pure Kotlin only.
## Domain Layer
### UseCase Pattern
Each UseCase represents one business operation. Use `operator fun invoke` for clean call sites:
```kotlin
class GetItemsByCategoryUseCase(
private val repository: ItemRepository
) {
suspend operator fun invoke(category: String): Result<List<Item>> {
return repository.getItemsByCategory(category)
}
}
// Flow-based UseCase for reactive streams
class ObserveUserProgressUseCase(
private val repository: UserRepository
) {
operator fun invoke(userId: String): Flow<UserProgress> {
return repository.observeProgress(userId)
}
}
```
### Domain Models
Domain models are plain Kotlin data classes — no framework annotations:
```kotlin
data class Item(
val id: String,
val title: String,
val description: String,
val tags: List<String>,
val status: Status,
val category: String
)
enum class Status { DRAFT, ACTIVE, ARCHIVED }
```
### Repository Interfaces
Defined in domain, implemented in data:
```kotlin
interface ItemRepository {
suspend fun getItemsByCategory(category: String): Result<List<Item>>
suspend fun saveItem(item: Item): Result<Unit>
fun observeItems(): Flow<List<Item>>
}
```
## Data Layer
### Repository Implementation
Coordinates between local and remote data sources:
```kotlin
class ItemRepositoryImpl(
private val localDataSource: ItemLocalDataSource,
private val remoteDataSource: ItemRemoteDataSource
) : ItemRepository {
override suspend fun getItemsByCategory(category: String): Result<List<Item>> {
return runCatching {
val remote = remoteDataSource.fetchItems(category)
localDataSource.insertItems(remote.map { it.toEntity() })
localDataSource.getItemsByCategory(category).map { it.toDomain() }
}
}
override suspend fun saveItem(item: Item): Result<Unit> {
return runCatching {
localDataSource.insertItems(listOf(item.toEntity()))From nguyentrunghieutcu/ctxora-engine, MIT.
More from nguyentrunghieutcu/ctxora-engine
- 0.605score
agent-self-evaluation
nguyentrunghieutcu
Use after completing any non-trivial task.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
ctxora-repository-context
nguyentrunghieutcu
Build and retrieve grounded repository context with CTXORA Engine.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
agent-eval
nguyentrunghieutcu
Head-to-head comparison of coding agents (Claude Code, Aider, Codex, etc.) on custom tasks with pass rate, cost, time, and consistency metrics.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
cisco-ios-patterns
nguyentrunghieutcu
Cisco IOS and IOS-XE review patterns for show commands, config hierarchy, wildcard masks, ACL placement, interface hygiene, and safe change-window verification.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
accessibility
nguyentrunghieutcu
Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
agent-architecture-audit
nguyentrunghieutcu
Full-stack diagnostic for agent and LLM applications.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
ctxora-setup
nguyentrunghieutcu
Install and configure CTXORA Engine for a repository and connect it to Codex, Claude Code, Cursor, or a generic MCP client.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
agent-payment-x402
nguyentrunghieutcu
Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
ck
nguyentrunghieutcu
Persistent per-project memory for Claude Code.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
ctxora-context-health
nguyentrunghieutcu
Diagnose and repair CTXORA local context health and run repository-safe CI checks.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
agentic-os
nguyentrunghieutcu
Build persistent multi-agent operating systems on Claude Code.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
clickhouse-io
nguyentrunghieutcu
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
SkillBFreshness: B★ 19Claude Code +9
Signals
- Stars
- 19
- Forks
- 3
- Open issues
- 1
- Last commit (this folder)
- Sep 8, 2026 (1 month ago)
- Last release
- Sep 22, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Website
- ctxora-landing.vercel.app/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.356score
android-clean-architecture
unrealandychan
Clean Architecture patterns for Android and Kotlin Multiplatform projects — module structure, dependency rules, UseCases, Repositories, and data layer patterns.
SkillBFreshness: B★ 12Claude Code +9 - 0.352score
android-clean-architecture
wasdqwerty81972
Clean Architecture patterns for Android and Kotlin Multiplatform projects — module structure, dependency rules, UseCases, Repositories, and data layer patterns.
SkillAFreshness: A★ 1Claude Code +9 - 0.339score
android-clean-architecture
plurano
Clean Architecture patterns for Android and Kotlin Multiplatform projects — module structure, dependency rules, UseCases, Repositories, and data layer patterns.
SkillAFreshness: AClaude Code +9 - 0.336score
android-clean-architecture
albertstarfield
Clean Architecture patterns for Android and Kotlin Multiplatform projects — module structure, dependency rules, UseCases, Repositories, and data layer patterns.
SkillAFreshness: AClaude Code +9 - 0.336score
android-clean-architecture
devadathdev
Clean Architecture patterns for Android and Kotlin Multiplatform projects — module structure, dependency rules, UseCases, Repositories, and data layer patterns.
SkillAFreshness: AClaude Code +9
More from nguyentrunghieutcu
- 0.605score
agent-self-evaluation
nguyentrunghieutcu
Use after completing any non-trivial task.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
ctxora-repository-context
nguyentrunghieutcu
Build and retrieve grounded repository context with CTXORA Engine.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
ctxora-setup
nguyentrunghieutcu
Install and configure CTXORA Engine for a repository and connect it to Codex, Claude Code, Cursor, or a generic MCP client.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
ctxora-context-health
nguyentrunghieutcu
Diagnose and repair CTXORA local context health and run repository-safe CI checks.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
accessibility
nguyentrunghieutcu
Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
agent-architecture-audit
nguyentrunghieutcu
Full-stack diagnostic for agent and LLM applications.
SkillBFreshness: B★ 19Claude Code +9
Cite this page
android-clean-architecture skill. Agent Mart. https://agentmart.dev/skills/nguyentrunghieutcu-android-clean-architecture (last updated 2026-10-24)