agentleFS
GDvegaGDvega/super-android-kotlin-firebase-skill/skills/edge-to-edge-adaptive-ui/SKILL.md

edge-to-edge-adaptive-ui

Skill2 starsChanged 5 months agoMITView on GitHub

Use for Android edge-to-edge, WindowInsets, system bars, adaptive layouts, tablets, foldables and Compose UI resilience.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    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:

    Check compact, medium and expanded layouts.

    line 30
  2. Distinctive:

    Test dark mode, font scale and TalkBack order.

    line 32
  3. Distinctive:

    Do not use fixed status bar padding as a universal fix.

    line 36
  4. Distinctive:

    Do not hide important content behind bars or cutouts.

    line 37
  5. Distinctive:

    Use WindowInsets or Material components intentionally.

    line 38
  6. Distinctive:

    Do not break accessibility while optimizing layout.

    line 39
  7. Distinctive:

    Consider tablets and foldables for core workflows.

    line 40
  8. Distinctive:

    Do not assume these companion skills are installed.

    line 54
  9. Distinctive:

    Use $super-android-kotlin-firebase to fix edge-to-edge overlap in this Compose screen.

    line 93
  10. Distinctive:

    Use $super-android-kotlin-firebase to make this layout tablet-ready.

    line 94

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Modernize UI for current Android devices without content overlap, broken system bars or inaccessible layouts.

When to use

  • Enabling edge-to-edge display.
  • Fixing content hidden under status or navigation bars.
  • Adding tablet, foldable or adaptive layouts.
  • Improving Compose insets and window size behavior.

Inputs to inspect

  • MainActivity.kt
  • Theme and system bar setup
  • Scaffold, app bars and navigation bars
  • WindowInsets usage
  • Adaptive layout breakpoints
  • Dark mode and accessibility settings

Required workflow

  1. Inspect current system bar and decor fits setup.
  2. Replace fixed padding with WindowInsets-aware layout.
  3. Check compact, medium and expanded layouts.
  4. Validate gesture and three-button navigation.
  5. Test dark mode, font scale and TalkBack order.

Rules

  • Do not use fixed status bar padding as a universal fix.
  • Do not hide important content behind bars or cutouts.
  • Use WindowInsets or Material components intentionally.
  • Do not break accessibility while optimizing layout.
  • Consider tablets and foldables for core workflows.

Related existing skills

Local skills to invoke

  • jetpack-compose
  • accessibility
  • android-core
  • context-aware-ui-design
  • screen-ux-audit

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.
  • android/skills — use for official Android workflow alignment around edge-to-edge, adaptive UI, Navigation 3, R8, AGP or testing setup.

Files commonly touched

  • MainActivity.kt
  • ui/theme/*
  • *Screen.kt
  • *Scaffold.kt
  • res/values/themes.xml
  • Compose previews and UI tests

Commands to validate

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

Common mistakes to avoid

  • Testing only one navigation mode.
  • Adding padding twice through Scaffold and manual insets.
  • Forgetting landscape, tablets or font scale.
  • Changing colors without contrast checks.

Checklist

  • Insets handled once.
  • System bars readable.
  • Adaptive states considered.
  • Dark mode checked.
  • Accessibility risks named.

Example prompts

  • Use $super-android-kotlin-firebase to fix edge-to-edge overlap in this Compose screen.
  • Use $super-android-kotlin-firebase to make this layout tablet-ready.

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/edge-to-edge-checklist.md
  • references/insets-patterns-compose.md
  • references/adaptive-layouts.md
  • references/tablets-foldables-notes.md
  • templates/edge-to-edge-mainactivity-template.md
  • templates/adaptive-scaffold-template.md
  • templates/window-size-class-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.