
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.
- Installs
- 210
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/agentara/skills --skill article-to-html- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads article-to-html automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
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. - Callout on every paragraph. Callouts highlight one or two passages, not decorate. Keep total callouts ≤ 5 per document.
- Cramming 5 items into the three-column cards. Switch to
repeat(N, 1fr)(or use the.cols-Nmodifier), don't force wrap. - Leaking domain-specific names from the example. The template is blank; if the source doesn't mention Crewlet / Anthropic / etc., the HTML shouldn't either.
File manifest
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).
FAQ
What does the article-to-html skill do?
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.
How do I install article-to-html?
Run npx skills add https://github.com/agentara/skills --skill article-to-html in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/article-to-html/ (personal) or .claude/skills/article-to-html/ (project).
Which AI agents can use article-to-html?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is article-to-html safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains article-to-html?
It is published by agentara in agentara/skills. It has 210 recorded installs.
More from agentara/skills
video-storyboard
agentara/skills
Generate storyboard image boards and matching video-generation prompt scripts for specific scenes in a short video plan. Use this skill whenever the user asks to create a storyboard, storyboard image, video prompt script, scene prompt, image-to-video prompt, shot board, or per-scene video-generation package, especially when they specify a scene number, duration, or an existing video plan. This skill saves outputs as storyboard/scene-XX.png and storyboard/scene-XX.md and enforces grid sizing, timing labels, and strict character, wardrobe, prop, and location continuity.
super-daddy
agentara/skills
Use for Chinese-language or China-family-context family-doctor-style parenting and child health management: 育儿, 宝宝护理, 科学养育, 生长发育, 喂养, 母乳, 配方奶, 辅食, 睡眠, 湿疹, 过敏观察, 疫苗沟通, 居家观察, 宝宝档案, parenting.md tracking, 看病问诊, 病例归档, 父母焦虑, 家庭协作, visual parenting plans, or dad-focused caregiving. Also use as a safety bridge when a caregiver raises acute child symptoms in a parenting context. Do not use for diagnosis, prescriptions, medication dosing, lab reports, or adult-only health questions.
video-character-design
agentara/skills
Open the skill to read its SKILL.md instructions.
video-plan
agentara/skills
Open the skill to read its SKILL.md instructions.
video-poster-design
agentara/skills
Open the skill to read its SKILL.md instructions.
Popular docs & writing skills
grill-with-docs
mattpocock/skills
A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
lark-markdown
open.feishu.cn
飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。
writing-beats
mattpocock/skills
Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.
writing-shape
mattpocock/skills
Writing, exploit: shape raw material into an article, paragraph by paragraph.
writing-fragments
mattpocock/skills
Writing, explore: mine raw fragments, no structure yet.
writing-for-agents
mattpocock/skills
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.