Guides writing idiomatic Kotlin with null safety, data classes, sealed hierarchies, coroutines, and clean Java interop. Useful when writing Kotlin or migrating Java code.
Kotlin's value is making illegal states unrepresentable with less ceremony: non-null types by default, values as data classes, asynchrony as suspending functions. Java habits imported wholesale forfeit exactly that value.
String? is a decision, not a
default; push nullability to the edges and convert early
(?: throw, requireNotNull with a message). Use ?. and ?:
for genuine absence; every !! is a latent NPE with your name
on it: acceptable in tests, a review flag in production code.
Platform types from Java are unchecked: annotate your Java
(@Nullable/@NotNull) or wrap it at the boundary (see
null-handling).data class for value carriers (copy() for updates, val
everywhere: see immutability-defaults); sealed interface plus
when for closed alternatives, letting the compiler enforce
exhaustiveness (the exhaustive-switches discipline, built in).
Prefer immutable List/Map interfaces in signatures and
toList() copies at boundaries; Kotlin's read-only views are
not deep immutability (see java-collections).let for
null-guarded transforms, apply for object configuration,
also for side effects in a chain: one level deep. Nested
lets with shadowed its are write-only code; a local val and
an if reads better (see cognitive-load).coroutineScope, supervisor scopes for independent
children), never GlobalScope. Cancellation is cooperative:
check it in loops, keep withContext(Dispatchers.IO) around
blocking calls, and treat CancellationException as control
flow to rethrow, not an error to log (the go-concurrency and
python-asyncio contracts, Kotlin dialect).@JvmStatic, @JvmOverloads where Java callers
exist); default arguments replace builder/overload ladders for
Kotlin consumers. Checked exceptions vanish in Kotlin: document
throwing behavior (see rust-error-handling's audience thinking)
since the compiler no longer forces callers to see it.when as an expression, early returns over nested
conditionals (see guard-clauses); extension functions to give
existing types domain verbs, kept in the domain's package rather
than a global Utils file (see python-project-structure's
grab-bag rule).runBlocking at the very top only); sprinkling
runBlocking inside services deadlocks thread pools.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Not loaded · from ai-skills-commands
Claude Code won't load this skill
It ships in ai-skills-commands at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
npx claudepluginhub amey-thakur/ai-skills --plugin ai-skills-commands1,000 skills in this plugin
/ab-test-designDesign product experiments with real hypotheses, honest sample-size math, guardrails, and peeking discipline. Use when validating a change by experiment or reviewing a test before believing its result./accessibility-reviewAudit a UI for real accessibility, keyboard-first, with concrete failures and fixes rather than checkbox compliance. Use when reviewing or building any user interface./accessibility-specialist-roleOperate as an accessibility specialist who audits against WCAG, trains teams to stop shipping the same defects, and owns the compliance sign-off. Use when a product needs to be usable with a keyboard, a screen reader, or magnification and someone must certify it before launch.Other plugins' skills for the same job