kotlin-docstrings
>
Works with
--- name: kotlin-docstrings description: > license: MIT --- # Kotlin Docstrings Use this skill to add or normalize KDoc comments in Kotlin code so external tools can discover API intent without reverse-engineering the implementation. ## Intent Router | Need | Load | | --- | --- | | preferred syntax, extraction path, and caveats | `references/docstrings.md` | ## Quick Start 1. Inspect the repository for an existing documentation convention. 2. Preserve an established machine-readable style when it already works with external tooling. 3. Otherwise standardize on KDoc comments for the requested Kotlin surface. 4. Document public and externally consumed symbols before private helpers. 5. Keep names, parameters, return semantics, and examples aligned with the real code. ## Workflow - identify the externally consumed surface before adding comments or rewriting existing documentation - add documentation directly adjacent to the declaration or symbol that external tools inspect - prefer concise summaries first, then parameters, returns, exceptions, examples, or side effects when the format supports them - mention or preserve the extraction path used by the surrounding toolchain - keep migrations incremental when mixed styles already exist in a large file or module ## Output Pattern - state the convention being applied and why it matches the surrounding toolchain - show declaration-adjacent documentation blocks rather than detached prose - mention extraction or verification commands when they help confirm the result - call out any symbols intentionally left undocumented because they are private or out of scope ## Canonical Pattern ```text /** * Add two integers. * * @param a left operand * @param b right operand * @return sum of the operands */ fun add(a: Int, b: Int): Int = a + b ``` ## Extraction Path ```text dokkaHtml ./gradlew dokkaGfm ``` ## Common Requests ```text Add or normalize Kotlin source documentation for this public API without changing behavior. ``` ```text Review this Kotlin file for missing or misleading machine-readable documentation that external tools depend on. ``` ## Verification and Migration Checks - verify the generated docs with the extraction path, metadata query, or generator named in `references/docstrings.md` - compare parameter names, return values, exceptions, ownership notes, and examples against the real declaration after editing - migrate one contiguous public surface at a time when a file mixes styles - preserve an existing machine-readable convention when external tooling already depends on it, and state that choice explicitly ## Recovery Cues - if the repository already standardizes on another adjacent format, keep that format instead of forcing a conversion - if a declaration is still unstable or private, document only the parts external tools or callers actually consume - if behavior is unclear, reduce the prose to verified facts and mark open questions instead of inventing guarantees ## Safety Notes - do not invent behavior, preconditions, side effects, performance guarantees, or error modes that the code does not actually implement - do not document private members unless the request, generator, or house style requires them - do not mix competing documentation styles in the same file without a clear migration reason - do not let examples drift away from the real API surface
More Mobile skills
animation-vocabulary
emilkowalski/skills
Reverse-lookup glossary that turns a vague description of a web animation or motion effect into its exact term ("the bouncy thing when a popover opens" → Pop in; "the iOS rubber-band scroll" → Rubber-banding). Use when the user asks "what's it called when…", or describes a motion effect without knowing its name and wants the right word to prompt an AI or designer with. For naming an effect, not designing or building one.
xcode-project-setup
firebase/agent-skills
Safely modifies Xcode projects (.pbxproj) to add Swift Packages and link files. Use this skill whenever an iOS project needs dependencies installed (e.g. Firebase, Alamofire).
cross-border-ecommerce
nexscope-ai/ecommerce-skills
Cross-border e-commerce expansion advisor. Scores target markets on 8 weighted dimensions (market size, ecommerce penetration, competition, regulatory complexity, logistics infrastructure, payment ecosystem, cultural distance, IP protection), compares 5 fulfillment models with cost and transit data, provides country-by-country tax/duty compliance guides (EU VAT/IOSS, UK VAT, US sales tax, CA GST, AU GST, JP consumption tax), maps local payment preferences by market, and builds a phased expansion roadmap. No API key required.

