Yokan / rebuild
Course 1 8624561

AGENTS.md

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

documentation / design asset119 lines
1# AGENTS.md — compose-kotlin-agent-skills 23Enterprise Android/Kotlin agent skill kit. Plain-text index for agentic IDEs (Cursor, Claude Code, Codex, Gemini, Copilot, Windsurf, OpenHands, and 20+ others).45**Repository:** https://github.com/haidrrrry/compose-kotlin-agent-skills  6**Primary skill:** [`SKILL.md`](SKILL.md) — read this first for every Kotlin/Android task.78**Platforms:** Android · Kotlin Multiplatform · Compose Multiplatform (target) · macOS / Linux / Windows (host) · 27 agents.910## Build & Validation1112```bash13# Validate all SKILL.md files (frontmatter + links) — must pass before merge14python3 scripts/validate_skills.py1516# Strict mode + lock parity + JUnit report (matches CI exactly)17python3 scripts/validate_skills.py \18  --strict \19  --lock-check api/skills.lock \20  --junit junit-results.xml2122# When you add or remove a SKILL.md, regenerate the lock file:23python3 scripts/validate_skills.py --write-lock api/skills.lock24```2526CI runs the same script on every push and pull request (`.github/workflows/skill-lint.yml`) and uploads `junit-results.xml` as an artifact.2728## Skill Catalog2930| Skill | Path | Load When |31|-------|------|-----------|32| **compose-kotlin-agent-skills** (primary) | [`SKILL.md`](SKILL.md) | Any Android/Kotlin/Compose work — toolchain, MVI guardrails, banned antipatterns |33| **android-kotlin-architecture** | [`skills/android-kotlin-architecture/SKILL.md`](skills/android-kotlin-architecture/SKILL.md) | Clean Architecture, MVVM/MVI, modules, UseCases, UiState/Event/Effect |34| **android-kotlin-compose** | [`skills/android-kotlin-compose/SKILL.md`](skills/android-kotlin-compose/SKILL.md) | Compose UI, recomposition, Material 3, edge-to-edge, animations, performance |35| **android-kotlin-testing** | [`skills/android-kotlin-testing/SKILL.md`](skills/android-kotlin-testing/SKILL.md) | ViewModel tests, Compose UI tests, Hilt fakes, Turbine, CI quality gates |3637## Reference Modules (deep dives)3839Load from `references/` after reading the matching skill above. One level deep only — do not chain reference-to-reference.4041### Architecture & Platform4243| Reference | Topic |44|-----------|-------|45| [`references/00-banned-antipatterns.md`](references/00-banned-antipatterns.md) | Master banned table — WRONG/RIGHT lookup |46| [`references/01-architecture.md`](references/01-architecture.md) | Clean Arch, MVVM, MVI, module structure |47| [`references/04-coroutines-flow.md`](references/04-coroutines-flow.md) | StateFlow, structured concurrency, errors |48| [`references/05-hilt-di.md`](references/05-hilt-di.md) | Hilt, scopes, EntryPoint, testing |49| [`references/06-room-db.md`](references/06-room-db.md) | Room, migrations, offline-first |50| [`references/07-navigation.md`](references/07-navigation.md) | Navigation 3, type-safe routes, deep links |51| [`references/08-kmp-cmp.md`](references/08-kmp-cmp.md) | KMP, expect/actual, shared ViewModel |52| [`references/09-networking.md`](references/09-networking.md) | Ktor, JWT, DTO mappers |53| [`references/14-datastore.md`](references/14-datastore.md) | DataStore, SharedPreferences migration |54| [`references/15-paging3.md`](references/15-paging3.md) | Paging 3, RemoteMediator, asState() |55| [`references/18-gradle-build-logic.md`](references/18-gradle-build-logic.md) | Convention plugins, KSP, R8, baseline profiles |56| [`references/19-xml-to-compose-migration.md`](references/19-xml-to-compose-migration.md) | XML → Compose, RxJava → Flow |5758### Compose & Performance5960| Reference | Topic |61|-----------|-------|62| [`references/02-compose-ui.md`](references/02-compose-ui.md) | Composition, stability, Modifier order, theming |63| [`references/03-animations.md`](references/03-animations.md) | Springs, Canvas, gestures, shared elements |64| [`references/10-performance.md`](references/10-performance.md) | Recomposition, LazyColumn, baseline profiles |65| [`references/16-coil-image.md`](references/16-coil-image.md) | Coil 3.4, AsyncImage, cache |66| [`references/17-accessibility.md`](references/17-accessibility.md) | TalkBack, semantics, WCAG |6768### Quality & Ship6970| Reference | Topic |71|-----------|-------|72| [`references/11-testing.md`](references/11-testing.md) | Turbine, Compose tests, Hilt TestInstallIn |73| [`references/12-camera-mlkit.md`](references/12-camera-mlkit.md) | CameraX, ML Kit pose, angle math |74| [`references/13-release-checklist.md`](references/13-release-checklist.md) | Signing, R8, Play Store |7576## Agent Install Guides (27 platforms)7778Directory: [`agents/`](agents/) · Index: [`agents/README.md`](agents/README.md) · Paste snippet: [`agents/_shared-snippet.md`](agents/_shared-snippet.md)7980```bash81git clone https://github.com/haidrrrry/compose-kotlin-agent-skills.git <agent-dir>/skills/compose-kotlin-agent-skills82```8384Replace `<agent-dir>` per agent (`.cursor`, `.claude`, `.codex`, `.windsurf`, etc.) — see the matching file in `agents/`.8586## Production Code Examples8788| Example | Source |89|---------|-------------|90| [`examples/todo-mvi/`](examples/todo-mvi/) | MVI todo list — ViewModel, Screen, Repository (antipattern-safe reference) |91| [`examples/animated-clock/`](examples/animated-clock/) | [AnimatedClockJetpacl](https://github.com/haidrrrry/AnimatedClockJetpacl) — Canvas, CMP, particles |92| [`examples/authenticator/`](examples/authenticator/) | [Authenticator](https://github.com/haidrrrry/Authenticator) — Room, MVVM, Koin, theming |9394## What This Repository Is9596**Agent skill kit = markdown instructions for coding AIs** (Cursor, Claude Code, Codex, etc.) — not an Android library, not Alexa/Bixby, not an on-device LLM SDK.9798Install: `git clone` into `.cursor/skills/compose-kotlin-agent-skills` or `.claude/skills/compose-kotlin-agent-skills`.99100**Not the same as** Compose UI libraries (coachmark / onboarding / theming Composables you add via Gradle). Those ship UI in your app. This repo teaches your **coding agent** how to write Kotlin/Compose correctly.101102## Boundaries — Do Not103104- Confuse this repo with a Gradle dependency, voice-assistant skill, or Compose UI library105- Invent dependency versions — use the version table in `SKILL.md`106- Use `GlobalScope`, naked `_state.value =`, or hardcoded UI strings107- Skip `LazyColumn` keys or use `collectAsState()` on Android screens108- Merge without passing `python3 scripts/validate_skills.py --strict --lock-check api/skills.lock`109- Add reference files without linking them from `SKILL.md` or this index110- Add a new `SKILL.md` without bumping [`api/skills.lock`](api/skills.lock) and the catalog table above111112## Verification Prompt113114```115Read AGENTS.md and SKILL.md. Structure a Navigation 3 screen with MVI UiState,116edge-to-edge insets, and collectAsStateWithLifecycle. Cite banned antipatterns you avoided.117```118119Expected: Kotlin 2.x, AGP 9, `_state.update { }`, `stringResource`, NavKey routes, no GlobalScope.120

Search chapters, reference and source filenames.