android-kotlin-architecture

android-kotlin-architecture is a skill for Claude Code, Codex from haidrrrry/compose-kotlin-agent-skills. It costs 87 tokens per session (972 once invoked), scanned A, original, MIT.

An Android app architecture guide for organizing code with Clean Architecture, MVVM, or MVI. It defines how screens, state, user actions, business logic, and data access fit together.

In plain words
What is it for?
Use it when structuring features, rewriting ViewModels, splitting app modules, choosing between MVVM and MVI, or connecting repositories, Room databases, coroutines, and dependency injection.
Why use it?
It reduces unclear responsibilities and inconsistent screen state as an Android app grows or is refactored.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it when structuring features, rewriting ViewModels, splitting app modules, choosing between MVVM and MVI, or connecting repositories, Room databases, coroutines, and dependency injection.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/haidrrrry/compose-kotlin-agent-skills/android-kotlin-architecture
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add haidrrrry/compose-kotlin-agent-skills --skill android-kotlin-architecture
Clone the repo
git clone --depth 1 https://github.com/haidrrrry/compose-kotlin-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for android-kotlin-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/haidrrrry/compose-kotlin-agent-skills/android-kotlin-architecture/github.svg)](https://agentmods.dev/skills/haidrrrry/compose-kotlin-agent-skills/android-kotlin-architecture)
Your own site
<a href="https://agentmods.dev/skills/haidrrrry/compose-kotlin-agent-skills/android-kotlin-architecture"><img src="https://agentmods.dev/badge/skills/haidrrrry/compose-kotlin-agent-skills/android-kotlin-architecture/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for android-kotlin-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/haidrrrry/compose-kotlin-agent-skills/android-kotlin-architecture"><img src="https://agentmods.dev/badge/skills/haidrrrry/compose-kotlin-agent-skills/android-kotlin-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 972 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00087 $0.00972
Opus 5 $0.00044 $0.00486
Sonnet 5 $0.00017 $0.00194
Haiku 4.5 $0.00009 $0.00097

Measured 12d ago against content hash bf04d4550c50, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

android-kotlin-architecture scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/android-kotlin-architecture/SKILL.md · 116 lines

How it starts

The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Android Kotlin — Architecture Module

Parent kit: ../../SKILL.md · Index: ../../AGENTS.md

Read First

File When
../../references/01-architecture.md Full MVVM/MVI patterns, container/content composables
../../references/04-coroutines-flow.md StateFlow, Channel effects, stateIn
../../references/05-hilt-di.md @HiltViewModel, repository wiring
../../references/06-room-db.md Repository + Room offline-first

MVI Contract (Mandatory)

@Immutable
data class FeatureUiState(
    val items: List<ItemUi> = emptyList(),
    val isLoading: Boolean = false,
    val error: UiError? = null
)

sealed interface FeatureUiEvent {
    data class SearchChanged(val query: String) : FeatureUiEvent
    data object Refresh : FeatureUiEvent
    data class ItemClicked(val id: String) : FeatureUiEvent
}

sealed interface FeatureUiEffect {
    data class ShowMessage(@StringRes val messageRes: Int) : FeatureUiEffect
    data class NavigateToDetail(val id: String) : FeatureUiEffect
}

class FeatureViewModel @Inject constructor(
    private val repository: FeatureRepository
) : ViewModel() {

    private val _state = MutableStateFlow(FeatureUiState())
    val state: StateFlow<FeatureUiState> = _state.asStateFlow()

    private val _effects = Channel<FeatureUiEffect>(Channel.BUFFERED)
    val effects: Flow<FeatureUiEffect> = _effects.receiveAsFlow()

    fun onEvent(event: FeatureUiEvent) {
        when (event) {
            is FeatureUiEvent.SearchChanged -> onSearchChanged(event.query)
            FeatureUiEvent.Refresh -> refresh()
            is FeatureUiEvent.ItemClicked -> emitNavigate(event.id)
        }
    }

    private fun onSearchChanged(query: String) {
        _state.update { it.copy(searchQuery = query) }  // ONLY mutation style allowed
    }

    private fun refresh() {
        viewModelScope.launch {
            _state.update { it.copy(isLoading = true, error = null) }
            repository.sync()
                .onSuccess { _state.update { it.copy(isLoading = false) } }
                .onFailure { e ->
                    _state.update { it.copy(isLoading = false, error = e.toUiError()) }
                }
        }
    }

    private fun emitNavigate(id: String) {
        viewModelScope.launch { _effects.send(FeatureUiEffect.NavigateToDetail(id)) }
    }
}

Read the full file on GitHub · 116 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 116 lines · 87 tokens per session scan A bf04d4550c50

Subscribe to this mod's changes

android-kotlin-architecture is a skill published in the GitHub repository haidrrrry/compose-kotlin-agent-skills (49 stars, last pushed 2mo ago), licensed MIT. It adds 87 tokens to every session and 972 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories