{"slug":"skydoves-avoiding-subcomposition-pitfalls","source_name":"skydoves/avoiding-subcomposition-pitfalls","name":"Skydoves/Avoiding Subcomposition Pitfalls","description":"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,","version":1,"lift":{"pass_rate_delta_pts":27.27,"pass_rate_pct":86.4,"total_cases":22,"passed_cases":19,"tokens_delta_pct":150.1,"turns_delta_pct":0,"verdict":"mixed","benchmark_model":"gemini-3.6-flash","grading_method":"judged","completed_at":"2026-08-19T05:56:34.993368+00:00"},"skill_score":null,"benchmark_models":[{"model":"gemini-3.6-flash","headline":true,"delta_pts":27.27,"with_pass_pct":86.4,"without_pass_pct":59.1,"tokens_delta_pct":150.1,"turns_delta_pct":0,"total_cases":22,"cases_aggregated":22,"verdict":"mixed","never_hurt":false,"completed_at":"2026-08-19T05:56:34.993368+00:00","run_id":"23eb90af-c99f-419a-a5e7-e661aa469b23","version_number":1,"is_latest_version":true,"gate":null}],"trust":{"skill_safety":"passed","safety_status":"clean","intent_verdict":"safe","content_status":"clean","indexable":true},"license":"Apache-2.0. See LICENSE for complete terms.","install_count":0,"manifest_hash":"7a49206cb356dd2f065c37198e71587e152c271b903af999ca6960ad363f225d","raw_url":"https://app.decimal.ai/s/skydoves-avoiding-subcomposition-pitfalls/SKILL.md","scorecard_url":"https://app.decimal.ai/skills/skydoves-avoiding-subcomposition-pitfalls"}