kmp-kotlinpoet
Installation
SKILL.md
When to Use This Skill
Use when you need to:
- Generate Kotlin source files at compile time from a custom annotation
(e.g.
@GenerateKoinModule,@AutoMapper,@Parcelize-style codegen) - Build a KSP processor and want type-safe source generation instead of hand-built string templates
- Convert a KSP
KSType/KSClassDeclarationinto a KotlinPoetTypeName/ClassName
Do NOT use this skill to consume an already-published KSP processor (Koin's
@KoinViewModel, Room, Moshi codegen) — that's ordinary dependency usage,
nothing to author. This skill is for writing a new processor.
Trigger keywords: KotlinPoet, KSP, Kotlin Symbol Processing, annotation processor, code generation, SymbolProcessor, SymbolProcessorProvider, FileSpec, TypeSpec, FunSpec, custom annotation, compile-time codegen, generate Kotlin source.