layout-skill

layout-skill is a skill for Claude Code, Codex from daeryundf2-prog/LAZYANTIGRAVITY. It costs 88 tokens per session (2,032 once invoked), scanned A, a copy of layout-skill, MIT.

A layout guide for application screens with fixed regions and scrolling content, such as dashboards, settings pages, inboxes, and split panes. It explains which part should scroll and how layouts should handle long, empty, or unbroken content.

In plain words
What is it for?
Use it to structure app shells, sidebars, list-and-detail views, mail screens, command panels, and other multi-region interfaces.
Why use it?
It prevents common layout problems such as the whole page scrolling when only a panel should, competing scrollbars, or headers that move away unexpectedly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to structure app shells, sidebars, list-and-detail views, mail screens, command panels, and other multi-region interfaces.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/daeryundf2-prog/lazyantigravity/layout
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 daeryundf2-prog/LAZYANTIGRAVITY --skill layout
Clone the repo
git clone --depth 1 https://github.com/daeryundf2-prog/LAZYANTIGRAVITY

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/daeryundf2-prog/lazyantigravity/layout/github.svg)](https://agentmods.dev/skills/daeryundf2-prog/lazyantigravity/layout)
Your own site
<a href="https://agentmods.dev/skills/daeryundf2-prog/lazyantigravity/layout"><img src="https://agentmods.dev/badge/skills/daeryundf2-prog/lazyantigravity/layout/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-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/daeryundf2-prog/lazyantigravity/layout"><img src="https://agentmods.dev/badge/skills/daeryundf2-prog/lazyantigravity/layout.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,032 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 100% copy Near-identical to another mod 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.00088 $0.02032
Opus 5.5 $0.00035 $0.00813
Sonnet 5.5 $0.00018 $0.00406
Haiku 4.5 $0.00009 $0.00203

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

Security

Grade A, and why

layout-skill 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 19d 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.

Origin

This is a copy

100% identical to layout-skill — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

shared-skills/skills/frontend/references/design/layout-skill.md · 108 lines

How it starts

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

Layout Mechanics

Style skills decide how a surface looks. This file decides how it is built to hold content — what scrolls, what stays fixed, how regions shrink, and which layouts survive real data. It stacks on top of any Layer A style skill (taste-skill, minimalist-skill, soft-skill, brutalist-skill, gpt-tasteskill) and any Layer B brand. It adds ZERO visual direction — color, type, shadow, radius, and motion still come from the style skill and DESIGN.md.

Load this when the screen is an application shell, not a scroll-the-whole-document marketing page: dashboards, settings, list-detail, mail/inbox, command surfaces, split panes, sidebars — or when a page that looked fine breaks the moment content gets long, empty, or unbroken.

1. Scroll ownership — decide this BEFORE writing layout CSS

The single most common agent-built layout bug is an app shell where the wrong thing scrolls: the whole page scrolls when only a panel should, two panels fight over the scrollbar, or a "fixed" header scrolls away. Prevent it by naming ownership up front, in DESIGN.md and in the component:

  • What scrolls? Name the ONE element that owns vertical scroll for this region.
  • What stays fixed? Header, sidebar, footer, toolbar — list them.
  • Where is height determined? The scroll container needs a bounded height ancestor, or it will grow instead of scroll.

Rules:

  • One scroll container per region unless each extra one has a named job. Nested scrollbars with no declared responsibility are a defect — the user loses track of what a wheel/trackpad gesture will move.
  • Full-height shells are bounded by 100dvh/100dvb (dynamic viewport units), never 100vh — vh causes the iOS Safari address-bar jump.
  • A sticky element (position: sticky) follows document scroll; a fixed shell region (grid row/column with overflow: auto body) owns its own scroll. Do not mix the two models in one region without reason.

2. The two CSS contracts agents get wrong

Read the full file on GitHub · 108 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. 19d ago First seen · 108 lines · 88 tokens per session scan A bf38b363120c

Subscribe to this mod's changes

layout-skill is a skill published in the GitHub repository daeryundf2-prog/LAZYANTIGRAVITY (14 stars, last pushed 3d ago), licensed MIT. It adds 88 tokens to every session and 2,032 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to layout-skill, differing in 2 lines, and is treated as a copy.