Compose Data Layer (compose-data)
Designs and reviews repositories, data sources and mapping for Compose / Compose Multiplatform apps under strict boundary rules.
Dev & CodingAdvanced★ 307⑂ 25AI score 9/10Last updated: Nov 8, 2026
What it does
- Enforces layer boundaries: DTOs and entities stay
internal, only domain types cross the line, and atoDomain()mapper is mandatory even for 1:1 shapes. - Library-specific rules: Ktor (
expectSuccess = true, bearer refresh, WebSocket vs SSE), Room (KMP setup, DAOs, migrations), DataStore (single Preferences instance, JSON-string settings), Paging 3 (PagingDataas its ownFlow, never inUiState), offline-first (RemoteMediator+ Room). - Failure discipline: never swallow
NetworkExceptionin a repository, never fabricate defaults for missing fields — 11 non-negotiables with the reasoning behind each. - Executable verification gates:
grepcommands to catch public DTOs, wire strings in domain models and swallowed transport errors, plus arun-checks.shrun. - Clear scope routing: a table that hands off ViewModel, composable and Gradle work to sibling skills.
Who it's for
- Kotlin Multiplatform / Compose developers following Clean Architecture + MVI
- Tech leads who want a consistent data-layer review standard
- Anyone building an offline-first cache with Ktor, Room and Paging
Examples
- "Wire up the notes list API" → generates the DTO, places the
toDomain()mapper, and names the repository contract (getNotesStream) per convention. - Reviewing an existing repository → flags
catch (e: NetworkException)that silently keeps stale data and supplies the corrected propagation code. - Building an infinite-scroll feed → guides
RemoteMediator+ Room, exposingPagingDataas a separateFlow, and where to placecachedIn.
· · · 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-data/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)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the 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-data folder from the GitHub repo Meet-Miyani/compose-skill into my ~/.claude/skills/compose-data/. 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.
- Open a terminal.
- Clone the repo:
git clone https://github.com/Meet-Miyani/compose-skill.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the whole skill set (this skill cross-references compose-architecture, compose-ui and others):
cp -r compose-skill/skills/* ~/.claude/skills/ - Restart Claude Code and confirm
compose-dataappears in your skill list. - From a Kotlin project root, ask things like "add a repository for X" or "review this data source" and the skill triggers automatically. Having
gradle/libs.versions.tomlpresent makes its version checks accurate.
View source on GitHub ↗License: MIT