Scan a Kotlin or Compose Multiplatform diff for known footgun shapes and open the matching trap to confirm each hit. Use before committing, when reviewing a Kotlin change, or to audit a codebase.
Capabilities
Run it
From inside the user's git repository, with this skill's base…
Triage every hit
A likely hit is wrong unless the exception the trap names holds
When the scanner cannot run
It needs python3 and git
Getting started
Full instructionsExample command
Run it
python3 <skill>/scripts/scan.py # lines added in the working tree and index since HEADExplore more skills
Browse all- Engineering Method FootgunsDebugging-method traps: run the discriminating experiment first, read build logs bottom-up, treat an empty actual as…
- State and Background FootgunsReactive state and background-work traps: StateFlow conflation, flatMapLatest, job lifecycles, ViewModel bases,…
- Remote API FootgunsRemote API traps in Kotlin Multiplatform: Ktor clients, defensive parsing, Resource envelopes, OK responses that…
- Data Layer FootgunsRoom/SQLite, DataStore and repository traps: migrations, NOT IN with NULLs, LIKE escaping, delete order, local-time…
- Senior FrontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle…
- UI Design SystemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens…
Instructions: SKILL.mdv1.0.1
Footgun scan
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.
Run it
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.
Triage every hit
- Read the trap file the hit points to (the
->path). - Read the code around the hit and decide, by the trap's own conditions, whether it applies.
Alikelyhit is wrong unless the exception the trap names holds. Alookhit is a place the
trap says to inspect before trusting it. - Report each confirmed problem with the trap's fix and its Verifying step. List dismissed hits one
line each with the reason, for example "column is NOT NULL" or "the fade goes to black".
Hits of one detector in one file are grouped: triage the group once, then check the listed lines
for exceptions.
When the scanner cannot run
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.
Security
Signing
Verified copySLSA L1- Signed by
- skills-hub.ai verified copy of https://github.com/maxrave-dev/kotlin-footguns
- Method
- Verified copy of the source repoPublished by a community repo, not by skills-hub.ai. We signed this exact version to vouch that its content matches what the repo published. Check it with `npx @skills-hub-ai/cli verify`.
- Key
- skills-hub-ed25519-2026-11
- Signed
Reviews (0)
More from kotlin-footguns
View source →Frequently asked questions about footgun-scan
What does the footgun-scan skill do?
Scan a Kotlin or Compose Multiplatform diff for known footgun shapes and open the matching trap to confirm each hit. Use before committing, when reviewing a Kotlin change, or to audit a codebase. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the footgun-scan skill?
Run `npx @skills-hub-ai/cli install kotlin-footguns-footgun-scan` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/kotlin-footguns-footgun-scan/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does footgun-scan work with?
footgun-scan runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the footgun-scan skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use footgun-scan after installing it?
In Claude Code, type `/kotlin-footguns-footgun-scan` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the footgun-scan skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.
Badge for your README
Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.
[](https://skills-hub.ai/skills/kotlin-footguns-footgun-scan)<a href="https://skills-hub.ai/skills/kotlin-footguns-footgun-scan"><img src="https://skills-hub.ai/api/badges/skill/kotlin-footguns-footgun-scan" alt="Install on Skills Hub"></a>More options in the badge docs.