agentleFS
blyatiful1blyatiful1/ultraweb/skills/hero/SKILL.md

hero

Skill1 starsChanged 3 months agoMITView on GitHub

Design and build the first-viewport hero section of an ultraweb site — pick one of five named variants (typographic, split, full-bleed media, product-shot, editorial-offset) to fit the direction, enforce display-scale headline sizing (>=3.5x body via clamp()), a single-primary CTA hierarchy, and above-fold performance (LCP element identified and preloaded, no motion library on first paint when avoidable). Invoke during the Build phase for any hero or above-the-fold work — trigger phrases — "hero section", "above the fold", "landing header", "first screen", "hero image", "hero headline", "make the hero bolder".

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is 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.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read DIRECTION.md and pick the variant below that serves the archetype.

    line 23
  2. Very specific:

    Write the headline under ultraweb:copywriting rules before any layout — layout serves the words.

    line 24

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

hero — the first viewport decides everything

Stage: Phase 6 — Build - Reads: design/DIRECTION.md, design/SYSTEM.md, design/SITEMAP.md, app/globals.css - Writes: components/sections/hero.tsx

Standard

The hero gets the largest share of craft budget — every visitor sees it, most see nothing else. First-grade means:

  • The headline is the design. Display size >=3.5x body on desktop, fluid via clamp() (the --text-display token, e.g. clamp(2.75rem, 1.5rem + 5.5vw, 7rem)), tracking -0.02 to -0.045em, line-height 0.95-1.08. If it doesn't feel almost too big, it's too small.
  • The strongest hero can make the words the picture (award-canon: Type as the Image) — the static stock-photo hero is a dated fashion. Media-led variants earn the image; otherwise the type IS the hero.
  • Exactly ONE primary CTA. A secondary may exist as ghost or arrow-link — never a second filled button.
  • The signature move (DIRECTION.md) usually lives here — check SITEMAP.md before placing it elsewhere.
  • LCP under control: the LCP element is named in a code comment and the perf rules below all hold.
  • The 375px hero is designed, not the desktop one squeezed.

Process

  1. Read DIRECTION.md and pick the variant below that serves the archetype; SITEMAP.md says whether the signature move is here.
  2. Write the headline under ultraweb:copywriting rules before any layout — layout serves the words.
  3. Choose the LCP element (headline text or hero image) and apply the above-fold rules below.
  4. Build desktop and 375px together; at 100svh the key message + primary CTA are visible without scrolling on both.
  5. State pass: CTA hover/focus-visible/active, image blur placeholder, reduced-motion path for every entrance.

Variants

typographic — the headline IS the hero; no imagery, or one small accent mark. When: editorial/content sites (type is 80% of the design), type-led or brutalist directions, portfolios with strong copy. Fastest possible LCP (text). Earn it: top of the clamp range plus one typographic gesture — an italic word, a cut baseline, a hanging indent.

split — text column + media column at 55/45 or 60/40, never 50/50 (decide a dominant side). When: SaaS/product with something real to show, local business with one strong photo. Mobile: text stacks FIRST; media crops to 4:3 or drops entirely if it adds nothing at 375px.

full-bleed media — edge-to-edge image or video with overlaid text. When: hospitality, food, photography, brands where the image carries the emotion. Overlay text needs a computed-AA scrim (dark gradient sized to the text zone, not smeared over the whole image). Video: muted, playsInline, poster set, <=4s loop, and no video at all under prefers-reduced-motion.

product-shot — headline above, staged product render or UI screenshot as the anchor, often bleeding off the fold. When: e-commerce hero product, hardware, apps with genuinely beautiful UI. Screenshots are real app UI at 2x in a designed frame — SYSTEM.md §depth shadow, not a default shadow-lg. For a hero object examined through scroll (award-canon: The Persistent Hero Object) — ONE anchor object transforming as context changes, concept + color system + tech story in one image — a static image-sequence on sticky scroll delivers ~80% of a rotatable 3D object at a fraction of the weight; real WebGL only via showpiece's gate.

editorial-offset — asymmetric grid: headline off-center, image bleeding one edge, an overlapping element or rotated caption. When: agency/portfolio/fashion; delivers taste's required asymmetry for free. Hardest to hold together at 768px — design the tablet layout explicitly.

