skydoves/compose-performance-skills/choosing-derivedstateof
Use this skill to decide when Jetpack Compose derivedStateOf is the right tool and when it is pure overhead. Covers the "input frequency must exceed output frequency" rule, the mandatory remember { derivedStateOf { } } wrapper, the canonical pitfall of capturing non-state variables by initial value (and the remember(key) fix), and the snapshotFlow alternative for fire-and-forget side effects on derived values. Use when the developer mentions derivedStateOf, scroll-position-driven booleans, thres
Agent skill · version 0.0.0-main.1794521040.g1b32f81 · from skydoves/compose-performance-skills
Install
npx yarkr-cli add skill:skydoves/compose-performance-skills/choosing-derivedstateofWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:skydoves/compose-performance-skills/choosing-derivedstateof
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:skydoves/compose-performance-skills/choosing-derivedstateofOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add skill:skydoves/compose-performance-skills/choosing-derivedstateofWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.