Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Html Doc

ASecurity

Build a self-contained HTML document people actually read — an explainer for a customer or a colleague, a one-pager, a status or research report, a dashboard, a comparison — with a real design system behind it and a PDF to hand over. Use when a Markdown document would be too long or too flat for its audience, when answering an enquiry with something readable, or when the user asks for a report, a summary or a one-pager.

2 stars
0 votes
0 copies
0 views
Added 9/20/2026
developmentjavascriptgojavabashnodegitapi

Works with

cliapimcp

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add atman-33/workhub --skill html-doc --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Html Doc?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Html Doc
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/atman-33-html-doc/badge)](https://www.skillsdirectory.com/skills/atman-33-html-doc)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: html-doc
description: Build a self-contained HTML document people actually read — an explainer for a customer or a colleague, a one-pager, a status or research report, a dashboard, a comparison — with a real design system behind it and a PDF to hand over. Use when a Markdown document would be too long or too flat for its audience, when answering an enquiry with something readable, or when the user asks for a report, a summary or a one-pager.
allowed-tools: Read Write Edit Glob Grep Bash WebFetch
---

# HTML doc

One `.html` file with inline CSS and JS. It opens in any browser, works
offline, and travels as an attachment or a PDF.

Source: [visualize](https://github.com/careerhackeralex/visualize). See the
plugin's `NOTICE.md`.

## When it is worth it

HTML costs more to produce than Markdown. It earns that back when the document
would run past roughly 100 lines, or needs a table, a diagram, a side-by-side
comparison, colour coding, or an interaction. Below that, write the Markdown.

Two more cases where Markdown wins even when it is long: a document that is
reviewed as text in a pull request, and one that has to diff cleanly in version
control.

## Non-negotiables

1. **Start from `${CLAUDE_PLUGIN_ROOT}/shared/html-skeleton.md`.** Copy the
   whole skeleton, then add content. It carries the themes, the utility menu,
   the print rules and the accessibility scaffolding.
2. **Read `${CLAUDE_PLUGIN_ROOT}/shared/design-system.md`** before choosing
   type or colour. Keep the eleven token names exactly.
3. **Never fabricate.** No lorem ipsum, no invented figures, no placeholder
   chart data. If a number was not read from a real source, it does not go in.
   Where the source matters, cite it in the document.
4. **One file.** Inline CSS and JS. A CDN script is allowed when it does real
   work — a chart library — and not for a CSS framework.

## 1. Pick the shape

| Shape | For | Spine |
|---|---|---|
| **Explainer** | Answering an enquiry, walking someone through a decision or a mechanism | The question at the top, the answer, then the reasoning |
| **One-pager** | A single proposal, feature or offer | A hero line, three or four sections, one conclusion |
| **Report** | Research, status, an investigation | Findings first, method after |
| **Dashboard** | Numbers people check | KPI row, then charts and tables |
| **Comparison** | Choosing between options | A matrix, with the recommendation marked |

Read `references/doc-types.md` for the layout grammar of the one you picked.
If nothing fits cleanly, write a report.

## 2. Gather before writing

Read what the shape needs before a line of HTML: the source files, `git log` and
`git diff`, whatever MCP servers are connected in this session, the web. Never
write around a gap — either fill it or say in the document that it is open.

Data the user pastes: CSV parsed to a table or chart, JSON keys as labels,
numbers in prose lifted out into stat cards.

## 3. Build it

Copy the skeleton, then:

- **One dominant element per view.** A hero number, the key chart, the
  recommendation. Everything at equal weight reads as a list of things nobody
  ranked.
- **Vary the rhythm.** Alternate full-width sections, card grids and
  single-focus blocks. A page that is the same three-card grid five times over
  reads as a template with the text swapped.
- **Density is professional.** A dashboard with eight KPIs and four charts looks
  real; four KPIs and two charts looks like a demo. Sparse content at large
  sizes is the most common way an HTML document looks unfinished.
- **No orphaned grid item.** When the last row of a grid holds one card, span
  it or change the column count.
- **Responsive.** `repeat(auto-fit, minmax(320px, 1fr))`, collapsing to one
  column at 768px. Test at 768px and 375px — no horizontal overflow.

### One real interaction

Every document gets at least one interaction beyond the theme toggle, chosen
for the shape: a filter on a dashboard, `<details>` sections on a report, search
on a reference sheet, a category toggle on a comparison. A page with none reads
as a screenshot of a document.

`<details name="group">` gives an exclusive accordion with no script at all;
the Popover API gives tooltips and detail panels the same way. Reach for those
before writing JavaScript.

### Charts

Only when a number is the point. Chart.js from a CDN is fine.

- Theme-aware colours read from the CSS custom properties, never hard-coded
  hex, and re-read on theme change — define `onThemeChange()` for that.
- `maintainAspectRatio: false`, an explicit container height of at least 300px,
  tooltips left enabled.
- `role="img"` and a descriptive `aria-label` on every canvas.
- Turn the load animation off (`Chart.defaults.animation = false`) so the PDF
  export does not catch a half-drawn chart.

## 4. Check it

- Open it. Check both themes — a palette tuned on dark routinely fails contrast
  in light.
- 768px and 375px: no horizontal overflow, no clipped table.
- Print preview, or the PDF: the menu hidden, cards not split across a page
  break, backgrounds surviving.
- Body text at 14px or above, captions at 12px or above.
- No fabricated content anywhere.

## 5. Hand it over

Report the path and the shape, and offer the PDF:

```bash
node "${CLAUDE_PLUGIN_ROOT}/skills/html-to-pdf/scripts/html-to-pdf.mjs" \
  --prefer-css-page-size --outline report.html
```

`--outline` builds bookmarks from the headings, which is what makes a long
document navigable. Say what the PDF loses: the theme toggle, the filters, and
any interaction.

## Anti-patterns

- Walls of text. If it reads like a document rather than something designed,
  Markdown would have done the job for less.
- Rainbow colour. Two or three colours plus neutrals.
- Everything centred at equal weight, with nothing dominant.
- A legend explaining colours that could have been labelled directly.
- Cramped layouts. When unsure, add whitespace.
- A missing `@media print` block — the document will be printed.

## Diagrams

Use `${CLAUDE_PLUGIN_ROOT}/skills/html-diagram` and paste its SVG in. That skill
carries the connector rules and the complexity budget; a diagram improvised
inside a document reliably ends up with diagonal arrows and nine unranked boxes.

Attribution

atman-33atman-33
View sourceMore from atman-33 →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Browser Extension Developer

Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.

281612 votes

Seo Optimizer

SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.

2132 votes

Google Official Seo Guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

1862 votes

Tanstack Start

Build a full-stack TanStack Start app on Cloudflare Workers from scratch — SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui. Use whenever the user mentions TanStack Start, asks to scaffold a full-stack Cloudflare app with SSR, wants an SSR dashboard, or asks for a React 19 + Cloudflare Workers app with file-based routing and server functions — even if they don't name TanStack Start specifically. No template repo — Claude generates every file fresh per ...

9881 votes

Pentest

PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.

5491 votes
View all in development →