Registry / skydoves

skydoves/compose-performance-skills/deferring-state-reads

Use this skill to push frequently-changing Jetpack Compose state reads (scroll position, animation values, drag offsets) out of the Composition phase and down into Layout or Draw using lambda-based modifiers like Modifier.offset { }, Modifier.layout { }, Modifier.graphicsLayer { }, Modifier.drawBehind { }, and Modifier.drawWithCache { }. Covers the three-phase model (Composition, Layout, Draw), why a state read at phase N invalidates phase N and every phase below, the modifier-phase cheat sheet,

Agent skill · version 0.0.0-main.1794521040.g1b32f81 · from skydoves/compose-performance-skills

Install

npx yarkr-cli add skill:skydoves/compose-performance-skills/deferring-state-reads

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:skydoves/compose-performance-skills/deferring-state-reads
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:skydoves/compose-performance-skills/deferring-state-reads

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:skydoves/compose-performance-skills/deferring-state-reads

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.