motion-figure
यह क्या करती है
यह स्किल ऐसे आरेख और चित्र बनाती है जो हिलते हैं या इनपुट पर प्रतिक्रिया देते हैं। जो लेखक और शिक्षक चाहते हैं कि पाठक समय के साथ प्रक्रिया बदलती देखें या किसी मान को बदलकर परिणाम देखें, उनके लिए यह है।
कब इस्तेमाल करें
- ✓जब कोई पाठ समय के साथ बदलने वाली प्रक्रिया समझाए, जैसे भरती हुई queue।
- ✓जब किसी सूत्र में slider चाहिए ताकि पाठक देख सके कि एक इनपुट परिणाम कैसे बदलता है।
- ✓जब पेज पर इंटरएक्टिव डेमो चाहिए जहाँ पाठक एक चीज़ बदलकर देखे कि सिस्टम क्या करता है।
Skill का लिंक
https://github.com/rohitg00/ai-engineering-from-scratch/blob/main/.claude/skills/motion-figure/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“ऐसा slider चित्र बनाइए जो दिखाए कि learning rate training curve को कैसे बदलता है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट तीन रूपों में से एक चुनता है: पाठ के भीतर सरल एनिमेशन या slider, किसी असली सिस्टम के लिए इंटरएक्टिव पैनल, या चलती पृष्ठभूमि की पट्टी। फिर वह हिस्सों के असली नामों से चित्र बनाता है।
तकनीकी सामग्री (मूल 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
अक्सर पूछे जाने वाले सवाल
किस तरह के चित्र बन सकते हैं?
यह पाठ एनिमेशन, slider विजेट, इंटरएक्टिव तंत्र पैनल और चलती dither पट्टियाँ बना सकती है।
क्या इसके लिए कोई खास सॉफ़्टवेयर चाहिए?
यह वेब-आधारित चित्र बनाती है, जो ब्राउज़र में चलते हैं।
क्या यह स्थिर आरेखों के लिए है?
नहीं। स्थिर आरेख 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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
blueprint-figure
76kआपके एजेंट को पाठों, READMEs और मैनुअल के लिए साफ़, स्थिर SVG आरेख बनाने में मदद करती है, जो दिखाते हैं कि सिस्टम के असली हिस्से आपस में कैसे जुड़ते हैं।
build-project
76kएक प्रोजेक्ट ट्यूटर के रूप में एक समय में एक चरण पर मार्गदर्शन देती है, संकेतों और ग्रेडर के साथ, लेकिन पूरे उत्तर नहीं।
check-understanding
76kAI Engineering from Scratch कोर्स के पूरे किए चरण पर आपकी क्विज़ लेती है, ताकि आगे बढ़ने से पहले आप जाँच सकें कि आपने क्या सीखा है।
claude-certification
76kAI Engineering from Scratch कोर्स के Claude सर्टिफ़िकेशन ट्रैक्स के लिए पाठों, लैब और अभ्यास परीक्षाओं के साथ चरण-दर-चरण ट्यूटर की तरह मार्गदर्शन देती है।
मिलती-जुलती skills
gifgrep
394kयह आपके एजेंट को GIF लाइब्रेरी में खोजने, नतीजों का पूर्वावलोकन करने, GIF डाउनलोड करने, और उससे एक फ़्रेम या फ़्रेम्स की शीट निकालने देती है।
meme-maker
394kयह आपके एजेंट को मीम टेम्पलेट चुनने, अपने कैप्शन जोड़ने और मीम को SVG या PNG इमेज के रूप में बनाने देती है।
ios-icon-gen
280kआपके एजेंट को iOS ऐप्स के लिए icons बनाने देता है। यह Apple symbols या दूसरे स्रोतों के आइकन इस्तेमाल करके सही files बनाता है।