Screened · automated checks passed

avoiding-subcomposition-pitfalls

from skydoves/compose-performance-skills · ★ 452 on GitHub · found by our crawler 2026-07-07

What the author says it does

Use this skill when a Compose tree uses SubcomposeLayout, BoxWithConstraints, or Scaffold and the developer reports extra measure passes, slow first frame, or layout passes running content composition repeatedly. Covers why SubcomposeLayout composes its slots during the measure phase, why BoxWithConstraints forces a subcomposition for every new Constraints value, why nesting Scaffold or BoxWithConstraints multiplies the cost, when a custom Layout or Modifier.layout { } replaces SubcomposeLayout, and how to use SubcomposeLayoutState's slot reuse policy and precompose APIs when SubcomposeLayout is genuinely required. Use when the developer mentions BoxWithConstraints, SubcomposeLayout, Scaffold, "extra measure pass", "double measurement", "first frame slow", "subcompose", or notices that wrapping content in BoxWithConstraints regresses scroll perf inside a LazyColumn.

Quoted from the skill's own SKILL.md trigger description — this is what tells Claude when to activate it. Not yet verified by us.

Automated screening

100/100 validator score

Scored by the same rules as our free SKILL.md validator: trigger description quality, body substance, structure. Automated — a human bench test is the next step in the pipeline.

Install (unverified — review first)

git clone https://github.com/skydoves/compose-performance-skills
# skill lives at: recomposition/avoiding-subcomposition-pitfalls/SKILL.md

SkillProof status

This skill is in our test queue. We install every skill in a clean environment, run a trigger battery and score output against a baseline before it earns a catalog page — the full protocol is public. Until then, treat it like any unreviewed dependency: read the SKILL.md and any scripts before installing.

Already tested in Writing & Content

  • Humanizer ★ 9.6/10 Strips 33 documented AI-writing tells from text via a draft-audit-final rewrite loop.
  • Blog Outline Generator ★ 9.6/10 SERP-informed H2/H3 outline generator; skeleton only, not a full content brief.
  • Academic Paper Reviewer ★ 9.6/10 Simulates rigorous academic peer review across originality, methodology, results, and writing.
  • PR Writing Review ★ 9.6/10 Extracts before/after writing fixes and style lessons from GitHub PR review comments.

Top 10 Writing skills, ranked →