agentleFS
full-stack-skillsfull-stack-skills/kotlin-skills/skills/kotlin-gradle-build/SKILL.md

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.

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
  1. Distinctive:

    Read wrapper properties, settings, root and module builds, version catalogs, convention plugins, and CI workflows.

    line 13
  2. Very specific:

    Run gradle projects, gradle tasks, and dependency insight only for the relevant configuration.

    line 15
  3. Distinctive:

    Verify versions against official compatibility documentation before upgrades.

    line 16
  4. Distinctive:

    Prefer the checked-in Gradle wrapper for projects.

    line 20
  5. Distinctive:

    Use Kotlin DSL and convention plugins for shared policy.

    line 21
  6. Very specific:

    Use api only for types exposed by the public ABI.

    line 24
  7. Distinctive:

    Keep credentials in Gradle providers or CI secrets.

    line 26

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 jvmTarget with the selected runtime contract.
  • Centralize versions in a catalog or coherent platform, but do not obscure ownership of dependency scopes.
  • Use api only for types exposed by the public ABI; otherwise prefer implementation.
  • 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>-test whole-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 suite

Verification

./gradlew --no-daemon projects
./gradlew --no-daemon check
./gradlew --no-daemon build

For publishing, add artifact inspection, reproducible metadata, signing, and a clean consumer-project test. Do not accept a build that works only from an IDE.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.