Agent Skillsnexu-io/motion-anything › motion-anything

motion-anything

GitHub

将自然语言意图转化为精美动效的调度中心。依据MOTION-SPEC规范,自动选择直接视频合成或HTML导出路径,处理着陆页、幻灯片及视频需求,并智能路由至克隆或GSAP等专属技能,确保动效克制且高质量。

skills/motion-anything/SKILL.md nexu-io/motion-anything

Trigger Scenarios

用户请求生成动画效果(如落地页、视频) 需要判断使用视频合成还是HTML路径 请求涉及网站复刻或复杂交互

Install

npx skills add nexu-io/motion-anything --skill motion-anything -g -y
More Options

Use without installing

npx skills use nexu-io/motion-anything@motion-anything

指定 Agent (Claude Code)

npx skills add nexu-io/motion-anything --skill motion-anything -a claude-code -g -y

安装 repo 全部 skill

npx skills add nexu-io/motion-anything --all -g -y

预览 repo 内 skill

npx skills add nexu-io/motion-anything --list

SKILL.md

Frontmatter
{
    "od": {
        "mode": "prototype",
        "preview": {
            "type": "html"
        },
        "surface": "web",
        "category": "animation-motion",
        "platform": "desktop",
        "upstream": "https:\/\/github.com\/nexu-io\/motion-anything",
        "design_system": {
            "requires": false
        },
        "example_prompt": "Use motion-anything: \"make me an animation-rich app showcase page\". Classify the intent,\npick suitable recipes from the library, and produce the page with restrained, accessible motion."
    },
    "name": "motion-anything",
    "triggers": [
        "animated webpage",
        "add motion",
        "make it animated",
        "good-looking animation",
        "动效好看的网页",
        "加动效",
        "动效丰富",
        "发布视频"
    ],
    "description": "Turn one sentence of intent into tasteful, produced motion. Given a natural-language request\nlike \"make a good-looking animated landing page\", \"add a delightful like animation\", or \"make a\nsilky release video\", this skill classifies the intent, picks the most suitable recipes from the\nmotion-anything library while honoring MOTION-SPEC.md (timing, easing, and the restraint budget),\nand produces the output. The universal entry point to motion-anything. Works on web pages,\nslides, app-showcase pages, and video.\n"
}

motion-anything (router)

You are the motion router. A user has described, in plain language, motion they want. Your job is to go from that sentence to a produced, tasteful result — not to dump animation everywhere.

Always read MOTION-SPEC.md first. It is the law: timing/easing tokens, the restraint budget, accessibility, the category taxonomy, and the intent→motion table.

