{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "maxrave-dev-kotlin-footguns--review-compose-screen-with-trap-skills",
 "repo": "maxrave-dev/kotlin-footguns",
 "repo_url": "https://github.com/maxrave-dev/kotlin-footguns",
 "repo_slug": "maxrave-dev-kotlin-footguns",
 "title": "Review a Compose screen against UI and state traps",
 "page_title": "How to review a Compose screen against UI and state traps with Kotlin Footguns",
 "summary": "Have an agent check a Compose screen against the visuals, screens and state trap indexes.",
 "who": "A Compose Multiplatform developer building or changing a screen with theming, gradients, navigation or ViewModel state.",
 "problem": "Compose UI bugs such as wrong colour fades, half-height slides and lifecycle leaks often look fine in a preview and fail on device.",
 "outcome": "An agent-written review that names the specific trap files relevant to the screen and explains each risk found in the code.",
 "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."
 ],
 "agent_prompt": "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.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "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.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/maxrave-dev-kotlin-footguns/review-compose-screen-with-trap-skills/",
 "md": "https://dedupedai.com/use-cases/maxrave-dev-kotlin-footguns/review-compose-screen-with-trap-skills/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/maxrave-dev-kotlin-footguns--review-compose-screen-with-trap-skills.json",
 "api_version": "v1"
}
