Agent skill
fundamentals
Master Kotlin syntax, OOP principles, SOLID practices, functional programming, and data structures.
Install this agent skill to your Project
npx add-skill https://github.com/pluginagentmarketplace/custom-plugin-android/tree/main/skills/fundamentals
SKILL.md
Kotlin Fundamentals Skill
Quick Start
// Variables
val immutable = "constant"
var mutable = "variable"
// Functions
fun greet(name: String): String = "Hello, $name"
// Classes
data class User(val id: Int, val name: String)
// Null safety
val user: User? = null
user?.name // safe call
user?.name ?: "Unknown" // elvis operator
Key Concepts
Null Safety
?for nullable types!!for non-null assertion (avoid)?:elvis operator for defaults?.let { }for null-safe blocks
Extension Functions
fun String.isValidEmail(): Boolean = contains("@")
val valid = "user@example.com".isValidEmail()
Scope Functions
apply: Configure objectlet: Transformrun: Execute with contextwith: Receiver operationsalso: Side effects
Coroutines
viewModelScope.launch {
val data = withContext(Dispatchers.IO) {
fetchData()
}
}
SOLID Principles Summary
- SRP: One responsibility per class
- OCP: Open for extension, closed for modification
- LSP: Substitutable subtypes
- ISP: Specific interfaces
- DIP: Depend on abstractions
Learning Resources
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
platform
Android core components lifecycle, Activities, Fragments, Services, Intent system.
ui
XML layouts, ConstraintLayout, Jetpack Compose, Material Design 3.
data
Room ORM, SQLite, SharedPreferences, DataStore, encryption.
architecture
MVVM pattern, Clean Architecture, Repository pattern, dependency injection, SOLID principles.
production
Unit testing, performance optimization, security implementation, Play Store deployment.
networking
Retrofit, OkHttp, REST APIs, JSON serialization, network security.
Didn't find tool you were looking for?