Two production paths (route first, don't make the user pick a technology)

motion-anything produces motion two ways. Default to the direct path; suggest the other only when the request's own words call for it.

  1. Direct animated video (the hero / default path). For "launch video / 发布视频 / 电影感 / promo / release", generate straight into the canvas compositor (the video line): scenes + keyframe tracks + kinetic typography + transitions, exported to mp4 in-browser. This is the default for anything whose deliverable is a video. Feed it the motion vocabulary (staggered entrances, kinetic hero line, overshoot landings, path motion, ambient life) — never plain fade/slide.
  2. HTML, then export to video (secondary path). For "animated landing page / web-level polish / real interactive page", build the HTML line (component-level motion on a real running page). That page follows the freezable-timeline convention (window.__maTimeline.seek(t)), so the user can hit Download ▾ → MP4 to grab it as a video. Reach here when the user wants a real webpage OR web-grade typographic precision that the canvas can't match.

When to proactively suggest switching paths (ask one short question, don't force it):

  • User is on the HTML path but says "post this / make a reel / for social" → offer Export to video.
  • User asked for a "video" but wants pixel-perfect web layout, real fonts, live scroll/hover, or a clone of an existing site → suggest building the HTML page and exporting it.
  • Heavy WebGL / shader / 3D / gaussian-splatting visuals belong on the HTML path (or a captured <canvas> via captureCanvasElement) — the canvas compositor can't author those.

Companion skills — route to these when the request is their specialty

Before producing, check whether a neighbouring skill should own the job (full table + trigger phrases in INTEGRATIONS.md). Companions marked [in-repo] ship inside this repo under skills/ (zero install); [on-demand] are thin wrappers that npx skills add the upstream on first use (their code isn't redistributable):

  • Clone an existing site ("复刻这个网站" / a pasted URL) → [in-repo] skills/web-clone (MIT, handles WebGL-heavy sites); then come back and re-motion the clone with this library (cloners drop GSAP/Framer/Three motion).
  • Award-tier GSAP interactions on the HTML line (scroll-parallax, pinning, complex sequencing) → [in-repo] skills/gsap (official GreenSock, MIT) for real high-perf GSAP codegen.
  • Reproduce a live WebGL / shader / gaussian-splatting effect ("复刻这个 WebGL 效果" / "高斯泼溅") → [on-demand] skills/web-shader-extractor. See WEBGL.md.
  • Extract a site's design tokens → design.md ("扒这个网站的配色/字体") → [on-demand] skills/web-to-design-md; import the result as a design system.
  • Turn a whole site into a videowebsite-to-video.
  • Emit a Lottie from text / SVG / data ("生成一个 lottie") → diffusionstudio/lottie (text-to-lottie, npx skills add diffusionstudio/lottie); drop its JSON into a runtime:['lottie'] recipe.
  • Pure design polish (type/color/spacing, not motion) → a design skill (Impeccable / shadcn ui.shadcn.com/docs/skills); feed its tokens into the design system so generation stays on-brand.

Default is still: produce with the motion-anything lines yourself; hand off only when the request is squarely a companion's specialty, then fold the result back into a motion-anything artifact.

The loop

1. Classify the request

Determine the target surface and the job:

  • Surface: web page · slides/deck · app-showcase page · video.
  • Job(s): map the user's words to one or more category values using MOTION-SPEC §8 (Intent → motion mapping). e.g. "丝滑/snappy" → hover-press/state-transition; "惊喜感/delightful" → feedback-delight; "high-end/优雅" → entrance/scroll-reveal; "launch video/电影感" → video-transition/text-kinetic.
  • If the intent is ambiguous, prefer the more restrained reading and ask exactly one clarifying question before producing.

2. Pick recipes from the library

  • Read the manifests under recipes/**/recipe.motion.yaml. Match on category, surfaces, intent_keywords, and tags.
  • Select the smallest set that satisfies the request. Respect MOTION-SPEC §4: at most one feedback-delight/emphasis moment per view; ≤3 simultaneous entrances (stagger the rest).
  • Check each candidate's avoid_when against the actual context. If it applies, drop it.
  • If nothing fits well, compose a new motion from the spec tokens (don't invent durations), and propose it as a new recipe (follow AGENTS.md golden path) so the library grows.

3. Produce

  • Apply the chosen recipe implementations into the user's artifact (HTML/CSS/JS, or framework equivalent). Pull the recipe's implementations.files.
  • Keep durations/easings from the recipe (already spec-aligned). Wire the markup hooks (e.g. data-like-burst, scroll observers) as documented in each recipe's SKILL.md.
  • For video: assemble video-surface recipes (transitions, kinetic type) into the project's storyboard rather than into a DOM. Keep transitions in the cinematic band; avoid PPT-like density (few words, large type, one idea per shot).

4. Verify against the definition of done

Run MOTION-SPEC §9 as a checklist before declaring done:

  • Motion serves feedback / continuity / attention.
  • Timing + easing from tokens; within the restraint budget.
  • Transforms/opacity only; cleans up after itself.
  • Working prefers-reduced-motion fallback.

5. Teach, briefly

Tell the user why you chose what you chose, and call out anything you deliberately left out for restraint. This is part of the product — you are also raising their motion literacy.

Output expectations

  • A working artifact (open preview.html-style result or the edited project files).
  • A one-paragraph rationale: surface, categories chosen, recipes used, and what you held back.
  • If you created a new motion, offer to save it as a recipe.

Notes

  • This skill is tool-agnostic. The user may have installed it via motion add motion-anything into any agent (Claude Code, Cursor, Codex, …). Behave identically everywhere.
  • Never auto-play celebratory motion. Delight is earned by user action.

Version History

  • b016900 Current 2026-07-11 17:12

Dependencies

  • suggested diffusionstudio/lottie

Same Skill Collection

recipes/animxyz/xyz-fade-big/SKILL.md
recipes/animxyz/xyz-fade-down/SKILL.md
recipes/animxyz/xyz-fade-left/SKILL.md
recipes/animxyz/xyz-fade-right/SKILL.md
recipes/animxyz/xyz-fade-small/SKILL.md
recipes/animxyz/xyz-fade-up/SKILL.md
recipes/animxyz/xyz-flip-left/SKILL.md
recipes/animxyz/xyz-flip-up/SKILL.md
recipes/animxyz/xyz-rise-big/SKILL.md
recipes/animxyz/xyz-rotate/SKILL.md
recipes/app/bottom-sheet/SKILL.md
recipes/app/button-press/SKILL.md
recipes/app/checkbox-pop/SKILL.md
recipes/app/ripple/SKILL.md
recipes/app/tab-bar-slide/SKILL.md
recipes/app/toast-pop/SKILL.md
recipes/css/anim-backindown/SKILL.md
recipes/css/anim-backinleft/SKILL.md
recipes/css/anim-backinright/SKILL.md
recipes/css/anim-backinup/SKILL.md
recipes/css/anim-backoutdown/SKILL.md
recipes/css/anim-backoutleft/SKILL.md
recipes/css/anim-backoutright/SKILL.md
recipes/css/anim-backoutup/SKILL.md
recipes/css/anim-bounce/SKILL.md
recipes/css/anim-bouncein/SKILL.md
recipes/css/anim-bounceindown/SKILL.md
recipes/css/anim-bounceinleft/SKILL.md
recipes/css/anim-bounceinright/SKILL.md
recipes/css/anim-bounceinup/SKILL.md
recipes/css/anim-bounceout/SKILL.md
recipes/css/anim-bounceoutdown/SKILL.md
recipes/css/anim-bounceoutleft/SKILL.md
recipes/css/anim-bounceoutright/SKILL.md
recipes/css/anim-bounceoutup/SKILL.md
recipes/css/anim-fadein/SKILL.md
recipes/css/anim-fadeinbottomleft/SKILL.md
recipes/css/anim-fadeinbottomright/SKILL.md
recipes/css/anim-fadeindown/SKILL.md
recipes/css/anim-fadeindownbig/SKILL.md
recipes/css/anim-fadeinleft/SKILL.md
recipes/css/anim-fadeinleftbig/SKILL.md
recipes/css/anim-fadeinright/SKILL.md
recipes/css/anim-fadeinrightbig/SKILL.md
recipes/css/anim-fadeintopleft/SKILL.md
recipes/css/anim-fadeintopright/SKILL.md
recipes/css/anim-fadeinup/SKILL.md
recipes/css/anim-fadeinupbig/SKILL.md
recipes/css/anim-fadeout/SKILL.md
recipes/css/anim-fadeoutbottomleft/SKILL.md
recipes/css/anim-fadeoutbottomright/SKILL.md
recipes/css/anim-fadeoutdown/SKILL.md
recipes/css/anim-fadeoutdownbig/SKILL.md
recipes/css/anim-fadeoutleft/SKILL.md
recipes/css/anim-fadeoutleftbig/SKILL.md
recipes/css/anim-fadeoutright/SKILL.md
recipes/css/anim-fadeoutrightbig/SKILL.md
recipes/css/anim-fadeouttopleft/SKILL.md
recipes/css/anim-fadeouttopright/SKILL.md
recipes/css/anim-fadeoutup/SKILL.md
recipes/css/anim-fadeoutupbig/SKILL.md
recipes/css/anim-flash/SKILL.md
recipes/css/anim-flipinx/SKILL.md
recipes/css/anim-flipiny/SKILL.md
recipes/css/anim-headshake/SKILL.md
recipes/css/anim-heartbeat/SKILL.md
recipes/css/anim-hinge/SKILL.md
recipes/css/anim-jackinthebox/SKILL.md
recipes/css/anim-jello/SKILL.md
recipes/css/anim-lightspeedinleft/SKILL.md
recipes/css/anim-lightspeedinright/SKILL.md
recipes/css/anim-pulse/SKILL.md
recipes/css/anim-rollin/SKILL.md
recipes/css/anim-rollout/SKILL.md
recipes/css/anim-rotatein/SKILL.md
recipes/css/anim-rotateindownleft/SKILL.md
recipes/css/anim-rotateindownright/SKILL.md
recipes/css/anim-rotateinupleft/SKILL.md
recipes/css/anim-rotateinupright/SKILL.md
recipes/css/anim-rotateout/SKILL.md
recipes/css/anim-rotateoutdownleft/SKILL.md
recipes/css/anim-rotateoutdownright/SKILL.md
recipes/css/anim-rotateoutupleft/SKILL.md
recipes/css/anim-rotateoutupright/SKILL.md
recipes/css/anim-rubberband/SKILL.md
recipes/css/anim-shake/SKILL.md
recipes/css/anim-shakex/SKILL.md
recipes/css/anim-shakey/SKILL.md
recipes/css/anim-slideindown/SKILL.md
recipes/css/anim-slideinleft/SKILL.md
recipes/css/anim-slideinright/SKILL.md
recipes/css/anim-slideinup/SKILL.md
recipes/css/anim-slideoutdown/SKILL.md
recipes/css/anim-slideoutleft/SKILL.md
recipes/css/anim-slideoutright/SKILL.md
recipes/css/anim-slideoutup/SKILL.md
recipes/css/anim-swing/SKILL.md
recipes/css/anim-tada/SKILL.md
recipes/css/anim-wobble/SKILL.md
recipes/css/anim-zoomin/SKILL.md
recipes/css/anim-zoomindown/SKILL.md
recipes/css/anim-zoominleft/SKILL.md
recipes/css/anim-zoominright/SKILL.md
recipes/css/anim-zoominup/SKILL.md
recipes/css/anim-zoomout/SKILL.md
recipes/css/anim-zoomoutdown/SKILL.md
recipes/css/anim-zoomoutleft/SKILL.md
recipes/css/anim-zoomoutright/SKILL.md
recipes/css/anim-zoomoutup/SKILL.md
recipes/lottie/lottie-fab/SKILL.md
recipes/lottie/lottie-favorite/SKILL.md
recipes/lottie/lottie-pagination/SKILL.md
recipes/lottie/lottie-tab/SKILL.md
recipes/slides/fx-chain-react/SKILL.md
recipes/slides/fx-confetti/SKILL.md
recipes/slides/fx-constellation/SKILL.md
recipes/slides/fx-counter-explosion/SKILL.md
recipes/slides/fx-data-stream/SKILL.md
recipes/slides/fx-firework/SKILL.md
recipes/slides/fx-galaxy-swirl/SKILL.md
recipes/slides/fx-gradient-blob/SKILL.md
recipes/slides/fx-knowledge-graph/SKILL.md
recipes/slides/fx-letter-explode/SKILL.md
recipes/slides/fx-magnetic-field/SKILL.md
recipes/slides/fx-matrix-rain/SKILL.md
recipes/slides/fx-neural-net/SKILL.md
recipes/slides/fx-orbit-ring/SKILL.md
recipes/slides/fx-particle-burst/SKILL.md
recipes/slides/fx-shockwave/SKILL.md
recipes/slides/fx-sparkle-trail/SKILL.md
recipes/slides/fx-starfield/SKILL.md
recipes/slides/fx-typewriter-multi/SKILL.md
recipes/slides/fx-word-cascade/SKILL.md
recipes/web/attention-pulse/SKILL.md
recipes/web/aurora/SKILL.md
recipes/web/balatro/SKILL.md
recipes/web/border-beam/SKILL.md
recipes/web/card-lift-hover/SKILL.md
recipes/web/count-up/SKILL.md
recipes/web/dark-veil/SKILL.md
recipes/web/decrypted-text/SKILL.md
recipes/web/dither/SKILL.md
recipes/web/dot-field/SKILL.md
recipes/web/dot-grid/SKILL.md
recipes/web/elastic-slider/SKILL.md
recipes/web/fade-in-up/SKILL.md
recipes/web/faulty-terminal/SKILL.md
recipes/web/ferrofluid/SKILL.md
recipes/web/galaxy/SKILL.md
recipes/web/glare-hover/SKILL.md
recipes/web/glitch-text/SKILL.md
recipes/web/gradient-blinds/SKILL.md
recipes/web/gradient-text/SKILL.md
recipes/web/grainient/SKILL.md
recipes/web/iridescence/SKILL.md
recipes/web/kinetic-headline/SKILL.md
recipes/web/light-rays/SKILL.md
recipes/web/lightfall/SKILL.md
recipes/web/lightning/SKILL.md
recipes/web/like-burst/SKILL.md
recipes/web/line-waves/SKILL.md
recipes/web/liquid-chrome/SKILL.md
recipes/web/loading-shimmer/SKILL.md
recipes/web/magnetic-button/SKILL.md
recipes/web/particles/SKILL.md
recipes/web/pixel-blast/SKILL.md
recipes/web/pixel-snow/SKILL.md
recipes/web/pixel-transition/SKILL.md
recipes/web/plasma-wave/SKILL.md
recipes/web/plasma/SKILL.md
recipes/web/prismatic-burst/SKILL.md
recipes/web/ripple-grid/SKILL.md
recipes/web/ripple-press/SKILL.md
recipes/web/scroll-reveal/SKILL.md
recipes/web/shimmer-button/SKILL.md
recipes/web/shine-border/SKILL.md
recipes/web/shiny-text/SKILL.md
recipes/web/shuffle-text/SKILL.md
recipes/web/side-rays/SKILL.md
recipes/web/soft-aurora/SKILL.md
recipes/web/splash-cursor/SKILL.md
recipes/web/spotlight-card/SKILL.md
recipes/web/stagger-list/SKILL.md
recipes/web/star-border/SKILL.md
recipes/web/stepper/SKILL.md
recipes/web/strands/SKILL.md
recipes/web/text-scramble/SKILL.md
recipes/web/threads/SKILL.md
recipes/web/tilt-3d/SKILL.md
recipes/web/toggle-spring/SKILL.md
skills/gsap/gsap-frameworks/SKILL.md
skills/gsap/gsap-performance/SKILL.md
skills/gsap/gsap-plugins/SKILL.md
skills/gsap/gsap-react/SKILL.md
skills/gsap/gsap-scrolltrigger/SKILL.md
skills/gsap/gsap-timeline/SKILL.md
skills/gsap/gsap-utils/SKILL.md
skills/web-clone/SKILL.md
skills/gsap/gsap-core/SKILL.md
skills/web-shader-extractor/SKILL.md
skills/web-to-design-md/SKILL.md
recipes/web/blob-cursor/SKILL.md
recipes/web/blur-text/SKILL.md
recipes/web/bounce-cards/SKILL.md
recipes/web/circular-text/SKILL.md
recipes/web/click-spark/SKILL.md
recipes/web/counter/SKILL.md
recipes/web/crosshair/SKILL.md
recipes/web/dock/SKILL.md
recipes/web/electric-border/SKILL.md
recipes/web/fade-content/SKILL.md
recipes/web/falling-text/SKILL.md
recipes/web/glass-icons/SKILL.md
recipes/web/gooey-nav/SKILL.md
recipes/web/gradual-blur/SKILL.md
recipes/web/image-trail/SKILL.md
recipes/web/magnet-lines/SKILL.md
recipes/web/noise/SKILL.md
recipes/web/orb/SKILL.md
recipes/web/pixel-card/SKILL.md
recipes/web/prism/SKILL.md
recipes/web/radar/SKILL.md
recipes/web/rotating-text/SKILL.md
recipes/web/scroll-float/SKILL.md
recipes/web/silk/SKILL.md
recipes/web/target-cursor/SKILL.md
recipes/web/true-focus/SKILL.md
recipes/web/waves/SKILL.md

Metadata

Files
0
Version
b016900
Hash
f04f4b42
Indexed
2026-07-11 17:12

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-13 17:10
浙ICP备14020137号-1 $Map of visitor$