# Explainer authoring An explainer turns an answer with a conclusion and some structure (an explanation, comparison, decision, diagnosis, review or plan) into one page. The page leads with the conclusion and shows the reasoning in panels with diagrams, tables, steps and short text. See [Choose the artifact](../SKILL.md#choose-the-artifact) for eligibility and mode rules. Ask for an explainer to generate it directly. The default `offer` mode suggests a page at most once per conversation for eligible answers and waits for a request. `on-demand` silences offers, while `proactive` and `always-on` opt in to automatic pages. A request to draw a system uses a native diagram type. This guide is the complete draft language. Write the draft from it directly. ## Draft Write one Markdown file, `candidate.archify.md`. The first paragraph after the title is the direct conclusion. A flat list immediately after it gives up to four reasons. Each `##` heading starts a panel. ```md # Why does the first HTTPS visit take an extra round trip? {#tls-first-visit} The browser and server must agree on keys before any request is sent: **one extra round trip** with TLS 1.3. - The browser sends its key share in the first message, so one round trip is enough.[](source:rfc8446) - The server replies with its key share, then its certificate, already encrypted. - A returning browser can resume and send data immediately. @answer scope="TLS 1.3 · first visit · no proxy" @meta locale=en @source rfc8446 title="RFC 8446: TLS 1.3" url=https://www.rfc-editor.org/rfc/rfc8446 ## What is exchanged before the first request? {#handshake} @sequence id=handshake-flow title="TLS 1.3 full handshake" | actor browser | Browser | frontend | | actor server | Server | backend | | browser | server | ClientHello + key share | | server | browser | ServerHello + key share | return | | server | browser | Certificate + Finished (encrypted) | return | | browser | server | Finished + GET / | emphasis | | server | browser | 200 OK | return | @steps id=handshake-steps | hello | ClientHello | Offers cipher suites and a key share. | handshake-flow | browser | | reply | ServerHello | Picks a suite and sends its key share; the certificate follows encrypted. | handshake-flow | server | | done | Finished | Both sides confirm the keys; the request rides along. | handshake-flow | browser | ## How does TLS 1.3 compare with 1.2? {#versions} | Criterion | TLS 1.2 | TLS 1.3 | | --- | --- | --- | | Round trips before data | Two {caution:Slower} | One {good:Faster} | | Resumed connection | One | Zero {good:0-RTT} | ``` Deliver it with the command under [Delivery](#delivery). ### Rules that keep a draft valid - IDs are unique across the whole document: panels, blocks, diagrams and steps share one namespace. Give a block an `id` only when a step, link or patch targets it; omit it on callouts, facts and lists. Name a diagram after its content (`handshake-flow`), not after its panel (`handshake`). - Prose is plain text. Wrap file paths, globs, ``, operators and code in backticks: a bare `<`, `>` or `*` in prose fails as HTML or emphasis. Inline code is shown literally. - Directive rows are pipe rows, one per line, each with the documented number of cells: `| first | second |`. Write a literal pipe inside a cell as `\|`. A blank line or the next `##` or `@` line ends the rows. - Directive arguments are `key=value`; quote values with spaces using double quotes and JSON escaping. - Draw native diagrams with the compact rows below. Inline JSON specs are for exceptional cases only. - Nested lists, raw HTML and other Markdown extensions fail with a located diagnostic that names the line, component and a repair example. ## Choose the form by the shape of the information A diagram replaces the paragraph that would describe it. When the answer involves relationships, a flow, an exchange over time, a hierarchy, a history or a data model, draw it. A typical page has the conclusion, one diagram and one or two tables or step lists. | Shape of the information | Form | | --- | --- | | Messages between parties in order: protocols, request paths | `@sequence` | | A process with steps and branches: triage, rollout, approval | `@workflow` | | Parts of a system and how they connect | `@architecture` | | A hierarchy: directories, modules, taxonomies | `@tree` | | Events over time: incidents, releases | `@timeline` | | Entities with fields and relationships | `@erd` | | Options compared on several criteria | Markdown table with `{good:…}`, `{caution:…}`, `{bad:…}` cells | | Ordered actions, checks or stages | `@steps` | | Things the reader must do or verify | Task list, `- [ ] item` | | A warning, open question or key caveat | `@callout` | | A few labelled facts | `@facts` | | Numbers compared across items or over time, shares of a whole, a 2×2 priority, flows of quantity | ```` ```mermaid ```` chart fence | | One number against a limit | `@metric` | | Code that exists in a repository | `@code` | | A change to code | `@diff` or a ```` ```diff ```` fence | | A command, config or code that does not exist yet | Plain fence | Steps that walk through a diagram belong in the diagram's panel: the panel automatically receives a full-width 12-column row so the page reads them beside the sticky diagram without needing `span=12`, each step lighting its part. Title each step with the label of the node it points at, so the text and the diagram match at a glance; the detail column says what to do there. Keep tables to two or three columns so phones and narrow windows show each row without horizontal scrolling; split wider matrices into separate focused tables. For runnable behaviour, pair a complete copyable fenced snippet with its actual observed output rather than fragments. A small answer gets a small page: the conclusion plus one or two panels. A how-it-works, diagnosis or checklist question usually needs three to five. ## Writing Write for a reader who will act on the page and may check it. Use the user's language. - The conclusion is read first; every panel after it supports, qualifies or applies it. Stop once nothing is left to support. - Cover what the reader needs to act on the answer: the mechanism behind the conclusion, how to check it, and the cases where it does not hold. The next question a careful reader would ask gets a panel, a table row or a line in scope; a fact the reader could get wrong without it is not optional. - Lead with the concrete mechanism in plain reader terms before naming internal functions, flags or sidecars: say what happens and why it matters first, then anchor the exact identifier in backticks (`Back up the existing HTML before swapping in the staged build (\`commitDeliveryPair\`)`). Separate distinct dimensions (such as input vs. output or default vs. opt-in) instead of folding them into one blurred rule. - Refer to panels, diagrams and examples by heading or visible label, not by layout position (`left`, `right`, `above`, `below`), because panels stack and reflow across screen widths. - Give each layer one job: the diagram shows structure or sequence, `@steps` explains what happens or what to check at each stage, tables compare parallel cases, and prose explains why or states the boundary. Do not repeat the same sentence across prose, node labels and step details. - Keep one term per thing across the title, panels, diagram labels and table headers, and prefer the reader's own term. Keep prose in one primary language instead of mixing half-translated fragments, while keeping exact code, CLI flags, paths and protocol names in backticks. The page links a name in the text to the node with that label, so a reader can point at it in the diagram. - Give results with their evidence: a number with its unit, a file position, a source. Keep page-wide conditions in scope. Put a local assumption, exception or uncertainty next to the claim, chart or example it qualifies; do not move it away just to shorten the prose. Label illustrative or unmeasured values where the reader encounters them. - Cite a `@source` for each claim the reader cannot check alone: protocol details, thresholds, benchmark figures, API behaviour. A rule of thumb without a source is labelled as one, or left out. - Recompute every derived number before delivery and show the arithmetic once: “990 of 1000 requests at 80 ms → P99 = 80 ms; 11 slow → P99 = 600 ms.” Totals in tables add up. - Phrase an action as an imperative with its trigger in front: “If the migration reports a schema mismatch, roll it back before retrying.” - When the reader must act or verify, end with a checklist panel: `- [ ] item`, one concrete check per item. Readers tick items on the page. English: short sentences (under about 25 words), common words (use, before, to, because), active voice with a named actor. 中文:短句,每句不超过约 50 字;优先写“谁做什么、结果是什么”,少用“通过……实现/进行检查/做出决定”这类空转结构;修饰语过长或双动词纠缠时果断拆句;不在中文句子里夹杂可自然表达的英文碎词(真实命令、函数名、协议名放进反引号);数字后写清边界(超过 3 次、不超过 1 秒);用可验证的结果代替套话。 ## Compact native diagrams Write `@ id= title="..."` followed by pipe rows (`role |