AI Skill MartBrowse skillsPromptsProgramsLearnWhat is a Skill?
← Back to list

Compose Graphics (M3 Expressive · AGSL · Canvas)

A deep reference for advanced Jetpack Compose visuals: M3 Expressive spring motion, AGSL shaders, and Canvas generative drawing with correct SDK/version gating.

Dev & CodingAdvanced★ 867⑂ 65AI score 9/10Last updated: Nov 16, 2026

What it does

  • API decision table: tells you instantly whether to reach for MotionScheme.expressive(), RuntimeShader + graphicsLayer, Canvas, or Modifier.blur for a given visual need.
  • Material 3 Expressive: concrete damping/stiffness values for spatial vs effects tokens, a hero-card expand example, spring tuning recipes, and shape morphing with MaterialShapes + Morph — including the 0..1 normalization pitfall that otherwise yields a 1px shape.
  • AGSL shaders (Android 13+): ready shader sources for touch ripple, holographic gradient and liquid glass (chromatic aberration + edge tint), each with Compose binding code and a mandatory SDK_INT >= 33 gate plus fallback.
  • Canvas/DrawScope: method cheat-sheet, animated sine wave, 50-particle system, flow-field pointers.
  • Five anti-patterns: Expressive everywhere, missing API gate, Canvas reading state directly, chaining four shaders, allocating inside DrawScope.

Who it's for

  • Android developers building hero animations or brand-defining visuals in Jetpack Compose.
  • UI engineers asked to approximate iOS-style liquid glass on Android.
  • Teams debugging shader/Canvas performance (dropped frames, GC stutter).

Example uses

  1. "Animate this detail card expansion with Expressive springs" → generates updateTransition code pairing slowSpatialSpec() with defaultEffectsSpec().
  2. "Add a tap-driven AGSL ripple to this surface" → emits ripple.agsl, the pointerInput/graphicsLayer binding, and the pre-Android-13 fallback.
  3. "Put a drifting particle field behind the hero section" → a withFrameMillis tick loop with a remembered Path, avoiding per-frame allocations.

· · · Install guide · · ·

Try it now, no install

Paste this into Claude to use the skill without installing anything.

Read the instructions in this file and follow them to help me:
https://raw.githubusercontent.com/AThevon/genjutsu/HEAD/skills/_jutsu/compose-graphics/SKILL.md

What I want: (describe your task here)

If Claude can't open the link, open it yourself and paste the contents instead.

↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download ZIP
Install in Claude Code

Let Claude do it — paste this into Claude Code

Install the skill I found on AI Skill Mart.
Copy the skills/_jutsu/compose-graphics folder from the GitHub repo AThevon/genjutsu into my ~/.claude/skills/compose-graphics/.
When it's done, tell me in one line what this skill can do.

Install with a command instead

git clone https://github.com/AThevon/genjutsu.git && mkdir -p ~/.claude/skills && cp -r genjutsu/skills/_jutsu/compose-graphics ~/.claude/skills/

⚠ This is a third-party skill. Check the source repository before installing.

  1. Open a terminal in your working directory.
  2. Clone the repo: git clone https://github.com/AThevon/genjutsu.git
  3. Create the skills directory: mkdir -p ~/.claude/skills
  4. Copy the skill: cp -r genjutsu/skills/_jutsu/compose-graphics ~/.claude/skills/
  5. Verify that the references/ files (agsl-recipes.md, m3-expressive-deep.md, canvas-generative.md) came along; fetch them from the repo if missing.
  6. Restart Claude Code, then ask something like "write an AGSL holographic shader for this Compose surface" to trigger the skill.
  7. Version claims (material3 1.4/1.5, graphics-shapes 1.1.0) were verified on a fixed date — double-check them against your project's actual dependencies.
View source on GitHub ↗License: NOASSERTION