compose-focus-navigation

Installation
SKILL.md

Compose: focus navigation

Core principle

Focus is stateful UI behavior. Make focus targets explicit, request focus after composition succeeds, and test navigation with the same input model users use: keyboard, D-pad, or remote keys.

When to use this skill

Use this when UI:

  • Runs on TV, desktop, ChromeOS, keyboard-first Android, or remote-control devices.
  • Uses FocusRequester, focusRequester, focusProperties, onFocusChanged, or key handlers.
  • Needs initial focus, restored focus, directional navigation, or back/escape behavior.
  • Has a carousel, grid, lazy list, menu, dialog, or modal with focus traps.
  • Has tests asserting which item is focused.

Build focus targets deliberately

Start with components that already participate in focus, then add only the focus hooks the behavior needs:

Related skills
Installs
145
GitHub Stars
500
First Seen
3 days ago