视觉画布设计
canvas-design
基于设计原则创作静态视觉作品,用于海报与品牌图形。
article-to-html【文档与办公】Render a markdown draft / any document in the conversation context into a single-file "paper proposal" HTML — serif body, monospace meta, numbered sections, inline SVG figures, callouts, tables, optional interactive elements. Trigger when the user says "turn this into HTML / render as a web page / make a pretty HTML / give me a single-page doc / gene…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Turn a document (from conversation context or a given markdown file) into a self-contained HTML file, reusing the "paper proposal" design system defined in references/template.html: serif body + monospace meta + numbered sections + inline SVG figures + callouts + tables + optional JS interactivity.
Read it. If the draft is in conversation context, use that directly.Read references/template.html and use its full CSS + structure as the scaffold.Read references/components.md and pick out the snippets you need this round.references/svg-figures.md and draw with inline SVG (no external image references — keep the file portable).references/interactive.md and append a <script> block before </body>.Write to {same dir as source or current working dir}/{slug}.html. Filename = English slug of the title, or whatever the user specified.paper palette. --paper: #f7f7f5 + --ink: #1a1a1a is this skill's visual signature. If the user explicitly asks for a different mood (dark mode, different accent), you can change --accent / --warn, but keep paper/ink.body uses ui-serif; every "metadata slot" (.doc-eyebrow / .doc-meta / th / code / figcaption / .num) uses ui-monospace. This mix is the signature.<h2><span class="num">01</span>Section title</h2> — small monospace, faint gray, 14px gap to the title. Add it even if the source has no numbers.<figcaption><span class="fig-num">FIG 1</span>caption text</figcaption>, the FIG N in accent color.| If the source contains... | Use... |
|---|---|
| Intro / abstract | .tldr block |
| Quotation | .callout.cite (with .cite-source) |
| Warning / heads-up | .callout.warn |
| Generic sidenote | .callout (default, white background) |
| Three parallel concepts / roles | .cards (three-column cards) |
| N parallel concepts | .cards cols-2 / cols-4 |
| Comparison / vendor matrix | <table> |
| Flow / architecture / timing / bar chart | inline SVG figure — see references/svg-figures.md |
| Open-questions list | <ol> with bold lead phrase per item |
| Reference links | <footer> containing a <ul> |
The template is static by default. Add interactivity proactively when the document clearly benefits:
Specific snippets in references/interactive.md. Default to none unless (a) the doc is long — ≥3 sections + ≥2 figures, or (b) the source is interaction-shaped (tutorial, decision doc, vendor selection).
infra-proposal.html.-v2 / -v3. Never silently overwrite the user's existing output..mascot / .layer-icon). No emoji unless the user explicitly asks.<img src="https://...">. Kills portability. Either inline SVG, base64, or omit.FIG 1 / FIG 2 / FIG 3 running labels are key to the "academic paper" feel.repeat(N, 1fr) (or use the .cols-N modifier), don't force wrap.references/template.html — blank scaffold (full CSS + placeholder structure). Start here.references/components.md — cut-and-paste HTML snippets for every component.references/svg-figures.md — five typical SVG figure skeletons (architecture, timing, bar comparison, stacked layers, lifecycle).references/interactive.md — JS snippets (collapse, copy, table filter/sort, TOC, dark mode, form → localStorage, reading progress, figure zoom).assets/example.html — a completed reference render (the original Chinese article.html kept as a visual benchmark).