Suite of tools for creating elaborate, self-contained static HTML artifacts — infographics, interactive diagrams, architecture visuals, data dashboards, and rich visual deliverables. Use this skill when asked to create an interactive HTML artifact, build a self-contained web component, generate a static HTML visualization, make an interactive diagram, produce a visual infographic, or render any high-density visual as a single HTML file. Zero build toolchain — no React, no Vite, no Parcel. Pure HTML5 + CSS3 (Grid/Flexbox) + inline SVG. Triggers on: "create interactive HTML", "build self-contained web component", "generate static HTML visualization", "make an interactive diagram", "produce infographic", "render as HTML artifact", "build a visual dashboard", "create a diagram I can open in browser".
To build high-density static infographic artifacts, follow these steps:
scripts/init-artifact.shscripts/bundle-artifact.shStack: Vanilla HTML5 + CSS3 (Grid/Flexbox) + inline SVG — zero runtime dependencies
VERY IMPORTANT: To avoid what is often referred to as "AI slop", avoid excessive centered layouts, purple gradients, uniform rounded corners, and Inter font.
grid-template-columns/grid-template-rows fractional allocations. No auto-spacing defaults. Every margin/padding intentional.Run the initialization script to create a new static project:
bash scripts/init-artifact.sh <project-name>
cd <project-name>
This creates a minimal scaffold with:
<style>)Edit the generated index.html directly. Each HTML file = one page = one clear message.
Key patterns:
grid-template-areas for named region layoutsfr units for proportional spatial allocation--color-primary, --color-accent, etc.) for palette cohesionclip-path, border-radius, gradients, and box-shadow for visual depthbash scripts/bundle-artifact.sh
This validates the artifact is fully self-contained:
bundle.htmlShare the validated HTML file in conversation with the user so they can view it as an artifact.
| Task | Use This Skill | Use Instead |
| --------------------------------------------------------------- | ----------------------------------- | --------------------------------------------------- |
| Rich infographic with multiple sections, high data density | Yes | — |
| Self-contained dashboard with interactive tabs or toggles | Yes | — |
| Static architecture/topology diagram, editable afterward in Figma/Illustrator | No | architecture-diagram — produces real vector SVG, not this skill's interactive HTML |
| Simple concept illustration or icon-style image | No | concept-to-image |
| Slide deck or multi-page presentation | No | html-presentation |
| Single-page visual where CSS Grid layout control is critical | Yes | — |
| Artifact must be screenshot-ready via Playwright | Yes (with caveat — see Limitations) | — |
| Error | Cause | Resolution |
| ----------------------------------------------- | -------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| CDN link detected by bundle-artifact.sh | External stylesheet or script reference in HTML | Inline all CSS and JS — no external URLs allowed in output |
| Content overflow / clipping in browser | Viewport too small or fixed heights with overflow:hidden | Use min-height instead of height; test at 1440px wide; use overflow: auto on scroll regions |
| Playwright screenshot cuts off content | Page height exceeds screenshot viewport | Set page.setViewportSize to match content dimensions; use fullPage: true |
| bundle-artifact.sh reports missing inline SVG | SVG loaded via <img src> or external ref | Replace with inline <svg> block directly in HTML |
| File size too large to share as artifact | Embedded base64 images or verbose SVG | Optimize SVG paths; avoid embedding raster images |
@media print explicitly if print output is a requirement.npx skills add Mathews-Tom/static-web-artifacts-builder下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer