aldefy/compose-skill / skills/compose-expert
compose-expert
UnverifiedCompose 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.
references/auto-init.md
View on GitHub# Auto-Init: Compose Project Detection
Activate on `session_start`. Detect whether the current project uses Compose and
silently activate the skill with a brief announcement.
---
## Detection Gate
Run in order. Stop on first match.
### Step 1 — Gradle scan
Look for `build.gradle.kts`, `build.gradle`, or `libs.versions.toml` in the working
directory or one level up. Check file contents for any of:
- `compose`
- `androidx.compose`
- `org.jetbrains.compose`
- `compose-multiplatform`
```bash
# Check working directory and parent
for dir in . ..; do
for file in build.gradle.kts build.gradle libs.versions.toml; do
if [ -f "$dir/$file" ]; then
grep -qi "compose\|androidx\.compose\|org\.jetbrains\.compose\|compose-multiplatform" "$dir/$file" && echo "DETECTED" && break 2
fi
done
done
```
### Step 2 — Source scan fallback
If no Gradle file found or no Compose reference in Gradle, scan Kotlin source files.
```bash
# Find up to 10 .kt files (exclude build dirs), check for @Composable
find . -name "*.kt" -not -path "*/build/*" -print -quit 2>/dev/null | head -10 | \
xargs grep -l "@Composable" 2>/dev/null | head -1
```
If any file contains `@Composable`, detection succeeds.
---
## On Detection
Print one line:
```
Compose project detected — compose-expert skill active.
```
Then proceed normally — wait for the user's request and follow the standard workflow
in `SKILL.md`.
## On No Detection
Do nothing. The skill remains available if the user explicitly triggers it via
keyword (e.g., mentions `@Composable`, `LazyColumn`, `NavHost`, etc.) later in
the session.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |