agentleFS
sukirman1901sukirman1901/frontend-expert/skills/design-foundations/SKILL.md

design-foundations

Skill9 starsChanged 2 months agoMITView on GitHub

Use when creating or repairing the structural layout of a web screen: grid, spacing rhythm, alignment, hierarchy, density, composition, whitespace, or content grouping. Trigger for blank layouts, inconsistent spacing, weak hierarchy, cluttered screens, "layout terasa berantakan", "struktur layout", or "rapikan struktur". Skip isolated color, typography, component-state, motion, and micro-polish changes.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Design Foundations

Overview

Build structural order from content priority and user tasks. This skill owns relationships and layout logic, then hands token values and domain styling to their canonical owners.

When to use

  • Creating a screen or materially restructuring its layout
  • Repairing inconsistent spacing, weak hierarchy, clutter, or broken grouping
  • Choosing grid, container, alignment, density, whitespace, or section cadence
  • Checking whether realistic content destabilizes the composition

When to skip

  • Isolated color or theme work → design-color
  • Type selection or type-scale work → design-typography
  • Component states or composition without layout change → components
  • Motion-only or micro-polish changes → motion / polish

Ownership

ConcernOwner / handoff
Product emphasis and primary taskdesign-direction sets intent; foundations turns it into focal composition
Grid, containers, cadence, alignment, grouping, density, whitespacedesign-foundations
Spacing and size valuesFoundations defines relationships; tokens supplies values
Type roles, scale, wrapping rulesdesign-typography
Palette and contrast systemdesign-color
Radius, border, elevation, and surface stylingdesign-surfaces
Reusable UI behavior and statescomponents
Breakpoint transformations and device verificationresponsive
Optical cleanup after structure is soundpolish

MUST

RuleDetail
Content before geometryInventory priority, tasks, content shapes, and constraints before choosing layout
Relationships before valuesDefine container, grid, spacing, alignment, nesting, and focal relationships; obtain values from tokens
Shared anchorsUse deliberate edges, centers, or baselines; explain intentional exceptions
Hierarchy through compositionGive the primary task one clear focal path; group related content and separate unlike content
Density is contextualMatch task frequency, scan depth, and disclosure needs; never impose a universal density
Stress real contentVerify short, long, missing, repeated, localized, and stateful content before handoff
No universal geometryDo not hardcode one column count, container width, density, or nesting formula for every screen

Workflow

  1. Inventory — list user tasks, content priority, content shapes, actions, states, and constraints.
  2. Structure — choose task-shaped blocks from references/design-foundations.md; name each job/content/action, then choose container/grid and primary focal path. Different jobs need not share the same card shell.
  3. Rhythm — define a small set of spacing relationships and section cadence, then request token values.
  4. Align — establish shared edges, baselines, axes, and intentional alignment breaks.
  5. Density — tune grouping, whitespace, progressive disclosure, and scan depth for the task.
  6. Stress — test the content stress matrix and nested/inset geometry with realistic data.
  7. Hand off — route type, color, surfaces, components, breakpoints, and optical finishing to canonical owners.
  8. Verify — confirm hierarchy, selected-item context and local field/plot readability survive responsive transformations; no page overflow alone is insufficient evidence.

Agent boundaries

  • May decide: grid/container strategy, spacing relationships, section cadence, shared anchors, focal composition, density/grouping, whitespace, nesting/inset relationships, and content-stability corrections.
  • Must coordinate: intent with design-direction; values with tokens; type with design-typography; color with design-color; surface treatment with design-surfaces; behavior with components; breakpoint transformations with responsive; final optical correction with polish.
  • Must not: duplicate radius, color, type, breakpoint, or motion rules; prescribe universal dimensions; treat every group as a card; polish around unresolved structural problems.

Checklist

  • Primary task and content priority are visible in the composition
  • Container/grid strategy and shared anchors are explicit
  • Spacing cadence is relational and mapped to project tokens
  • Density, grouping, whitespace, and nesting support scanning
  • Realistic-content stress cases do not collapse the structure
  • Canonical owner handoffs are complete
  • Responsive transformations and conventions check reported

Depth

Full guide: references/design-foundations.md.

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.