Agent skill

Better Layout Skill: Grouping, Alignment and RTL Checks

The better-layout skill sets grouping, alignment, reading order and responsive structure, then stress tests the result by resizing, translating and mirroring it for right to left.

Install
git clone https://github.com/jakubkrehel/skills.git
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the better-layout skill?

The better-layout skill is one folder in Jakub Krehel's skills repo. It decides how a screen groups, aligns and orders its content, then breaks that structure on purpose by resizing it, translating it and mirroring it for RTL. A finding needs a failure you can show, such as a clip or an overlap.

Better-layout describes a layout as a set of decisions about groups, shared edges and order, and then attacks it. The structure has to survive a narrow window, a long German label and a right to left mirror.

The rule for reporting is strict. A value that differs from the skill's starting numbers is not a finding. A clip, an overlap, a broken mirror or a misread group is.

Principles it applies

  • Group with space first, background shapes second and separator lines last. The gap between groups is at least double the gap inside one.
  • Align to a small set of shared edges, with one spacing step per level of nesting.
  • Write mirrored layout with logical properties such as margin-inline-start and text-align: start.
  • Keep visual order equal to DOM order, with one primary action per view.

Stress tests

Translated strings grow, and short ones grow proportionally more, so a one word button is the riskiest thing on the screen. The skill sizes text boxes with max-width and min-height and tests with pseudo-localization and one long string locale.

Where it fits and where it does not

Best for

  • Pages that must hold up in several languages or in RTL.
  • Responsive work where breakpoints should follow the content instead of device presets.
  • Code review hunting for 100vw, fixed heights on text and physical left and right values.

Not for

  • Hit areas and focus behavior, which belong to better-accessibility.
  • Radius, shadows and animation, which belong to better-ui.
  • Line length and truncation mechanics, which belong to better-typography. Related: layout and flutter-build-responsive-layout.

Use it with UiChemy

Check the structure of the screen your agent drafted, including a long label and a narrow width, before it leaves the design stage. Then bring it into WordPress with UiChemy Figma to WordPress or Composer. Get Started on uichemy.com.