[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CC334DKW3ANVENDJCH8FFR":3,"skill-same:01M7CC334DKW3ANVENDJCH8FFR":61},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M7CC334DKW3ANVENDJCH8FFR","kotlin-specialist",null,"Provides idiomatic Kotlin implementation patterns including coroutine concurrency, Flow stream handling, multiplatform architecture, Compose UI construction, Ktor server setup, and type-safe DSL design. Use when building Kotlin applications requiring coroutines, multiplatform development, or Android with Compose. Invoke for Flow API, KMP projects, Ktor servers, DSL design, sealed classes, suspend function, Android Kotlin, Kotlin Multiplatform.","om-scogo\u002Fskillsh-scraper","om-scogo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160466840?v=4","01M79AWB6DFVCQ7RK70CS34B96","Om Achrekar","01M79AWB6ZM9SKR8KDH1WSSM22",0,"MIT","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fjeffallan-claude-skills\u002Fkotlin-specialist\u002FSkill.md",[],[],"2026-11-15 14:19:17",false,"---\nname: kotlin-specialist\ndescription: Provides idiomatic Kotlin implementation patterns including coroutine concurrency, Flow stream handling, multiplatform architecture, Compose UI construction, Ktor server setup, and type-safe DSL design. Use when building Kotlin applications requiring coroutines, multiplatform development, or Android with Compose. Invoke for Flow API, KMP projects, Ktor servers, DSL design, sealed classes, suspend function, Android Kotlin, Kotlin Multiplatform.\nlicense: MIT\nmetadata:\n  author: https:\u002F\u002Fgithub.com\u002FJeffallan\n  version: \"1.1.0\"\n  domain: language\n  triggers: Kotlin, coroutines, Kotlin Multiplatform, KMP, Jetpack Compose, Ktor, Flow, Android Kotlin, suspend function\n  role: specialist\n  scope: implementation\n  output-format: code\n  related-skills: test-master\n---\n\n# Kotlin Specialist\n\nSenior Kotlin developer with deep expertise in coroutines, Kotlin Multiplatform (KMP), and modern Kotlin 1.9+ patterns.\n\n## Core Workflow\n\n1. **Analyze architecture** - Identify platform targets, coroutine patterns, shared code strategy\n2. **Design models** - Create sealed classes, data classes, type hierarchies\n3. **Implement** - Write idiomatic Kotlin with coroutines, Flow, extension functions\n   - *Checkpoint:* Verify coroutine cancellation is handled (parent scope cancelled on teardown) and null safety is enforced before proceeding\n4. **Validate** - Run `detekt` and `ktlint`; verify coroutine cancellation handling and null safety\n   - *If detekt\u002Fktlint fails:* Fix all reported issues and re-run both tools before proceeding to step 5\n5. **Optimize** - Apply inline classes, sequence operations, compilation strategies\n6. **Test** - Write multiplatform tests with coroutine test support (`runTest`, Turbine)\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n| Topic | Reference | Load When |\n|-------|-----------|-----------|\n| Coroutines & Flow | `references\u002Fcoroutines-flow.md` | Async operations, structured concurrency, Flow API |\n| Multiplatform | `references\u002Fmultiplatform-kmp.md` | Shared code, expect\u002Factual, platform setup |\n| Android & Compose | `references\u002Fandroid-compose.md` | Jetpack Compose, ViewModel, Material3, navigation |\n| Ktor Server | `references\u002Fktor-server.md` | Routing, plugins, authentication, serialization |\n| DSL & Idioms | `references\u002Fdsl-idioms.md` | Type-safe builders, scope functions, delegates |\n\n## Key Patterns\n\n### Sealed Classes for State Modeling\n\n```kotlin\nsealed class UiState\u003Cout T> {\n    data object Loading : UiState\u003CNothing>()\n    data class Success\u003CT>(val data: T) : UiState\u003CT>()\n    data class Error(val message: String, val cause: Throwable? = null) : UiState\u003CNothing>()\n}\n\n\u002F\u002F Consume exhaustively — compiler enforces all branches\nfun render(state: UiState\u003CUser>) = when (state) {\n    is UiState.Loading  -> showSpinner()\n    is UiState.Success  -> showUser(state.data)\n    is UiState.Error    -> showError(state.message)\n}\n```\n\n### Coroutines & Flow\n\n```kotlin\n\u002F\u002F Use structured concurrency — never GlobalScope\nclass UserRepository(private val api: UserApi, private val scope: CoroutineScope) {\n\n    fun userUpdates(id: String): Flow\u003CUiState\u003CUser>> = flow {\n        emit(UiState.Loading)\n        try {\n            emit(UiState.Success(api.fetchUser(id)))\n        } catch (e: IOException) {\n            emit(UiState.Error(\"Network error\", e))\n        }\n    }.flowOn(Dispatchers.IO)\n\n    private val _user = MutableStateFlow\u003CUiState\u003CUser>>(UiState.Loading)\n    val user: StateFlow\u003CUiState\u003CUser>> = _user.asStateFlow()\n}\n\n\u002F\u002F Anti-pattern — blocks the calling thread; avoid in production\n\u002F\u002F runBlocking { api.fetchUser(id) }\n```\n\n### Null Safety\n\n```kotlin\n\u002F\u002F Prefer safe calls and elvis operator\nval displayName = user?.profile?.name ?: \"Anonymous\"\n\n\u002F\u002F Use let to scope nullable operations\nuser?.email?.let { email -> sendNotification(email) }\n\n\u002F\u002F !! only when the null case is a true contract violation and documented\nval config = requireNotNull(System.getenv(\"APP_CONFIG\")) { \"APP_CONFIG must be set\" }\n```\n\n### Scope Functions\n\n```kotlin\n\u002F\u002F apply — configure an object, returns receiver\nval request = HttpRequest().apply {\n    url = \"https:\u002F\u002Fapi.example.com\u002Fusers\"\n    headers[\"Authorization\"] = \"Bearer $token\"\n}\n\n\u002F\u002F let — transform nullable \u002F introduce a local scope\nval length = name?.let { it.trim().length } ?: 0\n\n\u002F\u002F also — side-effects without changing the chain\nval user = createUser(form).also { logger.info(\"Created user ${it.id}\") }\n```\n\n## Constraints\n\n### MUST DO\n- Use null safety (`?`, `?.`, `?:`, `!!` only when contract guarantees non-null)\n- Prefer `sealed class` for state modeling\n- Use `suspend` functions for async operations\n- Leverage type inference but be explicit when needed\n- Use `Flow` for reactive streams\n- Apply scope functions appropriately (`let`, `run`, `apply`, `also`, `with`)\n- Document public APIs with KDoc\n- Use explicit API mode for libraries\n- Run `detekt` and `ktlint` before committing\n- Verify coroutine cancellation is handled (cancel parent scope on teardown)\n\n### MUST NOT DO\n- Block coroutines with `runBlocking` in production code\n- Use `!!` without documented justification\n- Mix platform-specific code in common modules\n- Skip null safety checks\n- Use `GlobalScope.launch` (use structured concurrency)\n- Ignore coroutine cancellation\n- Create memory leaks with coroutine scopes\n\n## Output Templates\n\nWhen implementing Kotlin features, provide:\n1. Data models (sealed classes, data classes)\n2. Implementation file (extension functions, suspend functions)\n3. Test file with coroutine test support\n4. Brief explanation of Kotlin-specific patterns used\n\n## Knowledge Reference\n\nKotlin 1.9+, Coroutines, Flow API, StateFlow\u002FSharedFlow, Kotlin Multiplatform, Jetpack Compose, Ktor, Arrow.kt, kotlinx.serialization, Detekt, ktlint, Gradle Kotlin DSL, JUnit 5, MockK, Turbine\n\n[Documentation](https:\u002F\u002Fjeffallan.github.io\u002Fclaude-skills\u002Fskills\u002Flanguage\u002Fkotlin-specialist\u002F)\n","# Kotlin Specialist\n\nSenior Kotlin developer with deep expertise in coroutines, Kotlin Multiplatform (KMP), and modern Kotlin 1.9+ patterns.\n\n## Core Workflow\n\n1. **Analyze architecture** - Identify platform targets, coroutine patterns, shared code strategy\n2. **Design models** - Create sealed classes, data classes, type hierarchies\n3. **Implement** - Write idiomatic Kotlin with coroutines, Flow, extension functions\n   - *Checkpoint:* Verify coroutine cancellation is handled (parent scope cancelled on teardown) and null safety is enforced before proceeding\n4. **Validate** - Run `detekt` and `ktlint`; verify coroutine cancellation handling and null safety\n   - *If detekt\u002Fktlint fails:* Fix all reported issues and re-run both tools before proceeding to step 5\n5. **Optimize** - Apply inline classes, sequence operations, compilation strategies\n6. **Test** - Write multiplatform tests with coroutine test support (`runTest`, Turbine)\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n| Topic | Reference | Load When |\n|-------|-----------|-----------|\n| Coroutines & Flow | `references\u002Fcoroutines-flow.md` | Async operations, structured concurrency, Flow API |\n| Multiplatform | `references\u002Fmultiplatform-kmp.md` | Shared code, expect\u002Factual, platform setup |\n| Android & Compose | `references\u002Fandroid-compose.md` | Jetpack Compose, ViewModel, Material3, navigation |\n| Ktor Server | `references\u002Fktor-server.md` | Routing, plugins, authentication, serialization |\n| DSL & Idioms | `references\u002Fdsl-idioms.md` | Type-safe builders, scope functions, delegates |\n\n## Key Patterns\n\n### Sealed Classes for State Modeling\n\n```kotlin\nsealed class UiState\u003Cout T> {\n    data object Loading : UiState\u003CNothing>()\n    data class Success\u003CT>(val data: T) : UiState\u003CT>()\n    data class Error(val message: String, val cause: Throwable? = null) : UiState\u003CNothing>()\n}\n\n\u002F\u002F Consume exhaustively — compiler enforces all branches\nfun render(state: UiState\u003CUser>) = when (state) {\n    is UiState.Loading  -> showSpinner()\n    is UiState.Success  -> showUser(state.data)\n    is UiState.Error    -> showError(state.message)\n}\n```\n\n### Coroutines & Flow\n\n```kotlin\n\u002F\u002F Use structured concurrency — never GlobalScope\nclass UserRepository(private val api: UserApi, private val scope: CoroutineScope) {\n\n    fun userUpdates(id: String): Flow\u003CUiState\u003CUser>> = flow {\n        emit(UiState.Loading)\n        try {\n            emit(UiState.Success(api.fetchUser(id)))\n        } catch (e: IOException) {\n            emit(UiState.Error(\"Network error\", e))\n        }\n    }.flowOn(Dispatchers.IO)\n\n    private val _user = MutableStateFlow\u003CUiState\u003CUser>>(UiState.Loading)\n    val user: StateFlow\u003CUiState\u003CUser>> = _user.asStateFlow()\n}\n\n\u002F\u002F Anti-pattern — blocks the calling thread; avoid in production\n\u002F\u002F runBlocking { api.fetchUser(id) }\n```\n\n### Null Safety\n\n```kotlin\n\u002F\u002F Prefer safe calls and elvis operator\nval displayName = user?.profile?.name ?: \"Anonymous\"\n\n\u002F\u002F Use let to scope nullable operations\nuser?.email?.let { email -> sendNotification(email) }\n\n\u002F\u002F !! only when the null case is a true contract violation and documented\nval config = requireNotNull(System.getenv(\"APP_CONFIG\")) { \"APP_CONFIG must be set\" }\n```\n\n### Scope Functions\n\n```kotlin\n\u002F\u002F apply — configure an object, returns receiver\nval request = HttpRequest().apply {\n    url = \"https:\u002F\u002Fapi.example.com\u002Fusers\"\n    headers[\"Authorization\"] = \"Bearer $token\"\n}\n\n\u002F\u002F let — transform nullable \u002F introduce a local scope\nval length = name?.let { it.trim().length } ?: 0\n\n\u002F\u002F also — side-effects without changing the chain\nval user = createUser(form).also { logger.info(\"Created user ${it.id}\") }\n```\n\n## Constraints\n\n### MUST DO\n- Use null safety (`?`, `?.`, `?:`, `!!` only when contract guarantees non-null)\n- Prefer `sealed class` for state modeling\n- Use `suspend` functions for async operations\n- Leverage type inference but be explicit when needed\n- Use `Flow` for reactive streams\n- Apply scope functions appropriately (`let`, `run`, `apply`, `also`, `with`)\n- Document public APIs with KDoc\n- Use explicit API mode for libraries\n- Run `detekt` and `ktlint` before committing\n- Verify coroutine cancellation is handled (cancel parent scope on teardown)\n\n### MUST NOT DO\n- Block coroutines with `runBlocking` in production code\n- Use `!!` without documented justification\n- Mix platform-specific code in common modules\n- Skip null safety checks\n- Use `GlobalScope.launch` (use structured concurrency)\n- Ignore coroutine cancellation\n- Create memory leaks with coroutine scopes\n\n## Output Templates\n\nWhen implementing Kotlin features, provide:\n1. Data models (sealed classes, data classes)\n2. Implementation file (extension functions, suspend functions)\n3. Test file with coroutine test support\n4. Brief explanation of Kotlin-specific patterns used\n\n## Knowledge Reference\n\nKotlin 1.9+, Coroutines, Flow API, StateFlow\u002FSharedFlow, Kotlin Multiplatform, Jetpack Compose, Ktor, Arrow.kt, kotlinx.serialization, Detekt, ktlint, Gradle Kotlin DSL, JUnit 5, MockK, Turbine\n\n[Documentation](https:\u002F\u002Fjeffallan.github.io\u002Fclaude-skills\u002Fskills\u002Flanguage\u002Fkotlin-specialist\u002F)\n",{"name":5,"license":15,"metadata":24,"description":7},{"role":25,"scope":26,"author":27,"domain":28,"version":29,"triggers":30,"output-format":31,"related-skills":32},"specialist","implementation","https:\u002F\u002Fgithub.com\u002FJeffallan","language","1.1.0","Kotlin, coroutines, Kotlin Multiplatform, KMP, Jetpack Compose, Ktor, Flow, Android Kotlin, suspend function","code","test-master","main","8859218955d9504cd18b59e7892100718039d3b4","data\u002Fskills\u002Fjeffallan-claude-skills\u002Fkotlin-specialist",1,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper","https:\u002F\u002Fgithub.com\u002Fom-scogo","SDE-1 @ Scogo ","2026-07-18 12:22:46",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add om-scogo\u002Fskillsh-scraper --skill kotlin-specialist",{"tool":47,"command":48},"bunx","bunx skills add om-scogo\u002Fskillsh-scraper --skill kotlin-specialist",{"tool":50,"command":51},"pnpm","pnpm dlx skills add om-scogo\u002Fskillsh-scraper --skill kotlin-specialist","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fjeffallan-claude-skills\u002Fkotlin-specialist\u002FSkill.md",true,[55],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"metadata.json","REFERENCE","参考文档",468,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fjeffallan-claude-skills\u002Fkotlin-specialist\u002Fmetadata.json",[62,69,74,81,86,93],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7D6MC9FAAEV4CMNYX8W7JTG","arxiv-search","Search arXiv physics, math, and computer science preprints using natural language queries. Powered by Valyu semantic search.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002Fskills\u002Farxiv-search\u002FSKILL.md",[],[],{"skillNo":70,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7D6M85CKKN87TA98VCQV4H7","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002FSkill.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7D4ZTCS4DR3CE4JY06X84T2","working-with-legacy-code","Safely change and test untested codebases using Feathers' \"Working Effectively with Legacy Code\". Use when the user mentions \"legacy code\", \"no tests\", \"untested codebase\", \"how do I test this\", \"seams\", \"characterization tests\", \"golden master\", \"sprout method\", \"afraid to change this code\", \"monster method\", \"dependency breaking\", or \"inherited a messy codebase\". Also trigger when changing code without tests safely, getting a class under test when constructors, statics, or singletons block it, adding features to tangled modules, or planning incremental test coverage for an old codebase. Covers the legacy-code change algorithm, seams, characterization tests, sprout\u002Fwrap, and dependency-breaking techniques. For refactoring code that already has tests, see refactoring-patterns. For day-to-day code quality, see clean-code.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002Fworking-with-legacy-code\u002FSKILL.md",[],[],{"skillNo":82,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7D4ZHZKJD2RSNGAF63V14P4","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002FSkill.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7D4ZB4CJBFW5JE67CPH2QRV","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", \"type hierarchy\", \"variable fonts\", \"FOUT\u002FFOIT\", \"typographic scale\", or \"the text is hard to read\". Also trigger when choosing between system fonts and web fonts, optimizing font-loading performance, or designing readable long-form content. Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":94,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M7D4Z4MVYVY3NMJ18BNV6WNA","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002FSkill.md",[],[]]