contain-audit
Installation
SKILL.md
CSS Containment Audit
Automatically finds DOM elements where adding contain: layout style would reduce browser recalculation overhead.
What It Does
- Loads a large workflow (245 nodes) in a real browser
- Walks the DOM tree and scores every element as a containment candidate
- For each high-scoring candidate, applies
contain: layout stylevia JavaScript - Measures rendering performance (style recalcs, layouts, task duration) before and after
- Takes before/after screenshots to detect visual breakage
- Generates a ranked report with actionable recommendations
When to Use
- After adding new Vue components to the node rendering pipeline
- When investigating rendering performance on large workflows
- Before and after refactoring node DOM structure
- As part of periodic performance audits