kotlin-tooling-gradle-to-kotlin-toolchain-plugin

kotlin-tooling-gradle-to-kotlin-toolchain-plugin is a skill for Claude Code, Codex from Kotlin/kotlin-agent-skills. It costs 84 tokens per session (3,055 once invoked), scanned A, original, Apache-2.0.

A conversion guide for porting one Gradle plugin to a local Kotlin Toolchain plugin. Gradle is a build system, and a plugin adds project-specific build tasks and settings; the guide maps those concepts to their Toolchain equivalents.

In plain words
What is it for?
Use it when converting a single plugin and cataloguing its tasks, settings, tests, checks, hooks, command-line options, and CI integration. It is not for migrating an entire Gradle project.
Why use it?
It exposes differences that make a direct translation unsafe, including unsupported Gradle features and changes needed for checks, hooks, options, and CI behavior. It uses the original plugin's documentation and tests as the reference.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is - ./plugins/release.

Good fit Use it when converting a single plugin and cataloguing its tasks, settings, tests, checks, hooks, command-line options, and CI integration. It is not for migrating an entire Gradle project.

Compare 6 skills from other repositories ↓
About the project

Kotlin/kotlin-agent-skills is a collection of packaged instructions, scripts, and resources that help coding agents handle projects written in Kotlin. It is for developers using Kotlin, with skills covering areas such as backend frameworks and build tooling. The catalogue entries are the individual Kotlin-focused skills distributed from the repository.

Kotlin/kotlin-agent-skills · 1,086 stars · on GitHub · kotlinlang.org

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Kotlin/kotlin-agent-skills
agentmods
npx agentmods add skills/kotlin/kotlin-agent-skills/kotlin-tooling-gradle-to-kotlin-toolchain-plugin

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kotlin-tooling-gradle-to-kotlin-toolchain-plugin

