reddit-post.md
.codex/skills/compose-kotlin-agent-skills/marketing/reddit-post.md
1# Reddit Post Drafts23Three subreddit-tuned versions. Pick one per sub. Post to **r/androiddev first** (highest signal), wait 24h before others to avoid spam flags.45---67## Version A — r/androiddev89**Title:**10> I got tired of Cursor and Claude writing broken Compose code, so I built a skill kit that forces them to follow real MVI rules1112**Body:**1314Every AI coding agent ships the same broken Kotlin patterns:1516- `_state.value = …` instead of `_state.update { }`17- `collectAsState()` instead of `collectAsStateWithLifecycle()`18- Hardcoded UI strings — no `stringResource`19- `LazyColumn` with no `key` or `contentType`20- `GlobalScope.launch { }` inside ViewModels21- String-based Navigation routes (deprecated)2223I shipped a few Android apps and watched my agents undo my MVI patterns every other PR. So I wrote a skill kit that ships as markdown, drops into `.cursor/skills/` or `.claude/skills/`, and gets read **before** the agent writes any Kotlin.2425It enforces:2627- Kotlin 2.x K2, AGP 9, Compose BOM 2026, Navigation 328- Strict MVI — atomic `_state.update`, `UiState` / `UiEvent` / `UiEffect`29- A banned-antipatterns table with the correct fix next to every wrong pattern30- Edge-to-edge by default, `collectAsStateWithLifecycle`, `LazyColumn` keys313213 reference modules (architecture, Compose UI, animations, coroutines, Hilt, Room, Navigation 3, KMP, Ktor, performance, testing, CameraX/ML Kit, release checklist), 3 modular sub-skills, install guides for 27 agents (Cursor, Claude Code, Codex, Gemini, Copilot, Windsurf, Kimi, DeepSeek, Cline, Aider, Continue, Zed, JetBrains AI, etc.).3334CI-validated — every `SKILL.md` is frontmatter-linted and md5-locked on every push.3536**Repo:** https://github.com/haidrrrry/compose-kotlin-agent-skills3738**Install (Cursor):**39```bash40git clone https://github.com/haidrrrry/compose-kotlin-agent-skills.git .cursor/skills/compose-kotlin-agent-skills41```4243**Install (Claude Code):**44```bash45git clone https://github.com/haidrrrry/compose-kotlin-agent-skills.git ~/.claude/skills/compose-kotlin-agent-skills46```4748MIT. PRs welcome — especially new banned antipatterns you have caught your agent doing.4950What patterns has your agent broken in your codebase? Curious to add them to the banned list.5152---5354## Version B — r/Kotlin5556**Title:**57> Kotlin/Compose agent skill kit — forces Cursor, Claude Code, Codex to write production code, not docs copy-paste5859**Body:**6061Open-sourced a markdown-only skill kit your AI coding agent loads from `.cursor/skills/` or `.claude/skills/`. Teaches strict MVI, Kotlin 2.x K2 idioms, atomic `StateFlow` updates, and a banned-antipatterns table covering the usual hallucinations (`GlobalScope`, naked `_state.value =`, `collectAsState()`, hardcoded UI strings, no `LazyColumn` keys).6263Coverage:6465- Clean Architecture + MVI (`UiState` / `UiEvent` / `UiEffect`)66- Jetpack Compose UI, recomposition, stability annotations, Modifier ordering67- Coroutines + Flow decision matrix (`StateFlow` vs `SharedFlow` vs `Channel`)68- Hilt DI with scopes + `TestInstallIn` fakes69- Room — migrations, offline-first, Flow DAOs70- Navigation 3 type-safe routes71- Kotlin Multiplatform / Compose Multiplatform (`expect` / `actual`, shared ViewModel, Ktor)72- Performance, baseline profiles, Play Store checklist737427 per-agent install guides. CI-validated on every push.7576Repo: https://github.com/haidrrrry/compose-kotlin-agent-skills7778MIT licensed. Looking for feedback on patterns I might have missed.7980---8182## Version C — r/cursor8384**Title:**85> [Skill] Production Android & Kotlin rules for Cursor — strict MVI, banned antipatterns, 13 reference modules8687**Body:**8889Built a Cursor skill pack for Android/Kotlin/Jetpack Compose development. Stops Cursor hallucinating `GlobalScope`, `collectAsState()`, naked `_state.value =`, hardcoded strings, etc.9091**Install:**92```bash93git clone https://github.com/haidrrrry/compose-kotlin-agent-skills.git .cursor/skills/compose-kotlin-agent-skills94```9596Cursor auto-discovers `.cursor/skills/*/SKILL.md`. Or wire it as a rule — see `agents/cursor.md`.9798**What it ships:**99100- 1 root `SKILL.md` with routing + MVI guardrails + banned antipatterns101- 3 sub-skills: architecture, Compose UI, testing102- 13 reference modules103- Pinned 2026 dependency versions104- Verification prompt to confirm the skill loaded105106**Verification:**107108> "How should I structure a ViewModel with UiState for Jetpack Compose?"109110Should mention `MutableStateFlow`, `data class XxxUiState`, `collectAsStateWithLifecycle`, `_state.update`.111112Repo: https://github.com/haidrrrry/compose-kotlin-agent-skills113114PRs welcome. MIT.115116---117118## Posting tips119120- Post Tue/Wed morning US time for r/androiddev (highest traffic).121- Don't cross-post within 24h — Reddit shadowbans.122- Answer every comment in the first hour — drives sort-by-new.123- Don't drop the repo URL in your first comment, put it in the post body once.124- Have a screenshot ready of the README hero — Reddit auto-previews images.125