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…
от agentara★ 637 звёзд на GitHubОб этом скилле
article-to-html
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.
Flow after trigger
- Get the source. If the user gave a file path,
Readit. If the draft is in conversation context, use that directly. - Extract document skeleton. Title, subtitle, TL;DR, section list, whether figures are needed, whether tables are needed, whether interactivity is needed.
- Read the template.
Readreferences/template.htmland use its full CSS + structure as the scaffold. - Read the component reference.
Readreferences/components.mdand pick out the snippets you need this round. - If figures are needed: consult
references/svg-figures.mdand draw with inline SVG (no external image references — keep the file portable). - If interactivity is needed: consult
references/interactive.mdand append a<script>block before</body>. - Output.
Writeto{same dir as source or current working dir}/{slug}.html. Filename = English slug of the title, or whatever the user specified. - Report. One sentence with the file path + a one-line command to open it in a browser.
Design invariants (do NOT break)
- Single file. All CSS / SVG / JS inline. No external fonts, no CDNs, no remote images.
- Don't change the
paperpalette.--paper: #f7f7f5+--ink: #1a1a1ais 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. - Serif body + monospace meta.
bodyusesui-serif; every "metadata slot" (.doc-eyebrow / .doc-meta / th / code / figcaption / .num) usesui-monospace. This mix is the signature. - Section numbering prefix.
<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. - Figures need figcaption.
<figcaption><span class="fig-num">FIG 1</span>caption text</figcaption>, theFIG Nin accent color. - TL;DR always on top. If the source has no TL;DR, condense the first one or two paragraphs into a ~60-word summary and put it there.
- No "generated by AI" footer watermark unless the user explicitly asks.
Component cheat sheet
| 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> |
Interactive elements (optional)
The template is static by default. Add interactivity proactively when the document clearly benefits:
- Section collapse / expand (long documents)
- "Copy" button on code blocks
- Table filter / sort (great for vendor comparison tables)
- Dark mode toggle (persisted to localStorage)
- TOC + scrollspy
- Forms (e.g. for an RFC / decision doc, a "vote / leave comment" form persisted to localStorage)
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).
Naming and output location
- Filename: English slug of the title, lowercase, hyphenated, ≤40 chars. For Chinese titles, use pinyin or a translated keyword hint, e.g. 《新基建提案》→
infra-proposal.html. - Output location:
- If the user gave a source markdown path, output in the same directory.
- Otherwise output in the current working directory.
- If the user specifies a path, honor it.
- If a file with the same name exists, append
-v2/-v3. Never silently overwrite the user's existing output.
Common mistakes
- Recoloring the CSS. Don't touch paper/ink/accent unless the user said "different palette please". Visual consistency is the entire point.
- Switching body to sans-serif. The whole "proposal paper" feel hinges on the serif body. Changing fonts breaks the look.
- Using emoji as icons. The character vocabulary of this skill is uppercase monospace labels + small color blocks (
.mascot/.layer-icon). No emoji unless the user explicitly asks. - External
<img src="https://...">. Kills portability. Either inline SVG, base64, or omit. - Missing figcaption numbers. The
FIG 1 / FIG 2 / FIG 3running labels are key to the "academic paper" feel. - **Callo
Установить article-to-html в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл 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 / generate article HTML / paper-style HTML / convert to article html / render this as a doc html" or similar, and wants a **static single file** rather than Figma/PDF/PPT. Also fires when the user pastes some markdown and says "beautify this / typeset this / give me a web version". Do NOT trigger when the user wants slides, needs a backend, or needs a multi-page site.
Как установить скилл article-to-html?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл article-to-html запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic