npm.io
0.6.0 • Published yesterdayCLI

sheleg-design-skill

Licence
MIT
Version
0.6.0
Deps
0
Size
71 kB
Vulns
0
Weekly
0
Stars
1

SHELEG Design — agent skill

npm version CI license: MIT

A motion + particle interface methodology for building cinematic, scroll-driven landing pages — packaged as an installable agent skill for Cursor and Claude.

Install it into any project with one command:

npx sheleg-design-skill

That drops a SKILL.md + SHELEG_DESIGN.md bundle into your project so your coding agent can discover the skill and build sites on its principles.

What is SHELEG Design?

A page feels alive not from many animations, but from a single source of truth (scroll position) driving many cheap, layered responses that are individually quiet and collectively cinematic. One scroll "clock" feeds a WebGL particle field, a 2D fallback, attention dimming, parallax, scrubbed instruments, and a progress rail — each an independent, degrade-to-calm layer. Nothing crossfades; things redeploy. The result reads as one precision instrument responding to your hand.

It was reverse-engineered from a production landing page (a 14-scene particle narrative that morphs through formations and culminates in a brand "N" that charges and bursts). The skill distills the architecture and the principles so an agent can rebuild that level on a new site.

The five principles

  1. One clock. All motion derives from one measured scroll state.
  2. Read per frame, notify rarely. Hot consumers read imperatively; only coarse changes hit the framework's render path.
  3. Hold, then redeploy. Hold a formation ~80% of a section, then morph in a short, phase-staggered, arc-curved wave. No crossfades.
  4. Earned motion. Scrub is for instruments that narrate state over time; entrance motion stays sub-500ms and never gates content.
  5. Degrade to calm. Reduced-motion / coarse pointer / no-WebGL collapse to a static, fully-legible page.

Usage

# Auto-detect (.cursor/ or .claude/), default to .cursor/skills/sheleg-design/
npx sheleg-design-skill

# Force a flavor
npx sheleg-design-skill --cursor
npx sheleg-design-skill --claude

# Custom location
npx sheleg-design-skill --dir docs/skills/sheleg-design

# Overwrite an existing install
npx sheleg-design-skill --force

# Help
npx sheleg-design-skill --help
Other install paths
# Claude Code plugin (adds the /sheleg-design command too)
/plugin marketplace add ssheleg/sheleg-design-skill
/plugin install sheleg-design@sheleg-design-skill

# vercel-labs skills CLI (70+ agents)
npx skills add ssheleg/sheleg-design-skill

# POSIX fallback, no Node
curl -fsSL https://raw.githubusercontent.com/ssheleg/sheleg-design-skill/main/install.sh | sh
What gets installed
File Purpose
SKILL.md Agent-facing skill: discovery trigger, the principles, how to apply them, quick-reference rules, common mistakes
SHELEG_DESIGN.md The full reference: architecture, layer-by-layer mechanics with code, the exact morph math, the DOMWebGL projection bridge, a build-from-scratch recipe, and the "why it works"
styles/*.md Style packs — the visual identity layer: instrument-console (near-black console, electric-blue signal), editorial-luxury (warm cream/espresso/sage, dossier motifs), and workbench (quiet light/dark product UI for dashboards & tools, standalone). Each locks palette, type, texture, motion tokens, motifs, and bans; the pack contract lets you author new styles

After installing, a Cursor or Claude agent in that project can discover the skill and use it when you ask it to build or upgrade a cinematic, scroll-driven, particle-backed page.

Style-agnostic motion, pluggable identity

The motion methodology (one clock, layered responses, degrade-to-calm) is independent of the visual style. The look comes from a style pack the agent picks per project — dark instrument console or warm editorial luxury out of the box, or a new pack authored against the same contract.

Stack-agnostic

The skill teaches principles and architecture, not a fixed dependency set. The reference implementation happens to use Next.js + React + three / react-three-fiber + GSAP ScrollTrigger + Lenis + Framer Motion, but the method applies to any stack that can render to a canvas/WebGL surface and read scroll.

Zero dependencies

The installer is a single zero-dependency Node script, so npx runs instantly with no install step and no supply-chain surface.

Development

python3 test/validate.py checks repo consistency (manifests, version sync, skill/command/rule front-matter, relative links); CI runs it plus a CLI smoke test on every push and PR. Versioning is semver; bump marketplace.json + plugin.json + package.json + CHANGELOG.md together — the validator enforces the sync.

License

MIT ssheleg

Keywords