/engineering:kmp-developmentfrom engineering
Provides Kotlin Multiplatform development standards for sharing business logic and Compose Multiplatform UI across Android and iOS. Covers project structure, expect/actual, DI with Koin, and platform adapters.
Ships in engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com, +256 784 464178.
Any Chwezi app or system UI work (effective 01 Nov 2026) MUST follow the Chwezi Product Excellence Standard in chwezi-design-engine (resolve via the engine-routing table; never hard-code the path): doctrine/product-excellence-standard.md and skill skills/00-cross-cutting-ops-qa-a11y/chwezi-product-excellence-standard. Engineering gates: product-excellence-engineering-gates.md. For Chwezi apps, Compose Multiplatform shared UI with platform adapters is the primary mobile stack (CMP web is Beta and needs a DDR); see the strategy below. With AGP 9+ the Android entry point is a separate androidApp module. Where this skill and the standard differ, the standard wins.
| Category | Artifact | Format | Example |
|---|---|---|---|
| Correctness | Shared-module contract test results | CI log or recorded test report covering commonTest / actual / expect surfaces | docs/kmp/shared-tests-2026-04-16.md |
references/ directory for deep detail after reading the core workflow below.references/kmp-compose-multiplatform.md for shared Compose UI across Android, iOS, Desktop, and Web targets.references/kmp-tdd.md for shared-module Red-Green-Refactor, common tests, and expect/actual test strategy.../../ios/ios-development/references/apple-platform-compatibility-wwdc26.md; keep the Xcode 27 / Swift 6.4 host, iOS adapters and availability gates in the iosApp/ module.When Android and iPhone UI are already native, compare a pure commonMain
policy with a native policy against the same golden vectors before introducing a
bridge. Include wrong-item and stale replies, missing IDs, and already-confirmed
state. Compare integration and diagnosis effort, per-target build and test time,
and bridge failures. Share test vectors and leave the policies native if the
bridge adds more maintenance than the shared policy removes. A JVM test proves
only the exercised JVM target. The
Tool Library policy
shows this boundary with a reservation reducer.
For Chwezi apps (Product Excellence Standard, effective 01 Nov 2026) the default is one shared
Kotlin codebase for domain, data, networking and UI. The UI is Compose Multiplatform (CMP),
which is Stable on Android, iOS and desktop and Beta on web (CR:K1, CR:K3; register rows in
the design engine currentness-register.md, accessed 2026-11-07). Pin and record the CMP version
per project and re-check CR:K2 at implementation time; this skill does not assert a version.
commonMain wherever the required behaviour
is supported on every shipped target.core/platform/ with one actual
or injected implementation per target: runtime permissions, biometrics, camera and barcode
scanning, printing (receipt and Bluetooth printers), notifications, keyboard and IME
behaviour, system navigation (Android predictive back, iOS edge-swipe back, deep links),
secure storage and screenshot protection.AndroidView on Android, UIKitView
or UIKitViewController on iOS, for example a camera preview), and record why.CR:K5,
NOT_ASSESSED): device-test both on iOS before claiming the accessibility gates. Semantics map
to VoiceOver and test tags map to accessibility identifiers (CR:K5).| Module | Governs | Skill |
|---|---|---|
shared/ (or composeApp/ as a KMP library) | Domain, data, networking, shared CMP UI, design system, platform adapter interfaces | This skill (kmp-development) plus the design engine standard |
androidApp/ | Android entry point: Activity, manifest, insets, back handling, Baseline Profiles, Play release | android-development |
iosApp/ | Xcode host for the shared UI (ComposeUIViewController), iOS adapters, Apple availability gates, Xcode 27 release evidence | ios-development |
With AGP 9 or later the Android entry point is a separate androidApp module
(com.android.application) and the shared module applies
com.android.kotlin.multiplatform.library; iOS needs the iosArm64 and iosSimulatorArm64
targets (CR:K4). Older single-module composeApp/ projects migrate when they move to AGP 9.
project-root/
shared/ # KMP + com.android.kotlin.multiplatform.library (this skill)
src/
commonMain/kotlin/
core/designsystem/ # generated tokens, typography, theme, components
core/platform/ # adapter interfaces: permissions, biometrics, camera/scan,
# print, notifications, keyboard, navigation, secure storage
features/<feature>/{presentation,domain,data}
commonMain/composeResources/ # strings (all declared languages), fonts, images
androidMain/kotlin/ # Android adapter implementations
iosMain/kotlin/ # iOS adapter implementations, MainViewController()
commonTest/ # shared logic and UI tests
androidUnitTest/ iosTest/
build.gradle.kts
androidApp/ # com.android.application (android-development)
iosApp/ # Xcode project hosting the shared UI (ios-development)
build.gradle.kts
gradle/libs.versions.toml # version catalogue; pin CMP, Kotlin, AGP together
| Code concern | Location |
|---|---|
| Pure domain rule, validation, or API model | commonMain |
| Stable platform service with distinct implementations | Narrow expect/actual or injected interface |
| Screen, component, theme or token | commonMain shared CMP UI |
| OS-owned capability (permission, biometrics, camera, print, notification, keyboard, system back) | Interface in core/platform/, implementation per platform source set |
| Screen CMP cannot deliver at the standard's bar on a shipped target | Native screen behind the same view model, with a DDR |
| Library lacks supported targets | Choose an alternative or isolate it; do not leak it into common code |
Read and search all target source sets before moving code. Edits and builds require authority. Without both Android and iOS toolchains, return the target-specific checks still outstanding and do not claim parity. If either target toolchain is unavailable, mark cross-platform parity unverified.
core/platform/ adapter.Extended guidance for kmp-development was moved to references/skill-deep-dive.md to keep this entrypoint compact and fast to load.
Use that deep dive for:
Technology StackSource Sets and TargetsArchitecture: Clean Architecture in Shared ModuleExpect/Actual PatternDependency Injection with KoinNetworking with KtorDatabase with SQLDelightModularizationNative Library IntegrationToolingMandatory RulesAnti-Patterns| Artefact | Required? | Purpose |
|---|---|---|
| Shared-domain scope, platform capabilities, API contracts, and platform-adapter boundaries | yes | Choose KMP sharing boundaries |
Fallback without both platform toolchains: validate shared code and mark per-target UI and adapter behaviour unverified.
Builds and tests follow task scope; signing, store release, backend mutation, and destructive device actions require explicit authority.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub peterbamuhigire/chwezi-dev-engine --plugin engineering169 skills in this plugin
/accounting-engineUse when designing or implementing double-entry accounting policy and an embedded ledger engine for invoices, payments, stock, balanced postings, mapped accounts, idempotency, reversals, period locks, audit trails, and financial statements./accounting-finance-controllerUse when coordinating accounting and finance implementation reviews, doctrine routing, control evidence, remediation priorities, and release decisions across a software system./advanced-testing-strategyUse when designing or reviewing test strategy for production systems, APIs, mobile apps, SaaS platforms, ERP workflows, and AI-enabled systems. Covers unit, integration, contract, end-to-end, regression, release-gate, and risk-based testing decisions./ai-agent-commercial-operationsUse when pricing, billing, refunding, recognizing revenue, or packaging commercial terms for agentic AI services, or when defining agent SLAs, customer commitments, SLA dashboards, breach credits, and service evidence./ai-agent-compliance-controlsUse when mapping AI agent operations to SOC 2, ISO 27001, HIPAA, audit logs, control testing, attestations, and compliance evidence, including drill-cadence evidence, approval-completeness (PI1.1) gap checks, and signed agent-memory erasure proofs./ai-agent-governance-and-limitsUse when defining agent budgets, step limits, reversibility, blast-radius controls, kill switches, and governance policy for agentic AI systems.Other plugins' skills for the same job