Loading...
Loading...
Compare original and translation side by side
```doodleimg/<doodle>python3 <this-skill-dir>/scripts/doodle.py```doodleimg/<doodle>python3 <this-skill-dir>/scripts/doodle.py<doodle> --settingsdoodle.jsonaudiencedepthlanguagedocsDirnoteskidquickdeep<topic-slug>.mddocsDirlanguage<doodle> <topic-slug>.mdwarning: file:line: ...error: file:line: ...<!-- doodle ... -->doodle.json--theme-o```mermaid<doodle> --settingsdoodle.jsonaudiencedepthlanguagedocsDirnoteskidquickdeep<topic-slug>.mddocsDirlanguage<doodle> <topic-slug>.mdwarning: file:line: ...error: file:line: ...<!-- doodle ... -->doodle.json--theme-o```mermaid | Write like this |
|---|---|
| No jargon at all. Everyday metaphors in every step and title. Sentences under 12 words. |
| Define each technical term the first time. A metaphor where it helps. |
| Assume programming basics. Real names, file paths and short code snippets; metaphors only for the hard part. |
| Dense and precise. Skip the basics, focus on the mechanism, edge cases and trade-offs. |
| Shape |
|---|---|
| Title question, "In three sentences", 1–2 drawings, one-line takeaway. Nothing else. |
| The full structure below with 2–4 steps. |
| 3–6 steps, plus the two sections marked deep below. |
| 写法 |
|---|---|
| 完全不要使用术语。在每个步骤和标题中都使用日常生活中的比喻。每句话不超过 12 个词。 |
| 首次出现时定义每个技术术语。在有助于理解时使用比喻。 |
| 假定读者掌握编程基础。使用真实名称、文件路径和简短代码片段;仅在难懂部分使用比喻。 |
| 内容密集而精确。跳过基础知识,重点说明机制、边界情况和权衡取舍。 |
| 组织方式 |
|---|---|
| 使用问题作为标题;包含“三句话说清楚”、1–2 幅图和一句话结论。除此之外不添加其他内容。 |
| 使用下方完整结构,共 2–4 个步骤。 |
| 3–6 个步骤,并加入下方标有 deep 的两个章节。 |
undefinedundefinedhubhubbarsbars
Numbers that only illustrate (not measured) can go in a step's `bars` drawing; say so in its subtitle, e.g.
`> illustrative numbers`. The Evidence section holds only real data.
Writing rules: short sentences; plain words; **bold** the key fact in each step; one idea per drawing; the drawing's
title states the step's claim; tones tell the story (`bad` = the broken part, `ok` = the fix or healthy path,
`warn` = the risky step, `info` = the actor or input).
仅用于举例说明(而非实测)的数字可以放在某一步的 `bars` 图中;应在副标题中说明,例如 `> illustrative numbers`。“Evidence”章节只包含真实数据。
写作规则:句子要短;用词要平实;每一步都要**加粗**关键事实;每幅图只表达一个想法;图的标题应陈述该步骤的结论;Tone 用来讲述整个过程(`bad` = 故障部分,`ok` = 修复方案或健康路径,`warn` = 风险步骤,`info` = 执行者或输入)。timeline: A pizza order
> optional subtitle
Order placed | the app sends it to the shop | info
Oven is full | waits 20 minutes | warn
Delivered | still hot | okkind: Titlelabel | note | toneneutralinfookbadwarn@sketch@vertical@horizontal@arrowcomparestackhub@theme NAME\n//| kind | use it for | extra syntax |
|---|---|---|
| what happens in what order | rows only (numbered automatically) |
| steps, decisions, branches | |
| loops, things that keep repeating | rows only, in loop order |
| before/after, A vs B, wrong vs right | |
| folders, hierarchies, parts of a whole | indent children by 2 spaces |
| layers (architecture, network, call stack) | rows top to bottom; |
| who talks to whom (requests, protocols) | |
| how much: time, size, count, cost | |
| what something is made of; key vocabulary | first row is the center, the others go around it |
timeline: A pizza order
> optional subtitle
Order placed | the app sends it to the shop | info
Oven is full | waits 20 minutes | warn
Delivered | still hot | okkind: Titlelabel | note | tonenotetoneneutralinfookbadwarn@sketch@vertical@horizontal@arrowcomparestackhub@theme NAME\n//| kind | 用途 | 额外语法 |
|---|---|---|
| 按顺序发生的事情 | 仅使用行(自动编号) |
| 步骤、决策、分支 | `[id] Label |
| 循环、不断重复的事情 | 仅使用行,按循环顺序排列 |
| 之前与之后、A 与 B、错误与正确 | `## Column |
| 文件夹、层级、整体组成部分 | 子项缩进 2 个空格 |
| 层(架构、网络、调用栈) | 从上到下排列各行; |
| 谁与谁通信(请求、协议) | `A -> B: message |
| 数量度量:时间、大小、计数、成本 | `Label |
| 某事物由什么组成;关键词汇 | 第一行是中心,其他行围绕中心排列 |
doodle.json--settingssources<doodle> --init~/.config/doodle/config.json@theme NAMEthemepapercleancandyblueprintchalksketchschemeautolightdarkcolors#heximageDiraudiencedepthlanguagedocsDirnotes--settingssourcesdoodle.json<doodle> --init~/.config/doodle/config.json@theme NAMEthemepapercleancandyblueprintchalksketchschemeautolightdarkcolors#heximageDiraudiencedepthlanguagedocsDirnotes