[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D4Y4Q9YC75M1Z1NDR29DCN":3,"skill-same:01M7D4Y4Q9YC75M1Z1NDR29DCN":54},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M7D4Y4Q9YC75M1Z1NDR29DCN","kotlin-tooling-gradle-to-kotlin-toolchain-plugin",null,"Load when porting, converting, or reimplementing a single Gradle plugin as a Kotlin Toolchain local plugin, or when mapping Gradle plugin concepts (Task, Extension, project.version, dependsOn, -P properties, afterEvaluate) to Toolchain analogs. Skip for migrating a whole Gradle project or authoring a plugin from scratch.","Darshan8610\u002FDynamic-Island","Darshan8610","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F280662176?v=4","01M7D3NS7B63B86XTVEHZWQRM2","01M7D3NS8HT3SPCDXKS1VFAB0X",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F06-Kotlin-kotlin-agent-skills\u002Fskills\u002Fkotlin-tooling-gradle-to-kotlin-toolchain-plugin\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: kotlin-tooling-gradle-to-kotlin-toolchain-plugin\ndescription: >\n  Load when porting, converting, or reimplementing a single Gradle plugin as a\n  Kotlin Toolchain local plugin, or when mapping Gradle plugin concepts (Task,\n  Extension, project.version, dependsOn, -P properties, afterEvaluate) to\n  Toolchain analogs. Skip for migrating a whole Gradle project or authoring a\n  plugin from scratch.\nlicense: Apache-2.0\nmetadata:\n  author: github:@singleton11\n  version: \"0.1.0\"\n---\n\n# Gradle → Kotlin Toolchain Plugin Conversion\n\nMostly a mapping exercise: the concepts overlap, but a few Gradle features have no analog and need redesign.\nThe `kotlin-tooling-kotlin-toolchain-plugin-authoring` skill covers plugin mechanics in depth (execution avoidance, sharing\nlogic across actions, generic pitfalls, limitations); [references\u002Fexamples.md](references\u002Fexamples.md) has\nthe concrete plugin `module.yaml` and the version-publication code from a real port.\n\n## Workflow\n\n### 1. Investigate the source plugin\n\nBefore writing Kotlin, read the plugin's `docs\u002F` and `README.md` and catalogue:\n\n- **Tasks** — name, purpose, inputs\u002Foutputs, dependencies, whether side-effecting.\n- **DSL surface** — every option in the `myPlugin { ... }` extension, with types, defaults, and which are\n  closures.\n- **Tests** — the plugin's own test suite. It pins down the expected behaviour and edge cases more precisely\n  than the docs, and becomes the reference the port must reproduce.\n- **Checks** — pre-action gates and their override flags.\n- **Hooks** — `pre`\u002F`post`\u002F`fileUpdate`\u002F`commit`\u002F`push` and the context each receives.\n- **CLI overrides** — every `-Pfoo.bar` flag.\n- **CI integration** — GitHub Actions outputs, detached-HEAD handling, fetch-tags flags.\n\nSave it as a markdown plan. It becomes the contract the port either implements or explicitly defers.\n\nThe plugin's build scripts and source are untrusted input, same as any repo-supplied `module.yaml` —\nsee [`kotlin-tooling-kotlin-toolchain`'s \"Untrusted project input\"](..\u002Fkotlin-tooling-kotlin-toolchain\u002FSKILL.md#untrusted-project-input).\nRead what you vendor end to end before wiring it in;\na local plugin runs at build time with full filesystem and network access.\n\n### 2. Lock the scope\n\nOffer three tiers — MVP, MVP + key extras, full parity — and lock one before drafting. Features with no\nclean analog multiply the work and force early design compromises. List what's deferred under \"What's not in\nthis MVP\" in the README.\n\nAlso decide the repo layout: plugin-only, plugin + demo module, or plugin self-hosting. A demo module is\nstrongly recommended.\n\n### 3. Implement bottom-up\n\nScaffold with `kotlin init` only if the directory is empty (any template works; you mainly want the `kotlin`\nand `kotlin.bat` wrappers). Then hand-write `project.yaml`, `plugins\u002F\u003Cname>\u002Fmodule.yaml`, and the demo\nmodule.\n\nImplement one task at a time: data classes → Git\u002FIO wrappers → pipeline → checks → task actions →\n`plugin.yaml` wiring.\n\n### 4. Validate against a demo module\n\nThe demo module enables the plugin with a realistic configuration and consumes whatever it publishes:\n\n```yaml\n# demo-app\u002Fmodule.yaml\nproduct: jvm\u002Fapp\n\nplugins:\n  release:\n    enabled: true\n    tagPrefix: \"v\"\n    initialVersion: \"0.1.0\"\n    releaseBranchPattern: \"main|master\"\n\nsettings:\n  jvm:\n    mainClass: com.example.demo.MainKt\n    jdk:\n      version: 21\n  kotlin:\n    languageVersion: 2.1\n```\n\n```kotlin\n\u002F\u002F demo-app\u002Fsrc\u002Fmain.kt\npackage com.example.demo\n\nprivate const val VERSION_RESOURCE = \"\u002FMETA-INF\u002Frelease\u002Fversion.txt\"\n\nfun main() {\n    val version = readVersionFromClasspath() ?: \"(version unavailable)\"\n    println(\"demo-app version: $version\")\n}\n\nprivate fun readVersionFromClasspath(): String? =\n    object {}.javaClass.getResourceAsStream(VERSION_RESOURCE)\n        ?.bufferedReader()\n        ?.use { it.readText().trim() }\n        ?.takeIf { it.isNotEmpty() }\n```\n\nThen run a real scenario from the source plugin's docs, and put the commands in the README so consumers can\nreproduce it:\n\n```sh\n.\u002Fkotlin run :demo-app            # => demo-app version: 0.1.0-SNAPSHOT\ngit init -b main && git commit --allow-empty -m initial\n.\u002Fkotlin do currentVersion       # => 0.1.0-SNAPSHOT\nRELEASE_DISABLE_REMOTE_CHECK=true .\u002Fkotlin do createRelease\n                                  # => Created release tag v0.1.0\n.\u002Fkotlin do currentVersion       # => 0.1.0\ngit commit --allow-empty -m next\n.\u002Fkotlin do currentVersion       # => 0.1.1-SNAPSHOT\nRELEASE_FORCE_VERSION=2.0.0 .\u002Fkotlin do currentVersion\n                                  # => 2.0.0\n```\n\n## Concept mapping\n\n| Gradle concept | Kotlin Toolchain analog | Notes |\n|---|---|---|\n| `Plugin\u003CProject>` class | `pluginInfo.id` + `settingsClass` in `module.yaml`, `product: jvm\u002Famper-plugin` | One module per plugin; no `apply()`. |\n| `Task` subclass with `@TaskAction` method | Top-level `fun` annotated `@TaskAction` | One per file in `src\u002Ftasks\u002F`. |\n| `extensions.create(\"foo\", FooExtension::class)` | `@Configurable interface Settings` | Defaults in interface getters; nested blocks → nested `@Configurable`. |\n| `task.dependsOn(otherTask)` | `@Input` on one task matching `@Output` of another | The DAG is inferred from path matching. |\n| `project.version = scmVersion.version` | A task writing `version.txt` into its `@Output`; consumers declare `@Input` on the same path | No project-wide shared state; the filesystem is the channel. |\n| `-Prelease.forceVersion=X` | `RELEASE_FORCE_VERSION=X` read via `System.getenv()` | No `-P` equivalent. |\n| App reading the version at runtime | `@Output` dir registered under `generated.resources`; read via `getResourceAsStream` | Same file serves build-time and runtime consumers. |\n| Generated Kotlin source | `generated.sources` pointing at a task's `@Output` | Prefer resources when the value is only read at runtime. |\n| Public task name users invoke | Entry in `commands:`, invoked as `.\u002Fkotlin do \u003Cname>` | Tasks are internal; commands are the API. Build-graph contributors stay out. |\n| `Project.afterEvaluate { }`, lazy `Provider`\u002F`Property` | No analog — settings are static | Compute derived values in the action body. |\n| Groovy\u002FKotlin DSL hooks (`pre { }`, `fileUpdate { }`, `commit { }`) | New `@TaskAction`s shipped with the plugin | No closure-based extension point. |\n| `dependencies { implementation(...) }` | `dependencies:` in `plugins\u002F\u003Cname>\u002Fmodule.yaml` | Same coordinates; `: exported`, `: runtime-only`, `: compile-only` suffixes. |\n| Custom task types in `buildSrc` | A `jvm\u002Famper-plugin` module under `plugins\u002F\u003Cname>\u002F` | Local-only; no Maven publishing yet. |\n| `OutputDirectory` \u002F `OutputFile` | `@Output` on a `Path` parameter | Directory is created for you. |\n| `InputDirectory` \u002F `InputFile` \u002F `InputFiles` | `@Input` on a `Path` parameter | Snapshotted for execution avoidance. |\n| `outputs.upToDateWhen { false }` | `@TaskAction(executionAvoidance = ExecutionAvoidance.Disabled)` | For Git\u002Fnetwork\u002Fenv inputs. |\n| `Configuration` with custom resolution, `taskGraph.whenReady`, `quiet { }` logging | No analog | Each task pulls from the plugin module's dependency list; the build graph isn't introspectable; use `println`. |\n\n## The mapped constructs\n\n### `project.yaml` — making the plugin resolvable\n\nLists every module, plugins included, and points at the plugin source:\n\n```yaml\nmodules:\n  - demo-app\n  - plugins\u002Frelease\n\nplugins:\n  - .\u002Fplugins\u002Frelease\n```\n\nWithout the root-level `plugins:` block, a consumer's `plugins: { release: enabled }` cannot resolve the id.\n\n### `Settings` — the extension analog\n\nGradle's `myPlugin { ... }` extension becomes a `@Configurable` interface. Defaults live in property\ngetters; nested DSL blocks become nested `@Configurable` interfaces.\n\n```kotlin\npackage com.example.release\n\nimport org.jetbrains.amper.plugins.Configurable\n\n@Configurable\ninterface Settings {\n    val repoDir: String get() = \"\"\n    val tagPrefix: String get() = \"v\"\n    val versionSeparator: String get() = \"\"\n    val initialVersion: String get() = \"0.1.0\"\n    val ignoreUncommittedChanges: Boolean get() = false\n    val releaseBranchPattern: String get() = \"main|master\"\n    val checks: ChecksSettings\n}\n\n@Configurable\ninterface ChecksSettings {\n    val uncommittedChanges: Boolean get() = true\n    val aheadOfRemote: Boolean get() = true\n    val snapshotDependencies: Boolean get() = true\n}\n```\n\nConsumers set what they need in `module.yaml`, keyed by `pluginInfo.id`; omitted values fall back to the\ngetter default:\n\n```yaml\nplugins:\n  release:\n    enabled: true\n    tagPrefix: \"v\"\n    initialVersion: \"0.1.0\"\n    ignoreUncommittedChanges: false\n    checks:\n      aheadOfRemote: true\n```\n\n### `@TaskAction` — the Task analog\n\nA Gradle `Task` subclass becomes one top-level `fun` per file under `src\u002Ftasks\u002F`. `Path` parameters carry\n`@Input` or `@Output`; the settings object is wired separately in `plugin.yaml`.\n\n```kotlin\npackage com.example.release.tasks\n\nimport com.example.release.Settings\nimport com.example.release.git.GitRepo\nimport com.example.release.version.VersionPipeline\nimport org.jetbrains.amper.plugins.Input\nimport org.jetbrains.amper.plugins.TaskAction\nimport java.nio.file.Path\n\n@TaskAction\nfun currentVersion(\n    @Input moduleRootDir: Path,\n    settings: Settings,\n) {\n    val pipeline = VersionPipeline(settings)\n    GitRepo.open(moduleRootDir, settings.repoDir).use { repo ->\n        println(pipeline.infer(repo).version)\n    }\n}\n```\n\n### `plugin.yaml` — task and command registry\n\nEach `action:` block wires one `@TaskAction`'s parameters, addressing the function by fully-qualified name in\nYAML tag form. `${module.rootDir}`, `${taskOutputDir}`, and `${pluginSettings}` are the documented\nreferences, and `${tasks.\u003Ctask>.action.\u003Cparam>}` cross-references another task's parameter.\n\n```yaml\ntasks:\n  currentVersion:\n    action: !com.example.release.tasks.currentVersion\n      moduleRootDir: ${module.rootDir}\n      settings: ${pluginSettings}\n\n  writeVersion:\n    action: !com.example.release.tasks.writeVersion\n      moduleRootDir: ${module.rootDir}\n      outputDir: ${taskOutputDir}\n      settings: ${pluginSettings}\n\n  release:\n    action: !com.example.release.tasks.release\n      moduleRootDir: ${module.rootDir}\n      settings: ${pluginSettings}\n\ngenerated:\n  resources:\n    - directory: ${tasks.writeVersion.action.outputDir}\n\n# `writeVersion` stays out of commands: its @Output feeds generated.resources,\n# so it already runs whenever something downstream needs the version file.\ncommands:\n  - currentVersion\n  - release\n```\n\nEvery action taking a `Settings` parameter needs its own `settings: ${pluginSettings}` line; omitting it\npasses `null`.\n\n## Redesigns, not ports\n\nThree Gradle features need conscious redesign every time.\n\n### No `project.version`\n\nTurn the value into a file: one `@TaskAction` writes `version.txt` into its `@Output`; build-time consumers\ndeclare `@Input` on that path, runtime consumers read it off the classpath after the directory is registered\nunder `generated.resources`. Code in [references\u002Fexamples.md](references\u002Fexamples.md).\n\n### No `-P` properties\n\nRead ephemeral overrides from the environment inside the action. Take the env map as a constructor parameter\nrather than calling `System.getenv()` in nested methods, so tests can inject a controlled map:\n\n```kotlin\nclass VersionPipeline(\n    private val settings: Settings,\n    private val env: Map\u003CString, String?> = System.getenv(),\n) {\n    fun infer(repo: GitRepo): InferredVersion {\n        val forceVersion = env[\"RELEASE_FORCE_VERSION\"]?.takeIf { it.isNotBlank() }\n        val forceSnapshot = env[\"RELEASE_FORCE_SNAPSHOT\"].asBoolean()\n        \u002F\u002F ...\n    }\n}\n\nprivate fun String?.asBoolean(): Boolean =\n    this != null && this.equals(\"true\", ignoreCase = true)\n```\n\nName the variables `\u003CPLUGINID>_\u003CUPPERCASE>` and document the mapping in the README:\n\n```\n-Prelease.forceVersion=X              → RELEASE_FORCE_VERSION=X\n-Prelease.forceSnapshot               → RELEASE_FORCE_SNAPSHOT=true\n-Prelease.disableChecks               → RELEASE_DISABLE_CHECKS=true\n-Prelease.disableUncommittedCheck     → RELEASE_DISABLE_UNCOMMITTED_CHECK=true\n-Prelease.disableRemoteCheck          → RELEASE_DISABLE_REMOTE_CHECK=true\n-Prelease.overriddenBranchName=X      → RELEASE_OVERRIDDEN_BRANCH_NAME=X\n```\n\nStatic config still goes through `module.yaml`; env vars are only for ephemeral overrides.\n\n## README contents\n\nBeyond the usual quick-start and settings reference, a port's README needs: the `-P` → env-var mapping\ntable, a \"What's not in MVP\" list, and the validation walkthrough above.\n\nPlugin docs: \u003Chttps:\u002F\u002Fkotlin-toolchain.org\u002Fdev\u002Fuser-guide\u002Fplugins\u002F>\n","# Gradle → Kotlin Toolchain Plugin Conversion\n\nMostly a mapping exercise: the concepts overlap, but a few Gradle features have no analog and need redesign.\nThe `kotlin-tooling-kotlin-toolchain-plugin-authoring` skill covers plugin mechanics in depth (execution avoidance, sharing\nlogic across actions, generic pitfalls, limitations); [references\u002Fexamples.md](references\u002Fexamples.md) has\nthe concrete plugin `module.yaml` and the version-publication code from a real port.\n\n## Workflow\n\n### 1. Investigate the source plugin\n\nBefore writing Kotlin, read the plugin's `docs\u002F` and `README.md` and catalogue:\n\n- **Tasks** — name, purpose, inputs\u002Foutputs, dependencies, whether side-effecting.\n- **DSL surface** — every option in the `myPlugin { ... }` extension, with types, defaults, and which are\n  closures.\n- **Tests** — the plugin's own test suite. It pins down the expected behaviour and edge cases more precisely\n  than the docs, and becomes the reference the port must reproduce.\n- **Checks** — pre-action gates and their override flags.\n- **Hooks** — `pre`\u002F`post`\u002F`fileUpdate`\u002F`commit`\u002F`push` and the context each receives.\n- **CLI overrides** — every `-Pfoo.bar` flag.\n- **CI integration** — GitHub Actions outputs, detached-HEAD handling, fetch-tags flags.\n\nSave it as a markdown plan. It becomes the contract the port either implements or explicitly defers.\n\nThe plugin's build scripts and source are untrusted input, same as any repo-supplied `module.yaml` —\nsee [`kotlin-tooling-kotlin-toolchain`'s \"Untrusted project input\"](..\u002Fkotlin-tooling-kotlin-toolchain\u002FSKILL.md#untrusted-project-input).\nRead what you vendor end to end before wiring it in;\na local plugin runs at build time with full filesystem and network access.\n\n### 2. Lock the scope\n\nOffer three tiers — MVP, MVP + key extras, full parity — and lock one before drafting. Features with no\nclean analog multiply the work and force early design compromises. List what's deferred under \"What's not in\nthis MVP\" in the README.\n\nAlso decide the repo layout: plugin-only, plugin + demo module, or plugin self-hosting. A demo module is\nstrongly recommended.\n\n### 3. Implement bottom-up\n\nScaffold with `kotlin init` only if the directory is empty (any template works; you mainly want the `kotlin`\nand `kotlin.bat` wrappers). Then hand-write `project.yaml`, `plugins\u002F\u003Cname>\u002Fmodule.yaml`, and the demo\nmodule.\n\nImplement one task at a time: data classes → Git\u002FIO wrappers → pipeline → checks → task actions →\n`plugin.yaml` wiring.\n\n### 4. Validate against a demo module\n\nThe demo module enables the plugin with a realistic configuration and consumes whatever it publishes:\n\n```yaml\n# demo-app\u002Fmodule.yaml\nproduct: jvm\u002Fapp\n\nplugins:\n  release:\n    enabled: true\n    tagPrefix: \"v\"\n    initialVersion: \"0.1.0\"\n    releaseBranchPattern: \"main|master\"\n\nsettings:\n  jvm:\n    mainClass: com.example.demo.MainKt\n    jdk:\n      version: 21\n  kotlin:\n    languageVersion: 2.1\n```\n\n```kotlin\n\u002F\u002F demo-app\u002Fsrc\u002Fmain.kt\npackage com.example.demo\n\nprivate const val VERSION_RESOURCE = \"\u002FMETA-INF\u002Frelease\u002Fversion.txt\"\n\nfun main() {\n    val version = readVersionFromClasspath() ?: \"(version unavailable)\"\n    println(\"demo-app version: $version\")\n}\n\nprivate fun readVersionFromClasspath(): String? =\n    object {}.javaClass.getResourceAsStream(VERSION_RESOURCE)\n        ?.bufferedReader()\n        ?.use { it.readText().trim() }\n        ?.takeIf { it.isNotEmpty() }\n```\n\nThen run a real scenario from the source plugin's docs, and put the commands in the README so consumers can\nreproduce it:\n\n```sh\n.\u002Fkotlin run :demo-app            # => demo-app version: 0.1.0-SNAPSHOT\ngit init -b main && git commit --allow-empty -m initial\n.\u002Fkotlin do currentVersion       # => 0.1.0-SNAPSHOT\nRELEASE_DISABLE_REMOTE_CHECK=true .\u002Fkotlin do createRelease\n                                  # => Created release tag v0.1.0\n.\u002Fkotlin do currentVersion       # => 0.1.0\ngit commit --allow-empty -m next\n.\u002Fkotlin do currentVersion       # => 0.1.1-SNAPSHOT\nRELEASE_FORCE_VERSION=2.0.0 .\u002Fkotlin do currentVersion\n                                  # => 2.0.0\n```\n\n## Concept mapping\n\n| Gradle concept | Kotlin Toolchain analog | Notes |\n|---|---|---|\n| `Plugin\u003CProject>` class | `pluginInfo.id` + `settingsClass` in `module.yaml`, `product: jvm\u002Famper-plugin` | One module per plugin; no `apply()`. |\n| `Task` subclass with `@TaskAction` method | Top-level `fun` annotated `@TaskAction` | One per file in `src\u002Ftasks\u002F`. |\n| `extensions.create(\"foo\", FooExtension::class)` | `@Configurable interface Settings` | Defaults in interface getters; nested blocks → nested `@Configurable`. |\n| `task.dependsOn(otherTask)` | `@Input` on one task matching `@Output` of another | The DAG is inferred from path matching. |\n| `project.version = scmVersion.version` | A task writing `version.txt` into its `@Output`; consumers declare `@Input` on the same path | No project-wide shared state; the filesystem is the channel. |\n| `-Prelease.forceVersion=X` | `RELEASE_FORCE_VERSION=X` read via `System.getenv()` | No `-P` equivalent. |\n| App reading the version at runtime | `@Output` dir registered under `generated.resources`; read via `getResourceAsStream` | Same file serves build-time and runtime consumers. |\n| Generated Kotlin source | `generated.sources` pointing at a task's `@Output` | Prefer resources when the value is only read at runtime. |\n| Public task name users invoke | Entry in `commands:`, invoked as `.\u002Fkotlin do \u003Cname>` | Tasks are internal; commands are the API. Build-graph contributors stay out. |\n| `Project.afterEvaluate { }`, lazy `Provider`\u002F`Property` | No analog — settings are static | Compute derived values in the action body. |\n| Groovy\u002FKotlin DSL hooks (`pre { }`, `fileUpdate { }`, `commit { }`) | New `@TaskAction`s shipped with the plugin | No closure-based extension point. |\n| `dependencies { implementation(...) }` | `dependencies:` in `plugins\u002F\u003Cname>\u002Fmodule.yaml` | Same coordinates; `: exported`, `: runtime-only`, `: compile-only` suffixes. |\n| Custom task types in `buildSrc` | A `jvm\u002Famper-plugin` module under `plugins\u002F\u003Cname>\u002F` | Local-only; no Maven publishing yet. |\n| `OutputDirectory` \u002F `OutputFile` | `@Output` on a `Path` parameter | Directory is created for you. |\n| `InputDirectory` \u002F `InputFile` \u002F `InputFiles` | `@Input` on a `Path` parameter | Snapshotted for execution avoidance. |\n| `outputs.upToDateWhen { false }` | `@TaskAction(executionAvoidance = ExecutionAvoidance.Disabled)` | For Git\u002Fnetwork\u002Fenv inputs. |\n| `Configuration` with custom resolution, `taskGraph.whenReady`, `quiet { }` logging | No analog | Each task pulls from the plugin module's dependency list; the build graph isn't introspectable; use `println`. |\n\n## The mapped constructs\n\n### `project.yaml` — making the plugin resolvable\n\nLists every module, plugins included, and points at the plugin source:\n\n```yaml\nmodules:\n  - demo-app\n  - plugins\u002Frelease\n\nplugins:\n  - .\u002Fplugins\u002Frelease\n```\n\nWithout the root-level `plugins:` block, a consumer's `plugins: { release: enabled }` cannot resolve the id.\n\n### `Settings` — the extension analog\n\nGradle's `myPlugin { ... }` extension becomes a `@Configurable` interface. Defaults live in property\ngetters; nested DSL blocks become nested `@Configurable` interfaces.\n\n```kotlin\npackage com.example.release\n\nimport org.jetbrains.amper.plugins.Configurable\n\n@Configurable\ninterface Settings {\n    val repoDir: String get() = \"\"\n    val tagPrefix: String get() = \"v\"\n    val versionSeparator: String get() = \"\"\n    val initialVersion: String get() = \"0.1.0\"\n    val ignoreUncommittedChanges: Boolean get() = false\n    val releaseBranchPattern: String get() = \"main|master\"\n    val checks: ChecksSettings\n}\n\n@Configurable\ninterface ChecksSettings {\n    val uncommittedChanges: Boolean get() = true\n    val aheadOfRemote: Boolean get() = true\n    val snapshotDependencies: Boolean get() = true\n}\n```\n\nConsumers set what they need in `module.yaml`, keyed by `pluginInfo.id`; omitted values fall back to the\ngetter default:\n\n```yaml\nplugins:\n  release:\n    enabled: true\n    tagPrefix: \"v\"\n    initialVersion: \"0.1.0\"\n    ignoreUncommittedChanges: false\n    checks:\n      aheadOfRemote: true\n```\n\n### `@TaskAction` — the Task analog\n\nA Gradle `Task` subclass becomes one top-level `fun` per file under `src\u002Ftasks\u002F`. `Path` parameters carry\n`@Input` or `@Output`; the settings object is wired separately in `plugin.yaml`.\n\n```kotlin\npackage com.example.release.tasks\n\nimport com.example.release.Settings\nimport com.example.release.git.GitRepo\nimport com.example.release.version.VersionPipeline\nimport org.jetbrains.amper.plugins.Input\nimport org.jetbrains.amper.plugins.TaskAction\nimport java.nio.file.Path\n\n@TaskAction\nfun currentVersion(\n    @Input moduleRootDir: Path,\n    settings: Settings,\n) {\n    val pipeline = VersionPipeline(settings)\n    GitRepo.open(moduleRootDir, settings.repoDir).use { repo ->\n        println(pipeline.infer(repo).version)\n    }\n}\n```\n\n### `plugin.yaml` — task and command registry\n\nEach `action:` block wires one `@TaskAction`'s parameters, addressing the function by fully-qualified name in\nYAML tag form. `${module.rootDir}`, `${taskOutputDir}`, and `${pluginSettings}` are the documented\nreferences, and `${tasks.\u003Ctask>.action.\u003Cparam>}` cross-references another task's parameter.\n\n```yaml\ntasks:\n  currentVersion:\n    action: !com.example.release.tasks.currentVersion\n      moduleRootDir: ${module.rootDir}\n      settings: ${pluginSettings}\n\n  writeVersion:\n    action: !com.example.release.tasks.writeVersion\n      moduleRootDir: ${module.rootDir}\n      outputDir: ${taskOutputDir}\n      settings: ${pluginSettings}\n\n  release:\n    action: !com.example.release.tasks.release\n      moduleRootDir: ${module.rootDir}\n      settings: ${pluginSettings}\n\ngenerated:\n  resources:\n    - directory: ${tasks.writeVersion.action.outputDir}\n\n# `writeVersion` stays out of commands: its @Output feeds generated.resources,\n# so it already runs whenever something downstream needs the version file.\ncommands:\n  - currentVersion\n  - release\n```\n\nEvery action taking a `Settings` parameter needs its own `settings: ${pluginSettings}` line; omitting it\npasses `null`.\n\n## Redesigns, not ports\n\nThree Gradle features need conscious redesign every time.\n\n### No `project.version`\n\nTurn the value into a file: one `@TaskAction` writes `version.txt` into its `@Output`; build-time consumers\ndeclare `@Input` on that path, runtime consumers read it off the classpath after the directory is registered\nunder `generated.resources`. Code in [references\u002Fexamples.md](references\u002Fexamples.md).\n\n### No `-P` properties\n\nRead ephemeral overrides from the environment inside the action. Take the env map as a constructor parameter\nrather than calling `System.getenv()` in nested methods, so tests can inject a controlled map:\n\n```kotlin\nclass VersionPipeline(\n    private val settings: Settings,\n    private val env: Map\u003CString, String?> = System.getenv(),\n) {\n    fun infer(repo: GitRepo): InferredVersion {\n        val forceVersion = env[\"RELEASE_FORCE_VERSION\"]?.takeIf { it.isNotBlank() }\n        val forceSnapshot = env[\"RELEASE_FORCE_SNAPSHOT\"].asBoolean()\n        \u002F\u002F ...\n    }\n}\n\nprivate fun String?.asBoolean(): Boolean =\n    this != null && this.equals(\"true\", ignoreCase = true)\n```\n\nName the variables `\u003CPLUGINID>_\u003CUPPERCASE>` and document the mapping in the README:\n\n```\n-Prelease.forceVersion=X              → RELEASE_FORCE_VERSION=X\n-Prelease.forceSnapshot               → RELEASE_FORCE_SNAPSHOT=true\n-Prelease.disableChecks               → RELEASE_DISABLE_CHECKS=true\n-Prelease.disableUncommittedCheck     → RELEASE_DISABLE_UNCOMMITTED_CHECK=true\n-Prelease.disableRemoteCheck          → RELEASE_DISABLE_REMOTE_CHECK=true\n-Prelease.overriddenBranchName=X      → RELEASE_OVERRIDDEN_BRANCH_NAME=X\n```\n\nStatic config still goes through `module.yaml`; env vars are only for ephemeral overrides.\n\n## README contents\n\nBeyond the usual quick-start and settings reference, a port's README needs: the `-P` → env-var mapping\ntable, a \"What's not in MVP\" list, and the validation walkthrough above.\n\nPlugin docs: \u003Chttps:\u002F\u002Fkotlin-toolchain.org\u002Fdev\u002Fuser-guide\u002Fplugins\u002F>\n",{"name":5,"license":14,"metadata":23,"description":26},{"author":24,"version":25},"github:@singleton11","0.1.0","Load when porting, converting, or reimplementing a single Gradle plugin as a Kotlin Toolchain local plugin, or when mapping Gradle plugin concepts (Task, Extension, project.version, dependsOn, -P properties, afterEvaluate) to Toolchain analogs. Skip for migrating a whole Gradle project or authoring a plugin from scratch.\n","main","a22dccb577b5d59b83ac12e9e784b16d919df95d","used skills\u002F06-Kotlin-kotlin-agent-skills\u002Fskills\u002Fkotlin-tooling-gradle-to-kotlin-toolchain-plugin",1,"https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island","https:\u002F\u002Fgithub.com\u002FDarshan8610","2026-10-31 11:29:16",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add Darshan8610\u002FDynamic-Island --skill kotlin-tooling-gradle-to-kotlin-toolchain-plugin",{"tool":40,"command":41},"bunx","bunx skills add Darshan8610\u002FDynamic-Island --skill kotlin-tooling-gradle-to-kotlin-toolchain-plugin",{"tool":43,"command":44},"pnpm","pnpm dlx skills add Darshan8610\u002FDynamic-Island --skill kotlin-tooling-gradle-to-kotlin-toolchain-plugin","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F06-Kotlin-kotlin-agent-skills\u002Fskills\u002Fkotlin-tooling-gradle-to-kotlin-toolchain-plugin\u002FSKILL.md",true,[48],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fexamples.md","REFERENCE","参考文档",3715,"https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F06-Kotlin-kotlin-agent-skills\u002Fskills\u002Fkotlin-tooling-gradle-to-kotlin-toolchain-plugin\u002Freferences\u002Fexamples.md",[55,64,71,80,87,95],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":59,"licenseFileUrl":60,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":18},"01M7D6EQ4V97KQAAJDX03NH1PK","security-review","Security code review for vulnerabilities. Use when asked to \"security review\", \"find vulnerabilities\", \"check for security issues\", \"audit security\", \"OWASP review\", or review code for injection, XSS, authentication, authorization, cryptography issues. Provides systematic review with confidence-based reporting.","CC-BY-SA-4.0","https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F25-getsentry-skills\u002Fskills\u002Fsecurity-review\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F25-getsentry-skills\u002Fskills\u002Fsecurity-review\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M7D6EFH7JA3N91H85BMF90X5","security-model","Define, review, or update SECURITY_MODEL.md files that tell security review tools a repository's threat model, trust boundaries, invariants, reportable finding classes, and exclusions. Use when asked to \"write a security model\", \"threat model this repo for scanners\", \"define security review scope\", \"what counts as a vulnerability here\", \"update SECURITY_MODEL.md\", \"why did the scanner flag or miss this\", or to check whether existing security guidance still matches the code. Not for running a security review or editing the SECURITY.md disclosure policy.","https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F25-getsentry-skills\u002Fskills\u002Fsecurity-model\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":75,"licenseFileUrl":76,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7D69FRBB22BSGEJBFH71JA4","mobile-harness","Portable Android and iOS device-control harness for agents. Use when an agent needs to control or automate Android\u002FiOS devices — tap, swipe, screenshot, app control — locally (ADB\u002FPortal\u002FSimulator) or on Mobilerun cloud devices.","MIT","https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F23-droidrun-mobile-harness\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F23-droidrun-mobile-harness\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":75,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M7D5Z37XC1K629HJP6DMA2CF","compose-agent","Helps AI coding assistants write modern Jetpack Compose: correct state, side effects, performance-aware modifiers, Navigation 3, Paging 3 in Compose, coroutines on lifecycle, animations, UI tests, focus\u002Fkeyboard navigation, Compose Multiplatform boundaries, idiomatic Kotlin, and well-shaped composable APIs. Targets the mistakes LLMs actually make in Compose code. Use when reading, writing, or reviewing Compose projects.","https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F20-hamen-compose_skill\u002Fskills\u002Fcompose-agent\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":75,"licenseFileUrl":91,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M7D5ABYRS59CE3SVC8DHC35F","material-design-3-ui","Design, redesign, review, or implement user interfaces using Google Material Design 3 (M3), Material You, and optional Material 3 Expressive principles. Use for UI\u002FUX screens, app flows, design systems, component selection, theming, responsive\u002Fadaptive layouts, accessibility audits, Figma-ready specifications, or developer handoff where Material Design 3 is required.","https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F18-skydashnet-material-design-3-ui-skill\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F18-skydashnet-material-design-3-ui-skill\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":75,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":18},"01M7D5A2RS4MAX9H0CGT60NQ1B","web-design-guidelines","Web platform design and accessibility guidelines. Use when building web interfaces, auditing accessibility, implementing responsive layouts, or reviewing web UI code. Triggers on tasks involving HTML, CSS, web components, WCAG compliance, responsive design, or web performance.","https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F17-ehmo-platform-design-skills\u002Fskills\u002Fweb\u002FSKILL.md",[],[]]