/kotlin-footguns:footgun-scanfrom kotlin-footguns
Scans Kotlin/Compose Multiplatform diffs for known footgun patterns, linking each hit to a trap file for confirmation. Use before committing or during code review.
Ships in kotlin-footguns. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
scripts/scan.py matches 32 patterns against the lines a change adds. Each pattern is tied to one
trap file in the kotlin-footguns area skills. It finds shapes, not bugs: every hit needs the trap's
judgment before it becomes a finding.
From inside the user's git repository, with this skill's base directory as <skill>:
python3 <skill>/scripts/scan.py # lines added in the working tree and index since HEAD
python3 <skill>/scripts/scan.py --base origin/main # lines added on this branch since it left main
python3 <skill>/scripts/scan.py --all src/ # every line under a path: an audit, and noisier
Pick the scope from the request. Uncommitted work takes the default. A branch or pull request takes
--base with its target branch. "Audit the codebase" takes --all, narrowed to the paths that matter.
For a pre-commit hook or CI step, add --fail to exit 1 on any likely hit.
-> path).likely hit is wrong unless the exception the trap names holds. A look hit is a place the
trap says to inspect before trusting it.Hits of one detector in one file are grouped: triage the group once, then check the listed lines for exceptions.
It needs python3 and git. Without them, read scripts/scan.py: the DETECTORS list gives
each pattern, its message and its trap. Run those patterns with the Grep tool over the changed
files and triage the same way.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub maxrave-dev/kotlin-footguns --plugin kotlin-footguns11 skills in this plugin
/compose-screens-footgunsCompose screen and interaction traps: navigation, adaptive layout, window insets, pagers, toolbars, sheets, list drag and selection, sliders, text fields, settings UI, one-shot effects. Use when layout, gestures or navigation misbehave./compose-visuals-footgunsCompose look-and-feel traps: theme and colour tokens, artwork palettes, gradients and scrims, shimmer, glass and particle effects, animation, image loading, charts and stats displays (percent changes, shares, buckets). Use when a visual bands, pops, freezes or misleads./data-layer-footgunsRoom/SQLite, DataStore and repository traps: migrations, NOT IN with NULLs, LIKE escaping, delete order, local-time bucketing, imports, caching, paging. Use before writing a query or migration, or when data comes back wrong.Other plugins' skills for the same job