Skip to main content

doc-html-skill — Branded HTML Documentation Skills

A schema-first, renderer-second suite for turning agent-generated analysis into reviewable, company-themed HTML artifacts. Thin agent skills author compact, validated canonical source (YAML/JSON); a deterministic renderer owns all theme, layout, and Mermaid chrome. The model writes content, not boilerplate.

Licensed under Apache-2.0. Design rationale: docs/research/deep-research-report (9).md and the OpenSpec history under openspec/changes/archive/.

Install

# Python CLI (renderer + validator, schemas/templates/assets bundled)
pip install doc-html-skill
doc-html-render --input my-review.yaml --output my-review.html

# Or: copy the skills into a Claude Code project
npx doc-html-skill install        # writes .claude/skills/*

# Or: work from a clone (this repo IS a Claude Code project)
git clone https://github.com/manykarim/doc-html-skill

Optional extras: pip install 'doc-html-skill[pdf]' (Playwright PDF export); npm i -D playwright @axe-core/playwright @mermaid-js/mermaid-cli for the accessibility/responsive/print validation layers and frozen diagrams.

Skills

Skill Role
review-doc-orchestrator Entry point: classify request, gather evidence, delegate, render, validate
user-story-review-doc Author user-story review source
architecture-review-doc Author architecture review source
prd-review-doc Author PRD review source
risk-analysis-review-doc Author risk analysis source
test-charter-review-doc Author exploratory test charter source
render-branded-html Deterministic source → single-file branded HTML (+ frozen Mermaid, PDF)
validate-branded-doc Layered validation: schema → mermaid → a11y → responsive → print/PDF

Setup

# Python (render + schema/validation core)
python -m venv .venv
.venv/bin/pip install -r requirements.txt

# Node (Mermaid CLI + Playwright/Axe validation layers) — optional
npm install
npx playwright install chromium
npm i -g @mermaid-js/mermaid-cli   # for freeze mode / --render

The schema + Mermaid gate works with Python + Node only. Accessibility, responsive, and export layers need Playwright (they report SKIP, not FAIL, when absent).

Usage

# Validate (schema first; short-circuits on failure)
.venv/bin/python .claude/skills/validate-branded-doc/scripts/validate_all.py \
  --input examples/architecture-review.yaml

# Render single-file branded HTML (interactive Mermaid, securityLevel: strict)
.venv/bin/python .claude/skills/render-branded-html/scripts/render.py \
  --input examples/architecture-review.yaml \
  --output build/architecture-review.html

# Freeze diagrams to inline SVG (archival / PDF), then export PDF
bash .claude/skills/render-branded-html/scripts/freeze_mermaid.sh \
  examples/architecture-review.yaml build/architecture-review.frozen.html
.venv/bin/python .claude/skills/render-branded-html/scripts/export_pdf.py \
  --input build/architecture-review.frozen.html --output build/architecture-review.pdf

Canonical source

One shared base schema v2 (schema_version, artifact_type, title, summary, sections, evidence, export) plus a per-type overlay. Section kinds: prose, mermaid, table, callout, stats, steps, cards, keyvalue, code, tabs, details, timeline, heatmap, meters. Overlay fields (decisions, constraints, acceptance criteria, …) render automatically as styled components. Theme tokens (assets/default-theme.json) drive both CSS variables and Mermaid themeVariables, so page and diagrams never drift. Schemas: .claude/skills/render-branded-html/schemas/. Examples: examples/.

Skins

One widget library, three layout skins — chosen per artifact type, overridable via theme.layout or the CLI --skin flag:

Skin Look Default for
docs-site sticky TOC sidebar + topbar architecture-review, test-charter
editorial serif print-first report, numbered sections prd-review, user-story-review
brief gradient hero + KPI cards + bento grid risk-analysis

Every Mermaid diagram renders full-width with a fullscreen expand control (CSS-only; JS adds wheel-zoom/drag-pan). Print CSS is embedded: one HTML file both displays and prints (tabs stack labelled, details expand, controls hide).

Dark mode: theme.mode: light | dark | auto — auto follows the reader's OS; diagrams switch palette with the page; print stays white in every mode.

Out of scope (future waves)

Docusaurus export, GitHub Actions preview + Pages deploy, and pre-commit hooks are intentionally deferred — see the OpenSpec change's design.md non-goals.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

doc_html_skill-0.1.0.tar.gz (75.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

doc_html_skill-0.1.0-py3-none-any.whl (97.4 kB view details)

Uploaded Python 3

File details

Details for the file doc_html_skill-0.1.0.tar.gz.

File metadata

  • Download URL: doc_html_skill-0.1.0.tar.gz
  • Upload date:
  • Size: 75.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for doc_html_skill-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5ee71a44a06a5deb32d7a395c38b68e3553d681ba39d1a7683c7c8e1cecc4c8a
MD5 bf942a6a8f85b99942287c4e4081ea45
BLAKE2b-256 d298d8ffff6959fe419251c9f26e1d4400446431d9a67986a8e1b4ef4b5af55c

See more details on using hashes here.

File details

Details for the file doc_html_skill-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: doc_html_skill-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 97.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for doc_html_skill-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d51642db5ae1e90d32ffa858914d9566ed7bf1db2c4ef9c54940f3713c51cce9
MD5 07315254090972c0ee2e7980a7952471
BLAKE2b-256 fc068cf7cb32b48eb85401a5c26e9c670a1582b1f50fd145ab3de8dcb0ed0a93

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page