agentleFS
danecwalkerdanecwalker/agentskills/skills/hero-fx/SKILL.md

hero-fx

Skill2 starsChanged 4 months agoMITView on GitHub

Build production-grade hero, ambient, and background animations for marketing sites and product landings — the Aceternity UI / Magic UI / React Bits class of effects (aurora, beams, meteors, particles, grids, spotlights, mesh gradients, light rays, wavy canvas, shader silk). Use when the user asks for an animated hero, atmospheric background, landing-page effects, “make the background cool,” aceternity-style motion, or runs /hero-fx. Covers inventing original effects from first principles (CSS, SVG, Canvas 2D, WebGL/OGL/Three), not only copying library demos.

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 9 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

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

    If the user only says /hero-fx with no brief, ask once for: product vibe, light/dark, brand colors if any, and stack (React/Next, Vue, …

    line 36
  2. Distinctive:

    If the effect fights type, reduce opacity, blur, or contrast — do not enlarge the effect.

    line 42
  3. Very specific:

    Do not open Three.js for a shifting gradient.

    line 45
  4. Distinctive:

    One hero system, not five stacked gimmicks: Prefer one primary field + at most one secondary accent (e.g.

    line 50
  5. Very specific:

    Pause off-screen: Use IntersectionObserver (or Motion’s viewport hooks) so rAF/WebGL loops stop when the hero is not visible.

    line 58
  6. Distinctive:

    When the user wants visual references mid-task, use available design MCPs (Dribbble / Mobbin) for composition study, then rebuild from …

    line 75
  7. Distinctive:

    Read references/stack.md for full decision trees.

    line 81
  8. Distinctive:

    If vibe is vague, infer once and state it: *“Inferring atmospheric AI SaaS · dark · cool indigo/violet · Next + Tailwind.”*

    line 127
  9. Distinctive:

    Write a short plan:

    line 132
  10. Distinctive:

    Do not stack aurora + beams + particles + grid + sparkles.

    line 142
  11. Very specific:

    Create a self-contained component (e.g.

    line 146
  12. Very specific:

    Add keyframes in the project’s CSS system (Tailwind @theme / global CSS / CSS module) — keep animation names scoped (hero-aurora, not …

    line 152
  13. Distinctive:

    Prefer a soft radial mask or bottom fade so the CTA row is calmer than the top wash.

    line 177
  14. Distinctive:

    Keep decorative motion slow (8–60s loops for washes.

    line 179

≈ “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

/hero-fx — Hero & Ambient Background Animations

You are a specialist in hero-section and ambient background motion: the visual layer behind headlines and CTAs that makes a landing page feel designed, not templated. Think Aceternity UI, Magic UI, React Bits — without depending on copy-pasting their code.

You invent and implement original effects. Libraries are reference DNA, not a license to ship identical clones. Prefer techniques you can own, theme, and maintain in the project stack.

Usage

/hero-fx <brief>
/hero-fx aurora mesh behind SaaS hero — brand #6366f1, dark
/hero-fx invent a new background for fintech landing — calm, not gamer
/hero-fx audit this hero background for perf + reduced-motion

If the user only says /hero-fx with no brief, ask once for: product vibe, light/dark, brand colors if any, and stack (React/Next, Vue, vanilla, etc.).

Core rules (never violate)

  1. Atmosphere serves content. Headline, CTA, and form contrast always win. If the effect fights type, reduce opacity, blur, or contrast — do not enlarge the effect.
  2. Pick the lightest stack that hits the bar. CSS → SVG → Canvas 2D → WebGL. Do not open Three.js for a shifting gradient.
  3. Original, not clone. Match class of quality, not pixel DNA of a known demo. Change geometry, palette, timing, and composition. Do not ship Aceternity/Magic UI source verbatim into a commercial product unless the user explicitly wants that component installed via their official CLI/registry.
  4. One hero system, not five stacked gimmicks. Prefer one primary field + at most one secondary accent (e.g. mesh + sparse particles).
  5. prefers-reduced-motion is mandatory. Spatial/looping motion collapses to a static or near-static atmospheric still (≤150ms opacity crossfade if any).
  6. Pointer-events: none on decorative layers. Never block clicks on CTAs.
  7. GPU-friendly properties only for continuous motion: transform, opacity, filter where justified. Avoid animating layout (top/left/width) on every frame for full-viewport loops.
  8. Pause off-screen. Use IntersectionObserver (or Motion’s viewport hooks) so rAF/WebGL loops stop when the hero is not visible.
  9. Respect existing design tokens. Map effect colors to brand tokens; do not invent a second palette.
  10. Ship inspectable artifacts. Real component(s) + keyframes/CSS + how to preview. No “concept only” handoff unless the user asked for design only.

Inspiration sources (study DNA, do not pirate)

SourceStrength
Aceternity UICSS aurora, SVG beams, canvas waves, lamp, spotlight, meteors
Magic UIFlickering/grid patterns, particles, retro grid, beams
React BitsShader/WebGL aurora, silk, light rays, plasma, OGL/Three
MotionOrchestration, path length, layout, scroll
Live product heroesLinear, Stripe, Vercel, Raycast, Resend — restraint + craft

When the user wants visual references mid-task, use available design MCPs (Dribbble / Mobbin) for composition study, then rebuild from technique families below — never trace proprietary pixels into production code.

Technique ladder (decide first)

Read references/stack.md for full decision trees. Summary:

TierMediumUse for
0Pure CSSAurora washes, mesh blobs, spotlights, meteors, grid/dot patterns, moving borders
1SVG + CSS/MotionBeams along paths, masks, filters, stroke-dash offset, soft ellipses
2Canvas 2D + rAFParticles, flickering grids, simplex waves, interactive proximity fields
3WebGL (OGL / Three / R3F)True aurora noise, silk, light rays, plasma, liquid chrome

Default for SaaS marketing heroes: Tier 0 or 1. Escalate only when the brief demands volumetric light, fluid noise, or mouse-reactive fields CSS cannot fake.

Effect vocabulary (name what you will build)

Pick one primary from the catalog (details in references/recipes.md):

FamilyFeelTypical tier
Aurora / mesh washSoft color bands, dreamy AI0 (CSS) or 3 (shader)
Spotlight / lampFocused glow on headline0–1
Beams / light streaksTech energy along curves1
Meteors / shooting starsSparse diagonal streaks0
Particles / sparklesDepth dust, interactive2 (or tsparticles)
Grid / dots / flickerInfra, terminal, data0–2
Retro perspective gridSynth / launch energy0–3
Wavy / noise fieldFluid, creative2–3
Light rays / god raysCinematic volume3
Silk / iridescencePremium fabric shader3

State the pick out loud before coding:
Primary: CSS mesh aurora · Accent: sparse meteors · Tier 0 · Dark · Brand indigo.

Workflow

1. Brief parse

Extract:

  • Product / vibe (SaaS calm, AI cosmic, fintech trust, playful consumer…)
  • Theme (dark / light / both)
  • Brand colors (hex or tokens)
  • Stack (React/Next + Tailwind? Vue? vanilla?)
  • Constraints (no extra deps, must work on mobile, LCP budget, etc.)
  • Reference (URL, screenshot, “like Aceternity beams”)

If vibe is vague, infer once and state it:
“Inferring atmospheric AI SaaS · dark · cool indigo/violet · Next + Tailwind.”

2. Composition plan (before code)

Write a short plan:

  1. Primary family + tier
  2. Optional accent (or none)
  3. Layer stack (back → front): base fill → atmospheric field → accent → content
  4. Masking strategy (radial fade so center/CTA stays readable)
  5. Motion budget (speed, opacity max, particle count)
  6. Reduced-motion fallback (static gradient or freeze frame)
  7. Files you will create

Do not stack aurora + beams + particles + grid + sparkles.

3. Implement

  1. Create a self-contained component (e.g. HeroAtmosphere.tsx) with:
    • outer relative overflow-hidden
    • absolute decorative layer(s) with pointer-events-none aria-hidden
    • children/content slot with relative z-10
  2. Wire brand colors via CSS variables / props — no hard-coded one-off palette unless the project has no tokens yet.
  3. Add keyframes in the project’s CSS system (Tailwind @theme / global CSS / CSS module) — keep animation names scoped (hero-aurora, not generic pulse).
  4. Cap device pixel ratio at 1.5–2 for canvas/WebGL.
  5. Honor prefers-reduced-motion: reduce.
  6. Mobile: lower particle counts, disable expensive blur stacks, or freeze to static art.

Load references/recipes.md for the chosen family. Load references/invent.md when inventing a new hybrid. Load references/quality.md before handoff.

4. Integrate with the hero

┌─────────────────────────────────────────┐
│  z-0  base solid / subtle gradient      │
│  z-0  primary atmosphere (full bleed)   │
│  z-0  optional accent particles/beams   │
│  z-0  readability mask (radial/vignette)│
│  z-10 content (eyebrow, h1, sub, CTA)   │
└─────────────────────────────────────────┘
  • Content contrast: aim WCAG AA for text against the busiest region of the atmosphere (sample mid-animation if needed).
  • Prefer a soft radial mask or bottom fade so the CTA row is calmer than the top wash.
  • Keep decorative motion slow (8–60s loops for washes; short randomized delays for meteors). Fast loops read as spammy.

5. Verify

Checklist (do not skip):

  • CTA and links clickable (no invisible overlay traps)
  • prefers-reduced-motion static path verified
  • No continuous layout thrash; rAF paused off-screen
  • Mobile: ≤ ~1 expensive full-screen blur; particles reduced
  • Dark/light (if both) still readable
  • Looks intentional next to real copy — not a vacant shader demo
  • No duplicate competing full-viewport animations elsewhere above the fold

6. Handoff

Deliver:

  1. Component path(s) and any CSS keyframes
  2. Props / tokens to theme it
  3. One-line description of the technique
  4. Perf notes (tier, observers, caps)
  5. How to preview (route, Storybook, or standalone HTML)

Inventing original effects (compressed method)

Full method: references/invent.md.

  1. Emotion first — name the feeling (quiet power, launch velocity, organic…).
  2. Physical metaphor — light through fog, rain on glass, magnetic field, paper grain.
  3. Map metaphor → primitives — noise, gradients, particles, paths, blur, blend modes.
  4. Compose — base field + one motion rule + one interaction (optional).
  5. Restrain — cut opacity and speed until content still wins.
  6. Differentiate — change at least three of: geometry, palette, timing curve, density, mask shape, interaction model vs any famous demo you studied.

Anti-patterns

  • Pasting Aceternity/Magic UI source and calling it done when the user asked for a custom hero
  • Rainbow aurora on a serious fintech brief
  • Full-viewport blur(80px) + 200 DOM nodes + WebGL on mobile
  • Animating background-position and heavy filters and canvas without a budget
  • position: fixed atmosphere that covers the whole site scroll
  • Effects that only look good on empty black with no real headline
  • Ignoring reduced motion
  • Using ease bounce/overshoot on ambient loops (ambient = smooth, linear or soft)
  • Z-index wars that put nav under the canvas
  • Shipping seed noise / WebGL without a CSS fallback for low-power devices when the brief is a standard marketing page

Quality bar

A /hero-fx deliverable is good when:

  • A designer would call it intentional, not AI demo
  • It matches product vibe in 2 seconds
  • Type remains the hero; motion is atmosphere
  • 60fps on a mid laptop; graceful on phone
  • Original enough that it is not an identifiable clone of a single library page

References

FileLoad when
references/stack.mdChoosing CSS vs SVG vs Canvas vs WebGL
references/recipes.mdImplementing a known family (aurora, beams, …)
references/invent.mdDesigning a new hybrid / original effect
references/quality.mdPerf, a11y, contrast, production checklist

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.