layout

Improves UI layout, spacing, and visual hierarchy through systematic design analysis.

Updated Jul 21, 2026
One-click install
npx skills add https://github.com/masakinihirota/2026src-ni --skill layout-masakinihirota
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: layout
Source: https://github.com/masakinihirota/2026src-ni/tree/main/.agents/skills/layout
Command: npx skills add https://github.com/masakinihirota/2026src-ni --skill layout-masakinihirota

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Interfaces often feel off even when colors and fonts are fine, usually because of monotonous grids, inconsistent spacing, weak visual hierarchy, or crowded layouts. This Skill diagnoses those spatial design problems and turns generic arrangements into intentional, rhythmic compositions. ## Core Features & Use Cases - Layout Assessment: Evaluates spacing consistency, visual hierarchy (squint test), grid structure, rhythm, and density to identify what feels weak. - Systematic Improvement: Establishes spacing scales, chooses Flexbox vs Grid appropriately, breaks card-grid monotony, and strengthens hierarchy with space and weight. - Verification: Checks rhythm, hierarchy clarity, breathing room, consistency, and responsiveness after changes. - Use Case: A dashboard page uses identical card grids everywhere with arbitrary padding values. Use this Skill to audit the layout, introduce a consistent spacing scale, vary section rhythm, and make the primary content obvious within seconds. ## Quick Start Ask the AI to review and improve the layout and spacing of a specific page or component that feels crowded or monotonous.

Frequently Asked Questions about layout

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

FAQPage Schema
How do I fix a UI layout that feels off or crowded?▼

Start by assessing spacing consistency, visual hierarchy with a squint test, grid structure, rhythm, and density. Then establish a consistent spacing scale, group related elements tightly, separate sections generously, and verify the most important content is obvious within two seconds.

When should I use Flexbox vs CSS Grid for layout?▼

Use Flexbox for one-dimensional layouts like nav bars, button groups, and card internals. Use Grid for two-dimensional layouts like page structure and dashboards where rows and columns need coordinated control. Don't default to Grid when Flexbox with flex-wrap is simpler.

How do I create visual hierarchy without adding more colors?▼

Use space and weight first: generous whitespace around an element draws the eye, and tight grouping with generous section separation creates clear structure. Add color or size contrast only when spacing and typography alone are not sufficient.

Why does my card grid layout look monotonous?▼

Repeating identical icon-plus-heading-plus-text cards everywhere removes rhythm and hierarchy. Break monotony by varying card sizes, spanning columns, mixing cards with non-card content, and using spacing and dividers instead of nesting cards inside cards.

What spacing values should I use for consistent UI design?▼

Use a defined scale such as a framework's built-in scale, rem-based tokens, or custom properties named semantically like --space-xs through --space-xl. Avoid arbitrary values, prefer gap over margins for siblings, and use clamp() for fluid spacing on larger screens.