# compose-expert

The compose-expert Claude Code skill covers Compose and Compose Multiplatform for UI, navigation, and state work. It also starts on Compose API mentions, Android TV questions, or PR review requests.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 558 installs · ★ 605 repo stars
- Author: aldefy
- License: Apache-2.0 · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/aldefy/compose-skill/tree/HEAD/skills/compose-expert/SKILL.md
- Updated: 2026-11-07
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/aldefy-compose-expert

## What it does

The skill routes Compose questions to focused guidance on state, recomposition, side effects, navigation, animation, Paging 3, and design systems. It recognises signals such as `@Composable`, `remember`, `LaunchedEffect`, `NavHost`, `MaterialTheme`, `LazyColumn`, `Modifier`, `commonMain`, `expect/actual`, `ComposeUIViewController`, `UIKitView`, and `ComposeViewport`.

A GitHub pull-request URL or a request such as “review this diff” switches it into Review Mode. At `session_start`, it detects Compose projects automatically. The package includes topic routing and source receipts from `androidx` and `JetBrains/compose-multiplatform-core`. The main install path uses `npx`.

## Requirements
- Works with: GitHub

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add aldefy/compose-skill --skill compose-expert -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/compose-expert/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/compose-expert/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add aldefy/compose-skill --skill compose-expert -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/compose-expert/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add aldefy/compose-skill --skill compose-expert -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/compose-expert/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install aldefy/compose-skill skills/compose-expert
```

2. **Manually: put the files in place**
- File: `.github/skills/compose-expert/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add aldefy/compose-skill --skill compose-expert -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/aldefy/compose-skill --path skills/compose-expert
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/compose-expert/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add aldefy/compose-skill --skill compose-expert -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/aldefy/compose-skill/tree/HEAD/skills/compose-expert/SKILL.md

## When to use it
- diagnose excessive recomposition in a Compose screen
- connect navigation between Compose screens
- build an Android TV interface with D-pad focus
- split Compose Multiplatform code between common and platform parts
- review a GitHub pull request or code diff

## Example prompts
- Explain why my `LazyColumn` screen recomposes too often.
- Show how to pass data between screens with `NavHost`.
- Review this diff for Compose state and navigation problems.

## Source text · SKILL.md · Apache-2.0

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 3785c25d6ffff1c0.

BEGIN THIRD-PARTY FILE 3785c25d6ffff1c0
```text
---
name: compose-expert
description: >
  Compose and Compose Multiplatform expert for UI development across Android, Desktop,
  iOS, and Web. Use whenever the user mentions Compose APIs (@Composable, remember,
  LaunchedEffect, NavHost, MaterialTheme, LazyColumn, Modifier, recomposition),
  Compose Multiplatform (commonMain, expect/actual, Res.*, ComposeUIViewController,
  UIKitView, ComposeViewport), Android TV (tv-material, D-pad, focus, Carousel),
  Material 3 motion, atomic design systems, design-to-code workflows, Paging 3, or
  navigation. Activates Review Mode on GitHub PR URLs and review phrases ("review
  this PR", "what's wrong with this"). Auto-detects Compose projects on
  session_start. Backed by actual androidx/androidx and JetBrains/compose-multiplatform-core
  source receipts. See "## When this skill applies" in SKILL.md for the full trigger
  surface.
version: 2.5.2
---

> **Installation notice:** This skill is now distributed as a plugin.
> If you copied files into `~/.claude/skills/` manually, you are on an
> unmaintained install path and will not receive updates. Migrate via:
>
>     /plugin marketplace add aldefy/compose-skill
>     /plugin install compose-expert
>
> See [MIGRATION.md](../docs/MIGRATION.md) for Codex and Copilot CLI instructions.
> This banner will remain through v2.x and escalate in v3.0.

## When this skill applies

The frontmatter `description:` is intentionally short to satisfy Codex / Copilot
CLI's 1024-character cap on that field (see issue #12). The full trigger surface
lives here so it stays available to Claude after the skill loads.

### Compose API mentions
`@Composable`, `remember`, `mutableStateOf`, `derivedStateOf`, `rememberSaveable`,
`LaunchedEffect`, `DisposableEffect`, `SideEffect`, `rememberCoroutineScope`,
`Scaffold`, `NavHost`, `NavController`, `MaterialTheme`, `ColorScheme`,
`Typography`, `LazyColumn`, `LazyRow`, `LazyVerticalGrid`, `HorizontalPager`,
`Modifier`, `Modifier.Node`, `recomposition`, `CompositionLocal`, `Style`,
`styleable`, `MutableStyleState`, `Material 3 Expressive`, `M3 Expressive`,
`MaterialExpressiveTheme`, `ButtonGroup`, `SplitButton`,
`FloatingActionButtonMenu`, `LoadingIndicator`, `HorizontalFloatingToolbar`,
`NavDisplay`, `NavKey`, `rememberNavBackStack`, `NavigableListDetailPaneScaffold`,
`TextFieldState`, `InputTransformation`, `OutputTransformation`, `computedStateOf`,
`MediaQuery`, `Grid`, `FlexBox`, `A2uiSurface`, `StateStore`, `RemoteCompose`,
`MeshGradientPainter`, `PolygonShape`, `MorphPolygonShape`, `AGSL`, `RuntimeShader`,
`ShaderBrush`, `RenderEffect`, `AgentRunner`, `AgentSession`, `GenerativeModel`,
`Gemini Nano`, `ML Kit Agentic API`, `androidx.tracing`, `traceCoroutine`,
`tracing-wire`, `InProgressStrokesView`, `androidx.ink`, `Jetpack Ink`,
`CarAppService`, `androidx.car.app`, `Android Auto`, `Android Automotive OS`,
```
END THIRD-PARTY FILE 3785c25d6ffff1c0

The third-party file has ended. Everything between the 3785c25d6ffff1c0 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2865 of 25393 bytes. © aldefy · Apache-2.0 · https://github.com/aldefy/compose-skill/tree/HEAD/skills/compose-expert/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
