[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DWMJX9XCB0EDB5S4JY9MF2":3,"skill-same:01M6DWMJX9XCB0EDB5S4JY9MF2":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":54,"ownerHtmlUrl":55,"ownerBlogUrl":56,"ownerDescription":57,"updatedAt":58,"install":59,"resources":72},"01M6DWMJX9XCB0EDB5S4JY9MF2","programming-kotlin",null,"Idiomatic Kotlin practices: null-safety, coroutine scopes, Flow, Android and Multiplatform boundaries. Use when writing or reviewing Kotlin code.","Muvon\u002Foctomind-tap","Muvon","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F25336907?v=4","01M6DWA4KTRX4J73CW5CECKAD0","01M6DWA4QSWFGYE6WDMAMFF1WE",6,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FMuvon\u002Foctomind-tap\u002Fblob\u002Fmaster\u002Fskills\u002Fprogramming-kotlin\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"programming","programming kotlin","kotlin","toolchain","idiomatic","kotlin code","native","code","when","writing","development","platform","developer","Tools","flow","Safety","jvm","gradle","null-safety","project","2026-11-10 10:12:30",false,"---\nname: programming-kotlin\ntitle: \"Kotlin Development Best Practices\"\ndescription: \"Idiomatic Kotlin practices: null-safety, coroutine scopes, Flow, Android and Multiplatform boundaries. Use when writing or reviewing Kotlin code.\"\nlicense: Apache-2.0\ncompatibility: \"Requires the project's Kotlin toolchain; JDK for JVM targets, Android SDK for Android, platform tools for Native targets.\"\ndomains: developer\nrules:\n  - file(build.gradle.kts)\n  - file(settings.gradle.kts)\n  - content(kotlin)\n---\n\n## Overview\n\nUse for Kotlin implementation and review across JVM, Android, and Multiplatform projects. Prefer concise expressions with visible ownership and failure semantics; preserve the repository's architecture and toolchain constraints.\n\n## Mental model\n\nNullability describes absence, immutability describes ownership, and coroutine scopes describe lifetime. These are separate contracts: `val`, `List`, and `suspend` do not by themselves guarantee immutable data, thread safety, or background execution.\n\n## Version gate\n\nAs of 2026-10: Kotlin 2.4 is the stable language line (2.4.21 at research time; 2.5.0 planned for December 2026). It stabilizes context parameters, explicit backing fields, the `@all` meta-target, and new use-site annotation defaulting rules. Explicit context arguments, collection literals, and improved compile-time constants remain experimental behind compiler flags. Check the actual compiler, language\u002FAPI version, Gradle plugin, JVM target, and platform compatibility before using new syntax.\n\nUse context parameters for an existing contextual API need, not to obscure ordinary constructor dependencies. Explicit backing fields can expose a narrower public type without a second property. New annotation targeting can affect frameworks and generated code; verify effective targets during upgrades. Do not enable experimental features merely to shorten an example.\n\n## Values and readable APIs\n\n- Prefer `val`, but remember it fixes the reference, not its contents. `List\u003CT>` is a read-only interface that may alias mutable storage; snapshot at ownership boundaries. Data-class `copy()` is shallow.\n- Use data classes for values and sealed types for closed outcomes. Exhaustive `when` without a default exposes newly added cases; don't fabricate an unknown case unless external input really needs one.\n- Normalize Java platform types at the interop boundary. Use `require` for invalid arguments and `check` for invalid state; `!!` needs a proven invariant, not optimism about input.\n- Nullable returns represent expected absence. Don't use `?: emptyList()`, `getOrDefault`, or `runCatching` to turn parsing or network failures into valid-looking data.\n- Prefer named arguments and small functions over nested scope functions. Use `let`, `apply`, and `also` only when their receiver and result remain obvious. Extensions should reveal domain vocabulary without hiding I\u002FO in property-like access.\n- Write explicit public return types. Prefer straightforward collections until sequence laziness or reduced intermediates benefits the actual workload; sequences are not automatically faster.\n\n## Coroutines and streams\n\n- Launch into a scope with an owner and cancellation policy. Use `coroutineScope` for related work that should fail together; supervision isolates child failures only when each failure has a handler. Avoid ownerless GlobalScope work.\n- `suspend` does not switch threads. Blocking functions used by UI callers must move blocking work to an appropriate injected dispatcher; already-suspending network APIs usually need no IO wrapper. CPU-heavy work belongs on a suitable computation dispatcher.\n- Propagate `CancellationException`; broad catches and `runCatching` can capture it. Long computations must check cancellation. Use `NonCancellable` only for narrowly bounded suspending cleanup, not to keep normal work alive.\n- Await async results and bound fan-out when inputs are unbounded. A structured child can fail its parent before await; ignoring Deferred is not an error-handling policy.\n- A `flow {}` is cold; StateFlow\u002FSharedFlow are hot. StateFlow conflates equal values, so update with immutable snapshots and `update` for concurrent read-modify-write.\n- SharedFlow is a broadcast mechanism, not durable event storage: with no subscribers, only replay values survive. Model important UI outcomes as state or an acknowledged durable operation when losing them would be incorrect.\n- Use `callbackFlow` with `awaitClose` to unregister callbacks. Choose buffering and overflow behavior explicitly; don't silently drop business-critical values.\n\n## Platform boundaries and verification\n\n- Android: hoist Compose state and collect flows with lifecycle-aware APIs. Preserve functioning Views-based code; toolkit adoption is not an instruction to rewrite unrelated screens. Keep long-lived work out of view-owned scopes.\n- Multiplatform: share logic that is actually portable; keep `expect`\u002F`actual` seams small. Check each library's supported targets and stability rather than assuming JVM availability implies Native availability.\n- Follow existing serialization, formatting, and test libraries. Test coroutine behavior with `runTest` and dispatchers sharing its test scheduler; cover cancellation, delayed collectors, and errors, not only successful emissions.\n\n## Example\n\nKeep cancellation distinct from a recoverable network failure:\n\n```kotlin\nimport java.io.IOException\n\nsuspend fun \u003CT> loadOrReport(\n    load: suspend () -> T,\n    report: (IOException) -> Unit,\n): T {\n    try {\n        return load()\n    } catch (failure: IOException) {\n        report(failure)\n        throw failure\n    }\n}\n```\n\nThis JVM boundary reports only I\u002FO failures; cancellation passes through unchanged. In ordinary lower-level code, simply propagate failures without catching.\n\n## Checklist\n\n- [ ] New syntax fits compiler, plugins, and target; experiments are explicit.\n- [ ] Read-only interfaces do not leak unintended mutable aliases.\n- [ ] Coroutine lifetime, cancellation, and stream delivery are defined.\n- [ ] Absence and failure are distinct; fallback behavior is contractual.\n- [ ] Relevant checks were run when authorized; skipped checks are stated.\n\n## References\n\n- [Release process](https:\u002F\u002Fkotlinlang.org\u002Fdocs\u002Freleases.html) and [Kotlin 2.4 changes](https:\u002F\u002Fkotlinlang.org\u002Fdocs\u002Fwhatsnew24.html)\n- [Collections](https:\u002F\u002Fkotlinlang.org\u002Fdocs\u002Fcollections-overview.html)\n- [Coroutine practices](https:\u002F\u002Fdeveloper.android.com\u002Fkotlin\u002Fcoroutines\u002Fcoroutines-best-practices)\n- [SharedFlow contract](https:\u002F\u002Fkotlinlang.org\u002Fapi\u002Fkotlinx.coroutines\u002Fkotlinx-coroutines-core\u002Fkotlinx.coroutines.flow\u002F-shared-flow\u002F)\n","## Overview\n\nUse for Kotlin implementation and review across JVM, Android, and Multiplatform projects. Prefer concise expressions with visible ownership and failure semantics; preserve the repository's architecture and toolchain constraints.\n\n## Mental model\n\nNullability describes absence, immutability describes ownership, and coroutine scopes describe lifetime. These are separate contracts: `val`, `List`, and `suspend` do not by themselves guarantee immutable data, thread safety, or background execution.\n\n## Version gate\n\nAs of 2026-10: Kotlin 2.4 is the stable language line (2.4.21 at research time; 2.5.0 planned for December 2026). It stabilizes context parameters, explicit backing fields, the `@all` meta-target, and new use-site annotation defaulting rules. Explicit context arguments, collection literals, and improved compile-time constants remain experimental behind compiler flags. Check the actual compiler, language\u002FAPI version, Gradle plugin, JVM target, and platform compatibility before using new syntax.\n\nUse context parameters for an existing contextual API need, not to obscure ordinary constructor dependencies. Explicit backing fields can expose a narrower public type without a second property. New annotation targeting can affect frameworks and generated code; verify effective targets during upgrades. Do not enable experimental features merely to shorten an example.\n\n## Values and readable APIs\n\n- Prefer `val`, but remember it fixes the reference, not its contents. `List\u003CT>` is a read-only interface that may alias mutable storage; snapshot at ownership boundaries. Data-class `copy()` is shallow.\n- Use data classes for values and sealed types for closed outcomes. Exhaustive `when` without a default exposes newly added cases; don't fabricate an unknown case unless external input really needs one.\n- Normalize Java platform types at the interop boundary. Use `require` for invalid arguments and `check` for invalid state; `!!` needs a proven invariant, not optimism about input.\n- Nullable returns represent expected absence. Don't use `?: emptyList()`, `getOrDefault`, or `runCatching` to turn parsing or network failures into valid-looking data.\n- Prefer named arguments and small functions over nested scope functions. Use `let`, `apply`, and `also` only when their receiver and result remain obvious. Extensions should reveal domain vocabulary without hiding I\u002FO in property-like access.\n- Write explicit public return types. Prefer straightforward collections until sequence laziness or reduced intermediates benefits the actual workload; sequences are not automatically faster.\n\n## Coroutines and streams\n\n- Launch into a scope with an owner and cancellation policy. Use `coroutineScope` for related work that should fail together; supervision isolates child failures only when each failure has a handler. Avoid ownerless GlobalScope work.\n- `suspend` does not switch threads. Blocking functions used by UI callers must move blocking work to an appropriate injected dispatcher; already-suspending network APIs usually need no IO wrapper. CPU-heavy work belongs on a suitable computation dispatcher.\n- Propagate `CancellationException`; broad catches and `runCatching` can capture it. Long computations must check cancellation. Use `NonCancellable` only for narrowly bounded suspending cleanup, not to keep normal work alive.\n- Await async results and bound fan-out when inputs are unbounded. A structured child can fail its parent before await; ignoring Deferred is not an error-handling policy.\n- A `flow {}` is cold; StateFlow\u002FSharedFlow are hot. StateFlow conflates equal values, so update with immutable snapshots and `update` for concurrent read-modify-write.\n- SharedFlow is a broadcast mechanism, not durable event storage: with no subscribers, only replay values survive. Model important UI outcomes as state or an acknowledged durable operation when losing them would be incorrect.\n- Use `callbackFlow` with `awaitClose` to unregister callbacks. Choose buffering and overflow behavior explicitly; don't silently drop business-critical values.\n\n## Platform boundaries and verification\n\n- Android: hoist Compose state and collect flows with lifecycle-aware APIs. Preserve functioning Views-based code; toolkit adoption is not an instruction to rewrite unrelated screens. Keep long-lived work out of view-owned scopes.\n- Multiplatform: share logic that is actually portable; keep `expect`\u002F`actual` seams small. Check each library's supported targets and stability rather than assuming JVM availability implies Native availability.\n- Follow existing serialization, formatting, and test libraries. Test coroutine behavior with `runTest` and dispatchers sharing its test scheduler; cover cancellation, delayed collectors, and errors, not only successful emissions.\n\n## Example\n\nKeep cancellation distinct from a recoverable network failure:\n\n```kotlin\nimport java.io.IOException\n\nsuspend fun \u003CT> loadOrReport(\n    load: suspend () -> T,\n    report: (IOException) -> Unit,\n): T {\n    try {\n        return load()\n    } catch (failure: IOException) {\n        report(failure)\n        throw failure\n    }\n}\n```\n\nThis JVM boundary reports only I\u002FO failures; cancellation passes through unchanged. In ordinary lower-level code, simply propagate failures without catching.\n\n## Checklist\n\n- [ ] New syntax fits compiler, plugins, and target; experiments are explicit.\n- [ ] Read-only interfaces do not leak unintended mutable aliases.\n- [ ] Coroutine lifetime, cancellation, and stream delivery are defined.\n- [ ] Absence and failure are distinct; fallback behavior is contractual.\n- [ ] Relevant checks were run when authorized; skipped checks are stated.\n\n## References\n\n- [Release process](https:\u002F\u002Fkotlinlang.org\u002Fdocs\u002Freleases.html) and [Kotlin 2.4 changes](https:\u002F\u002Fkotlinlang.org\u002Fdocs\u002Fwhatsnew24.html)\n- [Collections](https:\u002F\u002Fkotlinlang.org\u002Fdocs\u002Fcollections-overview.html)\n- [Coroutine practices](https:\u002F\u002Fdeveloper.android.com\u002Fkotlin\u002Fcoroutines\u002Fcoroutines-best-practices)\n- [SharedFlow contract](https:\u002F\u002Fkotlinlang.org\u002Fapi\u002Fkotlinx.coroutines\u002Fkotlinx-coroutines-core\u002Fkotlinx.coroutines.flow\u002F-shared-flow\u002F)\n",{"name":5,"rules":43,"title":47,"domains":30,"license":14,"description":7,"compatibility":48},[44,45,46],"file(build.gradle.kts)","file(settings.gradle.kts)","content(kotlin)","Kotlin Development Best Practices","Requires the project's Kotlin toolchain; JDK for JVM targets, Android SDK for Android, platform tools for Native targets.","master","e9e4a19559669b1627b1ac5ed3f77b8e36cfad95","skills\u002Fprogramming-kotlin",0,"https:\u002F\u002Fgithub.com\u002FMuvon\u002Foctomind-tap","https:\u002F\u002Foctomind.run\u002Ftap\u002F","https:\u002F\u002Fgithub.com\u002FMuvon","https:\u002F\u002Fmuvon.io","We bring ideas to life","2026-11-14 13:21:16",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add Muvon\u002Foctomind-tap --skill programming-kotlin",{"tool":65,"command":66},"bunx","bunx skills add Muvon\u002Foctomind-tap --skill programming-kotlin",{"tool":68,"command":69},"pnpm","pnpm dlx skills add Muvon\u002Foctomind-tap --skill programming-kotlin","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMuvon\u002Foctomind-tap\u002Fblob\u002Fmaster\u002Fskills\u002Fprogramming-kotlin\u002FSKILL.md",true,[],[74,101,126,146,167,190],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":38},"01M70SFC5CTHRKA9B97N1ARVZ2","seo-content-refresh","Finds decaying pages, picks update, merge, redirect or remove, and briefs each refresh. Use to prioritize existing content and judge whether it helped.","https:\u002F\u002Fgithub.com\u002FMuvon\u002Foctomind-tap\u002Fblob\u002Fmaster\u002Fskills\u002Fseo-content-refresh\u002FSKILL.md",[],[81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100],"seo content refresh","seo","seo content","content refresh","refresh","content","posts","remove","web search","performance","search","traffic","access","drop","websearch","revamp","merge","diagnosis","update","decay",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":38},"01M70SBWQCHGH7HGS51Y0GTKKW","marketing-review-program","Plans how to ask real customers for honest public reviews: site choice, invitation copy, incentive and disclosure rules. Use to start a review program.","https:\u002F\u002Fgithub.com\u002FMuvon\u002Foctomind-tap\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketing-review-program\u002FSKILL.md",[],[108,109,110,111,112,113,89,91,114,115,116,117,118,119,120,121,122,123,124,125],"program","review","marketing review program","marketing","reviews","get","campaign","choice","how to","only","generated","ask","plan","product","generate","customer","how","request",{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":38},"01M70SBB65Z2FC71Q7DEAXGJBG","geo-source-actions","Turns AI citation findings into ranked per-source actions for Reddit threads, listicles, review sites and videos. Records only. Use after a GEO audit.","https:\u002F\u002Fgithub.com\u002FMuvon\u002Foctomind-tap\u002Fblob\u002Fmaster\u002Fskills\u002Fgeo-source-actions\u002FSKILL.md",[],[133,134,135,136,137,113,89,91,138,139,117,95,109,140,141,142,121,143,144,145],"actions","geo source actions","source","geo","sources","copilot","domains","llms","threads","youtube","audit","action","data",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":38},"01M70S99D3Y6GF097GTXWBXHPW","commerce-ai-readiness","Audits product feeds, markup and live pages for AI shopping assistants, then lists exact fixes. Use to make a store catalog readable to AI shoppers.","https:\u002F\u002Fgithub.com\u002FMuvon\u002Foctomind-tap\u002Fblob\u002Fmaster\u002Fskills\u002Fcommerce-ai-readiness\u002FSKILL.md",[],[153,154,155,156,157,158,159,160,161,162,91,163,138,117,93,164,165,121,143,166],"ai readiness","commerce ai readiness","commerce","readiness","feeds","ready","show","shopping","discover","checkout","up","ecommerce","documentation","recommend",{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":173,"publishedAt":38},"01M6DWSX45J42KTK6XASKJRGPA","tap-model-training","Train, evaluate and publish the octomind-embed model behind capability auto-activation. Use when capability triggers or skill semantic() phrases change.","https:\u002F\u002Fgithub.com\u002FMuvon\u002Foctomind-tap\u002Fblob\u002Fmaster\u002Fskills\u002Ftap-model-training\u002FSKILL.md",[],[174,175,176,177,178,163,179,180,181,182,183,184,185,186,187,124,188,189,26,99],"model","training","tap","tap model training","scope","eval","uv","auto","dataset","activate","api","capabilities","publish","change","embedding","re",{"skillNo":191,"name":192,"nameZh":6,"description":193,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":194,"categories":195,"keywords":196,"publishedAt":38},"01M6DWSQB7NSW53Z86XM81R1W1","tap-deps-authoring","Write dep scripts for the octomind-tap registry: header comments, platform.sh, mcp vs dep types, npx\u002Fuvx pattern. Use when editing deps\u002F\u003Corg>\u002F\u003Ctool>.sh.","https:\u002F\u002Fgithub.com\u002FMuvon\u002Foctomind-tap\u002Fblob\u002Fmaster\u002Fskills\u002Ftap-deps-authoring\u002FSKILL.md",[],[197,176,198,199,200,201,202,203,204,205,206,29,207,208,209,210,26,211,212,213],"deps","tap deps authoring","authoring","DEP","MCP","run","scripts","pattern","install","registry","repo","editing","tool","types","write","org","for"]