← Back to Skills Marketplace
1615
Downloads
2
Stars
13
Active Installs
2
Versions
Install in OpenClaw
/install kotlin
Description
Build robust Android and multiplatform apps with Kotlin idioms, coroutines, and null safety.
README (SKILL.md)
Quick Reference
| Topic | File |
|---|---|
| Null safety operators and patterns | nullsafety.md |
| Coroutines, flows, structured concurrency | coroutines.md |
| Collections, sequences, data classes | collections.md |
| Scope functions, extensions, sealed classes | idioms.md |
| Java interop and common Kotlin mistakes | interop.md |
| Android lifecycle, Compose state | android.md |
| Delegation, inline, reified, multiplatform | advanced.md |
Critical Rules
Null Safety
!!asserts non-null — crashes on null, use only when you've already checked- Platform types from Java are risky — add null checks or use
@Nullable/@NonNullannotations - Elvis with
return/throwfor early exit —val name = user?.name ?: return
Coroutines
viewModelScopeauto-cancels on ViewModel clear — don't useGlobalScopein Android- Structured concurrency: child coroutine failure cancels parent — use
supervisorScopeto isolate StateFlowneeds initial value and never completes —SharedFlowfor one-shot events- Inject dispatchers for testability — don't hardcode
Dispatchers.IO
Collections & Data Classes
first()throws on empty — usefirstOrNull()for safe access- Only constructor properties in
equals/hashCode— body properties ignored mutableStateListOffor Compose — wrappingmutableListOfin state won't track changes
Scope Functions & Extensions
- Don't nest scope functions — readability drops fast, extract to named functions
- Extensions are resolved statically — not polymorphic, receiver type matters at compile time
Android/Compose
repeatOnLifecycle(STARTED)for flow collection —launchWhenStartedis deprecatedremembersurvives recomposition only — userememberSaveablefor config changescollectAsStateWithLifecycleis the gold standard — lifecycle-aware + Compose state
Java Interop
==is structural equality in Kotlin —===for reference, opposite of Java- SAM conversion only for Java interfaces — Kotlin interfaces need explicit
fun interface @JvmStatic,@JvmOverloads,@JvmFieldfor Java-friendly APIs
Usage Guidance
This skill is a documentation-only Kotlin reference and appears internally consistent and low-risk. It does declare the 'kotlin' binary as a requirement — if you allow the agent to run tools, it could invoke that local binary to compile or run examples, so ensure you only enable the skill in environments where running user-provided code is acceptable. If you want extra caution: review the included .md files (they are plain text docs), and run the agent in a sandboxed environment or with restricted tool access before granting broader permissions.
Capability Analysis
Type: OpenClaw Skill
Name: kotlin
Version: 1.0.1
The skill bundle consists entirely of markdown documentation files providing a quick reference and critical rules for Kotlin development. There are no executable scripts, no external network calls, no file system operations, and no instructions for the AI agent to perform any actions beyond displaying or referencing this information. No prompt injection attempts or malicious code patterns were found in any of the files.
Capability Assessment
Purpose & Capability
Name/description (Kotlin learning/reference) match the manifest and files. The only declared runtime requirement is the 'kotlin' binary, which is reasonable for a Kotlin-focused skill that may compile or run examples.
Instruction Scope
SKILL.md and the included .md files are documentation and coding guidance; they do not instruct the agent to read unrelated files, access external endpoints, or exfiltrate data. No vague instructions granting broad discretion are present.
Install Mechanism
No install specification or downloaded code is present — the skill is instruction-only, so nothing will be written to disk by the install process.
Credentials
The skill requests no environment variables, secrets, or config paths. The absence of credentials is proportionate to an educational/reference skill.
Persistence & Privilege
Flags show no persistent/always-true behavior and model invocation is standard. The skill does not request to modify other skills or system-wide settings.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install kotlin - After installation, invoke the skill by name or use
/kotlin - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
Initial release
v1.0.0
Initial release
Metadata
Frequently Asked Questions
What is Kotlin?
Build robust Android and multiplatform apps with Kotlin idioms, coroutines, and null safety. It is an AI Agent Skill for Claude Code / OpenClaw, with 1615 downloads so far.
How do I install Kotlin?
Run "/install kotlin" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Kotlin free?
Yes, Kotlin is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Kotlin support?
Kotlin is cross-platform and runs anywhere OpenClaw / Claude Code is available (linux, darwin, win32).
Who created Kotlin?
It is built and maintained by Iván (@ivangdavila); the current version is v1.0.1.
More Skills