Crafting html
Skill pgoell/pgoell-claude-tools/plugins/workbench/skills/crafting-html
Use when producing a standalone HTML artifact that is not already covered by another workbench skill (writing-spec, writing-plans, brainstorming, systematic-debugging) or by research:research. Covers PR walkthroughs, code explainers, slide decks, status and incident reports, design prototypes, SVG illustrations, custom editing interfaces, and similar single-file HTML outputs. Bundles 20 reference examples plus an index file (21 files total) for inspiration; read individual files lazily, not all at once.From its SKILL.md
npx -y skills add pgoell/pgoell-claude-tools --skill crafting-htmlAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
6.4 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it
Crafting HTML Artifacts
HTML is the right medium for share-once expository content. It carries information density that markdown cannot match (tables with design, SVG diagrams, color-coded annotations, syntax-highlighted code blocks, expandable sections, mobile-responsive layout), it shares as a link without rendering tools, and it supports two-way interaction (sliders, copy-as-prompt buttons, drag-and-drop editors). Markdown's editability advantage does not apply to artifacts the reader does not edit.
This skill differs from frontend-design. frontend-design builds UI and components, where the artifact is part of a product. This skill produces single-file expository HTML documents, where the artifact is a communication.
When NOT to use this skill
- Specs: use
workbench:writing-spec. - Plans: use
workbench:writing-plans. - Brainstorm summaries: use
workbench:brainstorming. - Debug reports: use
workbench:systematic-debugging. - Research reports: use
research:research. - Multi-slide presentations with a deck-stage engine and presenter mode: use
presentations:creating-presentations. Thereferences/09-slide-deck.htmltemplate here is the quick single-file fallback for one-off decks. - UI or component code: use
frontend-design.
Five categories of HTML artifacts
| Category | Reference files |
|---|---|
| Specs, planning, exploration | references/01-exploration-code-approaches.html, references/02-exploration-visual-designs.html, references/16-implementation-plan.html |
| Code review and understanding | references/03-code-review-pr.html, references/04-code-understanding.html, references/17-pr-writeup.html |
| Design and prototypes | references/05-design-system.html, references/06-component-variants.html, references/07-prototype-animation.html, references/08-prototype-interaction.html |
| Reports, research, learning | references/09-slide-deck.html, references/10-svg-illustrations.html, references/11-status-report.html, references/12-incident-report.html, references/13-flowchart-diagram.html, references/14-research-feature-explainer.html, references/15-research-concept-explainer.html |
| Custom editing interfaces | references/18-editor-triage-board.html, references/19-editor-feature-flags.html, references/20-editor-prompt-tuner.html |
references/index.html is the upstream's gallery index page, kept as the 21st file for reference; it is not assigned to a category.
Universal patterns
- Single-file HTML5; no external dependencies.
- Inline
<style>block; no separate CSS files or CDN imports. - Mobile-responsive viewport meta tag; layout works at narrow widths.
- Semantic HTML (
<section>,<article>,<nav>,<aside>,<figure>). - Inline
<svg>for diagrams. - For two-way interaction, include copy-link or copy-as-prompt buttons.
- No U+2014 or U+2013 codepoints in body copy. HTML entity forms (
—,—,–,–) are permitted. - Realistic placeholder content; do not leave
Lorem ipsumor empty sections.
How to use the references
Read one reference file matching the artifact type before generating. Do not load all 21 references; each is self-contained and roughly 10 to 25 KB. The category map above is the index. The host agent reads references/<file>.html on demand, not proactively.
Output Format
Applying a design system
Before emitting HTML, check for an active design system and inline its overrides into the artifact's <style> block:
- Resolve the design-system name: per-prompt override (e.g., "render with the
brand-2026design system"), then.workbench/config.md## Design systemName:, then no override. - Locate the directory:
.workbench/design-systems/<name>/(project scope), then~/.claude/workbench/design-systems/<name>/(user scope). If a name resolves but no directory is found at either scope, report the missing path to the user and emit with template defaults; do not fabricate a substitute. - Inline
colors.css(andtypography.cssif present) after the template's own:rootdeclarations, so the design system's values win the cascade. - For any referenced component, paste
components/<n>.htmlmarkup and scoped style into the artifact body. - For any referenced image, base64-encode (
base64 -w 0 <file>) and inline asdata:image/<type>;base64,<payload>. SVG is text and can be inlined directly. Use relative paths only when the artifact and the design system co-exist in the same git tree and the artifact will not travel.
crafting-html references vary in their CSS variable surface; inspect the chosen reference template's :root to know which design-system variables apply.
To create or edit a design system, see workbench:crafting-design-systems.
What ships with it: 21 files
379.8 KB alongside SKILL.md
references/
- 01-exploration-code-approaches.html14.2 KB
- 02-exploration-visual-designs.html13.6 KB
- 03-code-review-pr.html25.6 KB
- 04-code-understanding.html17.5 KB
- 05-design-system.html17.7 KB
- 06-component-variants.html16.2 KB
- 07-prototype-animation.html12.2 KB
- 08-prototype-interaction.html10.5 KB
- 09-slide-deck.html16.3 KB
- 10-svg-illustrations.html17.9 KB
- 11-status-report.html16.0 KB
- 12-incident-report.html15.1 KB
- 13-flowchart-diagram.html14.9 KB
- 14-research-feature-explainer.html12.0 KB
- 15-research-concept-explainer.html13.2 KB
- 16-implementation-plan.html27.9 KB
- 17-pr-writeup.html23.9 KB
- 18-editor-triage-board.html18.1 KB
- 19-editor-feature-flags.html18.5 KB
- 20-editor-prompt-tuner.html20.7 KB
- index.html37.7 KB