Skip to content

Integration Agent

Ali Sadeghi edited this page Jan 6, 2026 · 4 revisions

Integration Agent

Completes the 4 integration points and generates living specification.

Invoked by: creating-kmp-feature skill (Phase 3, after data + ui)

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

Integration Examples

1. settings.gradle.kts

include(":feature:productcatalog")

2. composeApp/build.gradle.kts

dependencies {
    implementation(projects.feature.productcatalog)
}

3. initKoin.kt

fun initKoin() {
    startKoin {
        modules(
            // ... other modules
            ProductCatalogModule().module
        )
    }
}

4. BaseAppNavHost.kt

@Composable
fun BaseAppNavHost(navController: NavHostController) {
    XNavHost(navController, startDestination = HomeRoute) {
        // ... other routes

        composable<ProductListRoute> {
            ProductListScreen(
                onProductClick = { id ->
                    navController.navigate(ProductDetailRoute(id))
                },
                onBackClick = { navController.popBackStack() }
            )
        }

        composable<ProductDetailRoute> { backStackEntry ->
            val route = backStackEntry.toRoute<ProductDetailRoute>()
            ProductDetailScreen(
                productId = route.productId,
                onBackClick = { navController.popBackStack() }
            )
        }
    }
}

Generates Living Specification

.claude/docs/productcatalog/spec/productcatalog.md

Validates

  • Full build passes: ./gradlew assembleDebug
  • All integration points complete
  • Spec generated successfully

Back to Agents

Clone this wiki locally