[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EBG21T7NB4XD2K66Z8SXS0":3,"skill-same:01M6EBG21T7NB4XD2K66Z8SXS0":66},{"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":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":48,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M6EBG21T7NB4XD2K66Z8SXS0","kotlin-best-practices",null,"Core patterns for robust Kotlin code including scope functions and backing properties. Use when writing idiomatic Kotlin, choosing between scope functions (let\u002Fapply\u002Frun\u002Falso\u002Fwith), encapsulating mutable state with backing properties, or exposing read-only collection interfaces. (triggers: **\u002F*.kt, apply, let, run, also, with, runCatching, backing property, MutableList, internal, private set)","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FHoangNguyen0403\u002Fagent-skills-standard\u002Fkotlin-best-practices\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"kotlin best practices","best practices","kotlin","kotlin code","scope","triggers","patterns","functions","properties","only","use","read","writing","collection","SET","state","code","run","core","2026-11-10 10:12:30",false,"---\nname: kotlin-best-practices\ndescription: 'Core patterns for robust Kotlin code including scope functions and backing properties. Use when writing idiomatic Kotlin, choosing between scope functions (let\u002Fapply\u002Frun\u002Falso\u002Fwith), encapsulating mutable state with backing properties, or exposing read-only collection interfaces. (triggers: **\u002F*.kt, apply, let, run, also, with, runCatching, backing property, MutableList, internal, private set)'\n---\n\n# Kotlin Best Practices\n\n## **Priority: P1 (HIGH)**\n\nEngineering standards for clean, maintainable Kotlin systems.\n\n## Implementation Guidelines\n\n- **Scope Functions**:\n  - `apply`: Object configuration (returns object).\n  - `also`: Side effects \u002F validation \u002F logging (returns object).\n  - `let`: Null checks (`?.let`) or mapping (returns result).\n  - `run`: Object configuration and mapping (returns result).\n  - `with`: Grouping multiple method calls on an object (returns result).\n- **Backing Properties**: Use `_state` (private mutable, e.g., `private val _state = MutableStateFlow(initial)`) exposed as `val state = _state.asStateFlow()` (public read-only). Pattern: `_prop` private, `prop` public.\n- **Collections**: Expose `List`\u002F`Map` (read-only) publicly; keep `MutableList` internal.\n- **Error Handling**: Use `runCatching` for simple error handling over try\u002Fcatch blocks.\n- **Visibility**: Default to `private` or `internal`. Minimize `public` surface area.\n- **Top-Level**: Prefer top-level functions\u002Fconstants over implementation-less `object` singletons.\n\n## Anti-Patterns\n\n- **No Deep Scope Nesting**: Limit let\u002Fapply nesting to 2 levels; deeper destroys readability.\n- **No Public var**: Use private set or backing properties for encapsulation.\n- **No Global Mutable State**: Avoid mutable top-level variables.\n\n## References\n\n- [Backing Property & Scope Function Examples](references\u002Fexample.md)\n\n","# Kotlin Best Practices\n\n## **Priority: P1 (HIGH)**\n\nEngineering standards for clean, maintainable Kotlin systems.\n\n## Implementation Guidelines\n\n- **Scope Functions**:\n  - `apply`: Object configuration (returns object).\n  - `also`: Side effects \u002F validation \u002F logging (returns object).\n  - `let`: Null checks (`?.let`) or mapping (returns result).\n  - `run`: Object configuration and mapping (returns result).\n  - `with`: Grouping multiple method calls on an object (returns result).\n- **Backing Properties**: Use `_state` (private mutable, e.g., `private val _state = MutableStateFlow(initial)`) exposed as `val state = _state.asStateFlow()` (public read-only). Pattern: `_prop` private, `prop` public.\n- **Collections**: Expose `List`\u002F`Map` (read-only) publicly; keep `MutableList` internal.\n- **Error Handling**: Use `runCatching` for simple error handling over try\u002Fcatch blocks.\n- **Visibility**: Default to `private` or `internal`. Minimize `public` surface area.\n- **Top-Level**: Prefer top-level functions\u002Fconstants over implementation-less `object` singletons.\n\n## Anti-Patterns\n\n- **No Deep Scope Nesting**: Limit let\u002Fapply nesting to 2 levels; deeper destroys readability.\n- **No Public var**: Use private set or backing properties for encapsulation.\n- **No Global Mutable State**: Avoid mutable top-level variables.\n\n## References\n\n- [Backing Property & Scope Function Examples](references\u002Fexample.md)\n\n",{"name":5,"description":7},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FHoangNguyen0403\u002Fagent-skills-standard\u002Fkotlin-best-practices",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill kotlin-best-practices",{"tool":58,"command":59},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill kotlin-best-practices",{"tool":61,"command":62},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill kotlin-best-practices","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FHoangNguyen0403\u002Fagent-skills-standard\u002Fkotlin-best-practices\u002FSKILL.md",true,[],[67,76,85,94,100,106],{"skillNo":68,"name":69,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":38},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[73,74,75],"model","model hierarchy","model hierarchy skill",{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":38},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[82,83,84],"MCP","zoom","zoom mcp",{"skillNo":86,"name":87,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":38},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[91,92,93,83],"sdk","zoom apps sdk","apps",{"skillNo":95,"name":96,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":38},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[96],{"skillNo":101,"name":102,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":38},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[102],{"skillNo":107,"name":108,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":38},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[108]]