name: layout-fix provider: codex description: Auto-fix layout issues. Snaps off-grid spacing, adds missing max-width constraints, and normalizes gap usage. user-invokable: true
/layout-fix — Layout Auto-Fix
Apply automatic layout corrections:
- Snap all spacing values to the nearest grid value (4px increments)
- Add max-width to text containers exceeding 75ch
- Replace margin-based gaps with the gap property where flex/grid is used
- Add missing responsive breakpoints for layouts wider than 600px
- Show before/after for each change