android-compose-architecture-review

android-compose-architecture-review is a skill for Claude Code, Codex from Desquared/agents-rules-skills. It costs 61 tokens per session (769 once invoked), scanned A, original, MIT.

A review guide for Jetpack Compose interfaces, the Android toolkit where screens are described with reusable Kotlin functions called composables. It checks how visual code, screen state, and data or business rules are separated.

In plain words
What is it for?
Use it to review or refactor existing Compose screens and ViewModels. It covers MVVM and MVI-style organization, StateFlow, lifecycle-aware state collection, local state, and stateless composables.
Why use it?
It helps prevent UI code from becoming responsible for network access or business decisions, which makes screens harder to test and maintain. It also checks predictable one-way data flow, where state moves toward the screen and user actions move back to the logic layer.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review or refactor existing Compose screens and ViewModels. It covers MVVM and MVI-style organization, StateFlow, lifecycle-aware state collection, local state, and stateless composables.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/desquared/agents-rules-skills/android-compose-architecture-review/github.svg)](https://agentmods.dev/skills/desquared/agents-rules-skills/android-compose-architecture-review)
Your own site
<a href="https://agentmods.dev/skills/desquared/agents-rules-skills/android-compose-architecture-review"><img src="https://agentmods.dev/badge/skills/desquared/agents-rules-skills/android-compose-architecture-review/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-compose-architecture-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/desquared/agents-rules-skills/android-compose-architecture-review"><img src="https://agentmods.dev/badge/skills/desquared/agents-rules-skills/android-compose-architecture-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 769 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.00061 $0.00769
Opus 5 $0.00030 $0.00385
Sonnet 5 $0.00012 $0.00154
Haiku 4.5 $0.00006 $0.00077

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

Security

Grade A, and why

android-compose-architecture-review 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 10d 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-compose-architecture-review/SKILL.md · 78 lines

How it starts

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

Compose Architecture Review

When to Use This Skill:

  • Reviewing EXISTING Compose screens/ViewModels
  • Code review for architectural violations
  • Refactoring guidance for specific files
  • Validating state management patterns

When to Use project-architecture-analyst-android Agent Instead:

  • Planning NEW features (uncertain file placement)
  • Understanding project-wide architecture
  • Major changes affecting multiple modules
  • Need to discover existing patterns before implementing

Review Checklist

Separation of Concerns

  • Composables: presentation only (no business logic, network, DB)
  • ViewModels: state + business logic (StateFlow, events)
  • Repository/UseCase: data access separated from UI

State Management

  • remember - composable-local state only
  • rememberSaveable - survive config changes
  • ViewModel with StateFlow/MutableStateFlow - screen state
  • collectAsStateWithLifecycle() - lifecycle-aware collection
  • derivedStateOf - computed state from other state
  • CompositionLocal - shared read-only state
  • Use unidirectional data flow: state flows down, events flow up
  • Prefer stateless composables (receive value + onChange callbacks)
  • Use plain state-holder classes for complex state not tied to lifecycle
  • Prefer side effects via LaunchedEffect (async work), DisposableEffect (cleanup), SideEffect (framework integration), produceState, rememberCoroutineScope, or snapshotFlow rather than arbitrary side effects in composable bodies
  • Use SavedStateHandle for persistent state across process death
State Lifecycle Issues
  • No leaked ViewModels (use viewModel() or hiltViewModel())
  • Proper cleanup in ViewModel.onCleared()
  • StateFlow collected with lifecycle awareness
  • No unnecessary state hoisting

Dependency Injection

  • Dependencies injected (check project: Koin, Hilt, Dagger, or manual)
  • No hardcoded singletons in composables
  • ViewModels receive dependencies via constructor

Read the full file on GitHub · 78 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. 10d ago First seen · 78 lines · 61 tokens per session scan A eec830d531f4

Subscribe to this mod's changes

android-compose-architecture-review is a skill published in the GitHub repository Desquared/agents-rules-skills (4 stars, last pushed 26d ago), licensed MIT. It adds 61 tokens to every session and 769 once invoked, about $0.0003 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

accessibility-cleanup

Finds common violations of the Android accessibility API in the Clank App Java code and attempts to address them (e.g. hardcoded state change announcements, missing events, focus moving, assertive live regions, etc).

chromium/chromium · 49 tokens

app-store-review

Evaluates code against Apple's App Store Review Guidelines. Use this skill when reviewing iOS, macOS, tvOS, watchOS, or visionOS app code (Swift, Objective-C, React Native, or Expo) to identify potential App Store rejection issues before submission. Triggers on tasks involving app review preparation, compliance…

jacklandrin/OnlySwitch · 76 tokens

swift-concurrency-pro

Reviews Swift code for concurrency correctness, modern API usage, and common async/await pitfalls. Use when reading, writing, or reviewing Swift concurrency code.

jacklandrin/OnlySwitch · 35 tokens

swiftui-pro

Comprehensively reviews SwiftUI code for best practices on modern APIs, maintainability, and performance. Use when reading, writing, or reviewing SwiftUI projects.

jacklandrin/OnlySwitch · 36 tokens

axiom-audit-camera

Use this agent to scan Swift code for camera, video, and audio capture issues including deprecated APIs, missing interruption handlers, threading violations, and permission anti-patterns.

CharlesWiltgen/Axiom · 39 tokens

mobile-platform-offline-validate

Review a Lightning Web Component for mobile offline compatibility — the Komaci offline static analyzer that pre-primes the data graph for Salesforce Mobile App Plus and Field Service Mobile App. Produces a finding list with code-level fixes covering inline GraphQL queries in @wire configurations, modern lwc:if /…

forcedotcom/sf-skills · 207 tokens