Skip to content
Back to skills

Html Artifact Builder

ASecurity

Create polished, responsive, standalone HTML artifacts such as dashboards, reports, presentations, data visualizations, comparisons, and interactive tools. Use when the user asks to build or generate a visual artifact that should run in a browser or be delivered as a self-contained HTML file.

  • 66 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 5, 2026
ai-agentsjavascriptpythongojavashellbashapidocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned December 5, 2026

npx -y skills add larchanka/skills --skill html-artifact-builder --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Html Artifact Builder?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Html Artifact Builder
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/larchanka-html-artifact-builder/badge)](https://www.skillsdirectory.com/skills/larchanka-html-artifact-builder)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: html-artifact-builder
description: Create polished, responsive, standalone HTML artifacts such as dashboards, reports, presentations, data visualizations, comparisons, and interactive tools. Use when the user asks to build or generate a visual artifact that should run in a browser or be delivered as a self-contained HTML file.
metadata:
   version: 1.0.0
---

# HTML Artifact Builder

Create self-contained HTML artifacts using the project's built-in HTML, CSS, and JavaScript components.

The output must be a complete standalone HTML file that works locally in a browser without external dependencies, servers, build tools, or network access.

## Workflow

1. Understand the user's goal and identify the appropriate artifact type.
2. Decide where the artifact will be created. Unless the user specifies a location, create a working directory for this artifact in the current project (for example, `<project>/artifact/`) — do not write into this skill's directory.
3. Read the relevant component documentation from `components/`.
4. Choose a suitable layout and compose the artifact body in `<project>/artifact/body.html`.
5. Add `<project>/artifact/data.json` only when separating structured data from markup provides a clear benefit.
6. Build the final HTML file, passing the input and output paths explicitly:

   ```bash
   python <skill-dir>/scripts/build.py \
     --body <project>/artifact/body.html \
     --output <project>/artifact/report.html \
     --title "Report title"
   ```

   Add `--data <project>/artifact/data.json` when a data file is used.
   If the user specified a path for the final artifact, use it as `--output`.

7. Validate the generated artifact:

   ```bash
   python <skill-dir>/scripts/validate.py <project>/artifact/report.html
   ```

8. Fix any errors and rebuild before delivering the result.

Do not modify the framework templates unless the user explicitly asks to change the framework itself.

## Available documentation

Read only the documentation relevant to the current task.

- `components/layout.md` — page layouts, grids, sections, containers
- `components/typography.md` — headings, text, labels, emphasis
- `components/metrics.md` — KPI cards, statistics, progress indicators
- `components/charts.md` — charts and data visualization
- `components/tables.md` — tables and tabular data
- `components/callouts.md` — alerts, notes, highlights, quotes
- `components/interactive.md` — tabs, accordions, controls, interactive elements
- `components/diagrams.md` — diagrams, flows, timelines, relationships

Use examples from `examples/` as visual and structural references when appropriate.

## Implementation rules

### HTML
- Use semantic HTML elements.
- Keep markup readable and reasonably simple.
- Prefer existing documented components over inventing new ones.
- Use custom HTML and inline SVG when existing components cannot represent the required content.
- Keep all essential information in the HTML markup.

### CSS
- Use the existing design tokens, layout utilities, and component styles.
- Design mobile-first and make the artifact responsive.
- Use a fluid layout with `width: 100%` and a maximum content width of approximately `960px`, unless the artifact requires a different layout.
- Ensure content remains readable on narrow screens.
- Avoid unnecessary visual effects, excessive gradients, and decorative elements that compete with the content.

### JavaScript
- Use vanilla JavaScript.
- Do not use external libraries, frameworks, CDNs, or remote resources.
- Use JavaScript for interactions and visualizations, not for rendering essential content.
- Feature-detect browser APIs before using them.
- Keep interactions functional without requiring a server.

### Charts and visualizations
- Prefer the documented chart components.
- Use SVG for custom charts and diagrams.
- Make labels, values, units, and legends clear.
- Do not rely on color alone to communicate meaning.
- Ensure visualizations resize with their containers.
- Do not invent or silently alter data.

### Compatibility
- Prefer broadly supported HTML, CSS, and JavaScript features.
- Avoid unnecessary dependencies on modern browser APIs.
- Do not claim compatibility with a browser unless it has been tested.
- When a feature cannot be implemented reliably across the target browsers, provide a graceful fallback.

### Content
- Preserve the user's supplied facts, numbers, and terminology.
- Do not invent missing data, sources, or conclusions.
- Clearly distinguish supplied data from estimates or assumptions.
- Use concise labels and explanatory text.
- Make the artifact understandable without requiring the user to read implementation details.

## Project structure

```text
artifact-builder/
├── SKILL.md
├── templates/       # Framework shell, CSS, and JavaScript
├── components/      # Agent-facing component documentation
├── examples/        # Reference artifacts
└── scripts/         # Build and validation scripts
```

Artifact working files (`body.html`, optional `data.json`) and the final HTML file are created in the project's artifact directory (see Workflow), never inside this skill's directory.


## Examples

Reference examples are available in `examples/`.

Before creating an artifact, inspect the example closest to the requested output type. Reuse its layout patterns, component combinations, and interaction conventions where appropriate.

Available examples:

| File | Purpose |
|---|---|
| `dashboard.html` | KPI dashboards, analytics, monitoring |
| `report.html` | Long-form reports, research, technical analysis |
| `comparison.html` | Product, technology, and option comparisons |
| `presentation.html` | Browser-based slide presentations |
| `data-explorer.html` | Searchable, filterable data exploration |
| `interactive-tool.html` | Calculators, configurators, and small applications |

Examples are references, not rigid templates. Adapt their structure to the user's content and requirements. Do not copy irrelevant sections or force every artifact into an existing layout.

Prefer combining documented components over creating entirely new UI patterns.


## Build conventions

- Treat the artifact's `body.html` (in the project's artifact directory) as the primary source of truth for the artifact.
- Use a `data.json` in the same directory only when it meaningfully improves data organization.
- Do not duplicate framework CSS or JavaScript in the generated markup.
- Do not modify files under `templates/` during normal artifact generation.
- The build script is responsible for assembling the final document.
- The final document must include all required CSS, JavaScript, and data inline.
- The generated HTML file must be usable independently of the skill directory.

## Quality checklist

Before delivering the artifact, verify that:

- [ ] The output is a complete standalone HTML file.
- [ ] The layout works on both desktop and mobile.
- [ ] There is no dependency on external resources.
- [ ] All interactive elements work.
- [ ] Charts and diagrams display correctly.
- [ ] Essential content is present even if JavaScript is unavailable.
- [ ] No placeholder text or unfinished sections remain.
- [ ] The HTML passes the project validation script.

## Final delivery

Deliver the generated artifact HTML file (the `--output` path) to the user.

Briefly describe what was created and mention any relevant limitations. Do not include implementation details unless requested.

Files in this skill

  • README.md11.7 KB
  • SKILL.md7.3 KB
  • components/callouts.md1.3 KB
  • components/charts.md2.5 KB
  • components/diagrams.md1.6 KB
  • components/interactive.md2.4 KB
  • components/layout.md2.4 KB
  • components/metrics.md1.7 KB
  • components/tables.md1.4 KB
  • components/tokens.md2 KB
  • components/typography.md1.3 KB
  • examples/README.md807 B
  • examples/comparison.html3.6 KB
  • examples/dashboard.html5 KB
  • examples/data-explorer.html5.9 KB
  • examples/interactive-tool.html3.7 KB
  • examples/presentation.html3.7 KB
  • examples/report.html4.1 KB
  • scripts/build.py4.8 KB
  • scripts/preview.py1.8 KB

Attribution

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

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.