agentleFS
GDvegaGDvega/super-android-kotlin-firebase-skill/skills/jetpack-compose/SKILL.md

jetpack-compose

Skill2 starsChanged 5 months agoMITView on GitHub

Use for Jetpack Compose screens, Route + Screen structure, state hoisting, remember, rememberSaveable, ViewModel + StateFlow, Material 3, Navigation, previews, adaptive UI and basic accessibility.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 11 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create a Route composable for ViewModel and navigation wiring.

    line 26
  2. Distinctive:

    Create a stateless Screen composable that renders state.

    line 27
  3. Distinctive:

    Add previews for loading, empty, content and error states.

    line 28
  4. Distinctive:

    Add semantics and tests for the critical flow.

    line 29
  5. Distinctive:

    Use Route + Screen for stateful screens.

    line 33
  6. Distinctive:

    Do not perform network, database or Firebase calls in Composables.

    line 35
  7. Distinctive:

    Use Material 3 theme tokens.

    line 36
  8. Distinctive:

    Add stable keys for lazy lists.

    line 37
  9. Distinctive:

    Do not assume these companion skills are installed.

    line 51
  10. Distinctive:

    Use $super-android-kotlin-firebase to create a weekly budget Compose screen.

    line 89
  11. Distinctive:

    Use $super-android-kotlin-firebase to refactor this Compose screen into Route + Screen.

    line 90

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Purpose

Build Compose UI that is maintainable, state-driven, accessible and aligned with Material 3.

When to use

  • Creating or refactoring a Compose screen.
  • Connecting ViewModel and StateFlow to UI.
  • Adding Navigation, previews, adaptive layouts or accessibility semantics.

Inputs to inspect

  • Composable files, UI state and ViewModel.
  • Theme/design system and Material 3 usage.
  • Navigation graph and route parameters.
  • Preview and UI test setup.

Required workflow

  1. Define UI state and user events.
  2. Create a Route composable for ViewModel and navigation wiring.
  3. Create a stateless Screen composable that renders state.
  4. Add previews for loading, empty, content and error states.
  5. Add semantics and tests for the critical flow.

Rules

  • Use Route + Screen for stateful screens.
  • Hoist state and keep reusable components stateless.
  • Do not perform network, database or Firebase calls in Composables.
  • Use Material 3 theme tokens.
  • Add stable keys for lazy lists.

Related existing skills

Local skills to invoke

  • kotlin-core
  • accessibility
  • compose-performance
  • edge-to-edge-adaptive-ui
  • ui-state-design

External companion skills to use when installed

Do not assume these companion skills are installed. Prefer the local skills above first, then consult Companion Skills for install and verification commands.

  • aldefy/compose-skill — use for deeper Jetpack Compose, Material 3, design-to-code, theming or Compose architecture guidance.

Files commonly touched

  • feature/*/*Screen.kt
  • feature/*/*Route.kt
  • feature/*/*ViewModel.kt
  • navigation files
  • ui/theme files
  • androidTest Compose tests

Commands to validate

./gradlew assembleDebug
./gradlew test
./gradlew connectedDebugAndroidTest

Common mistakes to avoid

  • Passing ViewModel into reusable leaf components.
  • Using remember for business state that belongs in ViewModel.
  • Missing previews for error/empty states.
  • Ignoring semantics, content descriptions and font scale.

Checklist

  • Route and Screen separated.
  • State hoisted.
  • Material 3 used.
  • Previews added.
  • Accessibility and UI tests considered.

Example prompts

  • Use $super-android-kotlin-firebase to create a weekly budget Compose screen.
  • Use $super-android-kotlin-firebase to refactor this Compose screen into Route + Screen.

Expected response style

Respond with: brief diagnosis, change plan, affected files, code or diff summary, validation commands, tests added or recommended, risks, and next step. For review tasks, lead with findings ordered by severity.

References

  • ../../docs/audits/FUENTES_LOCALES.md
  • references/compose-state-patterns.md
  • references/navigation-patterns.md
  • templates/route-screen-viewmodel-template.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.