better-layout
Skill by jakubkrehel
Sets grouping, alignment, reading order, responsive structure and room for translated text. It is for building layouts that hold up when resized, translated or mirrored for RTL.
Install better-layout
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jakubkrehel/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/better-layout ~/.claude/skills/better-layoutRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/jakubkrehel/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/better-layout ~/.gemini/antigravity-cli/skills/better-layoutAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Better-layout is an agent skill that sets grouping, alignment, spacing and responsive structure in a project's styling system. It gives rules for spacing between groups, shared alignment edges, logical properties for mirrored layouts, and DOM order matching visual order. Its numeric starting points apply only when the project has no spacing scale or density system.
After setting the structure, it stress-tests the layout by resizing it, translating it and mirroring it for RTL. It includes a detection table with fixes, such as replacing 100vw with 100% or using minmax(0, 1fr). Accessibility, radius, motion, typography and wording are handled by other skills. It suits developers building responsive, translated or mirrored interfaces.
Written from the project's SKILL.md and checked against it.
What it can do
- Group with spaceSeparates groups with space first, keeping the gap between groups at least 2x the gap within one.
- Distinct controlsGives interactive elements a background shape, border, underline or consistent placement zone.
- Shared alignment edgesPuts content on a small set of alignment edges, with one spacing step per nesting level.
- Logical propertiesUses leading and trailing properties such as margin-inline-start so layouts mirror for RTL.
- Visual orderKeeps visual order matching DOM order and places the most important content near the top and leading edge.
- One primary actionGives each view one primary action and moves extra secondary actions behind a menu.
- Hidden content cuesAdds visible cues for off-screen or collapsed content and a keyboard-reachable path to truncated text.
- Safe areas and sticky headersKeeps controls inside layout margins and safe areas, and sets scroll-padding-block-start under sticky headers.
- Growth and clippingSizes text containers with max-width and min-height and tests with pseudo-localization and German.
- Fix tableMaps patterns such as 100vw, float: left and media queries in components to specific fixes.
Try asking
- Check this page's CSS for layouts that break in German or RTL.
- Replace the 100vw and 100vh sizing in my mobile styles with safer units.
- Review my component's media queries and move them to container queries.
Good to know
- Numeric values are starting points that apply only where the project has no spacing scale.
- A finding needs a failure you can show, such as a clip, an overlap or a broken mirror.
- Without a browser, some checks cannot be run and are reported as Not verified.
- Accessibility, radius, motion, typography and wording are handled by other skills.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/better-layout/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
agents/openai.yaml117 B -
grouping-and-alignment.md4 KB -
reporting.md1 KB -
spacing-and-adaptivity.md6 KB
Alternatives to better-layout
All alternatives →PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.
Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.
Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.
Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.
Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.
Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.
Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration
better-layout: common questions
Does better-layout replace a project's spacing scale?
No. Its numeric starting points apply only where the project has no spacing scale or density system. Otherwise it uses the project's own tokens.
What counts as a layout finding?
A finding needs a failure you can show, such as a clip, an overlap, a broken mirror or a misread group. A value that is merely different from the starting points is not a finding.
Which other skills does it work with?
Accessibility, radius and shadows, motion, typography and wording belong to better-accessibility, better-ui, better-motion, better-typography and better-writing.
How do I install better-layout?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is better-layout free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is better-layout safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to better-layout?
Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.
