gerardpaligot/confily/kotlin-linting

Claude Code and agent skill by gerardpaligot/confily

Trust tier 2
  • community
LLM review pending
Source check pending

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-linting

SKILL.md

Kotlin Linting Skill

CI Enforcement

The linter job in .github/workflows/build.yaml runs:

./gradlew ktlintCheck detekt

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 *:

kotlin
// ❌ forbidden
import io.ktor.http.*
import io.ktor.server.routing.*
// ✅ correct
import io.ktor.http.HttpStatusCode
import io.ktor.server.routing.Route
import io.ktor.server.routing.get
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
RuleThreshold
ComplexMethod15 cyclomatic complexity
LongMethod100 lines
LongParameterList (functions)6 parameters
LongParameterList (constructors)7 parameters
TooManyFunctions12 per file / class / object
LargeClass600 lines
NestedBlockDepth4 levels
ComplexCondition4 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:

kotlin
@Suppress("LongParameterList") // DI constructor — all params are required
class MyRepository(...)

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)
  • StringLiteralDuplication
  • TooManyFunctions
  • LongParameterList
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

bash
# Check only
./gradlew ktlintCheck detekt
# Auto-fix ktlint issues
./gradlew ktlintFormat
# detekt cannot auto-fix — review the HTML report at build/reports/detekt/

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/gerardpaligot/confily/kotlin-linting/badge)](https://verified-skill.com/skills/gerardpaligot/confily/kotlin-linting)

Something wrong with this skill or its page? Tell us.