figure
यह क्या करती है
यह स्किल AI एजेंट को किसी प्रक्रिया का एनिमेटेड चित्र बनाने देती है, जैसे कोई अनुरोध सिस्टम में कैसे चलता है। यह उन डेवलपर्स के लिए है जिन्हें README, pull request या blog post में साफ़ विज़ुअल चाहिए।
कब इस्तेमाल करें
- ✓जब कोई कोड बदलाव या फ़ीचर समझाने के लिए डायग्राम चाहिए कि वह कैसे काम करता है।
- ✓जब आप एक चित्र चाहते हैं जो दिखाए कि कोई अनुरोध या background job कैसे चलता है।
- ✓जब आपको एक एनिमेटेड विज़ुअल चाहिए जो पढ़ने वाले की light या dark थीम के अनुसार चले।
Skill का लिंक
https://github.com/vectorize-io/hindsight/blob/main/.claude/skills/figure/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“README के लिए एक एनिमेटेड डायग्राम बनाइए, जो दिखाए कि उपयोगकर्ता का अनुरोध मेरे ऐप में कैसे चलता है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट डायग्राम को boxes, arrows और labels के JSON विवरण के रूप में लिखता है, और एक कमांड उसे एक SVG फ़ाइल में रेंडर करता है। यह फ़ाइल जहाँ भी markdown दिखता है वहाँ चलती है, बिना script या upload के।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Figure
One animated SVG, no scripts, no upload: it renders and plays anywhere markdown does — GitHub README, PR and issue comments, blog posts, Notion. Sharp at any size, and it follows the reader's light or dark theme.
Figures are Giotto diagrams: one JSON document, the same
format the docs site's interactive figures use (hindsight-docs/figures/*.json).
You write the diagram JSON — never SVG. One command renders it. No build, no browser.
1. Write the diagram
Do not save it as a file in the repo. It is an input, not a deliverable — pipe it in (step 2), and the rendered SVG keeps a copy of it for you.
{
"title": "Retain",
"speed": 2000,
"elements": [
{ "id": "root", "type": "group", "children": ["agent", "api", "bank"], "layout": { "direction": "row", "gap": 48 } },
{ "id": "agent", "type": "rectangle", "content": [{ "type": "title", "text": "Your AI Agent" }] },
{ "id": "api", "type": "group", "label": { "title": "Hindsight API" }, "children": ["retain"], "layout": { "direction": "column", "gap": 24 } },
{ "id": "retain", "type": "rectangle", "content": [{ "type": "title", "text": "Retain" }, { "type": "subtitle", "text": "LLM extraction" }] },
{ "id": "bank", "type": "group", "label": { "title": "Memory Bank" }, "children": ["facts", "obs"], "layout": { "direction": "column", "gap": 28 } },
{ "id": "facts", "type": "cylinder", "content": [{ "type": "title", "text": "Facts" }, { "type": "subtitle", "text": "world · experience" }] },
{ "id": "obs", "type": "cylinder", "content": [{ "type": "title", "text": "Observations" }] },
{ "id": "call", "type": "arrow", "route": "curved", "start": { "id": "agent" }, "end": { "id": "retain" }, "label": { "text": "retain()" } },
{ "id": "store", "type": "arrow", "route": "curved", "start": { "id": "retain" }, "end": { "id": "facts" }, "label": { "text": "extract" } },
{ "id": "consolidate", "type": "arrow", "route": "curved", "start": { "id": "facts" }, "end": { "id": "obs" }, "label": { "text": "consolidate" }, "quiet": true }
],
"scenes": [
{
"label": "retain()",
"beats": [
{ "edges": { "edge": "call", "data": "“Alice joined Google in March”" }, "say": "Your agent sends what happened." },
{
"edges": "store",
"show": { "facts": [{ "tag": "world", "tone": "blue", "text": "Alice joined Google", "meta": "Mar 2026", "mark": "new" }] },
"say": "An LLM pulls out the facts."
},
{
"edges": "consolidate",
"ms": 2600,
"show": { "obs": [{ "text": "Alice works at Google", "meta": "2 sources" }] },
"say": "The worker merges them into one belief."
}
]
}
]
}
Elements — a flat list. A group lists its children by id and lays them out
(layout: { direction: "row" | "column", gap, align }); a label: { title } draws a frame around
it. Children line up at the top/left unless the layout says otherwise: use align: "center" in rows
and align: "stretch" in columns (equal-width boxes), as the docs figures do. rectangle boxes are the things that do something; cylinder is data at rest; diamond is a
decision. A box's content is blocks: title, subtitle, text, list, chips, code. Give every
element a stable id.
Arrows — { type: "arrow", start: { id }, end: { id }, label?: { text }, route: "curved", around?, quiet? };
the ends name a box or a group. around: "above" | "below" arcs over the boxes in between;
quiet: true draws the arrow only while a scene uses it (for long arrows that would cut across).
Scenes and beats — each scene is one story the figure tells; the SVG plays them in a loop. A beat
is one moment: edges (an arrow id, { edge, back, data } for a reverse hop or a data chip, or an
array to run several at once), say (the caption), show (fills the card inside a box until the
scene ends), light (highlight boxes for that beat; on the scene, for the whole scene), ms (how
long the beat lasts).
Card rows — { tag?, tone?, text, meta?, mark?, mono? }. tone is blue | purple | green | orange | red | gray. Use tag for the kind of thing (world, user, page), meta for a detail,
and mark for what happened to it (new, ✓, cited, ↻). **bold** and `code` work in
any text.
The full format is the FORMAT text in node_modules/giotto/lib/edit.js. The 13 fig
अक्सर पूछे जाने वाले सवाल
क्या मुझे खुद SVG कोड लिखना होगा?
नहीं। आप डायग्राम को JSON में बताते हैं, और render कमांड SVG बना देता है।
यह चित्र कहाँ दिखाया जा सकता है?
स्किल के अनुसार यह GitHub README, pull request और issue comments, blog posts और Notion में चलता है।
क्या रेंडरिंग के लिए browser चाहिए?
नहीं। स्किल के अनुसार डायग्राम रेंडर करने के लिए कोई build चरण या browser नहीं चाहिए।
जानकारी
लेखक का मूल विवरण
Draw an animated figure (boxes, arrows, moving data) as one self-contained SVG for a GitHub README, PR, issue or blog post. Use when a change or an explanation needs a diagram — how a request flows, what a background job does, what a feature changed — or when the user asks for a diagram, figure, animation or "show it visually". The docs site's own pages use the interactive player instead (see step 4).
repo: vectorize-io/hindsight
लोकप्रियता
- GitHub स्टार
- 58k
- रैंकिंग में स्थान
- #3258
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
Hindsight Memory
58kयह आपके एजेंट को अपने built-in memory टूल्स की जगह Hindsight ऐप में लंबे समय की याददाश्त सहेजने और खोजने की सीख देती है।
hindsight-memory
58kयह आपके एजेंट को जवाब देने से पहले पिछला ज़रूरी संदर्भ याद करने, सीखते समय टिकाऊ तथ्य सहेजने और अपनी याददाश्त पर तर्क करने देती है।
hindsight-coding-agent
58kकोडिंग सेशन के लिए Hindsight मेमोरी प्लगइन समझाती है, जिसमें हर repo का अलग memory bank, अपने-आप बनने वाला सेशन संदर्भ और सेटिंग्स बदलने का तरीका शामिल है।
hindsight-recall
58kजब आप पिछले काम के बारे में पूछते हैं, तब यह आपके एजेंट को पिछले फ़ैसलों, प्रोजेक्ट संदर्भ और पसंद के लिए लंबी-अवधि याददाश्त खोजने में मदद करती है।
मिलती-जुलती skills
gifgrep
394kयह आपके एजेंट को GIF लाइब्रेरी में खोजने, नतीजों का पूर्वावलोकन करने, GIF डाउनलोड करने, और उससे एक फ़्रेम या फ़्रेम्स की शीट निकालने देती है।
meme-maker
394kयह आपके एजेंट को मीम टेम्पलेट चुनने, अपने कैप्शन जोड़ने और मीम को SVG या PNG इमेज के रूप में बनाने देती है।
ios-icon-gen
280kआपके एजेंट को iOS ऐप्स के लिए icons बनाने देता है। यह Apple symbols या दूसरे स्रोतों के आइकन इस्तेमाल करके सही files बनाता है।