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.
In this repository4 other files it gives its agents.
- architectureSkill
- build-design-systemSkill
- gauntletSkill
- saas-playbookSkill
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
- Very specific: line 36
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, …
- Distinctive: line 42
If the effect fights type, reduce opacity, blur, or contrast — do not enlarge the effect.
- Very specific: line 45
Do not open Three.js for a shifting gradient.
- Distinctive: line 50
One hero system, not five stacked gimmicks: Prefer one primary field + at most one secondary accent (e.g.
- Very specific: line 58
Pause off-screen: Use IntersectionObserver (or Motion’s viewport hooks) so rAF/WebGL loops stop when the hero is not visible.
- Distinctive: line 75
When the user wants visual references mid-task, use available design MCPs (Dribbble / Mobbin) for composition study, then rebuild from …
- Distinctive: line 81
Read references/stack.md for full decision trees.
- Distinctive: line 127
If vibe is vague, infer once and state it: *“Inferring atmospheric AI SaaS · dark · cool indigo/violet · Next + Tailwind.”*
- Distinctive: line 132
Write a short plan:
- Distinctive: line 142
Do not stack aurora + beams + particles + grid + sparkles.
- Very specific: line 146
Create a self-contained component (e.g.
- Very specific: line 152
Add keyframes in the project’s CSS system (Tailwind @theme / global CSS / CSS module) — keep animation names scoped (hero-aurora, not …
- Distinctive: line 177
Prefer a soft radial mask or bottom fade so the CTA row is calmer than the top wash.
- Distinctive: line 179
Keep decorative motion slow (8–60s loops for washes.
≈ “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.
Files
/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-motionIf 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)
- 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.
- Pick the lightest stack that hits the bar. CSS → SVG → Canvas 2D → WebGL. Do not open Three.js for a shifting gradient.
- 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.
- One hero system, not five stacked gimmicks. Prefer one primary field + at most one secondary accent (e.g. mesh + sparse particles).
prefers-reduced-motionis mandatory. Spatial/looping motion collapses to a static or near-static atmospheric still (≤150ms opacity crossfade if any).- Pointer-events: none on decorative layers. Never block clicks on CTAs.
- 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. - Pause off-screen. Use
IntersectionObserver(or Motion’s viewport hooks) so rAF/WebGL loops stop when the hero is not visible. - Respect existing design tokens. Map effect colors to brand tokens; do not invent a second palette.
- 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)
| Source | Strength |
| Aceternity UI | CSS aurora, SVG beams, canvas waves, lamp, spotlight, meteors |
| Magic UI | Flickering/grid patterns, particles, retro grid, beams |
| React Bits | Shader/WebGL aurora, silk, light rays, plasma, OGL/Three |
| Motion | Orchestration, path length, layout, scroll |
| Live product heroes | Linear, 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:
| Tier | Medium | Use for |
| 0 | Pure CSS | Aurora washes, mesh blobs, spotlights, meteors, grid/dot patterns, moving borders |
| 1 | SVG + CSS/Motion | Beams along paths, masks, filters, stroke-dash offset, soft ellipses |
| 2 | Canvas 2D + rAF | Particles, flickering grids, simplex waves, interactive proximity fields |
| 3 | WebGL (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):
| Family | Feel | Typical tier |
| Aurora / mesh wash | Soft color bands, dreamy AI | 0 (CSS) or 3 (shader) |
| Spotlight / lamp | Focused glow on headline | 0–1 |
| Beams / light streaks | Tech energy along curves | 1 |
| Meteors / shooting stars | Sparse diagonal streaks | 0 |
| Particles / sparkles | Depth dust, interactive | 2 (or tsparticles) |
| Grid / dots / flicker | Infra, terminal, data | 0–2 |
| Retro perspective grid | Synth / launch energy | 0–3 |
| Wavy / noise field | Fluid, creative | 2–3 |
| Light rays / god rays | Cinematic volume | 3 |
| Silk / iridescence | Premium fabric shader | 3 |
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:
- Primary family + tier
- Optional accent (or none)
- Layer stack (back → front): base fill → atmospheric field → accent → content
- Masking strategy (radial fade so center/CTA stays readable)
- Motion budget (speed, opacity max, particle count)
- Reduced-motion fallback (static gradient or freeze frame)
- Files you will create
Do not stack aurora + beams + particles + grid + sparkles.
3. Implement
- 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
- outer
- Wire brand colors via CSS variables / props — no hard-coded one-off palette unless the project has no tokens yet.
- Add keyframes in the project’s CSS system (Tailwind
@theme/ global CSS / CSS module) — keep animation names scoped (hero-aurora, not genericpulse). - Cap device pixel ratio at 1.5–2 for canvas/WebGL.
- Honor
prefers-reduced-motion: reduce. - 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-motionstatic 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:
- Component path(s) and any CSS keyframes
- Props / tokens to theme it
- One-line description of the technique
- Perf notes (tier, observers, caps)
- How to preview (route, Storybook, or standalone HTML)
Inventing original effects (compressed method)
Full method: references/invent.md.
- Emotion first — name the feeling (quiet power, launch velocity, organic…).
- Physical metaphor — light through fog, rain on glass, magnetic field, paper grain.
- Map metaphor → primitives — noise, gradients, particles, paths, blur, blend modes.
- Compose — base field + one motion rule + one interaction (optional).
- Restrain — cut opacity and speed until content still wins.
- 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-positionand heavy filters and canvas without a budget position: fixedatmosphere that covers the whole site scroll- Effects that only look good on empty black with no real headline
- Ignoring reduced motion
- Using
easebounce/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
| File | Load when |
| references/stack.md | Choosing CSS vs SVG vs Canvas vs WebGL |
| references/recipes.md | Implementing a known family (aurora, beams, …) |
| references/invent.md | Designing a new hybrid / original effect |
| references/quality.md | Perf, a11y, contrast, production checklist |
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
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.

