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

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 a toDomain() 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 (PagingData as its own Flow, never in UiState), offline-first (RemoteMediator + Room).
  • Failure discipline: never swallow NetworkException in a repository, never fabricate defaults for missing fields — 11 non-negotiables with the reasoning behind each.
  • Executable verification gates: grep commands to catch public DTOs, wire strings in domain models and swallowed transport errors, plus a run-checks.sh run.
  • 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

  1. "Wire up the notes list API" → generates the DTO, places the toDomain() mapper, and names the repository contract (getNotesStream) per convention.
  2. Reviewing an existing repository → flags catch (e: NetworkException) that silently keeps stale data and supplies the corrected propagation code.
  3. Building an infinite-scroll feed → guides RemoteMediator + Room, exposing PagingData as a separate Flow, and where to place cachedIn.

· · · 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)
  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-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.

  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 whole skill set (this skill cross-references compose-architecture, compose-ui and others): cp -r compose-skill/skills/* ~/.claude/skills/
  5. Restart Claude Code and confirm compose-data appears in your skill list.
  6. 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.toml present makes its version checks accurate.