Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

motion-primitives

БесплатноБез исполняемых скриптовНе проверен

Inspect, integrate, and adapt ibelick/motion-primitives React components from their source and registry definitions. Use when the user names Motion…

akillnessот akillness★ 63 звезды на GitHub

Об этом скилле

Motion Primitives

Use the named library's source-copy contract instead of assuming an npm runtime API. Version: 1.0.0. Pinned evidence is source inspection, not execution.

When to use this skill

  • Select or customize an exact ibelick/motion-primitives component in a React web app.
  • Reconcile a docs example with its registry payload, helpers, exports, or installed source.
  • Review the library's text, in-view, or dialog behavior before application integration.

For custom motion/react animation unrelated to this library, use the host project's motion conventions. For React Bits, use that separate catalog's source and API. For measured leaks or long-session slowdown, run an animation-profiling workflow rather than assuming adopting this library fixes the bottleneck.

Instructions

1. Bound the component request

Name the component, host route, state owner, intended interaction, and permitted operation: source review, project integration, or repair. Read the selected pinned source and docs. Treat the README's beta notice as a reason to pin and compare, not a quality guarantee. Completion: one component contract and one host-owned outcome are explicit.

2. Resolve the distribution and dependency contract

The root package.json is private and describes the documentation app, not a library that consumers should install wholesale. Components are copied into the application. Read components/core/<name>.tsx and its entry in scripts/registry-components.ts. Carry required helper/hook files and verify their imports rather than copying only JSX. The inspected cn helper uses clsx and tailwind-merge; reuse a compatible host helper. Registry dependencies can be incomplete relative to source imports: the inspected dialog also imports lucide-react, cn, and usePreventScroll despite declaring only motion. The docs prescribe Tailwind, Motion, the utility helper, and icons. Install only what the chosen component actually needs, with approval for package changes.

The inspected docs host uses React ^18, Motion ^11.12.0, Next ^15.5.25, Tailwind ^4.0.0, and TypeScript ^5. These are observed host versions, not universal consumer requirements. Client components import from motion/react; keep their client boundary in SSR hosts. React/Vite use needs the same DOM, styles, utilities, and alias adaptation; it was not run. No Vue, React Native, or native-platform support is established by this source inspection. Completion: each imported package/helper and each target path is accounted for.

3. Choose an approved acquisition path

The pinned docs present these alternatives; neither was executed for this guide:

# Upstream docs examples (unpinned @latest; resolve and pin a version before approved execution):
motion-primitives add text-effect
shadcn add "https://motion-primitives.com/c/text-effect.json"

A live registry and @latest can differ from the inspected commit. Resolve versions, review the payload and target files, and obtain approval before installer/package writes. Manual integration from a reviewed pin is an alternative under MIT; preserve copyright and permission notices with copied or substantial source. Do not reinitialize a working Tailwind/shadcn setup just to match the docs application's layout. Completion: the acquired source, dependency delta, and approved writes are identified.

4. Use the selected API, not inferred names

TextEffect is a named export with string children, per: word | char | line, preset: blur | fade-in-blur | scale | fade | slide, trigger, and transition controls. speedReveal divides stagger time and speedSegment divides duration; keep both positive and finite at the application boundary. per="line" splits on newline, not visual wrapping. Word/character modes provide an sr-only string and hide animated glyphs from assistive technology; preserve this arrangement when customizing rather than announcing each glyph. trigger=false removes the text subtree through AnimatePresence; it is not merely a pause.

InView accepts hidden/visible variants, transition, viewOptions, as, and once. Its separate once prop stores completion state after animation; viewOptions is also passed to Motion's observation hook. Inspect both before promising replay semantics. Use semantic as values appropriate to the host content; observer entry is not proof that descendant RAF loops, timers, or unrelated animation have stopped offscreen.

Dialog exposes controlled open/onOpenChange and uncontrolled defaultOpen. Keep one state owner and use its trigger/content/title/description/close composition. The inspected content uses native motion.dialog, a portal, modal naming IDs, and showModal; cancellation, exit animation, body scroll classes, and close are coordinated. Completion: the chosen props match source types and host state transitions.

5. Gate motion, semantics, and resource ownership

Treat these as

Полный SKILL.md на GitHub

Установить motion-primitives в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Grep
Glob
Bash
Write
Edit

Вложенные файлы

evals/evals.jsonreferences/upstream.md

FAQ

Что делает скилл motion-primitives?

Inspect, integrate, and adapt ibelick/motion-primitives React components from their source and registry definitions. Use when the user names Motion Primitives, motion-primitives.com, TextEffect, InView, or its composable dialogs in that library's context; cover component selection, copied-source dependencies, accessibility, reduced motion, and lifecycle checks. Not a general Motion SDK tutorial or a replacement for profiling animation regressions in an existing page.

Как установить скилл motion-primitives?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл motion-primitives запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить motion-primitives с