agentleFS
Lukk17Lukk17/agent-standards/.agents/skills/frontend-design/SKILL.md

frontend-design

Skill1 starsChanged 58 days agoMITView on GitHub

Give an interface a committed visual direction, covering composition, typography, colour, background atmosphere, and motion. Use when you say "make this page look designed", "this dashboard looks generic", "pick a visual direction for the landing page", "turn this card grid into something intentional", or "it works but it has no point of view". Not for token architecture, theming, and styling structure, use `design-system`.

189 other projects use a version of this, 2 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use file-reading, arrange and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SeifBenayedSkill

    file-reading

    Use this skill when a file has been uploaded but its content is NOT in your context — only its path at /mnt/user-data/uploads/ is listed in an uploaded_files block. This skill is a router: it tells you which tool to use for each file type (pdf, docx, xlsx, csv, json, images, archives, ebooks) so you read the right amount the right way instead of blindly running cat on a binary. Triggers: any mention of /mnt/user-data/uploads/, an uploaded_files section, a file_path tag, or a user asking about an uploaded file you have not yet read. Do NOT use this skill if the file content is already visible in your context inside a documents block — you already have it.

    Also in 7 projects that use this

  • nikafastovets-langSkill

    arrange

    Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy to create intentional compositions.

    Also in 6 projects that use this

  • mm-mazharSkill

    cache-components

    Expert guidance for Next.js Cache Components and Partial Prerendering (PPR).

    Also in 6 projects that use this

  • SeifBenayedSkill

    pdf-reading

    Use this skill when you need to read, inspect, or extract content from PDF files — especially when file content is NOT in your context and you need to read it from disk. Covers content inventory, text extraction, page rasterization for visual inspection, embedded image/attachment/table/form-field extraction, and choosing the right reading strategy for different document types (text-heavy, scanned, slide-decks, forms, data-heavy). Do NOT use this skill for PDF creation, form filling, merging, splitting, watermarking, or encryption — use the pdf skill instead.

    Also in 6 projects that use this

  • JokerRunSkill

    compound-engineering

    Compound Engineering workflow for AI-assisted development. Use when planning features, executing work, reviewing code, or codifying learnings. Follows the Plan → Work → Review → Compound loop where each unit of engineering makes subsequent work easier. Triggers on: plan this feature, implement this, review this code, compound learnings, create implementation plan, systematic development.

    Also in 5 projects that use this

  • mtctSkill

    teach-impeccable

    One-time setup that gathers design context for your project and saves it to your AI config file. Run once to establish persistent design guidelines.

    Also in 10 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 180 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every animation still has to respect the user's motion preference.

    line 184

“Common” is measured: kept by at least 6 in 10 of the 180 edited versions of this file we could read. “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

Frontend Design

Direction and composition for interfaces that need a point of view, not just working markup. Use this when the task is not "make it work" but "make it look designed", on landing pages, dashboards, app shells, and marketing surfaces.


When to activate

  • Building a landing page, dashboard, or app surface from scratch where the look matters.
  • Upgrading a bland interface into something intentional and memorable.
  • Translating a product concept into a concrete visual direction.
  • Implementing a frontend where typography, composition, and motion carry the product.
  • Reviewing a UI that works but reads as generic template output.

When not to activate

  • Token architecture, theming, and stylesheet structure, and token-level slop such as raw hex values or off-scale spacing. Use design-system.
  • Contrast ratios, focus indicators, target sizes, and reduced motion. Use web-accessibility.
  • React component structure, hooks, and state. Use react-patterns.
  • Next.js rendering, routing, and data. Use nextjs-app-router-patterns.
  • Angular component and template work. Use angular.

Commit to one direction before writing CSS

Safe-average UI is worse than a coherent aesthetic with a few bold choices. Settle the purpose, the audience, the emotional tone, the direction, and the one thing the user should remember, then execute that one direction cleanly. Workable directions include brutally minimal, editorial, industrial, luxury, playful, geometric, retro-futurist, soft and organic, and maximalist. Do not blend them casually.

