Jetpack Compose Conventions

Jetpack Compose Conventions is a skill for Claude Code, Codex from niels-emmer/myace. It costs 24 tokens per session (312 once invoked), scanned A, original, MIT.

A set of conventions for Jetpack Compose, Android's toolkit for building screens with Kotlin. It covers how UI state is shared, how modifiers are ordered, and how previews and list keys are used.

In plain words
What is it for?
Reviewing or writing composables, state handling, modifier chains, previews, and LazyColumn or LazyRow lists.
Why use it?
It keeps Compose code predictable and helps avoid unnecessary screen updates, layout issues, and unstable list behavior.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for aider. Also seen: mentions Codex; built for aider; mentions OpenCode.

Good fit Reviewing or writing composables, state handling, modifier chains, previews, and LazyColumn or LazyRow lists.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/niels-emmer/myace/jetpack-compose-conventions
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 niels-emmer/myace --skill jetpack-compose-conventions
Clone the repo
git clone --depth 1 https://github.com/niels-emmer/myace

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 Jetpack Compose Conventions

README.md
[![agentmods](https://agentmods.dev/badge/skills/niels-emmer/myace/jetpack-compose-conventions/github.svg)](https://agentmods.dev/skills/niels-emmer/myace/jetpack-compose-conventions)
Your own site
<a href="https://agentmods.dev/skills/niels-emmer/myace/jetpack-compose-conventions"><img src="https://agentmods.dev/badge/skills/niels-emmer/myace/jetpack-compose-conventions/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 Jetpack Compose Conventions

Your own site · 80×15
<a href="https://agentmods.dev/skills/niels-emmer/myace/jetpack-compose-conventions"><img src="https://agentmods.dev/badge/skills/niels-emmer/myace/jetpack-compose-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 312 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.00024 $0.00312
Opus 5 $0.00012 $0.00156
Sonnet 5 $0.00005 $0.00062
Haiku 4.5 $0.00002 $0.00031

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

Security

Grade A, and why

Jetpack Compose Conventions 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.

collections/additional/android-developer/skills/jetpack-compose-conventions/SKILL.md · 25 lines

What it actually says

Purpose

Consistent Compose patterns — predictable state flow and composable structure.

Checklist

  • State hoisting: composables accept state as parameters and emit events as callbacks. No mutable state owned by a composable that affects siblings.
  • remember: for derived state that shouldn't recompute on every recomposition. Use remember { mutableStateOf(...) } for local UI state.
  • derivedStateOf: for state derived from other state that should only recompute when inputs change.
  • Modifier ordering: size/position modifiers first, then padding, then visual (background, border), then clickable/input. Consistent ordering across the codebase.
  • Preview annotations: every composable has @Preview annotations showing default, empty, and error states. Use @Preview(showBackground = true) for readability.
  • LazyColumn/LazyRow keys: stable and unique keys for item composition — prevents unnecessary recomposition and animation glitches.

Expected output

Compose UI with predictable state flow, consistent modifier ordering, and preview coverage for all states.

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 · 25 lines · 24 tokens per session scan A ee40676a972a

Subscribe to this mod's changes

Jetpack Compose Conventions is a skill published in the GitHub repository niels-emmer/myace (1 stars, last pushed 4d ago), licensed MIT. It adds 24 tokens to every session and 312 once invoked, about $0.0001 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

migrating-to-modifier-node

Use this skill to author new custom Jetpack Compose modifiers and migrate legacy ones from Modifier.composed { } to Modifier.Node + ModifierNodeElement . Covers the persistent-node lifecycle (onAttach, onDetach, onReset, coroutineScope), the specialized node interfaces (DrawModifierNode, LayoutModifierNode…

skydoves/compose-performance-skills · 183 tokens

configuring-lazy-prefetch

Use this skill to tune Jetpack Compose lazy-layout prefetch with LazyLayoutCacheWindow (Compose Foundation 1.9+, @ExperimentalFoundationApi) and pausable composition in prefetch (Compose Foundation 1.10+, default on). Covers configurable Dp-based ahead/behind cache windows plumbed through…

skydoves/compose-performance-skills · 177 tokens

iterating-with-ai-and-mcp

Use this skill to drive Compose HotSwan from an AI agent (Claude Code, Cursor, any MCP client) so the agent can edit a Kotlin file, trigger a hot reload, capture a device screenshot, evaluate the result against a design intent, and iterate without a human in the loop. Covers the seven HotSwan MCP tools…

skydoves/compose-performance-skills · 202 tokens

setting-up-compose-hotswan

Use this skill to install and verify Compose HotSwan end to end so a developer goes from zero to working sub-second hot reload on a real device or emulator in one session. Covers the JetBrains IDE plugin install, the com.github.skydoves.compose.hotswan.compiler Gradle plugin wiring, the canonical hotSwanCompiler {…

skydoves/compose-performance-skills · 161 tokens

understanding-hot-reload-limits

Use this skill to teach Claude exactly which Kotlin and Compose changes hot-reload under Compose HotSwan and which trigger a full incremental rebuild fallback. Root cause is Android Runtime (ART) class schema immutability; only method bodies are mutable at runtime, so any change to fields, signatures, constructors…

skydoves/compose-performance-skills · 174 tokens

collecting-flows-safely

Use this skill to migrate Compose UI from collectAsState() to collectAsStateWithLifecycle(), hoist Flow parameters out of composables, and apply .conflate() / .distinctUntilChanged() / snapshotFlow so background CPU and battery stop draining and chatty flows stop invalidating the UI per emission. Covers ViewModel…

skydoves/compose-performance-skills · 166 tokens