| name | layout-audit |
| description | Map all layout patterns. Identify grid/flexbox usage, spacing patterns, nesting depth, and responsive breakpoints across the codebase. |
| user-invokable | true |
/layout-audit — Layout Pattern Audit
Comprehensive layout analysis:
- Map every display: grid and display: flex usage
- List all unique spacing values used
- Measure maximum nesting depth per component
- Count media queries and breakpoints
- Check for max-width constraints on text content
- Identify absolute positioning (often a red flag)
- Report gap vs margin usage consistency