layout-rules

layout-rules is a skill for Claude Code, Codex from glebis/humane-agentic-design. It costs 135 tokens per session (1,257 once invoked), scanned A, original, MIT.

A set of 39 rules for designing, building, or reviewing interfaces such as dashboards and developer tools. It covers layout, interaction, accessibility, tables, colors, themes, and other common defects.

In plain words
What is it for?
It is for checking interface plans, implementations, and browser screenshots against a practical defect checklist.
Why use it?
It helps teams spot recurring interface problems before or during implementation, including issues that may only appear with empty data, different themes, or touch input.

Skill for Claude CodeCodex

Part of the humane plugin — 16 skills, 1 agent 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/glebis/humane-agentic-design/layout-rules
Any agent
npx skills add glebis/humane-agentic-design --skill layout-rules
Clone the repo
git clone --depth 1 https://github.com/glebis/humane-agentic-design

Made for: Claude Code, Codex.

Or install humane, the plugin that ships this one along with the rest of its 16 skills, 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-rules

README.md
[![agentmods](https://agentmods.dev/badge/skills/glebis/humane-agentic-design/layout-rules.svg)](https://agentmods.dev/skills/glebis/humane-agentic-design/layout-rules)
Your own site
<a href="https://agentmods.dev/skills/glebis/humane-agentic-design/layout-rules"><img src="https://agentmods.dev/badge/skills/glebis/humane-agentic-design/layout-rules.svg" alt="Measured on agentmods" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,257 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.00135 $0.01257
Opus 5 $0.00068 $0.00629
Sonnet 5 $0.00027 $0.00251
Haiku 4.5 $0.00014 $0.00126

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

Security

Grade A, and why

layout-rules 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 4d 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.

humane/skills/layout-rules/SKILL.md · 84 lines

How it starts

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

Layout Rules

Announce at start: "I'm using the humane:layout-rules skill to check this layout against the defect avoid-list."

A defect-class avoid-list for tool/dashboard UIs. Every rule is a bug or design smell actually caught in a real build-and-audit cycle — treat them as hard constraints, not suggestions.

Usage

  1. Read the full ruleset: layout-design-rules.md, bundled next to this file (single source of truth — do not duplicate it here).
  2. Before designing: apply sections «Structure & hierarchy», «Color & contrast», «De-slop» as constraints in the design plan. Say explicitly which rules shaped the plan.
  3. While building: enforce «Footers, metrics, copy», «Tables & lists», «State & navigation», «Interaction correctness», «Accessibility & touch», «i18n & theming».
  4. After building: run the post-build checklist below; screenshot-test in a real browser (rule 29) on both themes and on an empty/minimal dataset (rule 30).

Post-build checklist (the ones most often violated)

  • Zero left-border accent rails (rule 1); zero eyebrow caps-labels (rule 2)
  • Third heading level actually exists and is distinguishable (rule 3)
  • Every verdict/summary line adds a conclusion or names a linked entity (rules 5, 8)
  • Every metric is informative or clickable-to-filter (rules 6–7)
  • Tables sortable + filterable, tabular-nums (rule 10)
  • Faintest text token clears 4.5:1 on both themes (rule 12)
  • Every app location has a URL; reload restores it exactly (rule 16)
  • [hidden]{display:none} for every display-classed component; close/reset logic before early returns in delegated handlers (rules 18–19)
  • SVG interactives: focus ring, keyboard activation, tap-tooltips (rules 22–23)
  • Both locales key-parity if i18n exists (rule 27)

Conflict precedence

The user's explicit words > this ruleset > project's existing system > personal taste. If a rule conflicts with an existing design system in the repo, flag it, don't silently rewrite.

Read the full file on GitHub · 84 lines

Files

What ships with it

2 files 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. 4d ago First seen · 84 lines · 135 tokens per session scan A 84684bf5d128

Subscribe to this mod's changes

layout-rules is a skill published in the GitHub repository glebis/humane-agentic-design (27 stars, last pushed 25d ago), licensed MIT. It adds 135 tokens to every session and 1,257 once invoked, about $0.0007 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-30.

Related

Other skills, from other repositories

ui-forge

Generate, implement, or redesign distinctive, premium web and app interfaces through product-derived art direction, visual assets, composition, typography, motion, responsive behavior, and anti-slop generation decisions. Use for frontend pages, product screens, dashboards, landing pages, design systems, UI components…

DNM03/ui-forge · 105 tokens

design-to-code-check

Check alignment between a specific design specification and its code implementation — a focused, single-component or single-screen comparison. Trigger when someone says: does this match the design, check implementation, design code alignment, what's different between the design and the build, spec check…

murphytrueman/design-system-ops · 95 tokens

brand-visual-language

A brand's visual tone — playful or serious, rounded or angular — should be consistent across all UI elements. Shape language in typography, border-radius, and iconography communicates personality before a single word is read. Use when establishing a design system, choosing icon libraries, setting border-radius tokens…

dembrandt/dembrandt-skills · 68 tokens

micro-interactions

Micro-interactions are small, purposeful animations and responses that reward the user and make the interface feel alive — an animated icon, a satisfying toggle, a subtle reveal. Borrowed from the natural world, they add delight without distraction. Use when designing interactive components, success states, toggles…

dembrandt/dembrandt-skills · 70 tokens

better-design

Build, improve, and review production interfaces with the Better Design MCP. Use for frontend design, UI, UX, interactions, flows, forms, navigation, components, styling, design systems, accessibility, responsive layouts, motion, React Native, Expo, Shopify, Three.js, and product video work, especially when creating…

marvkr/better-design · 77 tokens

elevation-and-depth

Elevation — subtle shadows and layering — communicates visual hierarchy by lifting elements above the surface. Combined with border-radius, it creates the tactile quality of cards, modals, and interactive surfaces. Use when designing cards, dropdowns, modals, tooltips, or any floating UI element.

dembrandt/dembrandt-skills · 62 tokens