gerardpaligot/confily/kotlin-linting
Claude Code and agent skill by gerardpaligot/confily
- community
Checking that the SKILL.md file is still in the repository.
Use this skill whenever you write or modify Kotlin files in this project. Covers the ktlint and detekt rules enforced in CI (./gradlew ktlintCheck detekt) and the most common mistakes to avoid: wildcard imports, long parameter lists, too many functions, complex methods, and magic numbers. Always apply these rules before committing.
Install
npx vskill@latest install gerardpaligot/confily/kotlin-lintingSKILL.md
Kotlin Linting Skill
CI Enforcement
The linter job in .github/workflows/build.yaml runs:
Both tools run with maxIssues: 0 / ignoreFailures: false, so a single violation breaks the build. Fix issues before committing.
ktlint Rules
ktlint version 0.47.1 is used with experimental rules enabled. The only disabled rule is experimental:argument-list-wrapping.
Wildcard imports are forbidden
Always use fully qualified imports. Never use *:
Generated and build directories are excluded
Files under /generated/ or /build/ are ignored automatically. Only **/kotlin/** sources are linted.
detekt Rules
Configuration lives in config/detekt/detekt.yml.
Key thresholds
| Rule | Threshold | |
|---|---|---|
ComplexMethod | 15 cyclomatic complexity | |
LongMethod | 100 lines | |
LongParameterList (functions) | 6 parameters | |
LongParameterList (constructors) | 7 parameters | |
TooManyFunctions | 12 per file / class / object | |
LargeClass | 600 lines | |
NestedBlockDepth | 4 levels | |
ComplexCondition | 4 conditions |
LongParameterList is ignored for data classes and for functions/classes annotated with @Composable, @Stable, or @Immutable.
Suppression annotations
When a threshold genuinely cannot be avoided, suppress at the declaration level with a @Suppress annotation and a comment explaining why:
Prefer refactoring over suppression wherever possible.
Test sources are excluded
The rules below are not enforced in test source sets (**/test/**, **/androidTest/**, **/commonTest/**, etc.):
WildcardImport(via ktlint, but keep imports explicit in tests too)StringLiteralDuplicationTooManyFunctionsLongParameterList
Empty blocks
All empty block rules are active. Do not leave empty catch, if, else, or function bodies without a comment or intentional content.
Running Locally
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/kotlin-linting/SKILL.md
Popularity
- Repository stars
- 152
- Repository forks
- 9
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gerardpaligot/confily/kotlin-linting)