html-doc
Skill423 starsChanged 3 months agoMITView on GitHub
Generates a polished, static HTML reading view from an existing Markdown PRD or technical design. Use when a user asks to render, present, visualize, or make a PRD or design document easier for humans to read in a browser.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- secretj/secretj-claude-configtheir own version, first seen Oct 6, 2026
- tonywjs/html-doctheir own version, first seen Sep 15, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- tonywjs/html-doc★ 70same name
- secretj/secretj-claude-config★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architecture-reviewSkill
- architectureSkill
- codex-issue-coordinatorSkill
- improveSkill
- planSkill
- requirementsSkill
- reviewSkill
- specSkill
- task-to-prSkill
- testSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 14 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 17
Do not write requirements, settle design choices, summarize missing content, or edit the source.
- Distinctive: line 18
If the source is only a rough brief, use the appropriate authoring skill first.
- Distinctive: line 19
Do not hand-edit generated HTML.
- Distinctive: line 20
Do not publish or host the result unless the user separately asks.
- Distinctive: line 26
Before the first Mermaid render, run:
- Very specific: line 32
Use scripts/html_doc.py from this skill directory for all generation and lifecycle operations.
- Distinctive: line 38
Read the complete source. Confirm it is no larger than 2 MiB.
- Distinctive: line 40
Treat content problems separately from presentation problems.
- Very specific: line 60
If an output lock already exists, do not delete it automatically.
- Distinctive: line 66
Check all of these:
- Distinctive: line 84
If a presentation defect comes from the shared renderer or styles, fix that source and regenerate.
- Distinctive: line 88
Only after every check passes, atomically install the candidate:
- Distinctive: line 94
If any check fails, remove only this pending candidate:
- Very specific: line 107
use canonical prd or design machine metadata.
- Distinctive: line 109
use semantic HTML, inline CSS, and no runtime JavaScript.
- Distinctive: line 111
use a restrained blue-grey visual system.
- Distinctive: line 118
Stop when the verified candidate is finalized.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
HTML document
Turn one complete Markdown PRD or technical design into one verified static HTML page. Keep Markdown canonical. Change presentation, not meaning.
Boundaries
- Accept an existing Markdown file or exact inline Markdown.
- Support only
prdanddesigndocument kinds. - For
REQUIREMENTS.md, pass--kind prd. ForARCHITECTURE.mdorspec.md, pass--kind design. - Classify
prd.mdasprdanddesign.mdasdesign. For other names, use the request or ask if the kind is unclear. - Do not write requirements, settle design choices, summarize missing content, or edit the source.
- If the source is only a rough brief, use the appropriate authoring skill first.
- Do not hand-edit generated HTML. Change the template or renderer, then regenerate.
- Do not publish or host the result unless the user separately asks.
Requirements
Generation requires Python 3.11 or newer, Pandoc 3 or newer, Node.js 22.12 or newer, and npm. The skill directory contains a locked Mermaid dependency tree.
Before the first Mermaid render, run:
npm ci --prefix <skill-directory>Use scripts/html_doc.py from this skill directory for all generation and lifecycle operations.
Workflow
1. Read and classify the source
Read the complete source. Confirm it is no larger than 2 MiB. Determine the document kind from the request or the basename mappings above.
Treat content problems separately from presentation problems. If the Markdown contradicts itself, omits a required decision, or contains an invalid diagram, report that source problem. Do not silently repair its meaning.
2. Create a candidate
For a file source:
python3 <skill-directory>/scripts/html_doc.py render <source.md> --kind <prd-or-design> --out <output.html>--kind may be omitted only for exact prd.md and design.md basenames. --out may be omitted to create a sibling HTML file.
For exact inline Markdown, pipe it through standard input and provide both kind and output:
python3 <skill-directory>/scripts/html_doc.py render --inline --kind <prd-or-design> --out <output.html>The command returns JSON containing candidate, output, and token. It does not replace the final output. Keep those exact values for verification and finalization.
If an output lock already exists, do not delete it automatically. It may represent another pending render. Report its path. Use discard --force-stale only when the state is known to be abandoned.
3. Verify the candidate in a real browser
Open the candidate as a local file. Do not treat source inspection as browser proof.
Check all of these:
- desktop at 1440 CSS pixels;
- tablet at 768 CSS pixels;
- mobile at 390 CSS pixels;
- A4 and US Letter print preview;
- table-of-contents links and section targets;
- keyboard order from skip link through navigation and document links;
- visible focus indicators;
- one
mainlandmark and a sensible heading outline; - unique DOM IDs;
- horizontal overflow, clipped text, code, tables, and diagrams;
- useful diagram alternatives and accessible disclosure controls;
- console errors and failed resource requests;
- operation with browser network access disabled.
Compare the canonical content inside main with the Markdown abstract syntax tree. Navigation, source metadata, and derived accessibility text are not canonical content. Each top-level source block must map to one ordered data-source-block node with its SHA-256 identity and nested content intact. A Mermaid block maps to one figure whose exact source appears once in its disclosure.
If a presentation defect comes from the shared renderer or styles, fix that source and regenerate. If it is a content defect, leave the source and candidate unchanged and report it.
4. Finalize or discard
Only after every check passes, atomically install the candidate:
python3 <skill-directory>/scripts/html_doc.py finalize --out <output.html> --token <token>If any check fails, remove only this pending candidate:
python3 <skill-directory>/scripts/html_doc.py discard --out <output.html> --token <token>Finalization performs one same-directory atomic replacement. It never deletes the previous output first. A failed render, check, or replacement must leave the previous verified output byte-for-byte unchanged.
Output standard
The final page must:
- preserve source wording and order;
- use canonical
prdordesignmachine metadata; - record the source path and SHA-256 hash;
- use semantic HTML, inline CSS, and no runtime JavaScript;
- contain no external runtime assets;
- use a restrained blue-grey visual system;
- remain readable without color, a mouse, a wide screen, or network access;
- include responsive and print styles;
- embed validated Mermaid SVG as a base64 image and retain the exact source in a disclosure.
Return
Stop when the verified candidate is finalized. Report the output path, source hash, and browser checks performed.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

