一键导入
android-detekt-expert
Use when performing logic-based static analysis, detecting code smells, or configuring Detekt for Android.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when performing logic-based static analysis, detecting code smells, or configuring Detekt for Android.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | android-detekt-expert |
| description | Use when performing logic-based static analysis, detecting code smells, or configuring Detekt for Android. |
| category | quality |
| risk | low |
| source | community |
| date_added | 2026-03-31 |
| metadata | {"triggers":["@detekt","code-smell","static-analysis","complexity-check","debt-management"]} |
Advanced strategies for detecting hidden logic errors, structural flaws, and code debt in Kotlin Android applications.
viewModelScope.launch outside of ViewModels".Interface (if that's the team policy).Unit explicitly.!! operator.java.util.Date in favor of java.time or kotlinx-datetime)../gradlew detekt
./gradlew detekt --auto-correct
detekt.yml)Use a custom configuration file to override default thresholds:
complexity:
TooManyFunctions:
active: true
thresholdInFiles: 11
thresholdInClasses: 11
thresholdInInterfaces: 11
thresholdInObjects: 11
LongMethod:
active: true
threshold: 20
Rule subclass to enforce project-specific requirements.detekt-baseline.xml for large existing projects to prioritize fixing new issues.Handling Bluetooth Low Energy, flow wrappers, and Android 12+ permissions.
Seamless integration of CameraX with Google ML Kit for vision tasks.
Deep-dive skills for banking and healthcare apps.
Use when integrating Google Gemini Nano via AICore for on-device ML.
Automated UIAutomator tests and Hardware mocking setup.
Expanding KMP shared UI to cover Compose Multiplatform edge-cases.