Android kotlin core is an AI agent skill from the GitHub repository krutikJain/android-agent-skills. Use Kotlin idioms safely in Android apps, including nullability, data classes, sealed types, extension functions, and collection pipelines.
Claude Code: save it as .claude/skills/android-kotlin-core/SKILL.md
Cursor: save it as .cursor/rules/android-kotlin-core.md
Codex: save it as .agents/skills/android-kotlin-core/SKILL.md
ChatGPT, Gemini and other assistants: paste it into custom or project instructions
Skill file
Android Kotlin Core
When To Use
Use this skill when the request is about: kotlin cleanup in android app, convert verbose android java-style kotlin, sealed classes for ui state.
Primary outcome: Use Kotlin idioms safely in Android apps, including nullability, data classes, sealed types, extension functions, and collection pipelines.
Handoff skills when the scope expands:
android-state-management
android-testing-unit
Workflow
Map the request to the current Android stack, module boundaries, and minimum supported API level.
Inspect the existing implementation for implicit assumptions, duplicate helpers, and outdated patterns.
Apply the smallest change that improves correctness, readability, and long-term maintainability.
Validate the result against the relevant showcase app path and repo benchmarks.
Hand off adjacent work to the next specialized skill only after the core foundation is stable.
Guardrails
Prefer official Android and Kotlin guidance over custom local conventions when they conflict.
Keep public APIs boring and explicit; avoid clever abstractions that hide Android lifecycle costs.
Do not mix architectural cleanup with product behavior changes unless the request explicitly needs both.
Document any compatibility constraints that will affect old modules or generated code.
Anti-Patterns
Sprinkling helpers across modules without a clear ownership boundary.
Introducing framework-specific code into pure domain or data layers.
Refactoring every adjacent file when only one contract needed to change.
Leaving migration notes implied instead of writing them down.
Examples
Happy path
Scenario: Tighten domain and UI state models with sealed interfaces and immutable data.
Command: cd examples/orbittasks-compose && ./gradlew :app:testDebugUnitTest
Edge case
Scenario: Guard nullable platform values crossing the XML activity boundary.
Command: cd examples/orbittasks-xml && ./gradlew :app:testDebugUnitTest
Failure recovery
Scenario: Refactor broad helper objects into focused extensions without breaking call sites.
Use this skill with your AI agent:Open on Skill Issue to copy, download, or add to your library.
Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.