kmp-feature-slice
Installation
SKILL.md
KMP Feature Slice Generator
Procedural workflow for generating complete KMP feature slices. Enforces strict creation order, typed error handling, and compose-arch compliance.
Prerequisites: Read compose-arch skill first — it is the SINGLE SOURCE OF TRUTH for architecture rules.
Companion skills (versions live there — do not duplicate)
- Architecture rules + Component/View/Screen split —
compose-arch. - DI annotations (
@BindingContainer,@Provides,@AssistedInject) —metro-di-mobile(Metro 1.0.0). - Navigation primitives (
Value<T>,ChildStack) —decompose. - HTTP —
ktor-client(3.4.3).
When generating a slice, always read these companion skills first for current versions and idioms; never inline a version here.
Project conventions (project-level glue, NOT framework)
This skill references three helpers that are project conventions, not Decompose/Metro/Kotlin APIs. Define them once in your :core:* modules (or substitute equivalents) before following the steps. If your project already has equivalents under different names, mentally remap.