figure
Add, change or explain a diagram in this repo's Markdown (README.md, README.en.md, docs): a Mermaid fence or an Archify picture. Use when asked for a diagram, flowchart, mind map or 'a picture of' something, or to update one after its prose changed.
- License 许可
- MPL-2.0
- 最近更新
- 2026-11-09
- Stars
- ★ 7
- Forks
- 1
01 前言 Front Matter
- name
- figure
- description
- Add, change or explain a diagram in this repo's Markdown (README.md, README.en.md, docs): a Mermaid fence or an Archify picture. Use when asked for a diagram, flowchart, mind map or 'a picture of' something, or to update one after its prose changed.
03 SKILL.md 正文
figure
A diagram is a ```mermaid fence in the page it illustrates; GitHub draws it there. Every
fence has a header and a reading card.
Steps
-
Read the prose the figure sits beside. Draw only what it says; the text is the source of truth and a figure that disagrees with it is a bug in the figure. If the page has a twin in the other language (
README.mdandREADME.en.md), both figures say the same. -
Write the fence. First two lines, which Mermaid ignores:
%% figure: <id> lowercase words joined by '-', unique in the repo %% title: <question> the question the figure answersThen the diagram, at most about 15 nodes; split it rather than grow it.
-
Write the reading card right after the closing fence, in the page's language:
<details open> <summary>How to read this figure</summary> (pt-BR: Como ler esta figura) **Takeaway.** one plain sentence, what to remember (Em uma frase.) **How to read.** direction, what shapes and arrows mean (Como ler.) **Not shown.** what was left out on purpose (Fora da figura.) **Evidence.** file, paragraph or command, with ⚠ if unchecked (Evidência.) </details>openkeeps the explanation visible under the diagram; a reader should never have to find it. Each label is its own paragraph (blank lines between). The takeaway has no jargon. Evidence names the file or section the figure summarises; a discrepancy found between figure and text, or a claim not checked, is stated there with ⚠, not hidden. -
Check that every node and label traces to a file you read. Never remove a ⚠ without doing the check.
Visual grammar, the same in every figure
- Rectangle: a thing or a step. Diamond: a test, written as a question. Every test labels both its yes and its no edge.
- Solid arrow: makes or leads to the next thing. Dashed arrow (
-. label .->): checks, tests or compares against. Label every arrow that is not obvious from its two ends. - No self-loops: an arrow from a box back to itself says nothing about what it is compared with. Draw the check as a dashed arrow to the thing it is checked against.
- Number boxes that happen in order (
1 ·,2 ·) so the sequence reads without the arrows. - One flow direction per figure (
LRorTD); groups (subgraph) for stages. - Leave
classDef,styleand%%{init}%%out. A colour never carries meaning on its own; the label or shape says it.
A picture drawn with Archify
For a flow that a Mermaid fence draws badly, draw a picture. Write the source as
docs/archify/<slug>.json and run just figure: the vendored archify skill (.claude/skills/archify,
a pinned submodule that is not part of the plugin) validates and checks it, picasso's look is set
over it and docs/img/<slug>.png is taken. just figure-init checks the submodule out once;
just figure-check fails when a source has no PNG or changed since it.
- Commit the JSON,
docs/archify/figures.lockand the PNG; never the HTML (build/). - Write the English twin
docs/archify/en/<slug>.json: the same JSON withmeta.localeenand only the words translated (title, lanes, labels, sublabels, tags).README.mdembedsdocs/img/<slug>.png;README.en.mdembedsdocs/img/en/<slug>.png. If a translated label breaks the layout, shorten the label; never move a box. - Embed the PNG by its relative path with an alt text that says what it shows, and put the same reading card under it, in every language of the page. At most about 10 boxes, short labels, no jargon.
- Look at the PNG at full size and shrunk to 800 px wide before you commit it: every label must read.
- Every box and label traces to a file you read; the card's evidence names it.
04 同仓库更多 Skills
retorica
(em desenvolvimento) Retórica para texto técnico em português. Sem regras ainda: não use para reescrever texto.
ptbr
暂无简介
ptbr-routing
Escolhe a skill e o nível de rigor antes de carregar uma skill de escrita em pt-BR. Use quando o pedido é escrever, reescrever ou revisar texto em português e não diz o nível nem a skill.
cientifico
Escreve e revisa texto científico ou técnico com fontes (artigo, proposta, relatório) em pt-BR, e em EN quando o texto é bilíngue. Use ao redigir, citar, checar números, preparar ou responder revisão.
bipr
Abre ou atualiza o PR do branch atual com título e corpo bilíngues, pt-BR primeiro e o espelho em inglês, gerados a partir dos commits. Use quando pedirem /bipr ou um PR bilíngue.
ptbr-writer
暂无简介