Yokan / rebuild
Course 1 8624561

codex.md

.codex/skills/compose-kotlin-agent-skills/agents/codex.md

documentation / design asset39 lines
1# OpenAI Codex CLI Setup23## Install45```bash6cd your-android-project7git clone https://github.com/haidrrrry/compose-kotlin-agent-skills.git .codex/skills/compose-kotlin-agent-skills8```910## AGENTS.md Integration1112Add to your project root `AGENTS.md`:1314```markdown15## Android/Kotlin Skill1617For all Kotlin and Android development, follow the instructions in18`.codex/skills/compose-kotlin-agent-skills/SKILL.md`.1920When working on a specific topic (architecture, Compose UI, animations,21coroutines, DI, Room, navigation, KMP, networking, performance, testing,22camera/ML, or release), read the corresponding reference file from23`.codex/skills/compose-kotlin-agent-skills/references/`.2425Key rules:26- ViewModel owns all state via MutableStateFlow27- Always use collectAsStateWithLifecycle (not collectAsState) on Android28- Always provide keys in LazyColumn/LazyRow29- Modifier order: padding → clip → background → clickable30- Never pass ViewModels to composables — pass lambdas31```3233## Verification3435```bash36codex "How should I set up Hilt dependency injection for a ViewModel?"37```3839Should reference `@HiltViewModel`, `@Inject constructor`, scope rules from the skill.40

Search chapters, reference and source filenames.