What problem does it solve?
This Skill streamlines the process of designing, implementing, and reviewing Kotlin and Android APIs, particularly for React Native development, by providing a structured approach to type-safe API design and efficient threading practices.
Core Features & Use Cases
- Type-Safe API Design: Encourages the use of sealed interfaces/classes for state variants, ensuring that related values are non-null where valid.
- Async and Threading: Offers guidance on using coroutines for I/O and Android API support, and avoiding main dispatcher use unless necessary.
- Kotlin Style: Provides best practices for class design, method usage, and file organization to enhance readability and maintainability.
- Nitro Notes: Offers specific recommendations for Kotlin HybridObject implementations and working with Nitro modules.
- Use Case: Ideal for a developer working on a React Native project requiring robust Kotlin and Android API integration.
Quick Start
To implement a Kotlin API, use the rn-kotlin skill to review your Kotlin code for type safety and threading practices.