AI Skill MartBrowse skillsPromptsProgramsLearnWhat is a Skill?
← Back to list

Compose Architecture Contract

An opinionated architecture contract for Jetpack Compose / Compose Multiplatform apps covering module graph, MVI, error tiers, state ownership, Koin DI and Navigation 3.

Dev & CodingAdvanced★ 307⑂ 25AI score 9/10Last updated: Nov 8, 2026

What it does

Gives Claude a strict "house contract" to follow whenever it writes or reviews Compose / Compose Multiplatform code.

  • Module graph: one-way deps :feature:* → :data:*/:core:*; no feature-to-feature imports
  • MVI contract: every ViewModel extends BaseViewModel<Action, State, Effect>; Contract.kt holds exactly UiState/UiAction/UiEffect
  • Error tiers: a decision table mapping each failure (cold load, refresh, user action, background poll, 401) to inline / popup / silent / none
  • State ownership: one owner per state, no rememberSaveable mirrors, drafts in SavedStateHandle
  • Coroutines, DI, navigation: mandatory launchGuarded(onError = …), Koin annotations, Navigation 3 NavKey rules
  • Ends with a verification checklist plus a run-checks.sh gate

Who it's for

  • Teams whose Compose/KMP codebase has drifted into mixed patterns
  • Leads who want AI-generated screens and ViewModels to follow one shape
  • Android / Multiplatform devs on (or moving to) MVI + Koin + Navigation 3

Examples

  1. "Is this try/catch around the API call fine?" → answers no first, then ships the launchGuarded(onError = …) version with a plain reason
  2. "Navigate straight from feature A into feature B's screen" → declines the cross-feature import and implements it as a UiEffect mapped at the composition root
  3. PR review: reports only blocking findings such as mixed error tiers, mirrored state, or feature coupling, with severity

· · · Install guide · · ·

Try it now, no install

Paste this into Claude to use the skill without installing anything.

Read the instructions in this file and follow them to help me:
https://raw.githubusercontent.com/Meet-Miyani/compose-skill/HEAD/skills/compose-architecture/SKILL.md

What I want: (describe your task here)

If Claude can't open the link, open it yourself and paste the contents instead.

↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download ZIP
Install in Claude Code

Let Claude do it — paste this into Claude Code

Install the skill I found on AI Skill Mart.
Copy the skills/compose-architecture folder from the GitHub repo Meet-Miyani/compose-skill into my ~/.claude/skills/compose-architecture/.
When it's done, tell me in one line what this skill can do.

Install with a command instead

git clone https://github.com/Meet-Miyani/compose-skill.git /tmp/compose-skill && mkdir -p ~/.claude/skills && cp -r /tmp/compose-skill/skills/* ~/.claude/skills/

⚠ This is a third-party skill. Check the source repository before installing.

  1. Open a terminal.
  2. Clone the repo: git clone https://github.com/Meet-Miyani/compose-skill.git
  3. Create the skills folder: mkdir -p ~/.claude/skills
  4. Copy the skills in: cp -r compose-skill/skills/* ~/.claude/skills/ (copy them all — this skill is designed to work with the sibling compose, compose-feature, compose-ui, compose-data skills).
  5. Restart Claude Code and confirm compose-architecture appears in your skill list.
  6. Open your Compose project and try: "review the architecture of this ViewModel".