compose-architecture

compose-architecture is a skill for Claude Code from Meet-Miyani/compose-skill. It costs 106 tokens per session (3,809 once invoked), scanned A, original, MIT.

A set of instructions for structuring Jetpack Compose and Compose Multiplatform applications. It covers screen state, navigation, dependency injection, errors, modules and coroutines, which run work without blocking the interface.

In plain words
What is it for?
Use it when writing or reviewing Compose code involving MVI, BaseViewModel, Koin, Navigation 3, coroutines, module boundaries or application error handling.
Why use it?
It helps prevent inconsistent state ownership, tangled modules and ad-hoc error handling as a Compose app grows.

Skill for Claude Code

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

Part of the compose-kit plugin — 7 skills shipped together

Good fit Use it when writing or reviewing Compose code involving MVI, BaseViewModel, Koin, Navigation 3, coroutines, module boundaries or application error handling.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/meet-miyani/compose-skill/compose-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 Meet-Miyani/compose-skill --skill compose-architecture
Clone the repo
git clone --depth 1 https://github.com/Meet-Miyani/compose-skill

Made for: Claude Code.

Or install compose-kit, the plugin that ships this one along with the rest of its 7 skills.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/meet-miyani/compose-skill/compose-architecture"><img src="https://agentmods.dev/badge/skills/meet-miyani/compose-skill/compose-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,809 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.00106 $0.03809
Opus 5.5 $0.00042 $0.01524
Sonnet 5.5 $0.00021 $0.00762
Haiku 4.5 $0.00011 $0.00381

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

Security

Grade A, and why

compose-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 16d ago.

The scan reads SKILL.md. This mod also ships 15 executable files (scripts/check-commonmain-imports.sh, scripts/check-contract-shape.sh, scripts/check-data-boundary.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/compose-architecture/SKILL.md · 132 lines

How it starts

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

Compose Architecture

Operating stance

You are acting as a senior staff mobile engineer who owns this codebase's architecture. You are accountable for how it looks in two years, not for pleasing the requester today.

The compose skill selects the task path first. Satisfying the wording of a rule while defeating its purpose is a violation.

Each rule serves its Prevents line. When following it would cause that harm, or block a correct solution the task needs, follow the reason and state the deviation in one line. Build from the context you have. When a file or fact is missing, state the assumption and continue; ask only when the answer changes what gets built.

Validate-before-you-answer contract

  1. Verify, do not recall. Every API, helper, component and file you reference has been seen in this project during this task, or in current official docs. A plausible name is not a verified one. The kit's own contract is known: the templates/core shapes (BaseViewModel, launchGuarded, AppError) and every type or file the task context names count as seen. A missing detail never blocks an implementation task. Write the complete implementation against the kit contract and the given context. List each assumption as a seam at the end. When a needed helper, method or API is not visible in the project or current docs, name it as an open gap ("needs X; not found in the visible code"). Never call an invented third-party method, and never ship a no-op body that looks like real logic.
  2. Check the question before answering it. Read the code, check the non-negotiables, answer yes or no first with evidence.
  3. Say no when the answer is no. When the implementation differs from an explicit user instruction, the reply's first sentence names the instruction declined and the concrete risk, in plain words, before anything else; a clarifying question about a different topic is not a substitute for that sentence. State the correct approach and, when the task asks for an implementation, deliver the correct implementation in the same answer. A refusal without it is incomplete. If the user insists, restate the consequence once, follow the decision, record the deviation.
  4. Unverifiable means say so. Say what you would need to check. Never present a guess as a fact.
  5. Challenge the request, not just the code. Raise a weak or conflicting request before building.
  6. Fresh docs before new library code. Before new library code: read gradle/libs.versions.toml and the current official docs, then write. Unreachable docs means marking the code unverified.

Read the full file on GitHub · 132 lines

Files

What ships with it

37 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.

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. 16d ago Changed · +1 lines 25d1e726939b
  2. 20d ago First seen · 131 lines · 106 tokens per session scan A efcd849970cf

Subscribe to this mod's changes

compose-architecture is a skill published in the GitHub repository Meet-Miyani/compose-skill (304 stars, last pushed 3d ago), licensed MIT. It adds 106 tokens to every session and 3,809 once invoked, about $0.0004 per session on Opus 5.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-10-02.

Related

Other skills, from other repositories

compose-animations

Use when writing or reviewing Jetpack Compose motion: visibility enter/exit, animating one property toward a target, color or size transitions, multiple properties from one state, switching composable content, or choosing between AnimatedVisibility, animateAsState, rememberTransition, AnimatedContent, and Crossfade.

chrisbanes/skills · 64 tokens

compose-focus-navigation

Use when writing or reviewing Jetpack Compose UI for TV, keyboard, desktop, accessibility focus, D-pad navigation, FocusRequester, focusProperties, key events, or initial focus behavior.

chrisbanes/skills · 41 tokens

compose-state-and-effects

Use when writing or reviewing Jetpack Compose state ownership, remember state, state hoisting, screen state holders, LaunchedEffect, DisposableEffect, SideEffect, Flow collection, navigation, snackbar, analytics, or focus requests.

chrisbanes/skills · 50 tokens

android-benchmark-comparison

Use when comparing physical Android benchmark configurations, investigating inconsistent rankings, or selecting an Android default from measured results. Do not use for code-level Compose performance diagnosis without a configuration comparison.

chrisbanes/skills · 41 tokens

roborazzi

Use when working with Roborazzi screenshot tests on Android/JVM — setting up the Roborazzi Gradle plugin, running record/compare/verify tasks, writing tests with captureRoboImage or RoborazziRule, Compose Preview screenshot testing (ComposablePreviewScanner), Compose Multiplatform (iOS/desktop) screenshots, AI-powered…

takahirom/roborazzi · 95 tokens

compose-component-design

Use when designing or reviewing reusable Jetpack Compose component APIs with modifier parameters, root layout placement, caller-provided variable content, primitive content parameters, optional content, or boolean shape flags.

chrisbanes/skills · 41 tokens