Logo : Motion Scene

Motion Scene

Communauté
Sagargupta16
motion-scene

Conçoit et crée des scènes animées avec React et Motion (motion/react) pour les applications web : illustrations de couverture de projet, illustrations de cartes de service, visuels de hero et diagrammes d’architecture ou de mécanismes montrant concrètement le fonctionnement d’un élément. Fonctionne selon trois modes : recherche (étudier le sujet et rédiger un brief de storyboard), création (implémenter avec un kit TypeScript à copier) et vérification (contrôles et validations dans le navigateur). À utiliser lorsque l’utilisateur demande une « illustration animée », une « scène de couverture », une « animation hero », une « animation de diagramme en React », une « animation Motion pour une carte », une carte de projet ou de service animée, une scène de mécanisme en boucle, ou exécute /motion-scene [research|build|verify]. Les fichiers .svg autonomes relèvent de animated-svg ; l’examen d’illustrations existantes relève de svg-audit.

Add to TypingMind

Présentation

ÉditeurSagargupta16
Dépôtsvg-forge
Nom de la compétencemotion-scene
Étoiles
3
Forks
0
Fichiers inclus
12
LicenceMIT
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Fichiers inclus : 12

    Des scripts, des gabarits et des références que le modèle peut consulter pendant son travail. Les fichiers sont en lecture seule et ne sont jamais exécutés.

  • Open source

    Publiée par Sagargupta16 sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Motion Scene dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/Sagargupta16/svg-forge/tree/main/skills/motion-scene
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Sagargupta16/svg-forge.git /tmp/svg-forge
mkdir -p .claude/skills
cp -r /tmp/svg-forge/skills/motion-scene .claude/skills/motion-scene
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Motion Scene dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Motion Scene dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Motion Scene n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

motion-scene

A scene is a looping, decorative React component that shows a mechanism (input -> processing -> output) inside a fixed slot of a web app: the media area of a project card, the art column of a service card, a hero panel, a diagram in a docs page. The bar is accuracy. Someone who knows the subject should recognise its mechanism in one glance at card size. A generic "dashboard with bars" is a failure even when it looks good.

Delivery target is scene (a React + Motion component). Timing presets use the shared names micro, short, medium (default), long and ambient.

Which skill

NeedSkill
Animated component rendered inside a React app (card art, hero, diagram, illustration)motion-scene
One self-contained .svg for a README, docs site or <img> (no script, SMIL and CSS only)animated-svg
Review or fix an existing SVG file or scene componentsvg-audit

If the app is not React, or the art must also work as a plain image, use animated-svg. If the user only wants a quick hover or press effect on existing UI, that is a micro interaction, not a scene; apply the spring rules in references/motion.md directly.

Settle these first

Infer from the codebase; ask only what cannot be inferred.

  • Slot: where it renders, its ratio, its smallest and largest rendered width (phone and desktop), and any overlay the host draws on it (bottom fade, badge, title).
  • Tint: the one accent the host passes in (category color, brand accent). Everything else is neutral.
  • Scheme: dark or light canvas.
  • Count: how many instances can be on screen (a grid of 40 cards changes the budget and needs near-viewport mounting).
  • Motion setting: does the app have its own motion control (an in-app Full/Reduced toggle, a settings flag)? Scenes follow it. Never add a reduced-motion gate to an app that has its own motion control. If the app has none, keep motion on and ask before adding one.

Modes

research writes a brief, build implements a brief, verify proves it in the browser. A bare invocation infers the mode from the ask. Always research before building; never build from a README blurb alone.

research

Read, in order: the README, the package manifest (package.json, pyproject.toml, *.tf, *.csproj ...), the entry point, the UI components or CLI command definitions, any screenshots or asset folder. Prefer code over README claims. For a service card with no repo, the truth is what is actually delivered under that heading; depict the deliverable, not the buzzword. For an architecture diagram, read the infrastructure source (IaC, compose files, service definitions), not a slide. For a deployed app, open the live UI (or a screenshot of it) and echo its layout: the scene replaces the screenshot, so a visitor who knows the app should recognise the panel and the one control that matters.

Write the brief before touching code:

markdown
## Brief: <subject>
- What it does: one or two sentences, from the code.
- Mechanism: <input> -> <processing> -> <output>, in the subject's own nouns.
- Vocabulary: 6 to 10 terms that appear verbatim in the source (commands,
  files, tables, models, UI labels). Labels come only from this list.
