by maxrave-dev
Battle-tested agent skills mapping the footguns of Kotlin, Compose Multiplatform and the desktop JVM — mined from a production music app, not from documentation.
# Add to your Claude Code skills
git clone https://github.com/maxrave-dev/kotlin-footgunsGuides for using ai agents skills like kotlin-footguns.
Last scanned: 9/8/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-09-08T08:39:20.640Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}See how kotlin-footguns compares with popular alternatives.
kotlin-footguns is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by maxrave-dev. Battle-tested agent skills mapping the footguns of Kotlin, Compose Multiplatform and the desktop JVM — mined from a production music app, not from documentation. It has 1,545 GitHub stars.
Yes. kotlin-footguns passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/maxrave-dev/kotlin-footguns" and add it to your Claude Code skills directory (see the Installation section above).
kotlin-footguns is primarily written in Python. It is open-source under maxrave-dev on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh kotlin-footguns against similar tools.
No comments yet. Be the first to share your thoughts!
30 days in the Featured rail · terms & refunds
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Automated security scan — not a certification.
By maxrave-dev — creator and maintainer of SimpMusic, the 10.8k-star cross-platform music app every lesson in this repository was mined from.
228 battle-tested traps mapping the footguns of Kotlin, Compose Multiplatform and desktop JVM development, packaged as ten agent skills plus a scanner that checks a change against them. Mined from a production codebase, not written from documentation.
The traps are grouped into ten area skills in the open agent-skills format, readable by Claude Code and any coding agent that understands the format — and just as readable by a human. Each area skill is an index of its traps; each trap is a standalone markdown file the agent opens when the work in front of it matches. The corpus is 28,000+ lines across 228 files, and in most of them the largest section is Traps: the specific ways a technique fails in practice, each paired with a way to verify the failure and the fix on your own tree.
Most agent-skill collections for Kotlin and Android are written from official documentation. They tell an agent what the API is supposed to do. This repository records what happened when its author shipped against those APIs for years: the API that reports success while discarding your data, the build flag that means something different on one platform, the verification step that passes on broken code, the migration that deleted the wrong thing first.
None of it is theory. Every lesson here is older than the document that describes it — each one had already been paid for in crash reports, failed releases, review rounds and user-filed issues before it was written down.

The source is SimpMusic, a cross-platform music client built with Kotlin and Compose Multiplatform, in continuous production since April 2023. As of this writing it has earned more than 10,800 GitHub stars and 550 forks, and ships to real users on Android, Windows, macOS and Linux through GitHub releases, F-Droid, IzzyOnDroid and OpenAPK.
That codebase spans territory most sample projects never touch: a native media engine bound over JNA, dual-player crossfade and DSP chains, a Room database at real-user scale, desktop packaging and code-signing for three operating systems, CI that builds all of it, and a UI written entirely in Compose. The traps are the distillation of that surface area.
The corpus itself is deliberately service-neutral. The traps teach architecture and failure modes, never the mechanics of any third-party service; no service names or vendor field names appear in any trap file. What was learned integrating specific services survives here as the generic core that applies to whichever API you are consuming.
| Area skill | Traps | Focus |
|---|---|---|
desktop-and-build-footguns |
24 | Native code on the desktop JVM; desktop packaging, code signing, CI and build |
kmp-architecture-footguns |
25 | Multiplatform module structure, dependency injection, architecture; Kotlin language traps |
media-playback-footguns |
33 | Players and crossfade, audio processing and DSP, queues, shared listening sessions |
data-layer-footguns |
26 | Room and SQL at scale, migrations, repositories, caching and paging |
compose-visuals-footguns |
36 | Theming and colour, gradients and scrims, effects and animation, charts |
compose-screens-footguns |
32 | Screens, navigation, adaptive layout, components and interaction |
state-and-background-footguns |
23 | Flow, StateFlow and ViewModel lifecycles; background work, services, platform runtime |
webview-footguns |
3 | WebView on low-RAM phones and provider-less devices: startup, renderer death, AndroidView lifecycle, cookies |
remote-api-footguns |
17 | Clients and parsing, auth and retries, realtime sessions and wire protocols |
engineering-method-footguns |
9 | Experiments, build logs, commit history, changelogs, removing a feature |
Each area skill lists its traps under headings, each with the description that tells an agent
when to open it. The whole index on one page is CATALOG.md. An eleventh skill,
footgun-scan, checks code against the traps (below).
Until version 2.0 every trap was its own skill, and the set crowded out everything else in the agent's skill listing. Claude Code lists every installed skill's name and description on every turn, inside a budget of 1% of the context window (8,000 characters for a 200K-token window), and lists whatever does not fit by name alone, least-used first. The 224 descriptions came to about 124,000 characters and the names alone to 7,500, so at that budget every trap reached the agent as a bare name, and so did every other skill the user had installed, their own included.
As ten area skills plus the scanner the listing is about 2,900 characters. The agent loads an area's index when the work touches that area, sees every trap in it at once with the symptom that should send it to each one, and opens only the files that apply.
footgun-scan turns the traps into a check. It matches 32 patterns against the lines a change
adds; each pattern is tied to one trap, and the agent opens that trap to confirm or dismiss every
hit. Ask for it in plain words ("check my uncommitted Kotlin changes for footguns"), or run the
script yourself, for example as a CI step:
python3 .claude/skills/footgun-scan/scripts/scan.py --base origin/main --fail
A hit is likely when the shape is wrong unless the exception its trap names holds, and look
when it marks a place the trap says to inspect. Over the whole of SimpMusic and its core module the
scanner raised 26 likely hits, and all 26 matched their trap on inspection: 22 vertical slides
left at their half-height default, two fades from Color.Transparent into a colour, and two values
spliced into migration SQL. The look hits are places to read, not verdicts.
evals/ holds thirteen claude plugin eval cases, each run with the plugin and
without it. With it, all twelve trap questions passed in every run and the agent opened the right
trap file every time. Without it they averaged 0.56. On five of them the model already knew the
lesson. On four it was confidently wrong: it described a Room connection-routing rule and a
resource formatter that do not exist. The full table and its caveats are in
evals/README.md.
Every trap file follows the same discipline:
name matching its file name and a description that states coverage,
the trigger for reaching for it, and the symptom it explains. The area index repeats that
description, so the agent chooses on exactly this text.Files are kept between 60 and 140 lines. A trap you cannot read in two minutes is a trap an agent will not load in context.
The area indexes and CATALOG.md are generated: after adding or editing a trap, run
python3 scripts/build_index.py. It refreshes every index line from the trap's own description,
fails if a file is unlisted, listed twice or missing, or if a cross-reference names a trap that
does not exist, and reports how much of the listing budget the skills take. Add --check
to verify without writing.
Extraction ran as a five-batch pipeline, and no file shipped as first drafted. Each batch was reviewed by independent adversarial lanes that received only the files and the source tree — never the author's reasoning — and were instructed to refute, not confirm. Findings were repaired in separate fix lanes, and a repair was accepted only with the re-run evidence attached. A follow-up delta batch, mined later from the source project's continued development, went through the same pipeline at wider fan-out: ten write lanes, ten adversarial verify lanes and seven fix lanes. A second delta batch, mined from the v2.0.0 release sprint, ran