smithery.ai

android-architecture

Guides Android development with MVI state management, repository pattern, and clean architecture. Activates when implementing Android features, ViewModels, repositories, or data layers.

First seen Apr 18, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,357 B
  • docs SUMMARY.md 213 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Android Architecture Guidelines

When implementing Android features, follow these patterns:

State Management (MVI)

  • Use single immutable state object per screen
  • State class should contain: data, isLoading, error, and any UI-relevant fields
  • Actions represent user intents (sealed interface)
  • Events for one-time effects like navigation or toasts (use Channel)

Repository Pattern

  • Interface in domain layer, implementation in data layer
  • Repository is the single source of truth
  • Use suspend functions for one-shot operations (API calls)
  • Use Flow only when observing changes over time (Room, WebSocket)

ViewModel

  • Expose state via StateFlow
  • Handle actions via onAction() method
  • Use viewModelScope for coroutines
  • Never expose MutableStateFlow directly

Data Layer

  • DTOs for API responses (@Serializable)
  • Entities for Room database (@Entity)
  • Domain models for business logic
  • Mappers: toEntity(), toDomain(), toDto()

Dependency Injection

  • Use Hilt for DI
  • Provide APIs via @Provides in NetworkModule
  • Provide DAOs via @Provides in DatabaseModule
  • Bind repositories with @Binds