gradle-kotlin-dsl-doctor
Skill15 starsChanged 9 months agoMITView on GitHub
Generate, debug, and repair Kotlin + Spring Gradle builds with minimal, compatible changes. Use when `build.gradle.kts` or `settings.gradle.kts` is failing, plugins or toolchains are incompatible, dependency management is drifting from the Spring Boot BOM, test or runtime classpaths are broken, or a Kotlin DSL patch must be safe and incremental.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- JetBrains/skillsedited, first seen Apr 28, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- JetBrains/skills★ 38696% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository24 other files it gives its agents.
- ci-cd-containerization-advisorSkill
- configuration-properties-profiles-kotlin-safeSkill
- dependency-conflict-resolverSkill
- domain-decomposition-api-design-advisorSkill
- error-model-validation-architectSkill
- integration-resilience-engineerSkill
- jackson-kotlin-serialization-specialistSkill
- java-kotlin-migration-assistantSkill
- jpa-spring-data-kotlin-mapperSkill
- kotlin-idiomatic-refactorer-spring-awareSkill
- kotlin-spring-proxy-compatibilitySkill
- observability-integratorSkill
- performance-concurrency-advisorSkill
- production-incident-responderSkill
- project-context-ingestionSkill
- schema-migration-plannerSkill
- spring-context-di-reasoningSkill
- spring-kotlin-code-reviewSkill
- spring-mvc-webflux-api-builderSkill
- spring-security-configurator-auditorSkill
- stacktrace-log-triageSkill
- test-suite-builderSkill
- transaction-consistency-designerSkill
- upgrade-breaking-change-navigatorSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
27 rules. About 0 are common, 20 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈20
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Treat Gradle problems as compatibility and model problems, not only syntax problems.
- Distinctive: line 46
Verify whether the project should inherit versions from the Spring Boot BOM instead of declaring them manually.
- Very specific: line 52
Verify kotlin("plugin.spring") when Spring-managed classes rely on proxies.
- Very specific: line 53
Verify kotlin("plugin.jpa") when JPA entities are present.
- Distinctive: line 54
Verify JVM target and Java toolchain alignment.
- Very specific: line 55
Verify kotlin-reflect, serialization, and coroutine libraries align with the Kotlin version in use.
- Distinctive: line 56
Verify whether annotation processing should use KAPT or KSP in this project.
- Distinctive: line 60
Remove unnecessary explicit versions before adding new ones.
- Distinctive: line 62
Prefer small diffs over full-file replacement.
- Distinctive: line 64
If a fix spans several modules, explain the dependency graph that forces it.
- Very specific: line 69
Check whether the repo uses platform(...) or enforcedPlatform(...) in addition to the Spring Boot BOM.
- Very specific: line 70
Check whether the real plugin source of truth is pluginManagement, a version catalog, or a convention plugin rather than the module build …
- Distinctive: line 71
Check whether the Boot plugin is applied to library modules that should publish plain jars instead of executable jars.
- Distinctive: line 72
Check configuration-cache compatibility if the project is trying to use it.
- Distinctive: line 73
Check whether KAPT, KSP, code generation, or source-set wiring requires generated-source directories or task ordering that is currently …
- Distinctive: line 74
Check dependency locking, verification metadata, or repository policy files before suggesting new repositories or version changes.
- Distinctive: line 75
Check test fixtures, included builds, and composite builds when inter-module dependencies behave differently in IDE and CI.
- Distinctive: line 79
Prefer explaining which layer owns a version: wrapper, plugin, platform, version catalog, or module override.
- Very specific: line 80
If the build fails only in CI, compare wrapper version, JDK vendor, org.gradle.jvmargs, configuration cache flags, and repository …
- Distinctive: line 81
If a custom task or plugin breaks under a new Gradle version, isolate that change from ordinary dependency or Kotlin compiler fixes.
- Distinctive: line 82
If the build uses dependency substitution or included builds, verify whether the resolved artifact is local source or published binary …
- Distinctive: line 96
Do not invent random dependency or plugin versions.
- Distinctive: line 97
Do not rewrite Kotlin DSL into Groovy or Maven syntax.
- Distinctive: line 98
Do not change unrelated modules just because they look similar.
- Very specific: line 99
Do not hide version conflicts with force or aggressive exclusions unless there is a strong, explicit reason.
- Distinctive: line 100
Do not recommend clearing caches as the primary fix when the build model itself is wrong.
- Distinctive: line 104
Use these when the repository permits command execution:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Gradle Kotlin DSL Doctor
Source mapping: Tier 1 critical skill derived from Kotlin_Spring_Developer_Pipeline.md (SK-04).
Mission
Stabilize the build with the smallest defensible change. Treat Gradle problems as compatibility and model problems, not only syntax problems.
Read First
settings.gradle.kts- root and module
build.gradle.kts gradle.propertiesgradle/libs.versions.tomlor other version catalogsgradle-wrapper.properties- the exact Gradle output from the failing task
Classify The Failure
Classify the problem before editing anything:
- plugin resolution or plugin version mismatch
- Kotlin DSL syntax or type-safe accessor issue
- dependency resolution or BOM conflict
- JDK toolchain or target mismatch
- source set or test runtime misconfiguration
- compiler plugin problem such as
plugin.spring,plugin.jpa, KAPT, or KSP - task wiring or multi-module convention issue
Work Sequence
- Identify the failing task and the first meaningful error line.
- Determine whether the breakage is in plugin resolution, dependency resolution, compilation, test execution, or packaging.
- Extract the current version authorities:
- Spring Boot plugin
- Kotlin plugin
- Gradle wrapper
- JDK toolchain
- version catalog or convention plugin
- Verify whether the project should inherit versions from the Spring Boot BOM instead of declaring them manually.
- Patch the narrowest file possible. Prefer module-local fixes over global rewrites.
- Recommend the smallest verification command that proves the fix before running the full build.
Kotlin And Spring Checks
- Verify
kotlin("plugin.spring")when Spring-managed classes rely on proxies. - Verify
kotlin("plugin.jpa")when JPA entities are present. - Verify JVM target and Java toolchain alignment.
- Verify
kotlin-reflect, serialization, and coroutine libraries align with the Kotlin version in use. - Verify whether annotation processing should use KAPT or KSP in this project.
Preferred Fix Style
- Remove unnecessary explicit versions before adding new ones.
- Let the Spring Boot BOM manage compatible dependency versions whenever possible.
- Prefer small diffs over full-file replacement.
- Preserve existing conventions such as version catalogs, convention plugins, or build logic modules.
- If a fix spans several modules, explain the dependency graph that forces it.
Advanced Build Diagnostics
- Distinguish dependency declaration problems from variant-selection problems. A dependency can exist and still resolve the wrong JVM target, classifier, or capability.
- Check whether the repo uses
platform(...)orenforcedPlatform(...)in addition to the Spring Boot BOM. That changes how conflict resolution behaves. - Check whether the real plugin source of truth is
pluginManagement, a version catalog, or a convention plugin rather than the module build file. - Check whether the Boot plugin is applied to library modules that should publish plain jars instead of executable jars.
- Check configuration-cache compatibility if the project is trying to use it. Eager task access and mutable global state in custom build logic often explain strange Gradle behavior.
- Check whether KAPT, KSP, code generation, or source-set wiring requires generated-source directories or task ordering that is currently missing.
- Check dependency locking, verification metadata, or repository policy files before suggesting new repositories or version changes.
- Check test fixtures, included builds, and composite builds when inter-module dependencies behave differently in IDE and CI.
Expert Heuristics
- Prefer explaining which layer owns a version: wrapper, plugin, platform, version catalog, or module override. This avoids repeated drift after the immediate fix.
- If the build fails only in CI, compare wrapper version, JDK vendor,
org.gradle.jvmargs, configuration cache flags, and repository credentials before touching dependency declarations. - If a custom task or plugin breaks under a new Gradle version, isolate that change from ordinary dependency or Kotlin compiler fixes.
- If the build uses dependency substitution or included builds, verify whether the resolved artifact is local source or published binary before diagnosing API mismatches.
Output Contract
Return these sections:
Root cause: what is broken and at which stage of the build.Minimal patch: the exact Gradle change to make.Why this works: the compatibility rule or Gradle model fact behind the patch.Verification: one or more commands in increasing confidence order.Follow-up risk: only if the fix unblocks the build but leaves technical debt behind.
Guardrails
- Do not invent random dependency or plugin versions.
- Do not rewrite Kotlin DSL into Groovy or Maven syntax.
- Do not change unrelated modules just because they look similar.
- Do not hide version conflicts with
forceor aggressive exclusions unless there is a strong, explicit reason. - Do not recommend clearing caches as the primary fix when the build model itself is wrong.
High-Signal Commands
Use these when the repository permits command execution:
./gradlew help./gradlew build./gradlew :module:compileKotlin./gradlew dependencies./gradlew dependencyInsight --dependency <artifact>
Quality Bar
A good run of this skill leaves the build model clearer than before and produces a fix that survives CI. A bad run throws version guesses at the problem, rewrites too much, or ignores the Spring Boot compatibility model.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

