kmp-tdd/SKILL.md
Kotlin Multiplatform Test-Driven Development standards for shared module testing. Covers Red-Green-Refactor in commonTest, kotlin.test + Kotest + Turbine + Mokkery, test doubles (fakes/stubs/mocks), unit tests for use cases and ViewModels...
npx skillsauth add peterbamuhigire/skills-web-dev kmp-tddInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
kmp-tdd or would be better handled by a more specific companion skill.SKILL.md first, then load only the referenced deep-dive files that are necessary for the task.Testing shared KMP code is critical -- a bug in commonMain impacts all
platforms simultaneously. This skill enforces Red-Green-Refactor discipline
for the shared module. Platform-specific UI testing follows the respective
platform TDD skill (android-tdd for composeApp/, ios-tdd for iosApp/).
/ UI Tests \ <- Platform-specific (android-tdd / ios-tdd)
/ Integration \ <- Shared + infrastructure (Ktor, SQLDelight)
/ Unit Tests \ <- Shared business logic (commonTest)
| Type | Ratio | Location | What to Test | |---|---|---|---| | Unit | 70% | commonTest | Use cases, repositories, ViewModels, utilities | | Integration | 20% | commonTest | Ktor + SQLDelight with test doubles | | UI | 10% | Platform tests | Compose/SwiftUI (see platform TDD skills) |
commonTest for the next behaviour./gradlew :shared:allTests to confirm all platforms passNever skip the verify step. Code that passes on JVM may fail on Kotlin/Native.
Extended guidance for kmp-tdd was moved to references/skill-deep-dive.md to keep this entrypoint compact and fast to load.
Use that deep dive for:
Test ConfigurationTest Doubles: When to Use EachUnit TestsIntegration TestsDI in Tests with KoinRunning TestsCoverage with KoverBest PracticesAnti-Patternsdata-ai
Use when adding AI-powered analytics to a SaaS platform — semantic search over business data, natural language queries, trend detection, anomaly alerts, and AI-generated insights for dashboards. Covers embeddings, NL2SQL, and per-tenant analytics...
data-ai
Design AI-powered analytics dashboards — what metrics to show, how to display AI predictions and confidence, drill-down patterns, KPI cards, trend visualisation, AI Insights panels, export design, and role-based dashboard variants. Invoke when...
development
Use when designing, building, reviewing, or upgrading production software systems that must be secure, performant, maintainable, scalable, and user-centered. Apply before writing specs, code, architecture, APIs, databases, mobile apps, SaaS platforms, or ERP systems.
development
Professional web app UI using commercial templates (Tabler/Bootstrap 5) with strong frontend design direction when needed. Use for CRUD interfaces, dashboards, admin panels with SweetAlert2, DataTables, Flatpickr. Clone seeder-page.php, use...