god-layout
Skill0 starsChanged 2 months agoMITView on GitHub
Layout, grids and composition - column/modular/baseline grids, spacing scales, visual hierarchy, Gestalt principles, rule of thirds, golden ratio, Z/F reading patterns, whitespace, alignment, rhythm, focal points and responsive layout patterns (CSS Grid/Flexbox). Use when arranging elements on a page, poster, slide or screen, or when a design feels cluttered, unbalanced or flat.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- god-accessibilitySkill
- god-anti-slopSkill
- god-brandingSkill
- god-colorSkill
- god-datavizSkill
- god-imagegenSkill
- god-mobileSkill
- god-motionSkill
- god-of-designSkill
- god-outputSkill
- god-presentationsSkill
- god-printSkill
- god-reviewSkill
- god-social-mediaSkill
- god-stylesSkill
- god-tokensSkill
- god-typographySkill
- god-ui-uxSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Align everything: Every element should share an edge or centre line with something else.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
God Layout
Procedure
- One focal point per view. Decide what is seen first, second and third. Build hierarchy with size, contrast, position, isolation and colour, in roughly that order of strength.
- Pick a grid for the medium.
- Web: 12 columns (desktop), 8 (tablet), 4 (mobile); gutters 16–32px; max content width 1120–1280px; reading column ≤ 720px.
- App: 4/8pt spacing grid; margins 16–24px (mobile).
- Poster/print: modular grid (e.g. 6×8 modules) with baseline grid, margins ≥ 5% of the short side.
- Slides: 12-col on 1920×1080 with 96–120px safe margins.
- Social: square/vertical modular grid with platform safe zones (see
god-social-media).
- Use a spacing scale.
4, 8, 12, 16, 24, 32, 48, 64, 96, 128(px). Related items sit closer than unrelated ones (proximity). Space between sections should be at least 2× the space within them. - Align everything. Every element should share an edge or centre line with something else. Pick left alignment for reading layouts. Centre only short, symmetric compositions.
- Create rhythm and tension. Repeat a module, then break it once on purpose (a large image, an offset quote). Pure uniformity is boring; uncontrolled variety is noise.
- Check balance by squinting or blurring: is the visual weight distributed intentionally (symmetric or asymmetric)?
Composition toolkit
| Tool | Rule | When |
| Rule of thirds | Focal points on the 1/3 intersections | Photos, heroes, posters |
| Golden ratio (1:1.618) | Column splits like 62/38; type scale 1.618 | Editorial, classical |
| Z-pattern | Eye moves top-left → top-right → diagonal → bottom-right | Sparse pages, landing heroes |
| F-pattern | Users scan the left edge and first lines | Text-heavy pages: front-load words |
| Gutenberg diagram | Strong fallow areas top-right/bottom-left | Ads and posters: put the CTA bottom-right |
| Gestalt: proximity, similarity, continuity, closure, figure-ground, common region | Grouping without boxes | Reduce borders and cards |
| Visual weight | Large, dark, saturated, complex and isolated elements weigh more | Balancing asymmetry |
| Negative space | Space is an active element | Luxury, focus, readability |
| Scale contrast | Display:body ≥ 3:1 for drama (posters 8:1+) | Energy |
| Grid breaking | One element crosses the grid deliberately | Interest |
Responsive patterns (CSS)
/* Intrinsic auto-fit grid: no media queries */
.grid { display:grid; gap: clamp(1rem, 2vw, 2rem);
grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
/* Classic 12-col */
.page { display:grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
max-width: 1200px; margin-inline:auto; padding-inline: clamp(16px, 4vw, 48px); }
/* Full-bleed inside a constrained column */
.content { display:grid; grid-template-columns: 1fr min(65ch, 100% - 2rem) 1fr; }
.content > * { grid-column: 2; } .content > .bleed { grid-column: 1 / -1; }
/* Container queries for components */
.card-wrap { container-type: inline-size; }
@container (min-width: 32rem) { .card { grid-template-columns: 1fr 2fr; } }Breakpoints (content-driven, typical): 640, 768, 1024, 1280, 1536px (Tailwind defaults). Design mobile first. Test at 320px wide and at 200% zoom (WCAG 1.4.10 reflow).
Layout archetypes
- Hero + proof + features + CTA (marketing). Vary the feature sections; don't repeat a 3-card row four times.
- Split screen (50/50 or 60/40): image vs text, before vs after.
- Bento (asymmetric modular tiles).
- Editorial long-read (narrow column + full-bleed images + pull quotes).
- Dashboard (top KPIs → trends → details; left nav; 8pt density).
- Poster (one dominant image or type, a secondary info block, a tertiary small print strip).
- Masonry / Pinterest (variable heights; use CSS
columnsor a grid withmasonrywhere supported).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

