figure
O que ela faz
Esta skill permite que um agente de IA crie uma imagem animada de um processo, como o caminho de uma requisição dentro de um sistema. Ela é para desenvolvedores que querem uma visualização clara em um README, um pull request ou um post de blog.
Quando usar
- ✓Quando uma alteração de código ou uma funcionalidade precisar de um diagrama para explicar como funciona.
- ✓Quando você quiser uma imagem mostrando como uma requisição ou uma tarefa em segundo plano segue o seu fluxo.
- ✓Quando você precisar de uma visualização animada que acompanhe o tema claro ou escuro de quem a lê.
Link da skill
https://github.com/vectorize-io/hindsight/blob/main/.claude/skills/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
“Quero um diagrama animado mostrando como uma requisição do usuário passa pelo meu app, para o README.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente escreve o diagrama como uma descrição em JSON de caixas, setas e rótulos, e um comando transforma isso em um único arquivo SVG. O arquivo funciona em qualquer lugar onde o markdown é exibido, sem script nem upload.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Eu mesmo escrevo o código SVG?
Não. Você descreve o diagrama em JSON, e o comando de renderização gera o SVG.
Onde a imagem pode ser exibida?
A skill diz que ela funciona em READMEs do GitHub, comentários de pull request e issues, posts de blog e no Notion.
A renderização precisa de um navegador?
Não. A skill diz que não é preciso nenhuma etapa de build nem navegador para gerar o diagrama.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 58 mil
- Posição no ranking
- #3258
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
Hindsight Memory
58 milEnsina seu agente a salvar e buscar memória de longo prazo no aplicativo Hindsight, em vez de usar suas ferramentas de memória internas.
hindsight-memory
58 milPermite que seu agente recupere contexto passado relevante antes de responder, salve fatos duradouros conforme aprende e raciocine sobre sua memória.
hindsight-coding-agent
58 milExplica o plugin de memória Hindsight para sessões de programação, incluindo bancos de memória por repositório, contexto automático da sessão e como alterar suas configurações.
hindsight-recall
58 milAjuda seu agente a buscar na memória de longo prazo decisões passadas, contexto de projetos e preferências quando você perguntar sobre trabalhos anteriores.
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.