layout-spacing

layout-spacing is a skill for Claude Code, Codex from lenxism/ives. It costs 105 tokens per session (1,026 once invoked), scanned A, original, MIT.

A guide to arranging interface elements using containers, grids, alignment, spacing, and visual balance.

In plain words
What is it for?
It helps set content widths, align sections, choose spacing, manage dense or open layouts, and design interfaces that adapt to user interaction.
Why use it?
It explains why a layout can feel wrong even when its individual parts work, and provides principles for making relationships between elements clearer.

Skill for Claude CodeCodex

Part of the ives plugin — 13 skills 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 skills/lenxism/ives/layout-spacing
Any agent
npx skills add lenxism/ives --skill layout-spacing
Clone the repo
git clone --depth 1 https://github.com/lenxism/ives

Made for: Claude Code, Codex.

Or install ives, the plugin that ships this one along with the rest of its 13 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/lenxism/ives/layout-spacing.svg)](https://agentmods.dev/skills/lenxism/ives/layout-spacing)
Your own site
<a href="https://agentmods.dev/skills/lenxism/ives/layout-spacing"><img src="https://agentmods.dev/badge/skills/lenxism/ives/layout-spacing.svg" alt="Measured on agentmods" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,026 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.00105 $0.01026
Opus 5 $0.00053 $0.00513
Sonnet 5 $0.00021 $0.00205
Haiku 4.5 $0.00011 $0.00103

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

Security

Grade A, and why

layout-spacing 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 3d 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.

skills/layout-spacing/SKILL.md · 116 lines

How it starts

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

Layout & Spacing

The tri-factor of beautiful design is good typography, good negative space, and good alignment. Layout is where most interfaces feel "off" without anyone being able to articulate why.

Read references/layout-knowledge.md for detailed analysis and examples.

The Box Model Mindset

Every interface element is a box. Master the box model and you master layout:

  • Content — The actual text, image, or element
  • Padding — Space between content and its container edge
  • Border — The container boundary (visible or not)
  • Margin — Space between this container and neighboring elements

Consistency in these values across your interface is more important than the specific values chosen.

Grids and Containers

Use grids as guides, not prisons. The implicit grid — alignment edges that emerge naturally from your content — is more important than a formal column grid.

Key principles:

  • Establish strong left and right edges early
  • Content within a container can create a new indented left edge to show ownership (parent-child relationship)
  • Align everything to as few vertical rules as possible
  • When elements share an alignment edge, the eye groups them as related

Negative Space

Negative space is not empty space — it's a design tool.

  • Between related items: Keep tight. Labels and values, icons and text should feel coupled (8-12px).
  • Between unrelated sections: Keep generous. Make grouping obvious (24-48px+).
  • Around primary content: More space = more importance. Give key elements room to breathe.
  • Inside containers: Balance padding so content feels centered or slightly top-aligned, never bottom-heavy.

The ratio between inner spacing and outer spacing communicates hierarchy. Items with tight internal spacing and generous external spacing read as cohesive groups.

Alignment

Left-edge alignment

The most critical alignment in interface design. A strong left edge:

  • Creates a visual anchor the eye returns to
  • Groups related content
  • Makes scanning efficient

Read the full file on GitHub · 116 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago First seen · 116 lines · 105 tokens per session scan A ed15308870db

Subscribe to this mod's changes

layout-spacing is a skill published in the GitHub repository lenxism/ives (5 stars, last pushed 6mo ago), licensed MIT. It adds 105 tokens to every session and 1,026 once invoked, about $0.0005 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

material-ui-tailwind

Integrates Material UI with Tailwind CSS v4 using cascade layers (enableCssLayer, @layer order) and documents Tailwind v3 interoperability (preflight, important, injectFirst, portals). Use when combining MUI with Tailwind utilities, slotProps className, or theme token bridges.

mui/material-ui · 67 tokens

hallmark

Anti-AI-slop design skill for greenfield pages, audits, redesigns, and design extraction from URLs or screenshots. Use when the user asks to build a new app or landing page, wants to redesign something, invokes Hallmark by name, or uses audit/redesign/study.

Nutlope/hallmark · 61 tokens

read

Reads URLs and PDFs by fetching source content, defaulting to concise summaries for plain read requests and clean Markdown when asked to convert, save, quote, cite, or feed downstream work. Use when users ask in any language to read, fetch, check, summarize, quote, cite, convert, or save a URL or PDF. Not for local…

tw93/Waza · 78 tokens

accessibility

Consolidated accessibility skill entrypoint for WCAG 2.2, ARIA Authoring Practices, cognitive accessibility, Section 508, EN 301 549, design intent verification, and the Accessibility Planner workflow.

microsoft/hve-core · 47 tokens

desktop-principles

Desktop-specific UX principles - hover states, pointer precision, keyboard shortcuts, multi-window, focus management. Covers macOS, Windows, Linux, web desktop.

Jwuthri/Tracely-ai · 36 tokens

taiyi-ui-design

TaiyiForge 第 4 阶段 — UI/UX 契约,产出 UI-DESIGN.md。四端通用。.

Dong90/oh-my-taiyiforge · 35 tokens