layout-spatial-structure

layout-spatial-structure is a skill for Claude Code from oborchers/fractional-cto. It costs 82 tokens per session (1,241 once invoked), scanned A, original, MIT.

A guide to arranging web pages with grids, columns, cards, sidebars, and consistent spacing. It explains when to use CSS Grid or Flexbox, which are browser tools for positioning elements.

In plain words
What is it for?
Use it when designing page-level layouts, card grids, responsive columns, sidebars, or alignment rules in CSS. It is also useful for checking an existing screen against a grid system.
Why use it?
It helps prevent misaligned elements, uneven spacing, and layouts that break as screens change size. It gives a clear structure for reviewing or building a page.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the visual-design-principles plugin — 12 skills, 1 command, 1 agent shipped together

Good fit Use it when designing page-level layouts, card grids, responsive columns, sidebars, or alignment rules in CSS. It is also useful for checking an existing screen against a grid system.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/oborchers/fractional-cto/layout-spatial-structure
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 oborchers/fractional-cto --skill layout-spatial-structure
Clone the repo
git clone --depth 1 https://github.com/oborchers/fractional-cto

Made for: Claude Code.

Or install visual-design-principles, the plugin that ships this one along with the rest of its 12 skills, 1 command, 1 agent.

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-spatial-structure

README.md
[![agentmods](https://agentmods.dev/badge/skills/oborchers/fractional-cto/layout-spatial-structure/github.svg)](https://agentmods.dev/skills/oborchers/fractional-cto/layout-spatial-structure)
Your own site
<a href="https://agentmods.dev/skills/oborchers/fractional-cto/layout-spatial-structure"><img src="https://agentmods.dev/badge/skills/oborchers/fractional-cto/layout-spatial-structure/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-spatial-structure

Your own site · 80×15
<a href="https://agentmods.dev/skills/oborchers/fractional-cto/layout-spatial-structure"><img src="https://agentmods.dev/badge/skills/oborchers/fractional-cto/layout-spatial-structure.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,241 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.00082 $0.01241
Opus 5.5 $0.00033 $0.00496
Sonnet 5.5 $0.00016 $0.00248
Haiku 4.5 $0.00008 $0.00124

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

Security

Grade A, and why

layout-spatial-structure 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 5d 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.

visual-design-principles/skills/layout-spatial-structure/SKILL.md · 87 lines

How it starts

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

The Grid Is the Architecture — Everything Else Is Decoration

Every professional layout is built on a grid. The grid is not a suggestion — it is the structural skeleton that makes alignment effortless, spacing predictable, and responsive behavior automatic. Material Design, Bootstrap, and every major design system converge on the same fundamentals: a 12-column grid with an 8-point spacing system.

12-Column Grid Anatomy

Component Purpose Typical Value
Columns Content containers; 12 divides evenly by 2, 3, 4, 6 12 columns
Gutters Space between columns; consistent rhythm 16px–32px (24px default)
Margins Outer breathing room on left/right edges 16px mobile, 24px tablet, auto-center desktop
Container Max-width wrapper preventing ultra-wide lines 1200px–1440px

Grid adherence rule: >90% of element edges must align to grid lines. Audit by overlaying a 12-column grid on any screen — misaligned elements are immediately visible.

CSS Grid vs Flexbox Decision Table

Use Case Choose Reason
Page-level layout (header, sidebar, main, footer) CSS Grid Two-dimensional control over rows and columns
Card grids with uniform items CSS Grid auto-fit/auto-fill with minmax() handles responsiveness
Navigation bars, button groups Flexbox One-dimensional alignment with wrapping
Centering a single element Flexbox justify-content + align-items in three lines
Overlapping elements or complex placement CSS Grid Named grid areas and explicit row/column placement
Unknown number of items in a row Flexbox flex-wrap distributes naturally

Default rule: Start with CSS Grid for layout, drop to Flexbox for component-level alignment.

Spacing System

Use the constrained 4px/8px spacing scale defined in the whitespace-density skill. All grid gutters, margins, and padding must come from that scale. Never use arbitrary spacing values.

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

Subscribe to this mod's changes

layout-spatial-structure is a skill published in the GitHub repository oborchers/fractional-cto (32 stars, last pushed 5d ago), licensed MIT. It adds 82 tokens to every session and 1,241 once invoked, about $0.0003 per session on Opus 5.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-10-13.

Related

Other skills, from other repositories

anti-slop-design

Autonomous Principal Design Technologist. Cures vibe-coded software from AI frontend slop using curated token archetypes and 7-axis quality gating.

sickn33/agentic-awesome-skills · 34 tokens

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ultragoal with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 52 tokens

frontend-ui-dark-ts

Build dark-themed React applications using Tailwind CSS with custom theming, glassmorphism effects, and Framer Motion animations. Use when creating dashboards, admin panels, or data-rich interfaces with a refined dark aesthetic.

microsoft/skills · 48 tokens

prototype-web

A clickable, high-fidelity web product prototype with navigation, a hero section, feature cards, steps, social proof, and optional pricing. It is designed to resemble a finished landing page while remaining a prototype.

nexu-io/html-anything · 24 tokens

frontend-visual-qa

Audits rendered UI and specific task/object-link handoffs; excludes ordinary source citations alone. Audits already-rendered UI and Markdown/Obsidian image layout — web app, deck/slide, dashboard, design-system, or Electron/native app — via real-browser/native-app journeys and a Playwright sweep. Use after UI…

daymade/claude-code-skills · 125 tokens