figure
Fungsinya
Skill ini memungkinkan agent AI membuat gambar beranimasi dari sebuah proses, seperti bagaimana permintaan bergerak melalui sistem. Skill ini ditujukan untuk pengembang yang menginginkan visual yang jelas di README, pull request, atau posting blog.
Kapan dipakai
- βSaat sebuah perubahan kode atau fitur membutuhkan diagram untuk menjelaskan cara kerjanya.
- βSaat Anda ingin gambar yang menunjukkan alur permintaan atau pekerjaan latar belakang.
- βSaat Anda membutuhkan visual beranimasi yang mengikuti tema terang atau gelap pembaca.
Link skill
https://github.com/vectorize-io/hindsight/blob/main/.claude/skills/figure/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βSaya ingin diagram beranimasi yang menunjukkan bagaimana permintaan pengguna bergerak melalui aplikasi saya, untuk README.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent menulis diagram sebagai deskripsi JSON berisi kotak, panah, dan label, lalu sebuah perintah merendernya menjadi satu file SVG. File itu dapat dimainkan di mana pun markdown ditampilkan, tanpa skrip atau unggahan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah saya perlu menulis kode SVG sendiri?
Tidak. Anda mendeskripsikan diagram dalam JSON, dan perintah render menghasilkan SVG-nya.
Di mana gambar ini bisa ditampilkan?
Skill menyatakan gambar ini berjalan di README GitHub, komentar pull request dan issue, posting blog, dan Notion.
Apakah perenderan membutuhkan peramban?
Tidak. Skill menyatakan tidak diperlukan langkah build atau peramban untuk merender diagram.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 58k
- Peringkat
- #3258
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
Hindsight Memory
58kMengajari agent Anda menyimpan dan mencari memori jangka panjang di aplikasi Hindsight, alih-alih menggunakan alat memorinya sendiri.
hindsight-memory
58kMembantu agent Anda mengingat konteks lampau yang relevan sebelum menjawab, menyimpan fakta yang tahan lama saat mempelajarinya, dan menalar atas memorinya.
hindsight-coding-agent
58kMenjelaskan plugin memori Hindsight untuk sesi pengodean, termasuk bank memori per repo, konteks sesi otomatis, dan cara mengubah pengaturannya.
hindsight-recall
58kMembantu agent Anda mencari memori jangka panjang untuk keputusan, konteks proyek, dan preferensi lampau saat Anda bertanya tentang pekerjaan sebelumnya.
Skill serupa
gifgrep
394kMemungkinkan agent Anda mencari GIF, melihat pratinjau hasil, mengunduh GIF, dan mengambil satu bingkai diam atau lembar kontak darinya.
meme-maker
394kMemungkinkan agent Anda memilih templat meme, menambahkan teks sendiri, dan membuat meme sebagai gambar SVG atau PNG.
ios-icon-gen
280kMemungkinkan agent Anda membuat ikon untuk aplikasi iOS. Menggunakan simbol Apple atau ikon dari sumber lain untuk membuat file yang tepat.