SSkilltecabyclaudinhocode
Enviar skill
← Voltar para o catálogo

html-workbench

Design e Frontend

Create self-contained HTML artifacts for complex plans, specs, PR/code reviews, explainers, architecture diagrams, design explorations, component sheets, prototypes, reports, slide decks, and one-off editing interfaces. Use this skill whenever tables, visual design, SVG illustrations, annotated code, interaction, workflows, spatial layouts, images, or exportable UI would make the answer easier to

1estrelas
Ver no GitHub ↗Autor: rnnh-codeLicença: MIT

html-workbench

Diffs, call-graphs, comparisons, timelines, and tunable parameters are spatial information. Markdown flattens them. HTML lets the user see, compare, and act.

The eight-category taxonomy and the export-loop discipline below are adapted from Thariq's HTML Effectiveness essay. This skill operationalizes that framework with explicit triggers, anti-triggers, pattern templates, and a UI/UX quality floor.

1. What this skill does

html-workbench helps an agent decide when an HTML artifact will materially improve a response, then build a self-contained .html file that earns its weight.

The artifact is a working surface for the user — a thinking surface, review surface, explanation surface, comparison surface, prototype surface, report surface, presentation surface, or editing surface. It is not a decorative webpage and not a portfolio piece. It exists to help a busy person understand, decide, review, tune, compare, or act faster than Markdown would let them.

Treat the file the way you'd treat a well-structured document: clear purpose, tight information architecture, restrained visual design, real interactions only where they pay for themselves.

2. When to use this skill

Reach for HTML when the answer is one of:

  • Implementation plans, technical specs, RFCs
  • Architecture explainers, system diagrams, data-flow diagrams, module maps
  • PR / code reviews, annotated diffs, codebase tours
  • Design explorations, design-system token sheets, component variant sheets
  • Animation sandboxes, clickable prototypes, SVG figure sheets
  • Research explainers, technical learning pages
  • Weekly / status reports, incident timelines, postmortems
  • Slide-like presentations
  • One-off custom editors, prompt tuners, ticket triage boards, feature-flag editors, dataset curation tools, configuration editors
  • Decision matrices, tradeoff comparisons

Trigger even if the user did not say "HTML" — these tasks almost always benefit from spatial layout, comparison, interactivity, or export.

3. When NOT to use this skill

Markdown wins for:

  • Short answers, definitions, quick yes/no questions
  • Plain prose, single paragraphs, summaries under ~200 words
  • Simple lists or small Markdown tables (≤ ~6 rows × 3 columns)
  • Code-only responses where the file is the answer
  • Quick calculations, single command invocations
  • Tasks where HTML would be decorative rather than load-bearing
  • Cases where the user explicitly asked for Markdown / plain text / a code block

Be willing to say plainly: "Markdown is the better output here." HTML that adds friction without adding clarity is worse than no artifact at all.

4. HTML capability taxonomy

These eight categories form the trigger checklist. If the task benefits from at least two, prefer an HTML artifact. If only one applies weakly, prefer Markdown.

#CategoryWhat it meansWhy HTML beats MarkdownArtifacts that need it
1TablesReal <table> rows/columns, sortable, sticky headersDense comparison without ASCII alignment, scrollable, sortableDecision matrix, status reports, token sheets
2DesignColor, typography, spacing, tokens, hierarchy, statesReal CSS rather than imagined formattingDesign sheets, component states, leadership reports
3IllustrationsInline SVG diagrams, visual metaphors, figure sheetsVector, scalable, labelable, themeableArchitecture, data flow, state machines
4CodeHighlighted snippets, annotated diffs, callouts, file toursSide-by-side panels, inline annotations, syntax colorPR reviews, code explainers, lifecycle traces
5InteractionSliders, toggles, tabs, accordions, filters, buttonsThe user can try it, not just read about itPrototypes, tuners, sandboxes, editors
6WorkflowsBoxes, arrows, flows, timelines, state machines, pipelinesSpatial flow, not linear textPlans, runbooks, incident timelines
7Spatial layoutsCanvases, grids, side-by-side panels, module mapsCognitive parallelism — see options at onceDesign exploration, comparison, diagram sheets
8ImagesEmbedded figures, screenshots, mockups, thumbnailsInline visual evidence with captionsReports, postmortems, design references

