
Jetpack Compose 和 Kotlin AI 代理技能,适用于 Cursor、Claude Code、Codex、Gemini 和 27+ 代理。严格 MVI ·Kotlin 2.x K2 ·Compose 2026 ·CI 验证。
概览
让你的AI编码代理真正理解Jetpack Compose和Kotlin——适用于Android、Kotlin多平台和Compose多平台。严格MVI ·Kotlin 2.x K2 ·Compose 2026 ·CI验证 ·支持27个代理。 每个代理的详细信息→设置 ·全部27个代理→代理/README.md AI编码代理生成Kotlin/Compose代码,编译时细节错误: - _state.value = ...取代原子 _state.update { } — 竞赛条件 - collectAsState() 代替 collectAsStateWithLifecycle() — 电池耗尽 - 硬编码的 UI 字符串代替 stringResource(R.string....) — 本地化损坏 - 无键的 LazyColumn + contentType — 滚动损坏,重组风暴 - GlobalScope.launch { } 在 ViewModels 内 — 泄漏 - 视图模型中的 mutableStateListOf — 配置文件更改错误而存活 这个技能包通过给你的AI特工来解决这个问题: 1. 使用2026工具链,严格的MVI保护栏,以及专用的 .2.
概述(AI 翻译)
Compose-Kotlin-agent-skills
让你的AI编码代理真正理解Jetpack Compose和Kotlin——无论是在Android、Kotlin多平台还是Compose Multiplatform上。 严格 MVI ·Kotlin 2.x K2 ·Compose 2026 ·CI 验证 ·支持 27 个代理。
快速安装
| 特工 | 指挥 |
|---|---|
| 光标 | git clone https://github.com/haidrrrry/compose-kotlin-agent-skills.git .cursor/skills/compose-kotlin-agent-skills |
| 克劳德代码 | git clone https://github.com/haidrrrry/compose-kotlin-agent-skills.git ~/.claude/skills/compose-kotlin-agent-skills |
| Codex CLI | git clone https://github.com/haidrrrry/compose-kotlin-agent-skills.git →添加块到根 AGENTS.md(指南) |
| 双子座 CLI | git clone https://github.com/haidrrrry/compose-kotlin-agent-skills.git → 添加块到 GEMINI.md(指南) |
| GitHub副驾驶 | git clone https://github.com/haidrrrry/compose-kotlin-agent-skills.git .github/skills/compose-kotlin-agent-skills(指南) |
每个代理的详细信息→设置 ·全部27个代理→ agents/README.md
问题所在
AI编码代理生成Kotlin/Compose代码,编译时细节错误:
- '_state。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
compose-kotlin-agent-skills
Make your AI coding agent actually understand Jetpack Compose & Kotlin — on Android, Kotlin Multiplatform, and Compose Multiplatform. Strict MVI · Kotlin 2.x K2 · Compose 2026 · CI-validated · 27 agents supported.
Quick install
| Agent | Command |
|---|---|
| Cursor | git clone https://github.com/haidrrrry/compose-kotlin-agent-skills.git .cursor/skills/compose-kotlin-agent-skills |
| Claude Code | git clone https://github.com/haidrrrry/compose-kotlin-agent-skills.git ~/.claude/skills/compose-kotlin-agent-skills |
| Codex CLI | git clone https://github.com/haidrrrry/compose-kotlin-agent-skills.git → add block to root AGENTS.md (guide) |
| Gemini CLI | git clone https://github.com/haidrrrry/compose-kotlin-agent-skills.git → add block to GEMINI.md (guide) |
| GitHub Copilot | git clone https://github.com/haidrrrry/compose-kotlin-agent-skills.git .github/skills/compose-kotlin-agent-skills (guide) |
Per-agent details → Setup · All 27 agents → agents/README.md
The problem
AI coding agents generate Kotlin/Compose code that compiles but gets the details wrong:
_state.value = …instead of atomic_state.update { }— race conditionscollectAsState()instead ofcollectAsStateWithLifecycle()— battery drain- Hardcoded UI strings instead of
stringResource(R.string.…)— broken localisation LazyColumnwithoutkey+contentType— broken scroll, recomposition storms
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add haidrrrry/compose-kotlin-agent-skills