better-layout

Reviews and fixes interface layout for grouping, alignment, spacing, and adaptivity.

6.7k|239|Updated Jul 10, 2026
One-click install
npx skills add https://github.com/jakubkrehel/skills --skill better-layout-jakubkrehel
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: better-layout
Source: https://github.com/jakubkrehel/skills/tree/main/skills/better-layout
Command: npx skills add https://github.com/jakubkrehel/skills --skill better-layout-jakubkrehel

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Interfaces often suffer from unclear visual hierarchy, misaligned elements, cramped controls, and layouts that break under resizing, translation, or RTL mirroring. This Skill audits and fixes layout structure so grouping, reading order, and adaptivity hold up across viewports and locales. ## Core Features & Use Cases - Grouping and Alignment Review: Enforces spacing-based grouping (2× inter-group gaps), shared alignment edges, and logical CSS properties like margin-inline-start instead of physical left/right values. - Adaptive Layout Stress-Testing: Checks content-driven breakpoints, container queries, safe-area handling, string expansion, and clipping of critical actions. - Structured Reporting: Produces severity-ranked findings (HIGH/MEDIUM/LOW) in a table with file locations, before/after states, and a final Block or Approve verdict. - Use Case: Before shipping a responsive settings page, run this Skill to catch fixed-width buttons that overflow in German, physical margin properties that break RTL, and a primary action clipped at the bottom of a modal. ## Quick Start Review the layout of my settings page component and report any grouping, alignment, spacing, or adaptivity issues with severity ratings.

Frequently Asked Questions about better-layout

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix layout grouping and alignment issues in CSS?▼

Group related items with negative space first, keeping inter-group gaps at least 2× intra-group gaps, and align everything to a small set of shared edges. This Skill audits your stylesheets and reports violations with file locations and concrete fixes.

How to make a layout work with RTL languages?▼

Replace physical properties like margin-left and padding-right with logical ones such as margin-inline-start and padding-inline-end. Flexbox and grid with logical properties mirror automatically under dir="rtl", while hand-positioned elements do not.

Does this layout review work with Tailwind CSS?▼

Yes, the guidance includes Tailwind-specific examples such as ms-4, pe-6, and text-start utilities alongside plain CSS. Fixes are written in whatever styling system the project already uses.

Why does my layout break when translated to German?▼

Fixed-width text containers sized to English labels overflow when strings expand. Use max-width with wrapping, min-height instead of fixed heights, and test with pseudo-localization before shipping.

When should I use container queries instead of media queries?▼

Use container queries for component-level adaptation so a card responds to the column it sits in rather than the viewport. Reserve viewport media queries for page-level structure, and break where content actually stops fitting rather than at device presets.