[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79HT6VRE43EBTZWS7F4MDZN":3,"skill-same:01M79HT6VRE43EBTZWS7F4MDZN":47},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M79HT6VRE43EBTZWS7F4MDZN","android-di-koin",null,"Koin dependency injection setup for Android\u002FKMP - module definitions per layer, ViewModel injection, assembling modules in :app, and koinViewModel() in composables. Use this skill whenever setting up Koin, defining a DI module, providing a repository or ViewModel, injecting a dependency, or wiring modules in the Application class. Trigger on phrases like \"set up Koin\", \"add a Koin module\", \"inject a dependency\", \"DI module\", \"koinViewModel\", \"provide a ViewModel\", \"startKoin\", or \"single\u002FviewModel\u002Ffactory\".","cosmictaserdev-creator\u002FConvx","cosmictaserdev-creator","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F278399831?v=4","01M79HSPX02ZNGBSR0HA77WMX1","Aryan sharma","01M79HSPY09R4SAB7DAFCQWSKV",1420,"GPL-3.0","https:\u002F\u002Fgithub.com\u002Fcosmictaserdev-creator\u002FConvx\u002Fblob\u002Fmain\u002Fcontributor\u002Fskills\u002Fandroid-di-koin\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: android-di-koin\ndescription: |\n  Koin dependency injection setup for Android\u002FKMP - module definitions per layer, ViewModel injection, assembling modules in :app, and koinViewModel() in composables. Use this skill whenever setting up Koin, defining a DI module, providing a repository or ViewModel, injecting a dependency, or wiring modules in the Application class. Trigger on phrases like \"set up Koin\", \"add a Koin module\", \"inject a dependency\", \"DI module\", \"koinViewModel\", \"provide a ViewModel\", \"startKoin\", or \"single\u002FviewModel\u002Ffactory\".\n---\n \n# Android \u002F KMP Dependency Injection (Koin)\n \n## Principles\n \n- One Koin module per feature layer — create it only if there are dependencies to provide.\n- Modules are assembled in `:app`, never in feature modules themselves.\n- In Compose root composables, always inject ViewModels via `koinViewModel()`.\n \n---\n \n## Module Definitions\n\nPrefer the constructor-reference overloads (`singleOf`, `viewModelOf`, `factoryOf`) — they are more concise and let Koin resolve parameters automatically. Only fall back to the lambda overloads (`single { ... }`, `viewModel { ... }`, `factory { ... }`) when constructor injection alone is not enough, e.g. when you need to call a factory method, pass a named\u002Fqualified dependency, or do post-construction setup.\n\n### Data layer module\n\n```kotlin\n\u002F\u002F feature:notes:data\nval notesDataModule = module {\n    singleOf(::RoomNoteRepository) { bind\u003CNoteRepository>() }\n}\n```\n\n### Presentation layer module\n\n```kotlin\n\u002F\u002F feature:notes:presentation\nval notesPresentationModule = module {\n    viewModelOf(::NoteListViewModel)\n    viewModelOf(::NoteDetailViewModel)\n}\n```\n\n### Core data module (example)\n\n```kotlin\n\u002F\u002F core:data\nval coreDataModule = module {\n    \u002F\u002F singleOf works when the class has a single injectable constructor\n    singleOf(::SessionPreferences)\n\n    \u002F\u002F Lambda overload needed here — calling a factory method, not a constructor\n    single { HttpClientFactory.create(get()) }\n    single { createDataStore(get()) }\n}\n```\n \n---\n \n## Assembly in `:app`\n \nRegister all modules in the `Application` class:\n \n```kotlin\nclass App : Application() {\n    override fun onCreate() {\n        super.onCreate()\n        startKoin {\n            androidContext(this@App)\n            modules(\n                \u002F\u002F core\n                coreDataModule,\n                \u002F\u002F features\n                notesDataModule,\n                notesPresentationModule,\n                authDataModule,\n                authPresentationModule,\n                \u002F\u002F ...\n            )\n        }\n    }\n}\n```\n \n---\n \n## Injecting in Composables\n \nAlways use `koinViewModel()` in Root composables:\n \n```kotlin\n@Composable\nfun NoteListRoot(\n    onNavigateToDetail: (String) -> Unit,\n    viewModel: NoteListViewModel = koinViewModel()\n) { ... }\n```\n \nNever pass ViewModels down the composable tree — inject at the Root level only.\n \n---\n \n## Scoping Rules\n\n| Scope | Preferred form | Fallback form | When to use |\n|---|---|---|---|\n| Singleton | `singleOf(::Impl) { bind\u003CInterface>() }` | `single { ... }` | One instance for the app lifetime (repositories, HttpClient, DB) |\n| ViewModel | `viewModelOf(::MyViewModel)` | `viewModel { ... }` | ViewModel instances scoped to their lifecycle |\n| Factory | `factoryOf(::Impl)` | `factory { ... }` | New instance on every injection (rare — prefer singleton or ViewModel) |\n\nUse the `*Of` constructor-reference form by default. Only use the lambda form when you cannot express the binding with a constructor reference (factory methods, named qualifiers, manual setup).\n \n---\n \n## Naming Conventions\n \n| Thing | Convention | Example |\n|---|---|---|\n| Koin module | `\u003Cfeature>\u003CLayer>Module` | `notesDataModule`, `notesPresentationModule` |\n \n---\n \n## Checklist: Adding DI for a New Feature\n \n- [ ] Define `val \u003Cfeature>DataModule = module { ... }` in `feature:data`\n- [ ] Define `val \u003Cfeature>PresentationModule = module { ... }` in `feature:presentation`\n- [ ] Register both modules in `:app`'s `startKoin { modules(...) }`\n- [ ] Use `koinViewModel()` in all Root composables\n ","# Android \u002F KMP Dependency Injection (Koin)\n \n## Principles\n \n- One Koin module per feature layer — create it only if there are dependencies to provide.\n- Modules are assembled in `:app`, never in feature modules themselves.\n- In Compose root composables, always inject ViewModels via `koinViewModel()`.\n \n---\n \n## Module Definitions\n\nPrefer the constructor-reference overloads (`singleOf`, `viewModelOf`, `factoryOf`) — they are more concise and let Koin resolve parameters automatically. Only fall back to the lambda overloads (`single { ... }`, `viewModel { ... }`, `factory { ... }`) when constructor injection alone is not enough, e.g. when you need to call a factory method, pass a named\u002Fqualified dependency, or do post-construction setup.\n\n### Data layer module\n\n```kotlin\n\u002F\u002F feature:notes:data\nval notesDataModule = module {\n    singleOf(::RoomNoteRepository) { bind\u003CNoteRepository>() }\n}\n```\n\n### Presentation layer module\n\n```kotlin\n\u002F\u002F feature:notes:presentation\nval notesPresentationModule = module {\n    viewModelOf(::NoteListViewModel)\n    viewModelOf(::NoteDetailViewModel)\n}\n```\n\n### Core data module (example)\n\n```kotlin\n\u002F\u002F core:data\nval coreDataModule = module {\n    \u002F\u002F singleOf works when the class has a single injectable constructor\n    singleOf(::SessionPreferences)\n\n    \u002F\u002F Lambda overload needed here — calling a factory method, not a constructor\n    single { HttpClientFactory.create(get()) }\n    single { createDataStore(get()) }\n}\n```\n \n---\n \n## Assembly in `:app`\n \nRegister all modules in the `Application` class:\n \n```kotlin\nclass App : Application() {\n    override fun onCreate() {\n        super.onCreate()\n        startKoin {\n            androidContext(this@App)\n            modules(\n                \u002F\u002F core\n                coreDataModule,\n                \u002F\u002F features\n                notesDataModule,\n                notesPresentationModule,\n                authDataModule,\n                authPresentationModule,\n                \u002F\u002F ...\n            )\n        }\n    }\n}\n```\n \n---\n \n## Injecting in Composables\n \nAlways use `koinViewModel()` in Root composables:\n \n```kotlin\n@Composable\nfun NoteListRoot(\n    onNavigateToDetail: (String) -> Unit,\n    viewModel: NoteListViewModel = koinViewModel()\n) { ... }\n```\n \nNever pass ViewModels down the composable tree — inject at the Root level only.\n \n---\n \n## Scoping Rules\n\n| Scope | Preferred form | Fallback form | When to use |\n|---|---|---|---|\n| Singleton | `singleOf(::Impl) { bind\u003CInterface>() }` | `single { ... }` | One instance for the app lifetime (repositories, HttpClient, DB) |\n| ViewModel | `viewModelOf(::MyViewModel)` | `viewModel { ... }` | ViewModel instances scoped to their lifecycle |\n| Factory | `factoryOf(::Impl)` | `factory { ... }` | New instance on every injection (rare — prefer singleton or ViewModel) |\n\nUse the `*Of` constructor-reference form by default. Only use the lambda form when you cannot express the binding with a constructor reference (factory methods, named qualifiers, manual setup).\n \n---\n \n## Naming Conventions\n \n| Thing | Convention | Example |\n|---|---|---|\n| Koin module | `\u003Cfeature>\u003CLayer>Module` | `notesDataModule`, `notesPresentationModule` |\n \n---\n \n## Checklist: Adding DI for a New Feature\n \n- [ ] Define `val \u003Cfeature>DataModule = module { ... }` in `feature:data`\n- [ ] Define `val \u003Cfeature>PresentationModule = module { ... }` in `feature:presentation`\n- [ ] Register both modules in `:app`'s `startKoin { modules(...) }`\n- [ ] Use `koinViewModel()` in all Root composables\n ",{"name":5,"description":7},"main","f3dd4f71d603f8eb5828696fa7bab18c6172fb55","contributor\u002Fskills\u002Fandroid-di-koin",82,"https:\u002F\u002Fgithub.com\u002Fcosmictaserdev-creator\u002FConvx","https:\u002F\u002Fcosmictaser.de5.net","https:\u002F\u002Fgithub.com\u002Fcosmictaserdev-creator","Android developer who do side quest on backend and other things 😗","2026-11-14 01:39:13",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add cosmictaserdev-creator\u002FConvx --skill android-di-koin",{"tool":39,"command":40},"bunx","bunx skills add cosmictaserdev-creator\u002FConvx --skill android-di-koin",{"tool":42,"command":43},"pnpm","pnpm dlx skills add cosmictaserdev-creator\u002FConvx --skill android-di-koin","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcosmictaserdev-creator\u002FConvx\u002Fblob\u002Fmain\u002Fcontributor\u002Fskills\u002Fandroid-di-koin\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M79HYWSY9H6DNW14YM28D5NH","review-animations","Reviews animation and motion code against a high craft bar derived from Emil Kowalski's design engineering philosophy. Default to flagging; approval is earned.","https:\u002F\u002Fgithub.com\u002Fcosmictaserdev-creator\u002FConvx\u002Fblob\u002Fmain\u002Fcontributor\u002Fskills\u002Freview-animations\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M79HYS6N1DJE11T0B8HZKHQP","prototype","Build multiple genuinely different versions of a UI piece you describe, rendered behind a visual picker so you can flip through them live and promote the one that feels right. Only runs when explicitly invoked; it does not trigger on its own.","https:\u002F\u002Fgithub.com\u002Fcosmictaserdev-creator\u002FConvx\u002Fblob\u002Fmain\u002Fcontributor\u002Fskills\u002Fprototype\u002FSKILL.md",[],[],{"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},"01M79HYNBQ5NK2STBY5E1JMDZS","pick-ui-library","Pick the right library for a given frontend task from a curated, opinionated list — numbers, OTP inputs, charts, command menus, virtualization, drag and drop, toasts, state, styling, and more. Only runs when explicitly invoked; it does not trigger on its own.","https:\u002F\u002Fgithub.com\u002Fcosmictaserdev-creator\u002FConvx\u002Fblob\u002Fmain\u002Fcontributor\u002Fskills\u002Fpick-ui-library\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M79HYG5N018C9KB5SZAJ03VK","improve-animations","Survey a codebase's animation and motion code as a senior motion advisor, then produce a prioritized audit and self-contained implementation plans for other agents (or cheaper models) to execute. Read-only on source code — it plans improvements, it does not apply them. Use when the user asks to \"improve the animations\", \"audit the motion\", \"make this app feel better\", or wants a roadmap of animation fixes rather than a review of a single diff.","https:\u002F\u002Fgithub.com\u002Fcosmictaserdev-creator\u002FConvx\u002Fblob\u002Fmain\u002Fcontributor\u002Fskills\u002Fimprove-animations\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M79HYD3F6PR68BVEK4NYQT66","grilling","Interview the user relentlessly about a plan or design. Use when the user wants to stress-test a plan before building, or uses any 'grill' trigger phrases.","https:\u002F\u002Fgithub.com\u002Fcosmictaserdev-creator\u002FConvx\u002Fblob\u002Fmain\u002Fcontributor\u002Fskills\u002Fgrilling\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M79HYAYH7PR194SMGTP7NZWZ","grill-with-docs","A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.","https:\u002F\u002Fgithub.com\u002Fcosmictaserdev-creator\u002FConvx\u002Fblob\u002Fmain\u002Fcontributor\u002Fskills\u002Fgrill-with-docs\u002FSKILL.md",[],[]]