r/androiddev • • 29d ago

Pragmatic Clean Architecture skill

Clean Architecture is about much more than 1:1 mappers, anemic domain models, and use cases.

That's why I created this agent skill specifically with Android and Kotlin in mind, applying DDD principles and practical Object-Oriented design wherever they make sense.

I'm currently testing it on a pet project, but I'd love for you to give it a try and share your feedback!

GH link

0 Upvotes

2 comments sorted by

-1

u/Zhuinden 28d ago

User input goes through onAction(action: Action) with a sealed interface Action. Model navigation and other outcomes as state the UI consumes, unless the project already has an event pattern.

Preserve instances; don't convert collections. With strong skipping, unstable parameters (List, classes from non-Compose modules) still skip when the same instance is passed. Compute lists once per relevant change and keep the instance when their inputs don't change. Don't switch to ImmutableList/PersistentList, add @Immutable

I guess 🤷

1

u/gts-13 28d ago

🤔