kotlin-gradle-build
Skill0 starsChanged 57 days agoApache-2.0View on GitHub
Design, repair, and validate Kotlin Gradle builds using Kotlin DSL, version catalogs, Java toolchains, multi-module boundaries, dependency scopes, compiler options, reproducible CI, publishing, and cache-safe tasks. Use for settings.gradle.kts, build.gradle.kts, gradle.properties, wrapper, module layout, dependency, toolchain, or CI problems.
In this repository10 other files it gives its agents.
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-exploreSkill
- openspec-proposeSkill
- kotlin-code-reviewSkill
- kotlin-coroutinesSkill
- kotlin-java-migrationSkill
- kotlin-java-migration-testingSkill
- kotlin-stableSkill
- kotlin-testingSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Read wrapper properties, settings, root and module builds, version catalogs, convention plugins, and CI workflows.
- Very specific: line 15
Run gradle projects, gradle tasks, and dependency insight only for the relevant configuration.
- Distinctive: line 16
Verify versions against official compatibility documentation before upgrades.
- Distinctive: line 20
Prefer the checked-in Gradle wrapper for projects.
- Distinctive: line 21
Use Kotlin DSL and convention plugins for shared policy.
- Very specific: line 24
Use api only for types exposed by the public ABI.
- Distinctive: line 26
Keep credentials in Gradle providers or CI secrets.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Kotlin Gradle Build
Own the build graph and reproducibility boundary; defer source semantics to kotlin-stable and behavioral test design to kotlin-testing.
Inspect first
- Read wrapper properties, settings, root and module builds, version catalogs, convention plugins, and CI workflows.
- Record Kotlin Gradle plugin, Gradle, AGP if present, Java toolchain, JVM target, repositories, and dependency locking policy.
- Run
gradle projects,gradle tasks, and dependency insight only for the relevant configuration. - Verify versions against official compatibility documentation before upgrades.
Build rules
- Prefer the checked-in Gradle wrapper for projects; keep wrapper checksum validation enabled in CI.
- Use Kotlin DSL and convention plugins for shared policy. Keep root builds declarative.
- Declare Java toolchains and Kotlin compiler options explicitly; align
jvmTargetwith the selected runtime contract. - Centralize versions in a catalog or coherent platform, but do not obscure ownership of dependency scopes.
- Use
apionly for types exposed by the public ABI; otherwise preferimplementation. - Make custom tasks lazy, cache-correct, and explicit about inputs, outputs, environment, and side effects.
- Keep credentials in Gradle providers or CI secrets. Never write tokens into source, properties committed to Git, logs, or generated metadata.
- Separate production modules from the dedicated
<project>-testwhole-project acceptance module used by migrations.
Multi-module pattern
project/
├── settings.gradle.kts
├── build-logic/
├── core/
├── adapters/
└── project-test/ # cross-module acceptance and source-parity suiteVerification
./gradlew --no-daemon projects
./gradlew --no-daemon check
./gradlew --no-daemon buildFor publishing, add artifact inspection, reproducible metadata, signing, and a clean consumer-project test. Do not accept a build that works only from an IDE.
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.

