Kotlin KDoc
| This documentation was generated with the assistance of AI. Please report any inaccuracies. |
Make sure a set of Kotlin declarations, and the modules and packages they live in, carry complete, well-formed KDoc, filling in whatever is missing, then prove the result builds through the project’s own Dokka tooling. It only adds or completes documentation comments and Dokka include files — never behavior, signatures or non-KDoc code.
Purpose
iru-kotlin-kdoc covers JVM Kotlin projects — plain libraries, Kotlin Spring Boot and Kotlin Quarkus — on Gradle
(org.jetbrains.dokka, Dokka 2 or Dokka 1) or Maven (dokka-maven-plugin). It discovers the project’s own
documentation bar (detekt comments rules, Dokka documentedVisibilities and reportUndocumented, contributor
guides, observed practice) instead of assuming a fixed style, audits every in-scope declaration, then writes the
missing KDoc grounded in the real implementation: @property for constructor-declared properties, @param,
@constructor, @return, @throws, plus framework-aware treatment of Spring beans, @ConfigurationProperties,
Quarkus CDI beans, @ConfigMapping, JAX-RS resources and JPA/Panache entities. It also ensures a module.md with
# Module and # Package sections is wired into Dokka for every touched module and package. A clean Dokka run
does not prove completeness, so the audit remains the completeness gate. Test sources, Java files (use
iru-java-javadoc) and Android modules (use iru-android-dokka) and Kotlin Multiplatform modules (use KMP Dokka) are out of scope.
Plugin
Shipped by the iru-java plugin of the ai-catalog marketplace (install with /plugin install iru-java@ai-catalog; see Plugins).
Inputs
| Argument | Required | Description | Default |
|---|---|---|---|
|
No |
Comma-separated class names, file paths, or a package glob. Test files, |
Main-source |
Outputs
-
Edited
.ktfiles with added or completed KDoc comments (no code, signature or annotation changes). -
A created or extended
module.md(# Moduleand# Packagesections) per touched module, and the Dokkaincludeswiring added when absent — the only build-file edit the skill makes. -
A Dokka build result per module (Dokka version and mode, task used, output location, in-scope warnings fixed).
-
A report: declarations already documented, gaps found and filled,
@suppress-excluded members, module/package coverage status, arguments dropped, and out-of-scope pre-existing Dokka warnings as follow-ups.
Execution flow
Dependencies
Invokes
None — iru-kotlin-kdoc is a leaf skill; it edits comments and runs the project’s Dokka task directly. It refers
to iru-java-javadoc, iru-android-dokka, iru-kmp-dokka and iru-kotlin-code-quality only as pointers for work outside its
scope.
Invoked by
-
Kotlin Spring Boot Code One Task Group — Step 3.2, KDoc plus Dokka build, via the
iru-gate-runneragent. -
Quarkus Code One Task Group — Step 3.2, KDoc and Dokka for touched Kotlin classes, via the
iru-gate-runneragent.
Source
SKILL.md on GitHub — the file this page was generated from.