/compose-kit:compose-projectfrom Compose Kit
Owns project and build-level work for Compose Multiplatform apps: bootstrapping, module management, convention plugins, version catalogs, and CI hooks.
Ships in Compose Kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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.
Build files are load-bearing contracts, not scaffolding to rush past. A shortcut in a module build file replicates to every module after it. Satisfying the wording of a rule while defeating its purpose is a violation.
compose-architecture skill)gradle/libs.versions.toml. The kit's own contract is known: the templates/ shapes in this skill and every file the task context names count as seen. Never call an invented plugin or task.compose-architecture skill, Operating stance items 7–11). Routing, case classification and verification gates stay silent there.gradle/libs.versions.toml, read the current official docs for that version, then write. Unreachable docs means marking the change unverified.| Task | Use instead |
|---|---|
| Route first: decide the task path and files to read | the compose skill, before anything below |
| Add, change or review a screen, destination or slice | the compose-feature skill |
| Repositories, Ktor, Room, DataStore, Paging, offline-first | the compose-data skill |
commonMain sharing, expect/actual, iOS/Swift, desktop, web | the compose-platform skill |
| Composables, stability, resources | the compose-ui skill |
Rules 1–8 are non-negotiables. Rules 9–10 are defaults: a recorded project decision in ## Project decisions wins with no argument; waiving a non-negotiable needs a recorded reason (see the compose-architecture skill, existing-projects.md item 5).
:feature:tags build file applies the feature plugin and declares its namespace plus dependencies only. (Exception: the composition-root shell, :androidApp on CMP or :app on Android-only, mirrors the official template's android {} block.) Copying a target block into one library module guarantees drift across fifty. Prevents: per-module SDK drift (brief §12.1).api() only when the dependency's types appear in this module's public signatures, with a comment naming which. A leaked type expands every consumer's classpath and build graph. Prevents: classpath leaks through core modules (brief §12.6)..composekit.conf and passes run-checks.sh. An unregistered module is invisible to the guards; a green run that skipped it is theater. Prevents: unguarded modules.compose-architecture skill). Prevents: big-bang rewrites that stall mid-flight (STANDARDS §6).:app for now" rots into a shortcut the guards cannot see. Prevents: root-as-junk-drawer (brief §12.3).gradle/libs.versions.toml; no versions appear in module build files. A version written in two places diverges the day one of them is bumped. Prevents: version drift across modules.kotlin.collections.*. Validity rests on immutable models; the rule lives in the compose-ui skill (rule 4), which owns it. Prevents: stability fixes that silently stop applying.when-needed unless the project records otherwise. UI_MODEL=always in .composekit.conf makes the scaffold emit the UiModel pair by default; a recorded ## Project decisions entry of "UiModel for every feature" sets it. A chat preference applies to the current task, and the agent offers to record it.run-checks.sh registry, never around it. The CI job calls the registry; agent hooks call the registry before finishing a Compose change. The exact job shape follows the project's forge; what never changes is registry-first ordering.Version gates: read gradle/libs.versions.toml before writing. If AGP is below 9, stop and report instead of applying the AGP 9 shape. If Kotlin is below 2.3.20, stop and report instead of applying the Koin compiler plugin. If Kotlin is above the highest version the installed SKIE supports, stop and report instead of adding SKIE.
templates/project/: root settings, root build file, gradle.properties, gradle/libs.versions.toml, build-logic/, :core:mvi and :core:error from the compose-architecture templates, :core:designsystem, :feature:notes, the composition root (:composeApp plus :androidApp on CMP, :app on Android-only). A :data:<domain> module joins only when a second feature needs the same data (see bootstrap.md).install-guards.sh; register every module in .composekit.conf and document every key where setup is explained (see bootstrap.md). UI_MODEL stays when-needed unless the project records always.## Project decisions section in AGENTS.md/CLAUDE.md (see bootstrap.md); add the one-line kit-activation pointer from enforcement.md.compose-feature scaffold, never by hand-copying an old screen.scripts/audit-project.sh and produce the gap report from adopt-existing.md. Classify the project as existing-project case 1, 2, or 3 (defined in the compose-architecture skill).## Project decisions for every deviation the project keeps, with the reason stated once.api() only per rule 2..composekit.conf and run run-checks.sh.scripts/composekit/run-checks.sh (the registry), never individual checks. New checks join as one registry line.install-guards.sh; never write them into the user's config without consent.enforcement.md.| Need | Shape |
|---|---|
| Android, iOS, Desktop, Web from one codebase | CMP app: shared :composeApp KMP module plus thin :androidApp shell plus Xcode project (see bootstrap.md) |
| Android only, now and for the foreseeable future | Android-only: :app plus :core:*, :data:*, :feature:* (see bootstrap.md) |
libs.versions.toml shows | Shape |
|---|---|
| AGP 9 or newer | Shared module uses com.android.kotlin.multiplatform.library with the kotlin { android { … } } block; the Android entry point lives in a separate :androidApp module |
| AGP below 9 | Keep com.android.library; do not apply the AGP 9 shape. Stop and report instead of migrating as a side effect |
compose-architecture skill)| Case | Plan |
|---|---|
| Case 1 (green field or kit-shaped) | The kit strictly, from the first module |
| Case 2 (coherent different architecture) | This change follows the project's pattern; kit migration is a separate task |
| Case 3 (incoherent, competing patterns) | New code follows the kit; name the incoherence; propose migration separately |
| Thought | Reality |
|---|---|
"I'll park the tags logic in :app for now to ship faster." | No. Rule 6: the root is a temporary scaffold, never a home. Say no first, then create the feature module. |
| "I'll skip the guard config; we will clean it up later." | No. Rule 4: unregistered means unguarded. Register before done. |
| "I'll do the full rewrite to the kit inside this change." | No. Rule 5: incremental, WARN mode first. A coherent project keeps its pattern for this change. |
| "I'll copy the target block into this module; it is only one module." | No. Rule 1: convention plugins own targets. One copy becomes fifty. |
"I'll use api(); it compiles, so it is fine." | No. Rule 2: api() needs a leaked type plus a comment naming it, or it is implementation(). |
| "I'll pin this version in the module file; the catalog is for libraries." | No. Rule 7: every version lives once in libs.versions.toml. |
| "I'll call one guard script from CI; that covers it." | No. Rule 10: CI calls the registry. One script is a second registry that drifts. |
| "I'll write the hook into the user's config now; they will want it." | No. Print the snippet; never write it without consent. |
| "This plugin id looks right; I remember it." | Stop and verify now (stance item 1). An invented plugin id fails every module at sync time. |
scripts/composekit/run-checks.sh (or the skill's scripts/run-checks.sh <project-root>) exits 0.scripts/audit-project.sh <project-root> output is reviewed for bootstrap gaps and adopt-existing classification.rg -n "compileSdk|minSdk|targetSdk|jvmTarget|jvmToolchain" --glob '*.gradle.kts' <module-dirs> is empty outside build-logic/ and the composition-root shell module.libs. accessors.api( line carries a comment naming the leaked type..composekit.conf; every .composekit.conf key used by the project is documented where setup is explained.AGENTS.md/CLAUDE.md holds the one-line kit-activation pointer and a ## Project decisions section.run-checks.sh; the registry has one line per check and fails when a script is missing.libs.versions.toml: yes or no.Load only the references this task needs. One level deep.
Also read module-graph.md when adding a module.
Also read dependency-injection.md when wiring module bindings.
bootstrap.md — new-project workflow: target selection, module skeleton, guard install, first feature, ## Project decisions, every .composekit.conf key.
adopt-existing.md — audit checklist, gap-report format, incremental order, WARN-mode guards, what never to force-migrate.
convention-plugins.md — plugin set, what each owns, the stability-config wiring, the AGP 9 shape.
dependency-rules.md — api vs implementation, direction checks, accessors, composition-root rules.
version-catalog.md — naming, bundles, verification habit, floors, composite builds.
enforcement.md — install-guards.sh, CI job, agent hooks, kit activation, stability baselines.
distribution.md — desktop packaging, signing and notarization, CI matrix, caches.
references/adopt-existing.md (opens in a new tab)references/bootstrap.md (opens in a new tab)references/convention-plugins.md (opens in a new tab)references/dependency-rules.md (opens in a new tab)references/distribution.md (opens in a new tab)references/enforcement.md (opens in a new tab)references/version-catalog.md (opens in a new tab)scripts/audit-project.sh (opens in a new tab)templates/build-logic/README.md (opens in a new tab)templates/build-logic/compose-stability.conf (opens in a new tab)templates/build-logic/convention/build.gradle.kts (opens in a new tab)templates/build-logic/convention/src/main/kotlin/ComposekitKmpComposePlugin.kt (opens in a new tab)templates/build-logic/convention/src/main/kotlin/ComposekitKmpFeaturePlugin.kt (opens in a new tab)templates/build-logic/convention/src/main/kotlin/ComposekitKmpLibraryPlugin.kt (opens in a new tab)templates/build-logic/convention/src/main/kotlin/ComposekitKoinPlugin.kt (opens in a new tab)templates/build-logic/settings.gradle.kts (opens in a new tab)templates/composition/App.kt (opens in a new tab)templates/composition/AppModule.kt (opens in a new tab)templates/composition/DesktopMain.kt (opens in a new tab)templates/composition/MainActivity.kt (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/composeUse this skill first for any Jetpack Compose or Compose Multiplatform task: a new feature or screen, a change to existing code, a bug fix, a review, making code follow the kit, project or build setup, or a question. It picks the task path and the exact kit files to read. Not for Kotlin work outside a Compose or CMP app./compose-architectureUse when writing, changing or reviewing code that touches the house contract for Jetpack Compose and Compose Multiplatform apps: module graph, MVI/BaseViewModel, error tiers, state ownership, naming, Koin DI, Navigation 3 and coroutines. The compose skill is the entry point. Do NOT use for Gradle-only work (compose-project), new screens (compose-feature), composable-only work (compose-ui), repositories or persistence (compose-data), or expect/actual splits (compose-platform)./compose-dataOwns repositories, data sources and mapping for Compose and Compose Multiplatform apps: DTO to domain to UiModel boundaries, Ktor clients and bearer auth, WebSocket and SSE, Room, DataStore, Paging 3, offline-first and data-layer tests. Use when writing or reviewing a repository, data source, DTO, mapper, HttpClient, bearer token, WebSocket, SSE, Room DAO, migration, DataStore, PagingSource, RemoteMediator, offline cache or MockEngine test. Do NOT use for ViewModel or UI wiring (compose-feature), composables (compose-ui), the MVI contract or error tiers (compose-architecture), Gradle modules (compose-project), or commonMain vs platform splits (compose-platform)./compose-featureAdds, changes, or reviews a screen, sheet, dialog, or destination slice (endpoint to repository to ViewModel to UI to navigation to DI to tests) in a Compose or CMP project. Use when adding a screen, building a new feature, adding a ViewModel or destination, wiring list/detail or a form screen, scaffolding a slice, or reviewing a feature change. Covers Contract.kt, launchGuarded wiring, SavedStateHandle drafts, the state matrix, and new-feature.sh. Do NOT use for routing or architecture (compose-architecture), pure refactors, Gradle work (compose-project), recomposition or styling (compose-ui), repository or persistence work (compose-data), or expect/actual splits (compose-platform)./compose-platformOwns platform splits for Compose Multiplatform apps: places declarations in commonMain, chooses expect/actual vs interface plus DI, wires host adapters and ports, and validates iOS/Swift interop, desktop and web targets, and platform lifecycle. Use when touching commonMain, expect, actual, iosMain, Swift, SKIE, Flow to Swift, desktop, wasm, web target, or platform-specific code. Do NOT use for routing or architecture (compose-architecture), feature slices (compose-feature), composables or resources (compose-ui), repositories or persistence (compose-data), or Gradle target setup (compose-project)./compose-uiWrites and reviews composables for Compose and CMP: the Route/Screen/leaf split, state-read placement and stability, loading/empty/error UX states, LazyColumn lists and grids, animation choice, accessibility and semantics, design-system tokens, CMP Res resources, Coil images, and keyboard/focus. Use when touching @Composable code, recomposition, stability, LazyColumn, animation, shimmer or skeleton, accessibility, theme, colors, Res.string, Coil, focus, or keyboard. Do NOT use for MVI, error tiers, or module graph (compose-architecture), ViewModel or data work (compose-feature, compose-data), Gradle or module work (compose-project), or expect/actual splits (compose-platform).npx claudepluginhub meet-miyani/compose-skill --plugin compose-kitOther plugins' skills for the same job