- Visual identity: what the real UI, CLI or pipeline looks like.
- Current art: none | accurate | generic-but-fitting | partly-wrong | misleading,
  with what it gets right and wrong.
- Strategy: keep | retune-labels | new-variant | new-scene
  (new-scene only when the current art misrepresents the subject).
- Slot: ratio, smallest and largest width, overlays, tint, scheme, count,
  motion setting.
- Preset: medium (3 to 6 s loop) unless the story needs long (8 to 20 s).
- Storyboard, 3 to 6 beats on one clock, as cycle fractions:
  1. 0.04 to 0.22  <what moves, from where to where, which pip or label>
  2. ...
- Budget: <n> animated nodes, <m> labels (see composition budgets).
- Evidence: file and line for every claim above.

Each beat must be buildable with absolutely positioned SVG and HTML at the smallest slot width. If a beat only reads at hero size, cut it or move it to a long storyboard.

build

  1. Copy the kit into the app (for example src/scenes/kit/): tokens.ts, timing.ts, routes.ts, primitives.tsx, useNearViewport.ts, useFreezeAnimations.ts. It needs React 19 and motion. If the slot is not 16:10, change STAGE_W and STAGE_H in tokens.ts together. Read references/primitives.md for what each part does.
  2. Start from the storyboard, not from another scene's shapes. Place parts in stage units (320 x 200 for 16:10). SVG geometry uses the stage viewBox; HTML packets, pips and labels sit at stage percentages with fixed px sizes. See references/composition.md.
  3. One clock. const beat = clock(PRESET.medium) and every loop goes through beat(...). Times are cycle fractions. Derive event times (passAt) instead of hand-tuning them. Choose the loop shape: build up to one END/GONE exit, or open on the finished state and clear in the first 4 to 8 percent. Write the beat table as a comment at the top of the file. See references/motion.md.
  4. Compose from the primitives: Shell (root, palette, texture, tint wash, stage), Panel and Wire in the SVG layer, Trace for animated strokes, Packet with ride and comet for data in flight, Pip for status, Label for the 3 or 4 words, FadeLayer to fade a group as one node. Custom motion elements inside a Shell take useLoop(loop) so they freeze with the rest.
  5. Variants, not forks. Subjects that share a mechanism get one scene family with a variant prop, dispatched through a Record with a real fallback. A variant must change a moving element, not only label text.
  6. Mount through a host slot: a fixed-ratio box, the scene lazy-loaded, mounted only near the viewport (useNearViewport), a placeholder painted with palette.base otherwise, frozen wired to the app's motion setting, useFreezeAnimations as the backstop, and the scene keyed on the setting. SceneSlot in ExampleScene.tsx is the pattern.
  7. Keep it lint-clean by construction (readonly props, no nested ternaries, no nested template literals, hoisted repeated literals, small sub-components). One default export per scene file; split past about 450 lines. See references/gotchas.md.
  8. Run the app's own gates (lint, type-check, format, tests, build), then verify.

ExampleScene.tsx is a complete 6 s read-through cache loop built only from the kit: 8 animated nodes, 3 labels, two packets on one route, derived miss, fill and hit beats.

Scene contract:

  • Props Readonly<{ tint: string; frozen?: boolean }>, plus variant?: string only in a family that reads it.
  • Root is Shell: absolute, inset 0, clipped, aria-hidden="true". The host card's title and text carry the meaning.
  • Default export, lazy-loaded by the host so scenes stay out of the entry chunk.

verify

Run the app, open the page in a focused tab after a hard reload, and work through references/verify.md. The short version:

  • Screenshot at the smallest and largest real slot widths; the mechanism reads at both.
  • Animated node count within budget; running animations in view under about 70.
  • Easing scan returns 0; every loop shares one duration.
  • Two full cycles watched: no seam jump. Transforms sampled twice 700 ms apart differ.
  • No horizontal overflow at 375 px; paint flashing shows the card body is not repainting.
  • Root is aria-hidden; no decoration sits over text or controls.
  • With the app's reduced setting on, an 800 ms computed-style diff shows 0 changes and the artwork is still visible.
  • The app's gates pass. One scene family per commit.

Report each check with its measured value, not "looks fine".