PASS: editorial. Serif display at 4rem, tight leading, hairline rules, one ink accent, generous outer margin,
asymmetric two-column body. Every later decision gets checked against that sentence.
FAIL: "modern and clean, but also bold and playful, with a professional feel." Four directions, no decisions,
and the result will read as a template.

Define the visual system once, in variables

Type hierarchy, colour, spacing rhythm, layout logic, motion rules, and surface treatment get named once and reused. An interface that grows by inventing values drifts within a week.

/* PASS: named decisions the whole surface reuses */
:root {
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --step-0: 1rem;
  --step-3: clamp(2.5rem, 5vw, 4rem);
  --space-3: 12px;
  --space-8: 64px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
/* FAIL: values invented per component, nothing shared */
.hero h1 { font-size: 41px; margin-bottom: 27px; }
.card h3 { font-size: 19px; margin-bottom: 13px; }

Compose with intention, not with a default grid

Asymmetry sharpens hierarchy, overlap creates depth, and whitespace directs focus. A symmetrical card grid is the default that happens when nobody decided anything, so reach for it only when the content genuinely is a set of peers.

Here is the same three-item section twice. The first is what generic output looks like: three identical boxes, equal weight, no entry point for the eye.

<!-- FAIL: three peers, nothing leads, the reader has no route through it -->
<section class="grid">
  <article class="card"><h3>Atlas</h3><p>Logistics dashboard</p></article>
  <article class="card"><h3>Ferrous</h3><p>Steel marketplace</p></article>
  <article class="card"><h3>Quill</h3><p>Editorial platform</p></article>
</section>
/* FAIL: the grid is doing the designing */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { padding: 24px; border: 1px solid #e5e7eb; border-radius: 12px; }

The second commits to an editorial direction. One item leads at display size, the other two become a numbered index in a narrower column, and hairline rules replace the boxes. Same content, same component count, one clear route through it.

<!-- PASS: one lead, a supporting index, an explicit reading order -->
<section class="work">
  <article class="work__lead">
    <p class="work__kicker">Selected work</p>
    <h3>Atlas</h3>
    <p class="work__blurb">A logistics dashboard for freight forwarders moving 40,000 containers a month.</p>
  </article>
  <article class="work__item"><h3>Ferrous</h3><p>Steel marketplace</p></article>
  <article class="work__item"><h3>Quill</h3><p>Editorial platform</p></article>
</section>
/* PASS: asymmetric columns, one dominant voice, rules instead of boxes */
.work {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--space-3) var(--space-8);
  align-items: start;
  counter-reset: entry;
}

.work__lead { grid-row: span 2; }

.work__kicker {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.work__lead h3 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 0.95;
  margin: var(--space-3) 0;
}

.work__item {
  counter-increment: entry;
  border-top: 1px solid var(--color-rule);
  padding-top: var(--space-3);
}

.work__item h3::before {
  content: counter(entry, decimal-leading-zero);
  margin-inline-end: var(--space-3);
  color: var(--color-ink-muted);
  font-variant-numeric: tabular-nums;
}

Break the grid when the composition benefits, use diagonals, offsets, and grouping deliberately, and keep the reading flow obvious even when the layout is unconventional.


Direct the motion instead of scattering it

One well-directed load sequence beats twenty random hover effects. Animation should reveal hierarchy, stage information, reinforce an action, or create one memorable moment. Anything else is decoration that costs frames.

/* PASS: one staged reveal that establishes the hierarchy on entry */
.hero > * { opacity: 0; transform: translateY(12px); animation: rise 600ms var(--ease-out) forwards; }
.hero > :nth-child(2) { animation-delay: 90ms; }
.hero > :nth-child(3) { animation-delay: 180ms; }
/* FAIL: every element animating on its own for no reason */
.card:hover { transform: scale(1.04) rotate(1deg); }
.badge { animation: pulse 2s infinite; }
.icon:hover { animation: spin 400ms; }

Every animation still has to respect the user's motion preference. See web-accessibility for the rule and the implementation.


Choose type with character

Typeface choice carries more of the direction than any other single decision. Pair a distinctive display face with a readable body face when the page is design-led, and let the scale do the work instead of weight alone.

/* PASS: a display voice and a working body face, with real scale contrast */
h1 { font-family: var(--font-display); font-size: var(--step-3); line-height: 0.95; letter-spacing: -0.02em; }
p  { font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; max-width: 62ch; }
/* FAIL: one system stack, hierarchy faked with bold */
h1 { font-family: system-ui; font-size: 1.5rem; font-weight: 700; }
p  { font-family: system-ui; font-size: 1rem; }

Weight the palette

One dominant field with selective accents reads as designed. Evenly weighted palettes read as a colour picker. Avoid the purple-to-blue gradient on white unless the product genuinely calls for it.

/* PASS: a dominant ground, one accent that means something */
:root {
  --color-ground: #12100e;
  --color-ink: #f5f1ea;
  --color-ink-muted: #8b857c;
  --color-accent: #e4572e;
}
/* FAIL: five accents of equal weight, none of them signals anything */
:root { --blue: #3b82f6; --purple: #a855f7; --pink: #ec4899; --green: #22c55e; --amber: #f59e0b; }

Colour is direction here. Where those values live, how they are named, and how they invert for dark mode belong to design-system, and whether they clear contrast minimums belongs to web-accessibility.


Give the background atmosphere

A flat empty background is rarely the best answer on a product-facing page. Gradients, meshes, textures, subtle noise, patterns, and layered transparency all add depth, as long as they stay behind the content rather than competing with it.

/* PASS: layered ground that stays behind the type */
.hero {
  background:
    radial-gradient(60% 80% at 20% 0%, rgba(228, 87, 46, 0.18), transparent 70%),
    linear-gradient(180deg, #12100e, #1c1916);
}
/* FAIL: flat white, or a busy field the text has to fight */
.hero { background: #ffffff; }

Anti-patterns

Never default toDo instead
Interchangeable SaaS hero sectionsLead with the one thing the user should remember
Generic card piles with no hierarchyGive one item weight and demote the rest
Random accent colours with no systemOne dominant field, one accent with a job
Placeholder-feeling typographyA display face with real scale contrast
Motion added because animation was easyOne directed sequence that stages the content
A new hex value per componentA named variable in the visual system

Related skills

  • design-system owns tokens, theming, dark mode, spacing scales, and styling architecture, and its slop check finds token-level drift. This skill owns the judgement of whether a UI looks generic. Take the values from there, and add new ones there rather than inline.
  • web-accessibility owns contrast ratios, focus indicators, target sizes, reduced motion, and form error wiring. A direction that fails those is not finished.
  • react-patterns for React component structure and animation implementation.
  • nextjs-app-router-patterns for Next.js rendering and routing under the design.
  • angular for the same work in an Angular codebase.
  • seo for the copy and metadata behind a marketing surface.

Checklist

  • The direction is stated in one sentence and every visual decision matches it.
  • Type hierarchy, colour, spacing, motion, and surface treatment live in named variables, not in component files.
  • The composition has an entry point and a reading order, and no section defaults to an undecided card grid.
  • Motion is one or two directed moments, not scattered micro-interactions.
  • Colour has one dominant field and accents that carry meaning.
  • The background contributes atmosphere without competing with the content.
  • An existing product's design system is preserved rather than overridden.
  • Technical complexity matches the visual idea, with no framework added for one effect.
  • The result is deliberate on both desktop and mobile.
  • Accessibility and responsiveness survived the redesign, checked against web-accessibility.

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.