android-architecture

android-architecture is a skill for Claude Code from GuillemRoca/agent-skills-android. It costs 33 tokens per session (1,780 once invoked), scanned A, original, MIT.

Guidance for organizing an Android project and deciding how its parts should communicate. It covers modules, UI, business rules, data access, dependency injection, and common patterns such as MVVM and MVI.

In plain words
What is it for?
Starting projects or modules, adding feature modules, choosing MVVM or MVI, setting up Hilt dependency injection, managing state with Coroutines and Flow, and handling lifecycle issues.
Why use it?
As an app grows, unclear boundaries make features harder to test, change, and maintain. A defined structure helps keep screen code, business logic, and storage responsibilities separate.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agent-skills-android plugin — 29 skills, 7 commands, 3 agents, 1 hook shipped together

Good fit Starting projects or modules, adding feature modules, choosing MVVM or MVI, setting up Hilt dependency injection, managing state with Coroutines and Flow, and handling lifecycle issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/guillemroca/agent-skills-android/android-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 GuillemRoca/agent-skills-android --skill android-architecture
Clone the repo
git clone --depth 1 https://github.com/GuillemRoca/agent-skills-android

Made for: Claude Code.

Or install agent-skills-android, the plugin that ships this one along with the rest of its 29 skills, 7 commands, 3 agents, 1 hook.

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-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/guillemroca/agent-skills-android/android-architecture.svg)](https://agentmods.dev/skills/guillemroca/agent-skills-android/android-architecture)
Your own site
<a href="https://agentmods.dev/skills/guillemroca/agent-skills-android/android-architecture"><img src="https://agentmods.dev/badge/skills/guillemroca/agent-skills-android/android-architecture.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,780 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.00033 $0.01780
Opus 5 $0.00016 $0.00890
Sonnet 5 $0.00007 $0.00356
Haiku 4.5 $0.00003 $0.00178

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

Security

Grade A, and why

android-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 7d 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-architecture/SKILL.md · 221 lines

How it starts

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

Android Architecture

Overview

Good architecture makes Android apps testable, maintainable, and scalable. This skill guides architectural decisions: module structure, layer separation (UI → Domain → Data), dependency injection with Hilt, state management with Coroutines and Flow, and patterns that survive configuration changes and process death.

When to Use

  • Starting a new Android project or module
  • Adding a feature module to an existing multi-module project
  • Choosing between MVVM and MVI for a screen
  • Setting up or refactoring dependency injection
  • Defining boundaries between layers
  • Debugging lifecycle or state management issues

Skip when: Making a small change within an already-architected feature.

Core Process

Step 1: Module Structure

  1. Organize by layer and feature:
:app                          # Application, navigation, DI entry point
:feature:home                 # Home screen (UI + ViewModel)
:feature:profile              # Profile screen (UI + ViewModel)
:feature:settings             # Settings screen (UI + ViewModel)
:core:data                    # Repositories, data sources, API services
:core:domain                  # Use cases, domain models (pure Kotlin)
:core:database                # Room database, entities, DAOs
:core:network                 # Retrofit services, API models, interceptors
:core:ui                      # Shared composables, theme, design tokens
:core:common                  # Utilities, extensions, constants
:core:testing                 # Shared test utilities, fakes
  1. Dependency rules:
    • :feature:* depends on :core:domain, :core:ui, :core:common
    • :core:data depends on :core:domain, :core:database, :core:network
    • :core:domain depends on nothing (pure Kotlin module)
    • :app depends on all :feature:* and :core:data (for DI wiring)
    • Never: feature → feature, core → feature, domain → data

Step 2: Layer Separation

  1. Three layers, strict boundaries:

Read the full file on GitHub · 221 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. 7d ago First seen · 221 lines · 33 tokens per session scan A b7bfa346b8dc

Subscribe to this mod's changes

android-architecture is a skill published in the GitHub repository GuillemRoca/agent-skills-android (2 stars, last pushed 2mo ago), licensed MIT. It adds 33 tokens to every session and 1,780 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

imagegen-frontend-mobile

Elite mobile app image-generation skill for creating premium, app-native screen concepts and flows. Designed for iOS, Android, and cross-platform mobile products. Prioritizes clean hierarchy, comfortably readable text, strong multi-screen consistency, controlled color palettes, non-generic creative direction, textured…

firstsun-dev/skills · 126 tokens

sleek-design-mobile-apps

Use when the user wants to design a mobile app, create screens, build UI, or interact with their Sleek projects. Covers high-level requests ("design an app that does X") and specific ones ("list my projects", "create a new project", "screenshot that screen").

firstsun-dev/skills · 64 tokens

healthkit

Read, write, and query Apple Health data using HealthKit. Covers HKHealthStore authorization, sample queries, statistics queries, statistics collection queries for charts, saving HKQuantitySample data, background delivery, workout sessions with HKWorkoutSession and HKLiveWorkoutBuilder, HKUnit, and…

firstsun-dev/skills · 86 tokens

liquid-glass-design

Patterns for implementing Apple's Liquid Glass — a dynamic material that blurs content behind it, reflects color and light from surrounding content, and reacts to touch and pointer interactions. Covers SwiftUI, UIKit, and WidgetKit integration.

x-cmd/skill · 37 tokens

swiftui-patterns

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

x-cmd/skill · 34 tokens

foundation-models-on-device

Apple FoundationModels framework for on-device LLM — text generation, guided generation with @Generable, tool calling, and snapshot streaming in iOS 26+.

x-cmd/skill · 38 tokens