tech-doc-html

tech-doc-html is a skill for Claude Code, Codex from hxy91819/mason-skills. It costs 23 tokens per session (2,873 once invoked), scanned A, original, MIT.

A guide for turning a technical design document into a single HTML page with interactive diagrams and explanations. The page can be opened directly because its styles and scripts are included in one file.

In plain words
What is it for?
Use it to create interactive architecture diagrams, explain technical mechanisms, compare design options, show request or data paths, and present project milestones or metrics.
Why use it?
It helps readers understand system structure, data flows, algorithms, choices, risks, and implementation steps without working through a dense design document alone.

Skill for Claude CodeCodex

Written for Claude Code and Codex: disable-model-invocation in frontmatter, but also agents/openai.yaml present. Also seen: $skill-name invocation.

Good fit Use it to create interactive architecture diagrams, explain technical mechanisms, compare design options, show request or data paths, and present project milestones or metrics.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hxy91819/mason-skills/tech-doc-html
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hxy91819/mason-skills --skill tech-doc-html
Clone the repo
git clone --depth 1 https://github.com/hxy91819/mason-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tech-doc-html

README.md
[![agentmods](https://agentmods.dev/badge/skills/hxy91819/mason-skills/tech-doc-html/github.svg)](https://agentmods.dev/skills/hxy91819/mason-skills/tech-doc-html)
Your own site
<a href="https://agentmods.dev/skills/hxy91819/mason-skills/tech-doc-html"><img src="https://agentmods.dev/badge/skills/hxy91819/mason-skills/tech-doc-html/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tech-doc-html

Your own site · 80×15
<a href="https://agentmods.dev/skills/hxy91819/mason-skills/tech-doc-html"><img src="https://agentmods.dev/badge/skills/hxy91819/mason-skills/tech-doc-html.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,873 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.02873
Opus 5 $0.00012 $0.01437
Sonnet 5 $0.00005 $0.00575
Haiku 4.5 $0.00002 $0.00287

Measured today against content hash e98ffa79e5fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

tech-doc-html scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/qa/check_runtime.mjs, scripts/qa/screenshot.mjs, scripts/security/check_mermaid_insecure_config.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

common-skills/tech-doc-html/SKILL.md · 225 lines

How it starts

The opening of the file, as written. The whole thing — 225 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Technical Design HTML Visualization

Turn technical design content into vivid, interactive single-file HTML pages that help readers understand system design quickly.

仅在用户显式调用 $tech-doc-html 时运行。

Core principles

  1. Interaction first — Not static document prettification; use interaction so readers can explore technical concepts hands-on
  2. Single-file, open directly — Inline CSS/JS; complex diagrams may use Mermaid via CDN (see chart selection and security below)
  3. Serves understanding — Every interaction and animation must serve the goal of helping readers understand
  4. Fixed identity, free layout — Color and font tokens are the shared visual identity (use them consistently); page structure, section composition, and layout are designed fresh for each document's content

Workflow

Step 1: Analyze the technical design

Read the user's technical design document and identify information types:

  • System architecture / component relationships
  • Algorithm or mechanism explanations
  • Multi-option comparisons
  • Data flows / request paths
  • Implementation steps / milestones
  • Risk assessment
  • Key metrics / performance data
  • Terminology-heavy concept explanations

Step 2: Choose visualization + interactive components

The table below is a menu of proven options, not an assignment — combine entries, adapt them, or invent components not listed here. The deciding criterion is always "does this help the reader understand", not table coverage.

Information type Recommended component Interaction
Architecture / deployment / sequence / state machine Mermaid (preferred) Static diagram; node details in sidebar text
Complex data flow / multi-branch process Mermaid flowchart Same as above
Few nodes + must click diagram SVG flowchart + sidebar (§8) Click node for details
Algorithm / mechanism Interactive SVG diagram (§9) Slider adjusts params in real time
Option comparison Comparison table good/bad coloring + hover highlight
Implementation steps Timeline / milestones Collapsible code sections
Simple flow animation accent SVG lines (§11) Dashed CSS flow animation
Risk assessment Risk matrix table Severity color codes (HIGH/MED/LOW)
Key metrics Summary metric bar Top-of-page overview
Terminology Sticky glossary sidebar Hover-linked highlight
Multi-perspective explanation Tab panels Click to switch views
Process demo Step highlight "Next step" button highlights progressively

Read the full file on GitHub · 225 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +2 lines e98ffa79e5fd
  2. 7d ago Changed · +3 lines · -27 tokens per session a13b8a424cfd
  3. 12d ago First seen · 220 lines · 50 tokens per session scan A aa2f46ce3a85

Subscribe to this mod's changes

tech-doc-html is a skill published in the GitHub repository hxy91819/mason-skills (2 stars, last pushed today), licensed MIT. It adds 23 tokens to every session and 2,873 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

kami-landing

Produce a print-grade single-page kami (紙 / 纸) document — warm parchment canvas, ink-blue accent, serif at one weight, no italic, no cool grays. The output reads like a professional white paper or studio one-pager, not an app UI. Multilingual by design (EN · zh-CN · ja). One self-contained HTML file, zero dependencies.

nexu-io/open-design · 81 tokens

applying-brand-guidelines

This skill applies consistent corporate branding and styling to all generated documents including colors, fonts, layouts, and messaging.

anthropics/claude-cookbooks · 27 tokens

html-ppt-obsidian-claude-gradient

OpenDesign's enterprise AI-adoption brief: local-first agents at work, the risk controls, the ROI, and the rollout plan. Built as a decision-grade AI literacy deck for leadership, IT, security.

nexu-io/open-design · 53 tokens

kami

A design and typesetting guide for creating professional documents and product landing pages, such as resumes, white papers, portfolios, and slide decks.

tw93/Kami · 157 tokens

read

Reads URLs and PDFs by fetching source content, defaulting to concise summaries for plain read requests and clean Markdown when asked to convert, save, quote, cite, or feed downstream work. Use when users ask in any language to read, fetch, check, summarize, quote, cite, convert, or save a URL or PDF. Not for local…

tw93/Waza · 78 tokens

mermaid-tools

Extracts Mermaid diagrams from markdown files and generates high-quality PNG images using bundled scripts. Activates when working with Mermaid diagrams, converting diagrams to PNG, extracting diagrams from markdown, or processing markdown files with embedded Mermaid code.

daymade/claude-code-skills · 48 tokens