Html doc design
Unified design system for standalone HTML documents (Japanese-first technical docs, guidebooks, reports, specs). Use this skill WHENEVER you create any HTML page meant for humans to read, convert Markdown files to HTML, or the user says anything like 「HTML化」「HTMLで出力」「HTMLドキュメント」「レポート/資料/ガイドをHTMLで」 — even if they don't mention design or styling. It guarantees every generated document shares the same typography, colors, tables, callouts, Mermaid rendering, TOC, and dark mode. Exception: if the current project defines its own HTML/document design rules (project-level skill or explicit guidelines), the project's rules take precedence.From its SKILL.md
npx -y skills add YuheiNakasaka/cc-toolkit --skill html-doc-designAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.3 KB, as published. Nobody here has run it
html-doc-design — consistent HTML documents
Every HTML document this skill produces is a single self-contained file (all CSS inline,
no build step, no external assets except the optional Mermaid CDN) so it can be opened from
the filesystem, attached to a ticket, or dropped on a static host. Consistency comes from one
rule: all styling lives in assets/template.html as CSS custom-property tokens — never
invent new colors, fonts, or per-document inline styles. If a document needs a new
component, add it to the template and references/style-guide.md so the next document gets
it too.
What the design gives you out of the box:
- Japanese-first typography (Hiragino/Noto Sans JP stack, line-height 1.9,
paltheadings) - Automatic light/dark theme via
prefers-color-scheme(tokens cover both) - Header card (breadcrumb / title / lead / metadata chips), auto-TOC, prev-next navigation
- Wide tables that scroll horizontally inside
.table-wrapinstead of breaking the page - Mermaid diagrams rendered from CDN with a readable raw-source fallback when offline
- Index page with card grid for multi-document series
Converting Markdown (the common case)
Use the bundled converter — do not hand-convert unless the script is unusable:
# one file
node ~/.claude/skills/html-doc-design/scripts/md2html.mjs path/to/doc.md -o out/doc.html
# a series of docs (recommended for 2+ related files): index.html + prev/next nav
node ~/.claude/skills/html-doc-design/scripts/md2html.mjs path/to/out/manifest.json
Requires Node 18+ and npx marked (downloads once, then cached). For a series, write a
manifest.json inside the output directory (so the series can be regenerated later when
the markdown changes) — schema is documented at the top of scripts/md2html.mjs. Convention:
output goes to an html/ subdirectory next to the markdown sources unless the user says
otherwise. Always regenerate the whole series via the manifest rather than one file, so the
index and prev/next navigation stay consistent.
The converter already understands the usual doc conventions — first # h1 becomes the header
title, a leading > blockquote becomes the lead paragraph, a manual ## 目次 section is
replaced by an auto-generated TOC, relative *.md links are rewritten to *.html, heading
anchors stay GitHub-compatible (existing #… links keep working), and ```mermaid fences
render via CDN.
After generating, spot-check at least one page in a browser (or headless screenshot) — especially pages with Mermaid diagrams and wide tables.
Hand-authoring HTML directly
When writing HTML that doesn't start from Markdown (dashboards excluded — that's a different
kind of page), copy assets/template.html, replace the {{PLACEHOLDER}} slots, and compose
the body from the component classes in references/style-guide.md (callouts, chips, cards,
.table-wrap, .diagram, .toc). Read the style guide before inventing markup — the
component you need probably exists.
Non-negotiable design rules
- One accent color (
--accent), used for: header top border, h2 left bar, links, TOC/card hover. Don't introduce a second accent. - Body text ≈ 16px / line-height 1.9; content column max-width
--maxw(62rem). Don't go full-width even for "wide" content — tables scroll instead. - Tables always wrapped in
.table-wrap; never let a table force horizontal page scroll. - Code blocks are always the dark slab (
--pre-bg) in both light and dark themes. - Dates, source file, and generator go in the header
.chips and the.colophonfooter — never in the body text.