Who it is forA Compose Multiplatform developer building or changing a screen with theming, gradients, navigation or ViewModel state.
The problemCompose UI bugs such as wrong colour fades, half-height slides and lifecycle leaks often look fine in a preview and fail on device.
The outcomeAn agent-written review that names the specific trap files relevant to the screen and explains each risk found in the code.
What you need first
- A Kotlin, Compose Multiplatform or desktop JVM project in a git repository
- Claude Code, or any coding agent that reads the open agent-skills format
- Python 3 for the footgun-scan script
- Node.js with npx, if you use the skills CLI install
Steps
- In Claude Code, run
/plugin marketplace add maxrave-dev/kotlin-footguns. - Run
/plugin install kotlin-footguns@maxrave. - Ask the agent to read the compose-visuals-footguns and compose-screens-footguns indexes.
- Point the agent at the screen file and ask it to open only the trap files whose symptoms match.
- Apply the fixes the trap files describe and rerun the review on the changed file.
Prompt for your agent
Using the installed kotlin-footguns skills, review <path to screen file> against the compose-visuals-footguns and compose-screens-footguns indexes. Expected output: a list of matched trap files with the line in the screen that triggers each one. Verify that each cited trap file exists and that its trigger description matches the code you point to.
Caveat. The skills are mined from one music app, so trap coverage for a Compose screen that is far from that app's patterns may be thin.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for maxrave-dev/kotlin-footguns and "Review a Compose screen against UI and state traps"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer