Html design examples

From sammcj/agentic-coding · View interactive version

Html design examples is an AI agent skill from the GitHub repository sammcj/agentic-coding. Reference gallery of polished single-file HTML artifacts demonstrating effective ways to communicate ideas through HTML. Use when the user wants to explain, showcase, demo, plan, review, or present an idea within an HTML file.

How to use this skill

Skill file

HTML Design Examples

A library of self-contained .html files showing how a static HTML artifact can carry more signal than the same content as markdown. Use them as visual and structural references when building an HTML deliverable for a similar task.

Why HTML, not markdown

The bottleneck is human attention, not what the agent can produce. A 500-line markdown plan goes unread; the same content as one HTML page with diagrams, tables and inline controls gets engaged with. HTML carries tables, SVG, CSS layout, scripts and spatial composition in a single file, opens in any browser, and shares as a URL rather than an attachment. The token and latency cost is real, and worth it for any artifact that needs to be read by a human.

Prefer HTML for human-facing, ephemeral artifacts (specs, plans, reports, writeups, prototypes, throwaway editors). Stay with markdown or source for things that need durable, line-by-line review in a repo (RFCs, ADRs, runbooks) - HTML diffs are noisy.

How to use this skill

  1. Pick the example that most closely matches the user's intent (catalogue below).
  2. Read that file in full before writing your own. The reference's style, density, and structure are the point.
  3. Match the shared conventions (see "Conventions").
  4. Adapt to the user's real content. The examples use a fictional "Birchline" brand and fixture data - do not carry that across.
  5. If the artifact is an editor or any interactive surface, end it with a "copy as JSON" or "copy as prompt" button so the user's work flows back into the agent loop.

Resource catalogue

Files live in resources/. Open resources/index.html for the rendered gallery with thumbnails.

Exploration & Planning

Code Review & Understanding

Design

Prototyping

Illustrations & Diagrams

Decks

Research & Learning

Reports

Custom Editing Interfaces

Conventions across all examples

Aesthetic consistency

When the user has an existing project with its own design language, generate or reference a single design-system HTML file (see 05-design-system.html for the shape) and use it as the style anchor for subsequent artifacts. Defer to the project's own brand and tokens rather than copying the gallery's editorial palette wholesale.

Gotchas

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.