From artifact-refiner
Convert a Markdown document into a self-contained branded HTMX artifact via the deterministic markdown-it pipeline with frontmatter support, semantic HTML wrapping, and brand-CSS injection.
How this skill is triggered — by the user, by Claude, or both
Slash command
/artifact-refiner:convert-md-to-htmxThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Deterministic Markdown → single-file HTML conversion with brand styling.
Deterministic Markdown → single-file HTML conversion with brand styling.
artifact_type: htmlcontent_type: direct:htmlassets/library/brands/The user will provide: $ARGUMENTS
Parse for:
--source <path-to-md> (required)--brand <brand-name> (required) — must resolve under assets/library/brands/<name>.toml--output <path-to-html> (required)--document-type article|brief|spec|moodboard|none (optional; default article; frontmatter overrides)Dispatch to the orchestration script:
node scripts/convert-md-to-htmx.mjs \
--source "${SOURCE}" \
--brand "${BRAND}" \
--output "${OUTPUT}" \
${DOC_TYPE:+--document-type "${DOC_TYPE}"}
The script:
gray-matter. Frontmatter keys (title, document-type) override CLI flags.markdown-it configured for:
markdown-it-anchor--document-type:
article → <article> with <header>, <main>, <footer>brief / spec → similar with type labelnone → bare HTMLtemplate-forge render --template vite-shell-css --brand <brand> into an inline <style> block. No external CSS dependency..html file.html: false in markdown-it — embedded HTML in source MD is escaped (sanitization)header-anchor classvar(--color-bg), var(--color-ink), etc.) are applied via :root<code class="language-X"> for post-build tooling (Prism, Shiki)---
title: My Article Title
document-type: brief
---
Body content here…
Markdown source → convert-md-to-htmx → branded HTML
↓
(optional) rebrand-artifact for brand swap
artifact_type: html
content_type: direct:html
outputs:
- path: <output>.html
description: Single self-contained branded HTML document
constraints_satisfied:
- markdown_parsed_via_markdown-it_gfm
- frontmatter_extracted_via_gray-matter
- brand_css_injected_inline
- single_file_no_external_dependencies
scripts/convert-md-to-htmx.mjs — orchestration scripttools/template-forge-rs/templates/vite-shell-css.html — brand CSS templateopenspec/changes/phase-3b-aux-conversions/ — design rationalenpx claudepluginhub gqadonis/artifact-refiner-skill --plugin artifact-refinerProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.