Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

adaptive

Skill by android

Adds instructions for making Android app UIs adapt to phones, tablets, foldables, laptops, desktop, TV, Auto and XR. Built for Android developers who use Jetpack Compose and Navigation 3.

  • Score 94
  • 11k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install adaptive

Built from the published package, never by AI.

git clone --depth 1 https://github.com/android/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/jetpack-compose/adaptive ~/.claude/skills/adaptive

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install adaptive in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The adaptive skill gives an AI assistant step-by-step instructions to make or update an Android app's UI so it adapts to different devices, including phones, tablets, foldables, laptops, desktop, TV, Auto and XR. It covers handling window sizes, pointing devices such as a mouse, and text entry devices such as a keyboard, using the Compose MediaQuery API. It also explains how to keep UI, navigation, scroll and media playback state across configuration changes like folding, rotating or resizing.

The skill also covers adaptive navigation with NavigationSuiteScaffold, multi-pane layouts built with Navigation 3 SceneStrategy, and lazy lists that change column count. It includes Grid and FlexBox layouts, app bar scroll behavior, and desktop features such as keyboard shortcuts, tooltips and custom cursors. It is aimed at developers whose apps already use Compose and Jetpack Navigation 3.

Written from the project's SKILL.md and checked against it.

What it can do

  • Verify current UIAdds screenshot tests with previews for phone, foldable, tablet and desktop form factors.
  • Adaptive navigationConverts navigation bars to NavigationSuiteScaffold, which shows a navigation rail on larger screens.
  • Multi-pane layoutsBuilds list-detail and supporting pane layouts using Navigation 3 SceneStrategy.
  • Adaptive listsChanges lazy lists to grids that set column count with GridCells.Adaptive.
  • Grid layoutsReplaces non-lazy Column lists with the experimental Grid API that adjusts rows and columns to available size.
  • App bar scrollingApplies exitUntilCollapsed or enterAlways scroll behaviors to app bars.
  • State across configuration changesAudits remember usage to preserve UI state across rotation, folding and window resizing.
  • Desktop experiencesAdds keyboard shortcuts, tooltips and custom cursors for desktop use.

What you need

  • Jetpack Compose used for all screens
  • Jetpack Navigation 3
  • Compose 1.11.0-beta01 or later for the Grid API

Try asking

  • Make my Compose app's bottom navigation adaptive with a navigation rail on tablets
  • Add list-detail multi-pane layouts to my Navigation 3 screens
  • Add keyboard shortcuts and tooltips to my Compose desktop screens

Good to know

  • The app must already use Compose for all screens and Jetpack Navigation 3.
  • The Grid API is experimental and requires opting in with ExperimentalGridApi.
  • Adding android:configChanges or android:screenOrientation to the manifest is not allowed.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: jetpack-compose/adaptive/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md22 KB
  • references/android/develop/ui/compose/layouts/adaptive/flexbox/container-behavior.md9 KB
  • references/android/develop/ui/compose/layouts/adaptive/flexbox/get-started.md3 KB
  • references/android/develop/ui/compose/layouts/adaptive/flexbox/index.md6 KB
  • references/android/develop/ui/compose/layouts/adaptive/flexbox/item-behavior.md8 KB
Show all 17 files
  • references/android/develop/ui/compose/layouts/adaptive/grid/container-properties.md16 KB
  • references/android/develop/ui/compose/layouts/adaptive/grid/get-started.md2 KB
  • references/android/develop/ui/compose/layouts/adaptive/grid/index.md4 KB
  • references/android/develop/ui/compose/layouts/adaptive/grid/item-properties.md6 KB
  • references/android/develop/ui/compose/layouts/adaptive/mediaquery/index.md14 KB
  • references/android/guide/navigation/navigation-3/recipes/material-listdetail.md6 KB
  • references/android/guide/navigation/navigation-3/save-state.md6 KB
  • references/android/studio/preview/compose-screenshot-testing-with-testsuites.md7 KB
  • references/custom_cursors.md4 KB
  • references/foldable-tabletop.md4 KB
  • references/keyboard_shortcuts.md6 KB
  • references/tooltips.md4 KB

Alternatives to adaptive

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

adaptive: common questions

Does this skill require Jetpack Compose?

Yes. The source says the app must use Compose for all screens, and suggests the XML to Compose skill for screens that still use Fragments or Views.

Can it add multi-pane layouts to my app?

Yes, using Navigation 3 SceneStrategy for list-detail and supporting pane layouts. The source says not to use ListDetailPaneScaffold or SupportingPaneScaffold.

Can it stop the app restarting on rotation?

No. The source says never to add android:configChanges or screenOrientation to suppress Activity recreation, and instead to fix the state loss.

How do I install adaptive?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is adaptive free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is adaptive safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to adaptive?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

adaptive Install

Add to stack

Loading.