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.
npx agentmods add skills/lenxism/ives/layout-spacingnpx skills add lenxism/ives --skill layout-spacinggit clone --depth 1 https://github.com/lenxism/ivesWrote 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.
[](https://agentmods.dev/skills/lenxism/ives/layout-spacing)<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>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.
| Model | Per session | Once 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 |
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.
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
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.
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.
- 3d ago First seen · 116 lines · 105 tokens per session scan A ed15308870db
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.
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.
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.
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…
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.
desktop-principles
Desktop-specific UX principles - hover states, pointer precision, keyboard shortcuts, multi-window, focus management. Covers macOS, Windows, Linux, web desktop.
taiyi-ui-design
TaiyiForge 第 4 阶段 — UI/UX 契约,产出 UI-DESIGN.md。四端通用。.