---
name: moai-domain-html-report
description: >
Markdown-to-single-file-HTML report renderer. Six modes (status, incident,
plan, explainer, financial, pr) selected by report type, crossed with three
audience tiers (expert, basic, learn) derived from the active output style.
The basic and learn tiers enrich the HTML with mermaid flowcharts, worked
examples, and plain-language primers; the expert tier stays dense. Zero
external JS/CSS framework dependencies — inline SVG charts, a font-CDN
exception for Korean readability, and a tier-gated mermaid-CDN exception.
Self-contained output for email attachment, print, and offline viewing.
when_to_use: >
Use when a markdown report must be rendered into a single self-contained
HTML file; mode is selected by report type and audience tier is derived
from the active output style.
license: Apache-2.0
compatibility: Designed for Claude Code
allowed-tools: Read, Write, Edit, Grep, Glob, Bash
user-invocable: true
metadata:
version: "1.1.0"
category: "domain"
status: "active"
---
# html-report — Single-File HTML Report Renderer
## Purpose and Scope
This skill is a terminal renderer that converts a markdown report into a single self-contained HTML file. It accepts any markdown body produced by a text, analysis, or reporting workflow and emits one `.html` file that opens directly in a browser, attaches to email, prints cleanly, and works offline.
**Core principles**:
- Zero external JS libraries (no Chart.js, D3, htmx)
- Zero external CSS frameworks (no Tailwind, Bootstrap)
- Inline SVG renders all charts directly
- A font-CDN `` is permitted for Korean readability
- A mermaid-CDN `
```
### Degradation matrix (what the reader actually sees)
| Context | `expert` | `basic` / `learn` |
|---------|----------|-------------------|
| Browser, online | SVG charts | SVG charts + **rendered mermaid diagrams** |
| Browser, offline | SVG charts | SVG charts + `