motion-figure
하는 일
이 스킬은 입력에 따라 움직이거나 반응하는 도표와 그림을 만듭니다. 시간에 따라 변하는 과정을 보여 주거나, 값을 조절해 결과를 보게 하려는 작가와 교육자를 위한 스킬입니다.
사용하는 경우
- ✓큐가 차오르는 것처럼 시간에 따라 변하는 과정을 수업에서 설명할 때.
- ✓독자가 입력값 하나가 결과에 어떤 영향을 주는지 보도록 공식에 슬라이더가 필요할 때.
- ✓독자가 한 가지를 바꾸고 시스템이 어떻게 반응하는지 볼 수 있는 대화형 데모가 페이지에 필요할 때.
스킬 링크
https://github.com/rohitg00/ai-engineering-from-scratch/blob/main/.claude/skills/motion-figure/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“학습률이 학습 곡선을 어떻게 바꾸는지 보여 주는 슬라이더 그림을 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 세 가지 형태 중 하나를 고릅니다. 수업 안의 간단한 애니메이션이나 슬라이더, 실제 시스템을 위한 대화형 패널, 또는 움직이는 디더링 띠입니다. 그다음 실제 부품 이름을 사용해 그림을 만듭니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
어떤 종류의 그림을 만들 수 있나요?
수업 애니메이션, 슬라이더 위젯, 대화형 구조 패널, 움직이는 디더링 띠를 만들 수 있습니다.
특별한 소프트웨어가 필요한가요?
아니요. 브라우저에서 실행되는 웹 기반 그림을 만듭니다.
정적인 도표에도 사용하나요?
아니요. 정적인 도표는 blueprint-figure라는 다른 스킬이 담당합니다.
상세 정보
작성자의 원본 설명
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".
인기도
- GitHub 스타
- 76k
- 순위
- #2625
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
blueprint-figure
76k강의, README, 매뉴얼을 위해 시스템의 실제 부분들이 어떻게 연결되는지 보여 주는 정적 SVG 도표를 명확하게 그리도록 돕습니다.
build-project
76k한 번에 한 단계씩 AI 실습 프로젝트를 안내하는 튜터입니다. 힌트와 채점을 제공하지만 정답 전체는 주지 않습니다.
check-understanding
76k완료한 단계에 대해 퀴즈를 내어, 다음으로 넘어가기 전에 무엇을 배웠는지 확인하도록 돕습니다.
claude-certification
76kAI Engineering from Scratch 과정의 Claude 자격증 트랙을 위한 단계별 튜터입니다. 강의, 실습, 모의고사를 제공합니다.