/frontend-vue:motionfrom frontend-vue
Use when adding or reviewing motion in a Vue app — a sheet or dialog that fades in, a list whose rows enter and leave, a highlight that pulses on new items, a route transition, a drawer that slides, a counter that animates, a skeleton shimmer — or when choosing between CSS transitions, Vue Transition and TransitionGroup, the View Transitions API, and a motion library. Also when motion must respect prefers-reduced-motion. NOT for the dot-animal or canvas drawing of a specific app, and NOT for React (Motion for React is its own choice).
Ships in frontend-vue. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
In: a Vue 3 component or route whose change of state should be visible as movement.
Out: the motion uses the cheapest tool that does the job, in this order: CSS transitions on a
class, Vue Transition/TransitionGroup, the View Transitions API, a motion library; every
animation has a reduced-motion fallback and animates only transform and opacity unless there is
a reason. The checkable expectations are in evals/rubric.json.
| Change | Tool |
|---|---|
| a state toggled by a class (hover, selected, unread) | a CSS transition on the modifier class; no JavaScript |
an element entering or leaving (v-if, v-show) | <Transition name="…"> with .…-enter-active/.…-leave-active rules |
| rows added, removed or reordered in a list | <TransitionGroup tag="ul"> with move class; keys are stable ids |
| a route change | <Transition> around <RouterView>, or Nuxt pageTransition |
| a layout change across the page (a panel folding, a card expanding into a sheet) | the View Transitions API through document.startViewTransition where supported, with the plain change as the fallback |
| spring physics, gestures, shared-element choreography | Motion for Vue (motion-v) or a similar library, chosen through meta:reuse-first |
transform and opacity. Height, width, top and left cause layout; use
grid-template-rows: 0fr → 1fr for a fold, transform: translateY for a slide.--motion-fast: 120ms, --motion-base: 200ms, --motion-slow: 320ms,
easing --motion-ease: cubic-bezier(.2, 0, 0, 1); nothing over 400 ms for a UI state.@media (prefers-reduced-motion: reduce) { .sheet-enter-active, .sheet-leave-active { transition: none; } }
or usePreferredReducedMotion from VueUse when JavaScript decides.Transition classes belong to the component's block (frontend-vue:bem-styles):
<Transition name="sheet"> and .sheet-enter-from in the same scoped block.TransitionGroup keyed by index animates the wrong rows.appear only on purpose.grep -n "transition:" <file> → every property listed is transform, opacity, or a
grid-template-rows fold.prefers-reduced-motion rule or usePreferredReducedMotion covers each animation.TransitionGroup child has a :key that is an id, not an index.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
11 skills in this plugin
/bem-stylesBEM in scoped stylesUse when writing or reviewing the styles of a Vue component — the <style scoped> block, BEM class names for its block, elements and modifiers, state classes bound from the template, design tokens as CSS variables, SCSS inside the component, Stylelint complaints about selector patterns, or moving rules from a global stylesheet into a component. Also when two components share a class name by accident. NOT for the SCSS token system itself or rem sizing (frontend-css:scss-modules, frontend-css:rem), nor for React components (frontend-react:component-structure)./component-architectureComponent architectureUse before creating a Vue component or when deciding where one lives and what it may know — a reusable UI primitive, a feature component bound to the domain, a layout piece of the app chrome, a page or view, a component that only exists for one parent. Also when a component grew into two, when a feature reaches into another feature's component, when a page holds logic, or when asked "where does X go" in a Vue project. NOT for the inside of the .vue file (frontend-vue:sfc-conventions), nor for React (frontend-react:component-placement)./composables-vueuseComposables, VueUse firstUse when a Vue component needs behaviour that is not display — reading or writing local storage, the colour scheme or a media query, the clock, window size, an event source or websocket, a debounce or throttle, the clipboard, focus, keyboard shortcuts, intersection, drag position, fetch with abort — or when about to write a use* composable, review one, or decide whether a piece of logic belongs in a composable, a store or a component. VueUse is checked first. NOT for app-wide state (frontend-vue:state-pinia) and NOT for React hooks (frontend-react:hooks-registry)./nuxt-conventionsNuxt conventionsUse when the project is Nuxt 3 or 4 — creating pages, layouts, server routes or middleware, fetching data with useFetch or useAsyncData, relying on auto-imports, choosing rendering (SSR, SSG, SPA, hybrid routes), configuring modules in nuxt.config, handling runtime config and environment, or reviewing a Nuxt file placement. NOT for a plain Vite + Vue Router app (frontend-vue:component-architecture) and NOT for the inside of a component (frontend-vue:sfc-conventions)./sfc-conventionsSingle-file component conventionsUse when writing, editing or reviewing a Vue single-file component — the <script setup lang="ts"> block, props and emits and their types, defineModel, slots, template syntax, refs and computeds, watchers, lifecycle, the order of blocks in the .vue file, component and file naming. Also for converting an Options API or a JavaScript component to Composition API with TypeScript. NOT for where a component lives (frontend-vue:component-architecture), its styles (frontend-vue:bem-styles), a Pinia store (frontend-vue:state-pinia), or a reusable composable (frontend-vue:composables-vueuse)./skeleton-componentsSkeleton components — decide first, then build one beside the componentUse when a Vue component renders data that loads asynchronously and you must decide whether it needs a loading skeleton, or how to build one — a panel that shows a blank gap or a "Loading…" line while a Pinia store, useFetch, useAsyncState or a TanStack Query for Vue query is pending, a request to add a loading state, a Suspense fallback, a question whether to install a skeleton library, or a review of async-data UI. NOT for the shimmer animation itself or its reduced-motion rule (frontend-vue:motion), and NOT for React (frontend-react:skeleton-components).npx claudepluginhub aquivalabs/bladeforge --plugin frontend-vue