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.
npx skills add noloman/Android-AI-skills --skill compose-best-practicesgit clone --depth 1 https://github.com/noloman/Android-AI-skillsWrote 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.
[](https://agentmods.dev/skills/noloman/android-ai-skills/compose-best-practices)<a href="https://agentmods.dev/skills/noloman/android-ai-skills/compose-best-practices"><img src="https://agentmods.dev/badge/skills/noloman/android-ai-skills/compose-best-practices/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.
<a href="https://agentmods.dev/skills/noloman/android-ai-skills/compose-best-practices"><img src="https://agentmods.dev/badge/skills/noloman/android-ai-skills/compose-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00392 |
| Opus 5 | $0.00000 | $0.00196 |
| Sonnet 5 | $0.00000 | $0.00078 |
| Haiku 4.5 | $0.00000 | $0.00039 |
Grade A, and why
compose-best-practices 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.
What it actually says
name: compose-best-practices description: Strict Android Compose best practices with optional enterprise enforcement. user-invocable: true
Compose Best Practices (Material3 Only)
Hard Rule
- Only androidx.compose.material3.* allowed.
- Mixing material.* and material3.* = BLOCKER.
Enterprise Mode Auto-Detection (Optional Strict Mode)
Enterprise Mode activates automatically when any of these files exist in the project root:
- detekt.yml / detekt.yaml
- lint.xml
- ktlint configuration (e.g., .editorconfig with ktlint rules, ktlint.gradle.kts)
- spotless configuration (spotless.gradle.kts)
When Enterprise Mode is active:
- Treat new lint/detekt violations in touched code as HIGH severity.
- Prefer fixing issues over suppressing them.
- If suppression is necessary, scope it narrowly and justify it.
When Enterprise Mode is not active:
- Do NOT assume lint/detekt/ktlint is used.
- Provide tool-agnostic guidance only.
Core Rules
- Stateless composables
- StateFlow for UI state
- SharedFlow for one-off events
- stateIn with WhileSubscribed(5_000)
- No suspend in composable body
- Stable keys in Lazy lists
- Avoid allocations in hot recomposition paths
- Use MaterialTheme.colorScheme
- Strong skipping mode is default (Compose Compiler 2.0+) — reduces need for manual @Stable/@Immutable annotations.
- Use Material3 adaptive layouts (NavigationSuiteScaffold, ListDetailPaneScaffold) for large screens.
References
- references/enterprise_mode.md
- references/compose_compiler_stability.md
- references/performance_budgets.md
- references/adaptive_layouts.md
- references/shared_element_transitions.md
- references/examples.md
- references/design_tokens.md
- references/material_migration.md
- references/review_checklist.md
What ships with it
9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/adaptive_layouts.md 1.7 KB
- references/compose_compiler_stability.md 2.2 KB
- references/design_tokens.md 1.5 KB
- references/enterprise_mode.md 2.0 KB
- references/examples.md 2.0 KB
- references/material_migration.md 1.4 KB
- references/performance_budgets.md 2.5 KB
- references/review_checklist.md 471 B
- references/shared_element_transitions.md 1.9 KB
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.
- 10d ago First seen · 53 lines · 0 tokens per session scan A 3cc7a731b2b0
compose-best-practices is a skill published in the GitHub repository noloman/Android-AI-skills (6 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 392 tokens. 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.
Other skills, from other repositories
display-glasses-with-jetpack-compose-glimmer
Provides guidelines for developing projected Android XR apps for display glasses using the Jetpack Compose Glimmer UI toolkit. This skill covers foundational Glimmer design principles, workflows for implementing Jetpack Compose Glimmer, and interaction models for the glasses form factor. Use this skill to build an…
expo-design-system
Framework (OSS). Build and maintain a design system inside an Expo app - a reusable theme of design tokens (color, spacing, typography, radius, shadow, motion), reusable component structure with variant/size/state prop conventions, and rules for when to extract a repeated view into a shared component. Use when…
flutter-build-responsive-layout
Use LayoutBuilder, MediaQuery, or Expanded/Flexible to create a layout that adapts to different screen sizes. Use when you need the UI to look good on both mobile and tablet/desktop form factors.
omh-apple-design
This is a Hermes-native apple-design workflow skill.
axiom-audit-liquid-glass
Use when the user mentions Liquid Glass review, iOS 26 UI updates, toolbar improvements, or visual effect migration.
axiom-audit-ux-flow
Use when the user mentions UX flow issues, dead-end views, dismiss traps, missing empty states, broken user journeys, or wants a UX audit of their iOS app.