motion-figure
O que ela faz
Esta skill cria diagramas e figuras que se movem ou reagem a uma entrada. Ela é para redatores e educadores que querem que o leitor veja um processo mudar ao longo do tempo ou ajuste um valor e observe o resultado.
Quando usar
- ✓Quando uma aula explica um processo que muda com o tempo, como uma fila que se enche.
- ✓Quando uma fórmula precisa de um controle deslizante para o leitor ver como uma entrada altera o resultado.
- ✓Quando uma página precisa de uma demonstração interativa em que o leitor muda uma coisa e vê o que o sistema faz.
Link da skill
https://github.com/rohitg00/ai-engineering-from-scratch/blob/main/.claude/skills/motion-figure/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Crie uma figura com controle deslizante que mostre como a taxa de aprendizado muda a curva de treino.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente escolhe uma de três formas: uma animação ou controle deslizante simples dentro de uma aula, um painel interativo para um sistema real, ou uma faixa de fundo em movimento. Depois, constrói a figura com os nomes reais das partes.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Motion figure
This skill makes figures that move or respond to input. It has three tiers. Use this skill with Claude, Cursor, Codex, OpenClaw, Hermes, or any agent that reads SKILL.md.
| Tier | What it makes | Where it goes |
|---|---|---|
| 1. Lesson figure | Declarative SMIL animation, or a slider widget that redraws an SVG. Both mount from a ```figure fence. | Course lessons |
| 2. Mechanism figure | An HTML panel that shows the named parts of a system. The reader drives one control and reads a computed verdict. | Standalone pages, READMEs, essays, the course site outside lessons |
| 3. Dither field | A WebGL band of ordered dither dots in the paper, accent, and ink colours, with four seeded motions. | Page mastheads and section breaks |
Tier 1 has the most rules, because the lesson runtime has hard limits. Tiers 2 and 3 have their own reference files.
When to use
- A lesson explains a process that changes over time: a token that moves through stages, a queue that fills, a loop that repeats.
- A lesson explains a formula where one input changes the output: learning rate, temperature, chunk size, batch size.
- An author writes "animate this figure", "add a slider", or "make the diagram interactive".
- A page needs a demo where the reader changes one thing and sees what the system does: a cache, a queue, a context window, a router. Use tier 2.
- A page needs a slow moving header in the course colours. Use tier 3.
When not to use
- The idea is a fixed structure with no time axis and no input. Make a static SVG figure. The sibling skill
blueprint-figurecovers static figures. - The page is a full explainer page with its own state model and machine geometry. The sibling skill
isometric-explainercovers that. - You only need palette, fonts, or prose rules. The sibling skill
course-styleholds those. This skill copies the parts it needs intoreferences/tokens.md.
Method
Write one sentence that names the single change the figure shows. If you need two sentences, make two figures.
Pick the tier. Inside a lesson, use tier 1. For tier 2, read
references/mechanism-figures.mdand start fromtemplates/mechanism.html. For tier 3, readreferences/dither-fields.mdand copytemplates/dither.js. The steps below are for tier 1. In tier 1, use an animated figure when time is the variable. Use a slider widget when a number is the variable.Pick a name in kebab case, for example
request-pathorcontext-budget. Search the registry for that name first. A later module that registers the same name replaces the earlier figure.Put the code in a module file named
figures-<topic>.js. Wrap it in an IIFE, readwindow.LF, and return early if it is missing.Write a figure function
function (host, cfg). It appends one.lfcard tohostand can return a dispose function.Build the card:
.lf-headwith an uppercase.lf-labeland a short hint,.lf-body, and.lf-capwith the caption.Use
viewBox="0 0 520 H"for the SVG. Most course figures use an H from 200 to 250. A single bar needs less.Add a
<title>and a<desc>with ids that you create once, outside any render function.For an animated figure, add entries first, then one slow loop. Follow
references/smil-rules.mdline by line.For a slider widget, define
state._renderbefore you callLF.sliderorLF.select. Then callstate._render()once at the end.Call
LF.register({ 'your-name': fn })at the end of the module.In the lesson Markdown, add the fence. Put the name on the first line and optional JSON config after it:
```figure context-budget {"windowK": 32} ```Run the checks in "Check before you finish". Look at the figure in light theme, dark theme, at 375 px width, and with reduced motion on.
How the page mounts a figure
- The Markdown parser turns the fence into
<div class="lesson-figure" data-figure="name {json}">. - The site build scans lesson Markdown for fence names. It finds the module file that contains the quoted name and writes a manifest. A fence name with no provider stops the build.
- The page loads only the modules that the lesson needs, in a fixed order. New module files go after the listed ones, in alphabetical order.
- The mount function reads the first word as the name and parses the rest as JSON. Bad JSON gives an empty
cfg. - If the figure function throws, the runtime empties the host and logs a warning. The rest o
Perguntas frequentes
Que tipos de figura ela pode criar?
Ela pode criar animações de aula, controles deslizantes, painéis interativos de mecanismos e faixas de dithering em movimento.
Precisa de algum software especial?
Ela produz figuras para a web, que rodam em um navegador.
Ela serve para diagramas estáticos?
Não. Diagramas estáticos são tratados por outra skill, chamada blueprint-figure.
Detalhes
Descrição original do autor
Builds figures that move or respond to the reader, in three tiers: SMIL animations and slider widgets inside lessons, interactive mechanism figures that show the named parts of a real system with a computed verdict, and ordered dither bands in the course palette. Triggers: "animated figure", "add a slider widget", "interactive figure", "show how this system works", "make this diagram move", "dither masthead", "mechanism figure", "figure fence".
Popularidade
- Estrelas no GitHub
- 76 mil
- Posição no ranking
- #2625
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
blueprint-figure
76 milAjuda seu agente a desenhar diagramas SVG estáticos e claros para aulas, READMEs e manuais, mostrando como partes reais de um sistema se conectam.
build-project
76 milAtua como um tutor de projeto que guia você por uma etapa de cada vez de um projeto prático de IA, com dicas e um corretor, mas sem as respostas completas.
check-understanding
76 milAplica um quiz sobre uma fase concluída do curso AI Engineering from Scratch, para você conferir o que aprendeu antes de avançar.
claude-certification
76 milAtua como tutor passo a passo das trilhas de certificação Claude do curso AI Engineering from Scratch, com aulas, laboratórios e provas de treino.
Skills parecidas
gifgrep
394 milPermite que seu agente pesquise bibliotecas de GIFs, visualize resultados, baixe um GIF e extraia um quadro fixo ou uma folha de quadros.
meme-maker
394 milPermite que seu agente escolha um modelo de meme, adicione suas próprias legendas e crie o meme como imagem SVG ou PNG.
ios-icon-gen
280 milFaz seu agente gerar ícones para aplicativos iOS. Ele usa símbolos da Apple ou ícones de outras fontes para criar os arquivos corretos.