General
PromptBeginner5 minmarkdown
<h1 align="center">
<a href="https://prompts.chat">
163
cd your-android-project
Loading actions...
<a href="https://prompts.chat">
TypeScript and ESLint rules that MUST be followed when creating, modifying, or reviewing any file under apps/frontend/, including .ts, .tsx, .js, and .jsx files. Also apply when discussing frontend linting, type safety, or ESLint configuration.
risks
cd your-android-project
git clone https://github.com/haidrrrry/compose-kotlin-agent-skills.git .codex/skills/compose-kotlin-agent-skills
Add to your project root AGENTS.md:
## Android/Kotlin Skill
For all Kotlin and Android development, follow the instructions in
`.codex/skills/compose-kotlin-agent-skills/SKILL.md`.
When working on a specific topic (architecture, Compose UI, animations,
coroutines, DI, Room, navigation, KMP, networking, performance, testing,
camera/ML, or release), read the corresponding reference file from
`.codex/skills/compose-kotlin-agent-skills/references/`.
Key rules:
- ViewModel owns all state via MutableStateFlow
- Always use collectAsStateWithLifecycle (not collectAsState) on Android
- Always provide keys in LazyColumn/LazyRow
- Modifier order: padding → clip → background → clickable
- Never pass ViewModels to composables — pass lambdas
codex "How should I set up Hilt dependency injection for a ViewModel?"
Should reference @HiltViewModel, @Inject constructor, scope rules from the skill.