kora-di-compilelisted
Install: claude install-skill kora-projects/kora-skills
# Kora DI Compile — Compile-Time Dependency Injection
> **Kora sub-skill — obey the [kora-v1 meta rules](../../SKILL.md) on every task:** **R0** ensure `.kora-agent/` docs+examples are cloned · **R1** read this sub-skill before writing code · **R2** Kora APIs only — no Spring/Micronaut/Quarkus, no invented annotations or config keys · **R3** journal any incorrect Kora usage. Add comments/Javadoc only if asked.
**Version:** Kora 1.x | **Java:** 25+ | **Kotlin:** 1.9+ | **Gradle:** 9+
> **Kora uses compile-time code generation** — all dependency wiring happens at compile time via annotation processors. No reflection, no runtime proxies. Errors are caught at compile time, not runtime.
Read this skill when: bootstrapping `@KoraApp`, creating `@Component`/`@Module`, multi-module projects with `@KoraSubmodule`, debugging DI errors ("no factory found", "ambiguous dependency", circular dependencies).
---
## Quick Start
```
Task Progress:
- [ ] 1. Add Kora BOM and annotation processor to build.gradle
- [ ] 2. Create @KoraApp interface with main() entry point
- [ ] 3. Extend required modules (HoconConfigModule, LogbackModule)
- [ ] 4. Create @Component classes with constructor injection
- [ ] 5. Run ./gradlew classes to generate ApplicationGraph
```
---
## 1. Build Setup
```groovy
plugins { id "java"; id "application" }
configurations {
koraBom
annotationProcessor.extendsFrom(koraBom)
implementation.extendsFrom(koraBom)
}
dependencies {
koraBom platform("ru.