If you find yourself using only one category and weakly (e.g. a small comparison with three rows), Markdown is probably better. Use the table above as a sanity check, not a permission slip.

5. Pattern selection heuristic

User needPatternCapability mix
Compare optionsCard grid, comparison table, tradeoff matrix, side-by-side panelsTables + Spatial
Explain codeAnnotated snippets, call graph, request lifecycle, data-flow diagramCode + Illustrations
Review a PRAnnotated diff, severity tags, reviewer checklist, changed-files mapCode + Tables + Spatial
Plan implementationTimeline, milestones, architecture diagram, risks, code touchpointsWorkflows + Illustrations
Understand a systemModule map, request lifecycle, glossary, key invariants, dependency diagramIllustrations + Spatial
Tune behaviorSandbox with sliders / toggles / copyable parametersInteraction + Code
Triage / reorderDrag-drop board with exportInteraction + Spatial
Present to othersSlide-like sections with keyboard navSpatial + Design
Report statusExecutive summary, timeline, shipped/slipped/blocked, follow-upsTables + Workflows + Design
Explain an incidentTimeline, impact panel, root-cause chain, logs, follow-upsWorkflows + Code + Tables
Show designComponent contact sheet, token table, state matrix, responsive mockupsDesign + Spatial
Edit structured dataForm-based editor, validation, dependency warnings, copy/export outputInteraction + Code
Brainstorm visuallyMultiple rendered directions with labeled tradeoffsDesign + Spatial

For full templates per pattern, read references/html_artifact_patterns.md.

6. Output principles

By default, the agent should:

  • Produce one self-contained .html file.
  • Inline all CSS and JavaScript unless the user explicitly allows external assets.
  • Avoid network dependencies (no remote scripts, no remote fonts, no analytics).
  • Make the file open directly in any modern browser by double-clicking.
  • Use semantic HTML (<header>, <nav>, <main>, <section>, <article>, <table>, <details>).
  • Use a responsive layout that works at desktop and mobile widths.
  • Use accessible contrast and visible focus states.
  • Use SVG for diagrams (inline, themeable, labelable).
  • Use <table> for dense comparisons. Use <details> / tabs / accordions for long material.
  • Include copy / export buttons for any artifact that captures user decisions.
  • Include a short "How to use this artifact" line when interactions are non-obvious.
  • Keep the document understandable if JavaScript fails (graceful degradation).
  • Prefer clarity over cleverness.

7. UI/UX quality floor

Every artifact must meet this baseline:

  • Clear title and one-line purpose at the top.
  • Executive summary or TL;DR when the artifact is long or decision-oriented.
  • Strong visual hierarchy (one obvious place to start reading).
  • Readable typography: 16px minimum body text, line-height ≥ 1.5, max content width ≤ 75ch for prose.
  • Adequate contrast (WCAG AA: 4.5:1 for body text, 3:1 for large text and UI).
  • Responsive layout, no horizontal scrolling on mobile (unless the artifact is intentionally spatial like a board).
  • Visible keyboard focus states on every interactive element.
  • Touch-friendly hit targets (≥ 40px) on interactive controls.
  • Semantic labels on every form input.
  • Clear error / warning / success / disabled states (color and icon and text).
  • Charts and diagrams labeled with legends, axes, and units.
  • Color used for meaning, ne

Como adicionar

/plugin marketplace add rnnh-code/html-workbench

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Comentários · Nenhum comentário

Entre para comentar. Entrar

  • Ainda não há comentários. Seja o primeiro.