agentleFS
Above-the-Fold-StudioAbove-the-Fold-Studio/designmd-skills/skills/layout-and-spacing/SKILL.md

layout-and-spacing

Skill0 starsChanged 3 months agoMITView on GitHub

Create coherent interface layouts and spacing systems that preserve relationships across screen sizes.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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
  1. Distinctive:

    Use this for page structure, grids, component composition, density, or inconsistent spacing across viewports.

    line 9
  2. Distinctive:

    Do not force every surface onto one grid.

    line 12
  3. Distinctive:

    Test narrow and wide widths, zoom, long content, missing content, nested components, focus rings, touch targets, and dynamic state changes.

    line 28
  4. Distinctive:

    Check that source order remains logical and that visual rearrangement does not break reading or keyboard order.

    line 30

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Layout and Spacing

Clarify relationships through containment, alignment, proportion, and space. Use this for page structure, grids, component composition, density, or inconsistent spacing across viewports.

Do not force every surface onto one grid. Do not use fixed coordinates for content that must reflow, and do not add containers where spacing alone communicates the relationship.

Workflow

  1. Map content relationships and interaction order before selecting columns or breakpoints.
  2. Identify the true containing blocks, alignment anchors, repeated gaps, and regions that need independent scrolling or sticky behavior.
  3. Reuse existing spacing and layout tokens where they express the intended relationships. Consolidate near-duplicates instead of adding arbitrary gaps.
  4. Design from intrinsic content outward. Prefer fluid sizing, min/max constraints, wrapping, and layout primitives over viewport-specific patches.
  5. Make spacing carry meaning: tighter within a group, larger between groups, consistent around equivalent components.
  6. Test narrow and wide widths, zoom, long content, missing content, nested components, focus rings, touch targets, and dynamic state changes.
  7. Check that source order remains logical and that visual rearrangement does not break reading or keyboard order.

Output

Return the layout model, key alignment and spacing decisions, reusable tokens or constraints, breakpoint reasons, and verified edge conditions.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.