Skip to content

Feature Development Agents

Ali Sadeghi edited this page Feb 5, 2026 · 5 revisions

Feature Development Agents

Specialized agents for building feature layers in parallel.

Overview

Feature Development Agents execute the three core layers of Clean Architecture:

  1. data-layer-agent - Models, API routes, DataSource, Repository
  2. ui-layer-agent - UiModel, ViewModel, Screens, Navigation
  3. integration-agent - DI wiring, Gradle setup, Navigation registration, Spec generation

These agents run in parallel during feature creation (Phase 3) and are orchestrated by the creating-kmp-feature skill.

Architecture Pattern

Feature Module Structure
├── data/
│   ├── model/            (created by data-layer-agent)
│   ├── remote/           (created by data-layer-agent)
│   └── repository/       (created by data-layer-agent)
├── presentation/
│   ├── model/            (created by ui-layer-agent)
│   ├── viewmodel/        (created by ui-layer-agent)
│   ├── ui/               (created by ui-layer-agent)
│   └── navigation/       (created by ui-layer-agent)
└── di/
    └── {Feature}Module.kt (created by integration-agent)

Agents

Generates the data persistence layer with type-safe API contracts and error handling.

Generates:

  • Domain models with @Serializable
  • Ktor Resources (type-safe API routes)
  • RemoteDataSource (interface + implementation)
  • Repository (interface + implementation)
  • All using Either<T> error handling

Generates the presentation layer with the 4-state UI pattern.

Generates:

  • UiModel (presentation models)
  • ViewModel with 4-state pattern (Uninitialized/Loading/Success/Failed)
  • Composable Screens with X-components
  • Navigation with type-safe routes
  • Uses setState { } for state updates

Completes integration of the feature into the application.

Completes 4 Integration Points:

  1. settings.gradle.kts - Include module
  2. composeApp/build.gradle.kts - Add dependency
  3. initKoin.kt - Register DI module
  4. BaseAppNavHost.kt - Wire navigation

Also generates:

  • Living specification at .claude/docs/{feature}/spec.md
  • Full build validation

Back to Agents

Clone this wiki locally