FK

felipechaux/kmp-compose-multiplatform-skill

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

83 stars 质量 49 趋势 14MIT

Kotlin 多平台(KMP)的 Claude 代码技能 + Compose 多平台——基于 Now in Android 和官方 Google/JetBrains 文档的 clean architecture、Koin、Ktor、Room。

概览

这些文档有真实的JetBrains和Google架构文档支持——不是氛围。 这让任何Claude代理都成为开发领域的专家——遵循谷歌官方架构指南和JetBrains最佳实践。 没有这项技能,Claude 会给你通用的 Android 建议。有了它,Claude 理解共享的 commonMain 源集、expect/actual 声明、Koin 多平台 DI、Room KMP 设置、Ktor 客户端配置,以及使 KMP 项目在 Android 和 iOS 上可维护的完整 Clean Architecture 层分离。 Claude Code 会自动从 .claude/skills/ 获取技能目录。无需配置。 安装完成后,在Claude代码中调用该技能: 技能(.claude/skills/kmp-compose-multiplatform/)结构化为Claude调用时遵循的精确指令集: — 核心指令集:1. — KMP开发的基础规则 2.— 模块和包布局约定 3.

概述(AI 翻译)

让你的AI编码工具真正理解Kotlin-Compose多平台。 这些文档有真实的JetBrains和Google架构文档支持——不是氛围。


一项Claude代码技能,能让任何Claude代理成为Kotlin多平台(KMP)和Compose多平台开发专家——遵循谷歌官方架构指南和JetBrains最佳实践。

没有这项技能,Claude 只能给你通用的 Android 建议。有了这个技能,Claude 能够理解共享的 commonMain 源集、expect/actual 声明、Koin 多平台 DI、Room KMP 设置、Ktor 客户端配置,以及使 KMP 项目在 Android 和 iOS 上可维护的完整 Clean Architecture 层分离。

这项技能涵盖的内容

区域 详情
架构 干净的架构、基于功能的模块化、功能标志、功能间通信、原始DataStore
** UI** Compose Multiplatform,Material 3,@Stable,状态提升,焦点管理,文本字段 a11y,动态类型
导航深度链接、跨模块合同、预测回溯、嵌套导航、反向处理、过渡、SavedStateHandle

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。


A Claude Code skill that turns any Claude agent into an expert in Kotlin Multiplatform (KMP) and Compose Multiplatform development — following Google’s official architecture guidelines and JetBrains best practices.

Without this skill, Claude gives you generic Android advice. With it, Claude understands shared commonMain source sets, expect/actual declarations, Koin multiplatform DI, Room KMP setup, Ktor client configuration, and the full Clean Architecture layer separation that makes KMP projects maintainable across Android and iOS.

What This Skill Covers

Area Details
Architecture Clean Architecture, feature-based modularization, feature flags, inter-feature comms, proto DataStore
UI Compose Multiplatform, Material 3, @Stable, state hoisting, focus management, text field a11y, dynamic type
Navigation Deep links, cross-module contracts, predictive back, nested nav, back handling, transitions, SavedStateHandle
DI Koin Multiplatform — modules, named qualifiers, ViewModels + SavedStateHandle, scopes, platform DI
Networking Ktor — auth bearer, HttpRequestRetry, cert pinning, backoff jitter, 429 handling, caching
Persistence Room KMP + DataStore KMP — migrations, reactive queries, Paging 3, FTS, type converters
State UDF pattern, StateFlow, SharedFlow buffer strategies, stateIn(), Resource sealed class
Error Handling Typed AppError, recoverable vs fatal, 429, error analytics/breadcrumbs, retry with backoff
Build System Convention plugins, R8/ProGuard, Maven publishing, CI Gradle daemon, KSP, version catalog
iOS SPM wrapper, SKIE (sealed enum edge cases), Kotlin/Native memory model, iOS performance, Swift interop
Testing Fakes + Turbine, SharedFlow event tests, Paging tests, screenshot/golden tests, Compose UI tests
Logging Log levels, Timber + CrashlyticsTree (Android), os_log (iOS), sensitive data redaction
i18n String resources, plurals, RTL support, dynamic locale change, locale-aware number/currency formatting

Installation

git clone https://github.com/felipechaux/kmp-compose-multiplatform-skill
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add felipechaux/kmp-compose-multiplatform-skill
新手?先看 mcpskill.org 教程 →