Above-fold performance

  • Text LCP beats image LCP; when the variant allows, make the headline the LCP element.
  • Image LCP: static import + <Image src={heroImg} alt="…" fill preload sizes="100vw" placeholder="blur" className="object-cover" /> inside a sized relative container. Never loading="lazy" here. priority is deprecated in Next 16 — the prop is preload.
  • No motion library on first paint when avoidable: entrance animation via CSS keyframes registered as --animate-* tokens in @theme, keeping hero.tsx a server component. If the signature move truly needs motion/react, isolate it in one "use client" child importing from "motion/react", wrapped in LazyMotion with m. components — the hero never pulls the full motion bundle above the fold.
  • An SVG signature move is never the LCP element and never mounts hidden. The server component paints the finished static SVG into the initial HTML — real geometry, full stroke — and the client leaf (CSS keyframes, or a DIRECTION-commissioned ultraweb:animejs timeline) rewinds and replays it after hydration. A path shipped at full stroke-dashoffset waiting for JS is invisible content: it fails a JS-off load, it fails reduced motion, and if it were the LCP candidate the metric would slide to whenever the draw finishes.
  • Zero CLS: min-h-[100svh] or explicit aspect boxes — never a height that depends on image load. next/font handles fallback metrics; no manual compensation.
  • One entrance choreography maximum: headline → subline → CTA, 400-700ms total, 40-80ms stagger, then STOP. Nothing in the hero loops forever except a ultraweb:showpiece element that earned it, a commissioned ultraweb:set-design scene (where the loop is the medium, per ultraweb:motion-language), the scroll cue (Supporting cast), or a DIRECTION-sanctioned living idle per ultraweb:motion-language (≤2 elements, transform-only, behind reduced-motion).
  • A heavy showpiece hero earns a designed loading moment, never a spinner (award-canon: The Loader is the Overture): its final frame IS the hero's first frame for a seamless handoff, it stays skippable, and it cuts instantly under reduced-motion. page-transitions/showpiece/set-design own the mechanism; the hero owns the frame handed to it — and on a set-design build that frame is the poster of the / window, already baked as the route's static edition.

CTA hierarchy

  • One primary (filled, accent) + at most one secondary (ghost or arrow-link). Two filled buttons = no decision made.
  • Primary label is a verb phrase specific to the brief ("Book a table", "Start free trial") — "Learn more" is never the primary.
  • 44px minimum hit target; hover 150-250ms on transform/color only; focus-visible ring from palette tokens, never the browser default.

Supporting cast

  • Subheadline: one or two sentences, 1.125-1.25rem, max 60ch, muted foreground. The headline claims; the subline proves. No third paragraph.
  • Eyebrow/kicker above the headline: 0.75-0.875rem, uppercase, wide tracking — only when DIRECTION.md wants editorial structure, never a pill by reflex.
  • At most ONE proof element in the hero (logo strip, rating, or a single stat), placed after the CTA — it supports the CTA, never competes with it.
  • Scroll cue only when the fold hides essential content: a 12-16px drift on a ~2s period, removed under prefers-reduced-motion.

Accessibility

  • Exactly one <h1> per page, and it is the hero headline; display words split for visual effect stay inside the one h1 (spans).
  • Overlay text contrast computed against the darkest AND lightest region it can sit on — verified, not eyeballed.
  • alt text describes content, never "hero image"; purely decorative media gets alt="".
  • Reduced motion: content appears instantly — no fade-from-nothing that leaves text invisible when animation is disabled.

Anti-patterns

  • priority on next/image (deprecated — use preload); loading="lazy" on the LCP image.
  • bg-clip-text text-transparent gradient headline; from-purple- anywhere near the hero — the banned-list default move.
  • import { motion } from "framer-motion" — legacy alias; any motion import in a server-component hero.
  • h-screen clipping content on short viewports — use min-h-[100svh].
  • Headlines starting "Welcome to", "Elevate your", "Unlock" — dead copy; rewrite.
  • Carousel or slider heroes — nobody sees slide 2; commit to one message.
  • Two filled CTAs; a badge-pill above the headline ("✨ New: …") as a reflex — emoji banned, pill only if DIRECTION.md justifies it.

Worked example — Framewalk, "Hollow Cartographer" Steam launch home

Moved to references/example.md — read only when this build's case is genuinely ambiguous; the sections above are the decision material.

Composes with

Moved to references/composes.md — the handoff map; load it when orchestrating this skill against its neighbors.

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.