DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to review a Compose screen against UI and state traps with Kotlin Footguns

Have an agent check a Compose screen against the visuals, screens and state trap indexes.

Short answer: In Claude Code, run /plugin marketplace add maxrave-dev/kotlin-footguns; then run /plugin install kotlin-footguns@maxrave; ask the agent to read the compose-visuals-footguns and compose-screens-footguns indexes. All steps.

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

  1. In Claude Code, run /plugin marketplace add maxrave-dev/kotlin-footguns.
  2. Run /plugin install kotlin-footguns@maxrave.
  3. Ask the agent to read the compose-visuals-footguns and compose-screens-footguns indexes.
  4. Point the agent at the screen file and ask it to open only the trap files whose symptoms match.
  5. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer