SkillAgentSearch skills...

glance-canonical-layouts

Use this skill to create home screen widgets using Jetpack Glance Canonical

Install / Use

npx skills add android/skills --skill glance-canonical-layouts

Installs into whichever agent you are using.

About this skill
📄

SKILL.md

Installable skill definition

Quality Score

90/100

Supported Platforms

Universal

Our assessment of glance-canonical-layouts

glance-canonical-layouts scores 90/100 on our quality scale, 1300th of 4,601 Development & Engineering skills we index (top 29%).

Its SKILL.md is 24 KB long, well organised into 14 sections with 1 code example: a thorough specification that gives an agent plenty to work with.

With 7,514 GitHub stars, it is one of the more widely adopted skills in the catalogue.

Substance
30/30
Structure
17/20
Description
12/15
Adoption
16/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated 27 days ago, so glance-canonical-layouts is actively maintained.
  • It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

glance-canonical-layouts compared with similar skills

All 4 of these similar skills score higher than glance-canonical-layouts; compare them before choosing.

SkillScoreStarsUpdatedFormat
glance-canonical-layouts (this skill)by android907.5k27d agoSKILL.md
taste-skillby Leonxlnx10099.8ktodayCLAUDE.md
ai-job-searchby MadsLorentzen10060.2ktodayCLAUDE.md
claude-howtoby luongnv8910042.1ktodayCLAUDE.md
LocalAIby mudler10049.8ktodayMCP Server

Frequently asked questions

How do I install glance-canonical-layouts?
Run npx skills add android/skills --skill glance-canonical-layouts. The install tabs above show the steps for each supported agent.
Which AI agents does glance-canonical-layouts work with?
It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
Is glance-canonical-layouts safe to use?
It is Apache-2.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is glance-canonical-layouts still maintained?
The repository was last updated 27 days ago, so glance-canonical-layouts is actively maintained.

name: glance-canonical-layouts description: Use this skill to create home screen widgets using Jetpack Glance Canonical Layouts from the Android Platform Samples project, or when asked to implement standard widget layout patterns (including Check List, Image Grid, Snap Scrolling, and Standard Toolbar). license: Complete terms in LICENSE.txt metadata: author: Google LLC last-updated: '2026-10-14' keywords:

  • android
  • glance
  • widgets
  • appwidget
  • canonical-layouts
  • platform-samples
  • action-list
  • check-list
  • image-grid
  • image-text-list
  • snap-scrolling
  • full-bleed
  • expressive-toolbar
  • search-toolbar
  • standard-toolbar

To implement a widget Canonical Layout that follows the recommended design patterns:

  1. The project MUST use Jetpack Glance.
  2. You MUST locate the requested layout from the list under Canonical Layout Reference Files.
  3. Copy the layout reference files into your project's target app module (e.g., src/main/java/ and src/main/res/) in one step to implement the exact design and reduce the number of tool calls.
  4. You MUST set override val sizeMode: SizeMode = SizeMode.Exact in the widget provider class.
  5. Validate that your project compiles, updating sample package declarations, import paths, and class names to match the target app's package name.
  6. Clean your project's widget code, removing unused classes (for example, unused buttons).
  7. You MUST register the widget receiver in AndroidManifest.xml inside <application> after <activity>, ensuring android:resource="@xml/..." matches the filename of the copied Widget Info XML. Otherwise, the widget won't appear in the widget picker:
<br />
<receiver android:name=".glance.MyReceiver"
    android:exported="true">
    <intent-filter>
        <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
    </intent-filter>
    <meta-data
        android:name="android.appwidget.provider"
        android:resource="@xml/my_app_widget_info" />
</receiver>
<br />

Dependencies

Add Jetpack Glance dependencies to the app module's build.gradle.kts (dependencies block):

  • androidx.glance:glance-appwidget:1.2.0 or higher
  • androidx.glance:glance-material3:1.2.0 or higher
  • androidx.glance:glance-appwidget-preview:1.2.0 or higher
  • androidx.glance:glance-preview:1.2.0 or higher

Use version 1.3.0-alpha02 or higher with compileSdk = 37 and Android Gradle Plugin (AGP) 9.1.0 or higher (for example, agp = "9.1.0" in gradle/libs.versions.toml) when implementing Snap Scrolling.

If copying sample data repositories that load bitmaps with Coil (such as FakeImageGridDataRepository.kt, FakeImageTextListDataRepository.kt, or FakeTextWithImageRepository.kt), also add an image loading library dependency such as io.coil-kt:coil (e.g., implementation("io.coil-kt:coil:2.7.0")) if one doesn't already exist.

Canonical layout reference files

Action list layout (action_list)

Check list layout (check_list)

Expressive toolbar layout (expressive_toolbar)

Image grid layout (image_grid)

Truncated for display — read the full file on GitHub.

Related Skills

View on GitHub
GitHub Stars7.5k
CategoryDevelopment
Updated27d ago
Forks488

Languages

Python

Trust signals

100/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

No cautions