Hard rules

  1. Mechanism, not category. Input -> processing -> output in the subject's own nouns. Changing label text does not make a scene accurate. composition
  2. Labels: at most 4 (2 on icon-size cards), uppercase mono, 7 to 9 px, 12 characters or fewer, no dashes, real vocabulary only, rendered as HTML so they keep their px size. No prose and no numbers that read as claims. composition
  3. Palette is the tint plus neutrals. Alpha ladders of one tint and one neutral; ok green only for live or success, warn amber only for warnings. No new hue, gradient text, glow halo or blur filter. composition
  4. One stage at the slot ratio: uniform viewBox, HTML at stage percentages with fixed px sizes, letterboxed by a container-query stage. Never stretch with preserveAspectRatio="none" unless the viewBox matches the slot exactly. composition
  5. Budgets: 12 or fewer animated nodes per cover, 8 or fewer per icon-size card, 3 to 6 beats, under about 70 running animations in view; mount loops only near the viewport. composition
  6. Transform and opacity only (plus SVG pathLength and pathOffset for stroke draws). Never animate width, height, top, left, filter or box-shadow. motion
  7. One clock per scene. One duration for every loop, events as cycle fractions; ambient backdrops may run slower on their own speed. motion
  8. Per-segment easing whenever times is set: ease: perSegment(times). A single ease string drifts WAAPI tracks off the storyboard. motion
  9. Seamless loops: last keyframe equals the first, or the reset happens while the element is invisible; one END/GONE exit per scene, or open on the finished state with a clear window. motion
  10. Never put pathLength or pathOffset on a path with vector-effect="non-scaling-stroke". Static hairlines (Wire) and animated draws (Trace) are separate elements. gotchas
  11. Decoration only: root aria-hidden, nothing focusable inside, never over text or controls. verify
  12. Follow the app's motion setting. Freeze through Shell frozen and useFreezeAnimations; never add an OS-level gate to an app that has its own control. Motion stays visible by default. gotchas
  13. Never start from scale(0); start at 0.9 to 0.97 (0.25 for icons). Exits run faster than entrances. motion

Kit files

FileWhat it holds
tokens.tsStage size, pctX/pctY, createPalette (tint, alpha ladders, base, solid), textures, dotAt
timing.tsPRESET, clock, perSegment, loopProps, shown, windowTimes/windowKeys, ambient
routes.tsroute, sCurve, line, ride, comet, lit, passAt
primitives.tsxShell, Stage, Panel, Wire, Trace, Packet, Pip, Label, FadeLayer, useLoop, useScene
useNearViewport.tsMount a scene only within 300 px of the viewport
useFreezeAnimations.tsPause every WAAPI animation in a subtree at time 0
ExampleScene.tsxComplete 6 s mechanism loop plus the SceneSlot host pattern

The kit type-checks under strict, noUncheckedIndexedAccess and exactOptionalPropertyTypes with React 19 and Motion 14.

References

  • references/composition.md: mechanism over category, labels, palette, depth layers, stage units and responsive layout, budgets, variants.
  • references/motion.md: presets mapped to scene use, one clock, cycle fractions, per-segment easing and the WAAPI drift, seamless loops, stagger, springs vs tweens, enter and exit.
  • references/gotchas.md: every known failure as symptom, cause, fix.
  • references/primitives.md: each kit part, when to use it, short snippets.
  • references/verify.md: screenshot sizes, budgets, scan snippets, seam check, paint flashing, accessibility, reduced mode, gates.

Fichiers inclus

Le modèle lit ces fichiers à la demande lorsque la compétence est chargée. Ils sont accessibles en lecture et ne sont jamais exécutés.

Foire aux questions

À quoi sert la compétence IA Motion Scene ?

Conçoit et crée des scènes animées avec React et Motion (motion/react) pour les applications web : illustrations de couverture de projet, illustrations de cartes de service, visuels de hero et diagrammes d’architecture ou de mécanismes montrant concrètement le fonctionnement d’un élément. Fonctionne selon trois modes : recherche (étudier le sujet et rédiger un brief de storyboard), création (implémenter avec un kit TypeScript à copier) et vérification (contrôles et validations dans le navigateur). À utiliser lorsque l’utilisateur demande une « illustration animée », une « scène de couvertur...

Pourquoi utiliser Motion Scene sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Motion Scene se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Motion Scene dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/Sagargupta16/svg-forge/tree/main/skills/motion-scene. TypingMind lit le fichier SKILL.md, regroupe les fichiers associés et installe le tout sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Motion Scene ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Motion Scene ?

Autant que vous le souhaitez. Vous pouvez utiliser Motion Scene avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Motion Scene est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par Sagargupta16 sous licence MIT. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