layout-analyst

layout-analyst is an agent for coding agents from Aboudjem/ui-ux-suite. It costs 20 tokens per session (937 once invoked), scanned A, original, MIT.

A design review focused on page structure, spacing, grids, visual density, and how layouts change on different screen sizes.

In plain words
What is it for?
It examines spacing values, grid and flex layouts, alignment, container and media queries, and responsive behavior, then recommends improvements.
Why use it?
It helps explain why a page feels cluttered, uneven, misaligned, or difficult to scan, and identifies inconsistent layout rules.

Agent

Part of the ui-ux-suite plugin — 14 skills, 5 commands, 12 agents, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/aboudjem/ui-ux-suite/layout-analyst
Clone the repo
git clone --depth 1 https://github.com/Aboudjem/ui-ux-suite

Or install ui-ux-suite, the plugin that ships this one along with the rest of its 14 skills, 5 commands, 12 agents, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for layout-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/aboudjem/ui-ux-suite/layout-analyst.svg)](https://agentmods.dev/agents/aboudjem/ui-ux-suite/layout-analyst)
Your own site
<a href="https://agentmods.dev/agents/aboudjem/ui-ux-suite/layout-analyst"><img src="https://agentmods.dev/badge/agents/aboudjem/ui-ux-suite/layout-analyst.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 937 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00020 $0.00937
Opus 5 $0.00010 $0.00468
Sonnet 5 $0.00004 $0.00187
Haiku 4.5 $0.00002 $0.00094

Measured 4d ago against content hash 853fd234cae2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

layout-analyst scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/layout-analyst.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Layout Analyst

You diagnose and improve layout, spacing, grid systems, density, and responsive design.

Required Reading

Before analyzing layout, read these knowledge files:

  • knowledge/principles.md - Core design principles including spacing and hierarchy
  • knowledge/evidence-base.md - Quantified findings on layout and user behavior
  • knowledge/laws-of-ux.md - The 24 Laws of UX with concrete violation/fix examples

Use the Read tool to load each file. Apply this knowledge when scoring and recommending.

What you evaluate

1. Spacing Consistency (weight: 30%)

  • Extract all spacing values (padding, margin, gap)
  • Is there a base unit? (4px or 8px grid)
  • How many values are off the grid?
  • Are there near-duplicate spacing values that should be consolidated?
  • Does spacing follow proximity principle? (related items closer, unrelated farther)

2. Grid System (weight: 20%)

  • CSS Grid vs Flexbox usage: appropriate for each context?
  • Column-based layout? How many columns?
  • Container queries usage (modern) vs media queries only?
  • Consistent alignment across sections?

3. Density (weight: 15%)

  • Overall visual density: dense, comfortable, or spacious?
  • Is density appropriate for the product type?
    • Dense: enterprise, data-heavy, power user tools
    • Comfortable: most consumer and SaaS apps
    • Spacious: marketing, editorial, onboarding
  • Padding within components: too tight (< 8px), comfortable (12-16px), generous (20px+)?
  • Gap between components: consistent?

4. Whitespace (weight: 15%)

  • Breathing room around key actions (CTAs, primary buttons)
  • Section separation: clear visual breaks between content sections?
  • Content not wall-to-wall: margins and padding create readability?
  • Asymmetric whitespace used intentionally for hierarchy?

5. Responsive Strategy (weight: 20%)

  • How many breakpoints? Are they well-chosen?
  • Container queries for component-level responsiveness?
  • Content reflows gracefully? (no horizontal scroll on mobile)
  • Touch targets grow on mobile? (44x44 minimum)
  • Container widths capped? (prevent overly wide content on ultrawide screens)
  • Content measure (line length) controlled at all sizes?

Read the full file on GitHub · 100 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 100 lines · 20 tokens per session scan A 853fd234cae2

Subscribe to this mod's changes

layout-analyst is an agent published in the GitHub repository Aboudjem/ui-ux-suite (7 stars, last pushed 3mo ago), licensed MIT. It adds 20 tokens to every session and 937 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

design-reviewer

Rigorously audits an existing UI (code, screenshot, or live page) against the UI/UX Design Pro knowledge base and returns prioritized, specific findings. Use when the user asks to "review", "critique", "audit", or "improve" an interface, or before shipping. Defaults to finding concrete issues — vague praise is a…

ca-who-codes/ultimate.UIUX.design.skills · 76 tokens

ui-designer

Designs a screen, flow, or component from a brief — establishing hierarchy, layout, tokens, states, and motion before (or instead of) writing code. Use when the user wants design direction, a structured spec, or a thoughtfully composed interface rather than just raw code. Pairs with the frontend-implementer agent for…

ca-who-codes/ultimate.UIUX.design.skills · 73 tokens

frontend-implementer

Builds production-quality, accessible UI code from a design or brief using the recommended modern stack (React + TypeScript + Tailwind v4 + shadcn/ui + Radix + Motion). Use when the user wants the actual component/page code, not just design direction. Produces clean, typed, accessible, state-complete components.

ca-who-codes/ultimate.UIUX.design.skills · 73 tokens

visual-designer

Designs and produces fixed-canvas visual & marketing collateral — presentations/decks, social carousels and posts, ads, A4/A3 posters, flyers, brochures, business cards, event banners/signage, email/newsletters, infographics, and brand kits. Use when the user wants a deck, carousel, creative, poster, or email — not an…

ca-who-codes/ultimate.UIUX.design.skills · 99 tokens

frontend-designer

Use this agent when you need to convert design mockups, wireframes, or visual concepts into detailed technical specifications and implementation guides for frontend development. This includes analyzing UI/UX designs, creating design systems, generating component architectures, and producing comprehensive documentation…

andisab/swe-marketplace · 356 tokens

design-reviewer

Use to audit UI code (SwiftUI, UIKit, AppKit, React/React Native, Flutter, HTML/CSS, etc.) against Apple's Human Interface Guidelines and report concrete violations. Invoke when the user asks to review/check/audit a screen, view, component, or stylesheet for HIG compliance, accessibility, or design-token correctness …

Elevatormusic/apple-hig · 102 tokens