viper-architecture-rambler
Installation
SKILL.md
VIPER Architecture (Rambler Team)
Overview
VIPER enforces Single Responsibility Principle through five protocol-based components: View, Interactor, Presenter, Entity, Router. Created and documented by Rambler&Co iOS Team.
Core Principle: Entities never reach the Presentation layer. Simple data structures transfer between Interactor and Presenter, preventing business logic pollution in UI.
When to Use VIPER
digraph viper_decision {
"Complex app?" [shape=diamond];
"Multiple features?" [shape=diamond];
"Long-term project?" [shape=diamond];
"Team size > 2?" [shape=diamond];
"High testability need?" [shape=diamond];
"Use VIPER" [shape=box, style=filled, fillcolor=lightgreen];
"Use MVC/MVVM" [shape=box, style=filled, fillcolor=lightcoral];