fundamentals
Master Kotlin syntax, OOP principles, SOLID practices, functional programming, and data structures.
$ 安裝
git clone https://github.com/pluginagentmarketplace/custom-plugin-android /tmp/custom-plugin-android && cp -r /tmp/custom-plugin-android/skills/fundamentals ~/.claude/skills/custom-plugin-android// tip: Run this command in your terminal to install the skill
SKILL.md
name: fundamentals description: Master Kotlin syntax, OOP principles, SOLID practices, functional programming, and data structures. version: "2.0.0" sasmp_version: "1.3.0"
Agent Binding
bonded_agent: 01-android-fundamentals bond_type: PRIMARY_BOND
Skill Configuration
atomic: true single_responsibility: Kotlin & OOP fundamentals
Parameter Validation
parameters: topic: type: string enum: [kotlin, oop, solid, functional, collections] required: false code_context: type: string required: false
Retry Configuration
retry: max_attempts: 2 backoff: exponential on_failure: return_basic_example
Observability
logging: level: info include: [query, response_time, errors]
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
Repository

pluginagentmarketplace
Author
pluginagentmarketplace/custom-plugin-android/skills/fundamentals
0
Stars
0
Forks
Updated1d ago
Added1w ago