layout-audit

layout-audit is a skill for Claude Code from soumyachk101/VibeLens. It costs 87 tokens per session (2,724 once invoked), scanned A, original, MIT.

A layout and spacing review for a locally running web page. It examines spacing, content grouping, page width, alignment, layout methods, stacking order, and content being cut off on desktop, tablet, and mobile screens.

In plain words
What is it for?
Use it to review padding, margins, gaps, responsive breakpoints, container widths, grid or flex layouts, z-index values, and overflow.
Why use it?
It replaces guesses about why a page feels cramped, uneven, or misaligned with checks of the rendered page at different sizes.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the vibelens plugin — 12 skills, 4 agents, 1 hook shipped together

Good fit Use it to review padding, margins, gaps, responsive breakpoints, container widths, grid or flex layouts, z-index values, and overflow.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/soumyachk101/vibelens/layout-audit
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.

Any agent
npx skills add soumyachk101/VibeLens --skill layout-audit
Clone the repo
git clone --depth 1 https://github.com/soumyachk101/VibeLens

Made for: Claude Code.

Or install vibelens, the plugin that ships this one along with the rest of its 12 skills, 4 agents, 1 hook.

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-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/soumyachk101/vibelens/layout-audit/github.svg)](https://agentmods.dev/skills/soumyachk101/vibelens/layout-audit)
Your own site
<a href="https://agentmods.dev/skills/soumyachk101/vibelens/layout-audit"><img src="https://agentmods.dev/badge/skills/soumyachk101/vibelens/layout-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for layout-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/soumyachk101/vibelens/layout-audit"><img src="https://agentmods.dev/badge/skills/soumyachk101/vibelens/layout-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,724 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00087 $0.02724
Opus 5 $0.00044 $0.01362
Sonnet 5 $0.00017 $0.00545
Haiku 4.5 $0.00009 $0.00272

Measured 10d ago against content hash 0fc391ba2bdd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

layout-audit 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 10d 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.

plugin/skills/layout-audit/SKILL.md · 188 lines

How it starts

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

Layout and spacing audit

Target: $ARGUMENTS (if empty, ask for the URL, and ask whether the whole page or one section is in scope).

Steps

  1. Capture the page at both ends of the range. Call inspect_localhost_ui twice with fullPage: true — once viewport: "desktop" (1920×1080) and once viewport: "mobile" (390×844) — with a delay high enough that the page has hydrated. fullPage: true is not optional here: spacing drifts most in the sections nobody scrolls to, and a viewport-only capture will not show them. Add viewport: "tablet" when the desktop and mobile captures disagree about the structure, since the breakpoint between them is where the third layout hides. Check summary.domTruncated; if it is true, scope every finding to the part of the tree you actually read and say which regions you could not reach.

  2. Inventory the spacing values actually in use. Read every spacing utility out of simplifiedDOMp-*, px/py/pt/pr/pb/pl-*, m-*, gap-*, space-x/y-*, plus arbitrary values (p-[13px], mt-[7px]) and inline padding/margin declarations. List the distinct values and their frequency before judging anything. Then flag:

    • Off-scale values. A page using p-4, p-6, p-8 and then one p-[13px] has one element that will always look slightly wrong. Arbitrary one-off values are the clearest signal that spacing was guessed per element rather than chosen from a system.
    • Too many neighbouring steps. gap-3, gap-3.5 and gap-4 in the same region are differences nobody can perceive but everybody has to maintain. Collapse them.
    • Stacked spacing. A parent p-6 wrapping a child mt-6 produces 48px where 24 was intended. Look for margin on the first or last child inside a padded container, and for space-y-* combined with per-child margins.
    • Both margin and gap doing the same job. Pick one — gap on the flex or grid parent — and remove the child margins.

Read the full file on GitHub · 188 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. 10d ago First seen · 188 lines · 87 tokens per session scan A 0fc391ba2bdd

Subscribe to this mod's changes

layout-audit is a skill published in the GitHub repository soumyachk101/VibeLens (0 stars, last pushed 3d ago), licensed MIT. It adds 87 tokens to every session and 2,724 once invoked, about $0.0004 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 skills, from other repositories

frontend-ui-engineering

Builds production-quality, accessible, responsive user-facing UIs. Use when building or modifying interfaces and pages, creating components, implementing layouts, meeting WCAG accessibility requirements, managing state, or when the output needs to look and feel production-quality rather than AI-generated.

addyosmani/agent-skills · 58 tokens

21st-ui

Find, install, and generate UI with 21st.dev. Use when the user asks for a UI component (pricing table, hero, navbar, dashboard, form, etc.), wants design inspiration, needs a brand logo as an SVG component, or wants to generate new UI from a prompt.

21st-dev/magic-mcp · 63 tokens

ui-designer

Elite UI/UX Design Lead & Frontend Architect. Generates distinctive, non-templated interfaces with opinionated aesthetics, deliberate typography, and exact UX copy. Triggers on UI design, frontend styling, or layout creation.

GulajavaMinistudio/awesome-copilot-id · 49 tokens

impeccable

Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, settings, onboarding, and empty states.…

GulajavaMinistudio/awesome-copilot-id · 189 tokens

shadcnui

Skill "shadcnui" from G1Joshi/Agent-Skills, covering shadcn/ui, when to use, core concepts, copy/paste and radix ui.

G1Joshi/Agent-Skills · 21 tokens

bootstrap

Bootstrap CSS framework for responsive design. Use for quick styling.

G1Joshi/Agent-Skills · 14 tokens