{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "maxrave-dev-kotlin-footguns--scan-kotlin-diff-for-footguns",
 "repo": "maxrave-dev/kotlin-footguns",
 "repo_url": "https://github.com/maxrave-dev/kotlin-footguns",
 "repo_slug": "maxrave-dev-kotlin-footguns",
 "title": "Scan a Kotlin change for known footguns before merge",
 "page_title": "How to scan a Kotlin change for known footguns before merge with Kotlin Footguns",
 "summary": "Run a 32-pattern scanner over the lines your branch adds and review each flagged trap.",
 "who": "A Kotlin developer about to open a pull request who wants a check against known Kotlin and Compose pitfalls.",
 "problem": "Common Kotlin, Compose and desktop JVM mistakes pass compilation and code review because they look correct on the surface.",
 "outcome": "A list of likely and look hits tied to specific trap files, each one confirmed or dismissed before the branch merges.",
 "steps": [
  "Install the skills into your project with `npx skills@latest add maxrave-dev/kotlin-footguns`, selecting the footgun-scan skill. (inferred, check the README)",
  "From the repository root, run `python3 .claude/skills/footgun-scan/scripts/scan.py --base origin/main --fail`.",
  "Read each likely hit and open the trap file it names to confirm or dismiss it.",
  "Read each look hit as a place to inspect, not a verdict.",
  "Fix the confirmed hits and run the scan again until it reports nothing you need to act on."
 ],
 "agent_prompt": "In the kotlin-footguns skills installed in <repo path>, run the footgun-scan script against origin/main and open the trap file for every likely hit. Expected output: each hit marked confirmed or dismissed with a one-line reason. Verify that every confirmed hit names a trap file that exists in the skill directory.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The scanner only matches the 32 patterns it ships with, so a clean scan does not mean a change is free of the 228 traps.",
 "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": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/maxrave-dev-kotlin-footguns/scan-kotlin-diff-for-footguns/",
 "md": "https://dedupedai.com/use-cases/maxrave-dev-kotlin-footguns/scan-kotlin-diff-for-footguns/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--scan-kotlin-diff-for-footguns.json",
 "api_version": "v1"
}
