/common-skills:lint-kotlin --module :m1 [--module :m2 ...]from common-skills
Run detekt on Kotlin/KMP modules. Reports all findings.
Ships in common-skills. 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.
None: SKILL.md is the whole skill.
io.gitlab.arturbosch.detekt plugin applied in their build.gradle.kts~/.config/mylint/detekt-config.ymlprovisional — may evolve after real-project validation
--moduleGradle module path(s) to check, e.g. :feature:social. Repeatable. At least one required — exit non-zero with lint-kotlin requires at least one --module if missing.
For each module, run:
First discover available detekt tasks for the module, filtered to androidMain variants only:
./gradlew <module>:tasks --group=verification 2>&1 | rg -i 'detekt.*android'
Why filter:
detektMetadataMain / detektCommonMain / detektIos*. In a KMP module the androidMain source set already pulls in commonMain for compilation, so detekt on androidMain variants (e.g. detektAndroidDebug) covers the same common code — running metadata/common tasks on top is duplicate work that slows the gate and produces noisy double-reports for the same line.Then run detekt with auto-correct first, followed by check:
# Step 1: auto-correct what detekt can fix (androidMain variants only)
./gradlew <module>:<detektAndroidTask1> <module>:<detektAndroidTask2> ... --auto-correct
# Step 2: run detekt again (without --auto-correct) to catch remaining issues
./gradlew <module>:<detektAndroidTask1> <module>:<detektAndroidTask2> ...
If Step 2 exits non-zero, the lint gate fails. Report the findings from:
build/reports/detekt/*.xml禁止通过添加 @Suppress、//noinspection、baseline 条目、或任何形式的忽略注解/注释来绕过 lint 问题。必须修复根本原因。
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub sampeng87/skills --plugin common-skills20 skills in this plugin
/adb-installGradle build 完 Android 包之后,主动提出把 APK 推到 adb 连接的设备(真机或模拟器)并拉起。TRIGGER whenever the user asks to build/compile/package an Android app, runs assembleDebug/assembleRelease, 说 '打 android 包' / '编译 android' / 'build apk' / '跑到手机上' / '装到模拟器' / 'deploy 到设备', 或者任何基于 Gradle 的 Android 构建任务 —— 即使用户没明说 adb 或部署也要触发。构建成功后主动向用户确认是否部署;若用户一开始就说了 'build 完部署' 类指令则跳过询问直接部署。设备选择: 上下文里有最近一次用过的 serial 就复用, 单设备直接用, 多设备向用户确认。部署 = adb install -r + 用 monkey 拉起 launcher activity。/defuddleExtract clean markdown content from web pages using Defuddle CLI, removing clutter and navigation to save tokens. Use instead of WebFetch when the user provides a URL to read or analyze, for online documentation, articles, blog posts, or any standard web page. Do NOT use for URLs ending in .md — those are already markdown, use WebFetch directly./