[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74FV7EFHWKG7WC72FKMS3BJ":3,"skill-same:01M74FV7EFHWKG7WC72FKMS3BJ":49},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":13,"repositoryHtmlUrl":25,"repositoryHomepageUrl":6,"ownerHtmlUrl":26,"ownerBlogUrl":6,"ownerDescription":27,"updatedAt":28,"install":29,"resources":42},"01M74FV7EFHWKG7WC72FKMS3BJ","new-feature",null,"Astrumon\u002Fspovishun-skills","Astrumon","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F67917191?v=4","01M74FSGPFMM3XWY2PMSEN8Z2W","Danylo Bidnyk","01M74FSGQ12JX4QM4FEY6NEH6N",0,"MIT","https:\u002F\u002Fgithub.com\u002FAstrumon\u002Fspovishun-skills\u002Fblob\u002Fmain\u002Fskills\u002Fnew-feature\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"# New Feature Skill\n\nScaffolds a feature for a Kotlin Multiplatform \u002F Compose Multiplatform project as an `api` + `impl`\nGradle module pair, wired into the nav graph and DI.\n\nBefore generating, read `.claude\u002Frules\u002Fkmp\u002Ffeature-structure.md` (layout),\n`.claude\u002Frules\u002Fkmp\u002Farchitecture.md` (MVI contract, error handling),\n`.claude\u002Frules\u002Fkmp\u002Fnavigation.md` and `.claude\u002Frules\u002Fkmp\u002Flocalization.md`. If an existing feature is\nalready in the repo, read it and match it exactly — the rules describe the shape, the existing\nfeature is the ground truth for this project's package names and Gradle conventions.\n\n## When NOT to use this skill\n\nThis skill writes files. It runs only when the user wants a feature **scaffolded** and has a name for\nit. If they are still deciding what to build, hand off and stop:\n\n- Exploring what the feature should be → `idea-brainstormer`\n- Choosing an approach or comparing designs → `solution-designer`\n- Splitting a feature into tasks → `task-decomposer`\n- Only asking how KMP source sets or `expect`\u002F`actual` work → `kmp-multiplatform-specialist`\n\n## Inputs\n\n- **Feature name** in PascalCase (`Logs`, `Settings`, `OrderDetail`). The module path is the\n  lowercase name (`feature\u002Flogs\u002F`), the package is the lowercase name.\n- If the user gave no name, ask for it and stop until provided. Do not invent one.\n\n## Mode\n\nDecide before writing anything:\n\n- **New feature** (default) — create the `api` + `impl` module pair.\n- **Extra screen in an existing feature** — the user named a feature that already exists. Create only\n  the screen package inside that feature's `impl`, plus its route in that feature's `api`, its Koin\n  registration and its test. Create **no** new Gradle modules, edit **no** `settings.gradle.kts`.\n\nIf it is ambiguous which mode applies, ask. Do not guess.\n\n## Procedure\n\n1. **Confirm scope.** Restate the feature name, the mode, and the exact list of files you will create\n   or edit. Wait for confirmation. Create nothing outside that list.\n\n2. **Locate the conventions.** Read `settings.gradle.kts`, `gradle\u002Flibs.versions.toml`, one existing\n   `feature\u002F*\u002Fimpl\u002Fbuild.gradle.kts` (if any) and `composeApp` DI + nav files. Reuse the project's\n   existing plugin aliases, convention plugins and version-catalog entries. Never introduce a new\n   dependency or a hardcoded version when the catalog already has one. If the project has no feature\n   module yet, say so and derive the build files from `composeApp` — do not copy them blindly.\n\n3. **Create `feature\u002F\u003Cname>\u002Fapi`** (new-feature mode only):\n   - `build.gradle.kts` — KMP + serialization only. No Compose, no Koin, no Ktor.\n   - `\u003CName>Key.kt` — `@Serializable @Keep data object \u003CName>Key : NavKey` (or a `data class` when\n     the screen takes arguments). Both annotations are required: R8 reaches keys reflectively and\n     drops an unmarked one in release builds only.\n   - The feature's `SerializersModule` contribution —\n     `polymorphic(NavKey::class) { subclass(\u003CName>Key::class, \u003CName>Key.serializer()) }`. Without it\n     the back stack does not restore on iOS, desktop or web; Android is the only target that can\n     fall back to reflection, so omitting it passes every Android test.\n   - Nothing else goes in `api`.\n   - **Navigation 2 project** (the repo uses `NavHost` \u002F `navigation-compose` 2.x): name the file\n     `\u003CName>Route.kt`, write `@Serializable @Keep data object \u003CName>Route` with no `NavKey`\n     supertype and no `SerializersModule`, and add a `fun NavController.navigateTo\u003CName>(...)`\n     extension. Match what step 2 found — never introduce Nav 3 into a Nav 2 project.\n\n4. **Create `feature\u002F\u003Cname>\u002Fimpl`** (new-feature mode only):\n   - `build.gradle.kts` — depends on `feature\u002F\u003Cname>\u002Fapi`, `core\u002Fdesignsystem` and whatever `core\u002F*`\n     it needs; Compose Multiplatform, Koin, ViewModel, coroutines.\n   - Declare the resources package explicitly, or every generated import will be wrong — the default\n     is derived from the root project name and the module path, not from your Kotlin package:\n     ```kotlin\n     compose.resources {\n         packageOfResClass = \"\u003Cpkg>.feature.\u003Cname>.impl.generated.resources\"\n     }\n     ```\n\n5. **Write the screen package** under `impl\u002Fsrc\u002FcommonMain\u002Fkotlin\u002F\u003Cpkg>\u002Ffeature\u002F\u003Cname>\u002Fui\u002F`:\n   - `\u003CName>UiState.kt` — one `@Immutable data class` plus its sealed status\u002Ferror types. No Compose\n     imports beyond the stability annotation.\n   - `\u003CName>Intent.kt` — `sealed interface \u003CName>Intent` covering every user action.\n   - `\u003CName>Effect.kt` — `sealed interface \u003CName>Effect` for one-shot outcomes only (navigation,\n     transient messages). Omit the file entirely if the screen has none; do not create an empty type.\n   - `\u003CName>ViewModel.kt` — extends the project's `MviViewModel\u003CState, Intent, Effect>` base. If the\n     project has no base class yet, create it once in `core\u002F` exactly as specified in\n     `architecture.md` and say so in your summary. Constructor takes its dependencies plus the\n     injected dispatcher and `CoroutineExceptionHandler`. Implements `onIntent` with an exhaustive\n     `when`. No public method other than `onIntent`.\n   - `\u003CName>Screen.kt` — `\u003CName>Route` (resolves the ViewModel with `koinViewModel()`, collects state\n     with `collectAsStateWithLifecycle`, collects effects lifecycle-aware) plus a stateless\n     `\u003CName>Screen(state, onIntent)` that only `when`-dispatches to `viewcomponents\u002F`.\n   - `viewcomponents\u002F` — one `internal` composable per file, stateless and hoisted. At minimum a\n     loading, an error and a content view. Light + dark `@Preview` next to each non-trivial view.\n\n6. **Write the domain and data layers** under `impl\u002Fsrc\u002FcommonMain\u002Fkotlin\u002F\u003Cpkg>\u002Ffeature\u002F\u003Cname>\u002F`\n   only for what the screen actually needs:\n   - `domain\u002Fmodel\u002F`, `domain\u002Frepository\u002F\u003CName>Repository.kt` (interface).\n   - `data\u002F\u003CName>RepositoryImpl.kt`, `data\u002Fremote\u002Fdto\u002F` with the DTO→model mapping at the boundary.\n   - Add a UseCase **only** if the escalation trigger in `architecture.md` applies. A pass-through\n     UseCase is a violation, not a placeholder.\n\n7. **Add strings** to `impl\u002Fsrc\u002FcommonMain\u002FcomposeResources\u002Fvalues\u002Fstrings.xml` and to every other\n   locale folder the project ships (e.g. `values-uk\u002F`). Every user-facing string goes here — no\n   literal in a composable. Error text stays a sealed type mapped to a resource by a `@Composable`\n   label function at the screen root.\n\n8. **Register DI** — `impl\u002F...\u002Fdi\u002F\u003CName>Module.kt`:\n   ```kotlin\n   val \u003Cname>Module = module {\n       \u002F\u002F constructor DSL: bind\u003CT>() inside the lambda, from org.koin.core.module.dsl\n       singleOf(::\u003CName>RepositoryImpl) { bind\u003C\u003CName>Repository>() }\n       viewModelOf(::\u003CName>ViewModel)\n       \u002F\u002F Nav 3: the feature contributes its entry builder here, so composeApp never names it.\n       single\u003CEntryProviderInstaller>(named(\"\u003Cname>\")) { { \u003Cname>Entries(get()) } }\n   }\n   ```\n   Then add `\u003Cname>Module` to the aggregated module list in `composeApp`. Plain Koin DSL — do not\n   introduce Koin Annotations or KSP.\n\n9. **Wire navigation** — the feature owns its entries; `composeApp` composes features, not screens.\n   Write `fun EntryProviderScope\u003CNavKey>.\u003Cname>Entries(navigator: Navigator)` in\n   `impl\u002F...\u002Fui\u002F\u003CName>Navigation.kt` with one `entry\u003C\u003CName>Key> { }` per screen of this feature,\n   passing navigation lambdas down. Adding a screen must not require an edit to `composeApp` — if it\n   does, the graph has become a switchboard (see `navigation.md`). If it is a top-level destination,\n   register it in the destination list and add its label to every locale file.\n\n   **Navigation 2 project:** the same shape one level down — write\n   `fun NavGraphBuilder.\u003Cname>Graph(...)` with `composable\u003C\u003CName>Route> { }` entries and call it from\n   the existing `NavHost`. Never create a second `NavHost` or a second `NavDisplay`.\n\n   Either way: do not add a `selectedDestination` field, a navigation state holder, or an effect that\n   mirrors a stored selection onto the back stack. Selection is derived from the back stack.\n\n10. **Register the modules** (new-feature mode only) — add\n    `include(\":feature:\u003Cname>:api\")` and `include(\":feature:\u003Cname>:impl\")` to `settings.gradle.kts`,\n    and add the `impl` dependency to `composeApp\u002Fbuild.gradle.kts`.\n\n11. **Add the test** — `impl\u002Fsrc\u002FcommonTest\u002F...\u002F\u003CName>ViewModelTest.kt`: hand-written fakes (no\n    MockK in `commonTest`), injected test dispatcher, `runTest`, `advanceUntilIdle`, driven only\n    through `onIntent`. Cover the success path and each error branch.\n\n12. **Build and verify** — run the project's build and test commands (typically\n    `.\u002Fgradlew build` and `.\u002Fgradlew :feature:\u003Cname>:impl:allTests`). Report the real output. Fix\n    compile and test failures before finishing.\n\n## Do NOT\n\n- Do NOT put anything except the destination key and its `SerializersModule` contribution (Nav 2:\n  the route and its navigation extension) in `feature\u002F\u003Cname>\u002Fapi`.\n- Do NOT store the selected destination anywhere. It is derived from the back stack.\n- Do NOT make one feature's `impl` depend on another feature's `impl`.\n- Do NOT expose `MutableStateFlow`, the raw effect `Channel`, or any public method besides\n  `onIntent` from the ViewModel.\n- Do NOT use `MutableSharedFlow` for effects, or swallow exceptions in an empty `catch`.\n- Do NOT add a dependency that is not in the version catalog without telling the user first.\n- Do NOT touch files outside the confirmed list — no drive-by refactors of existing features.\n- Do NOT commit. Leave that to the user or the `commit` \u002F `finish-task` skills.\n\n## Error handling\n\n- **Feature name missing or not PascalCase** → ask for it and stop.\n- **Module path already exists** → stop and report. Ask whether the user meant the extra-screen mode.\n- **No `settings.gradle.kts`, or the project is not KMP** → stop and report; this skill does not\n  bootstrap a project.\n- **The project has no `core\u002Fdesignsystem` or no MVI base class** → say exactly what is missing and\n  what you propose to create, then wait. Do not silently invent a parallel convention.\n- **Build or tests fail** → report the actual error output. Never claim success on a red build.\n\n## Example\n\n`\u002Fnew-feature Logs` on a project whose package is `com.example.app` creates:\n\n```\nsettings.gradle.kts                       + include(\":feature:logs:api\"), (\":feature:logs:impl\")\nfeature\u002Flogs\u002Fapi\u002Fbuild.gradle.kts\nfeature\u002Flogs\u002Fapi\u002Fsrc\u002FcommonMain\u002Fkotlin\u002Fcom\u002Fexample\u002Fapp\u002Ffeature\u002Flogs\u002Fapi\u002FLogsKey.kt\nfeature\u002Flogs\u002Fimpl\u002Fbuild.gradle.kts\nfeature\u002Flogs\u002Fimpl\u002Fsrc\u002FcommonMain\u002Fkotlin\u002Fcom\u002Fexample\u002Fapp\u002Ffeature\u002Flogs\u002F\n  ui\u002FLogsScreen.kt  ui\u002FLogsViewModel.kt  ui\u002FLogsUiState.kt  ui\u002FLogsIntent.kt  ui\u002FLogsEffect.kt\n  ui\u002FLogsNavigation.kt\n  ui\u002Fviewcomponents\u002FLogsLoading.kt  LogsErrorState.kt  LogsContent.kt\n  domain\u002Fmodel\u002FLogEntry.kt  domain\u002Frepository\u002FLogsRepository.kt\n  data\u002FLogsRepositoryImpl.kt\n  di\u002FLogsModule.kt\nfeature\u002Flogs\u002Fimpl\u002Fsrc\u002FcommonMain\u002FcomposeResources\u002Fvalues\u002Fstrings.xml\nfeature\u002Flogs\u002Fimpl\u002Fsrc\u002FcommonMain\u002FcomposeResources\u002Fvalues-uk\u002Fstrings.xml\nfeature\u002Flogs\u002Fimpl\u002Fsrc\u002FcommonTest\u002Fkotlin\u002Fcom\u002Fexample\u002Fapp\u002Ffeature\u002Flogs\u002Fui\u002FLogsViewModelTest.kt\ncomposeApp\u002F…                              + composable\u003CLogsRoute> entry, + logsModule\n```\n\nExpected outcome: `.\u002Fgradlew build` succeeds and `:feature:logs:impl:allTests` passes with the new\nViewModel test green.\n\n## Related Skills\n\n- `kmp-multiplatform-specialist` — `expect`\u002F`actual`, source sets, target configuration, KMP Gradle DSL\n- `kotlin-specialist` — coroutines, Flow, sealed classes, idiomatic Kotlin\n- `dependency-injection-architecture` — Koin fundamentals and layer boundaries\n- `unit-testing-kotlin` — general Kotlin testing practice\n- `commit` \u002F `finish-task` — committing the result\n",{},"main","4ad702b3d4f403306c1a016277020693dd669f55","skills\u002Fnew-feature","https:\u002F\u002Fgithub.com\u002FAstrumon\u002Fspovishun-skills","https:\u002F\u002Fgithub.com\u002FAstrumon","Software Engineer","2026-10-14 01:01:46",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add Astrumon\u002Fspovishun-skills --skill new-feature",{"tool":35,"command":36},"bunx","bunx skills add Astrumon\u002Fspovishun-skills --skill new-feature",{"tool":38,"command":39},"pnpm","pnpm dlx skills add Astrumon\u002Fspovishun-skills --skill new-feature","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAstrumon\u002Fspovishun-skills\u002Fblob\u002Fmain\u002Fskills\u002Fnew-feature\u002FSKILL.md",true,[43],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"manifest.yaml","REFERENCE","参考文档",766,"https:\u002F\u002Fgithub.com\u002FAstrumon\u002Fspovishun-skills\u002Fblob\u002Fmain\u002Fskills\u002Fnew-feature\u002Fmanifest.yaml",[50,56,62,69,74,79],{"skillNo":51,"name":52,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":18},"01M74FX71JH2KNG5KX7TZHSKCB","universal-skill","https:\u002F\u002Fgithub.com\u002FAstrumon\u002Fspovishun-skills\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fsource\u002Fskills\u002Funiversal-skill\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M74FX57GTEFPJVCPWPSP6CCW","notion-skill","https:\u002F\u002Fgithub.com\u002FAstrumon\u002Fspovishun-skills\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fsource\u002Fskills\u002Fnotion-skill\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M74FX30F3K8906P5ASQ3DNXR","inline-frontmatter-skill","Hand-authored description that already lives in the body and must not be double-wrapped.","https:\u002F\u002Fgithub.com\u002FAstrumon\u002Fspovishun-skills\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fsource\u002Fskills\u002Finline-frontmatter-skill\u002FSKILL.md",[],[],{"skillNo":70,"name":52,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M74FX18AGHM2KHQ502PMJZRJ","https:\u002F\u002Fgithub.com\u002FAstrumon\u002Fspovishun-skills\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fsource-v2\u002Fskills\u002Funiversal-skill\u002FSKILL.md",[],[],{"skillNo":75,"name":58,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M74FWZJ193G810P0ZJ1PKEZ9","https:\u002F\u002Fgithub.com\u002FAstrumon\u002Fspovishun-skills\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fsource-v2\u002Fskills\u002Fnotion-skill\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M74FWPNEZWWGQ2Q37N6MMWP1","write-a-skill","https:\u002F\u002Fgithub.com\u002FAstrumon\u002Fspovishun-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwrite-a-skill\u002FSKILL.md",[],[]]