layout

Assess and improve UI layout, spacing systems, and visual hierarchy in interface designs.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Interfaces often feel off even when colors and fonts are fine, because spacing is arbitrary, grids are monotonous, and visual hierarchy is weak. This Skill diagnoses those layout 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 pinpoint what feels wrong. - Systematic Improvement: Establishes spacing scales, chooses Flexbox vs Grid appropriately, breaks card-grid monotony, and builds semantic z-index and shadow scales. - Use Case: A dashboard page uses identical icon-plus-heading cards everywhere with random padding values. Use this Skill to audit the layout, define a consistent spacing scale, vary the composition, and strengthen hierarchy so the most important content stands out. ## Quick Start Use the layout skill to review this page's spacing and visual hierarchy and propose a systematic improvement plan.

Frequently Asked Questions about layout

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

FAQPage Schema
How do I fix inconsistent spacing in a web UI?▼

Adopt a defined spacing scale such as a framework scale (Tailwind), rem-based tokens, or a custom system, and stop using arbitrary values. Use gap for sibling spacing instead of margins, and apply clamp() for fluid spacing that adapts to screen size.

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

Use Flexbox for 1D layouts like nav bars, button groups, and card internals, and Grid for 2D 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 improve visual hierarchy in a crowded interface?▼

Start with space and weight alone: group related elements tightly, separate sections generously, and use whitespace to draw the eye to what matters. Add color or size contrast only when simpler means are insufficient, then verify with the squint test.

Why does my card grid layout look monotonous?▼

Repeating identical icon-plus-heading-plus-text cards everywhere removes rhythm and hierarchy. Vary card sizes, span columns, mix cards with non-card content, and reserve cards for content that is truly distinct and actionable.

What are common layout mistakes to avoid in UI design?▼

Avoid arbitrary spacing values, equal spacing everywhere, nesting cards inside cards, centering everything, and arbitrary z-index values like 9999. Build semantic scales for spacing, shadows, and stacking instead.