README.md
[![agentmods](https://agentmods.dev/badge/skills/kotlin/kotlin-agent-skills/kotlin-tooling-gradle-to-kotlin-toolchain-plugin/github.svg)](https://agentmods.dev/skills/kotlin/kotlin-agent-skills/kotlin-tooling-gradle-to-kotlin-toolchain-plugin)
Your own site
<a href="https://agentmods.dev/skills/kotlin/kotlin-agent-skills/kotlin-tooling-gradle-to-kotlin-toolchain-plugin"><img src="https://agentmods.dev/badge/skills/kotlin/kotlin-agent-skills/kotlin-tooling-gradle-to-kotlin-toolchain-plugin/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kotlin-tooling-gradle-to-kotlin-toolchain-plugin

Your own site · 80×15
<a href="https://agentmods.dev/skills/kotlin/kotlin-agent-skills/kotlin-tooling-gradle-to-kotlin-toolchain-plugin"><img src="https://agentmods.dev/badge/skills/kotlin/kotlin-agent-skills/kotlin-tooling-gradle-to-kotlin-toolchain-plugin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,055 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.03055
Opus 5.5 $0.00034 $0.01222
Sonnet 5.5 $0.00017 $0.00611
Haiku 4.5 $0.00008 $0.00305

Measured 1mo ago against content hash dd76f4da8ea6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kotlin-tooling-gradle-to-kotlin-toolchain-plugin scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/kotlin-tooling-gradle-to-kotlin-toolchain-plugin/SKILL.md · 318 lines

How it starts

The opening of the file, as written. The whole thing — 318 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Gradle → Kotlin Toolchain Plugin Conversion

Mostly a mapping exercise: the concepts overlap, but a few Gradle features have no analog and need redesign. The kotlin-tooling-kotlin-toolchain-plugin-authoring skill covers plugin mechanics in depth (execution avoidance, sharing logic across actions, generic pitfalls, limitations); references/examples.md has the concrete plugin module.yaml and the version-publication code from a real port.

Workflow

1. Investigate the source plugin

Before writing Kotlin, read the plugin's docs/ and README.md and catalogue:

  • Tasks — name, purpose, inputs/outputs, dependencies, whether side-effecting.
  • DSL surface — every option in the myPlugin { ... } extension, with types, defaults, and which are closures.
  • Tests — the plugin's own test suite. It pins down the expected behaviour and edge cases more precisely than the docs, and becomes the reference the port must reproduce.
  • Checks — pre-action gates and their override flags.
  • Hooks — pre/post/fileUpdate/commit/push and the context each receives.
  • CLI overrides — every -Pfoo.bar flag.
  • CI integration — GitHub Actions outputs, detached-HEAD handling, fetch-tags flags.

Save it as a markdown plan. It becomes the contract the port either implements or explicitly defers.

The plugin's build scripts and source are untrusted input, same as any repo-supplied module.yaml — see kotlin-tooling-kotlin-toolchain's "Untrusted project input". Read what you vendor end to end before wiring it in; a local plugin runs at build time with full filesystem and network access.

2. Lock the scope

Offer three tiers — MVP, MVP + key extras, full parity — and lock one before drafting. Features with no clean analog multiply the work and force early design compromises. List what's deferred under "What's not in this MVP" in the README.

Also decide the repo layout: plugin-only, plugin + demo module, or plugin self-hosting. A demo module is strongly recommended.

Read the full file on GitHub · 318 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 318 lines · 84 tokens per session scan A dd76f4da8ea6

Subscribe to this mod's changes

kotlin-tooling-gradle-to-kotlin-toolchain-plugin is a skill published in the GitHub repository Kotlin/kotlin-agent-skills (1,086 stars, last pushed 9d ago), licensed Apache-2.0. It adds 84 tokens to every session and 3,055 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-12.

Related

Other skills, from other repositories

dagger-hilt-expert

Expert guidance for Dagger and Hilt dependency injection in Android. Use when implementing DI, creating modules, configuring scopes, optimizing performance, testing with Hilt, setting up multi-module architecture, using assisted injection, or debugging DI issues. Triggers on "dagger", "hilt", "dependency injection"…

JosephSanjaya/skills · 145 tokens

kotlin-mcp-server-expert

Expert guidance for building production-grade MCP (Model Context Protocol) servers in Kotlin using the official Kotlin Multiplatform SDK. Use this skill whenever the user is building, designing, debugging, or improving an MCP server in Kotlin — including tool registration, resource templates, prompt handling…

JosephSanjaya/skills · 169 tokens

testing-expert

Ultimate Kotlin testing skill. Use this whenever writing, reviewing, or debugging ANY Kotlin test — unit, integration, property-based, or coroutine. Covers TDD (RED/GREEN/REFACTOR), Kotest + MockK + Kover, anti-pattern detection, and four-pillar quality framework. Triggers on: write a test, add coverage, why is this…

JosephSanjaya/skills · 115 tokens

koog-expert

Expert guide for JetBrains Koog (Kotlin AI agents). Use whenever the user mentions Koog, AIAgent, ToolRegistry, strategy graphs, koog-ktor, history compression, MCP tools, structured LLM output, or building agents in a Ktor backend, Spring Boot service, Android/iOS/desktop KMP app, JS, or WasmJS. Also use for…

JosephSanjaya/skills · 122 tokens

kotlin-coroutine-expert

Expert guidance on Kotlin Coroutines — structured concurrency, dispatcher selection, race condition prevention (Mutex/Channel/StateFlow), error propagation, Flow patterns, testing with runTest/TestDispatcher, and production optimization. Use this skill whenever the user writes coroutine code, asks about async Kotlin…

JosephSanjaya/skills · 89 tokens

kotlin-k2-expert

Expert knowledge for Kotlin K2 compiler plugin development, architecture, optimization, and Kotlin 2.4.0 compatibility. Use when: building K2 compiler plugins (FIR + IR), debugging FIR/IR generation issues, implementing FirDeclarationGenerationExtension or IrGenerationExtension, migrating K1 plugins to K2…

JosephSanjaya/skills · 193 tokens