mecattaf/dotfiles/md-artifact

Claude Code and agent skill by mecattaf/dotfiles

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Render a markdown document into a self-contained artifact and view it in a bounded Chrome app window — the sovereign, local-first analogue of a claude.ai markdown artifact. Use when the user says md artifact, "render this markdown", "make this doc look nice", "open this doc in a window", artifact-render, artifact-view, or wants a readable/showable page from a .md file. GFM only (tables, task lists, footnotes, alerts, math, mermaid) — MDX was researched and ruled OUT 2026-07-11; never propose it. Prime directive — the output snapshot dir must render perfectly from file:// with zero server and zero network: local assets only, no CDN, mermaid is the vendored IIFE build. Viewing is rung 0 and incurs NO teardown debt; to give the doc a URL, chain the publish-artifact skill.

Install

npx vskill@latest install mecattaf/dotfiles/md-artifact

SKILL.md

The same SKILL.md was published earlier as mecattaf/dotfiles/md-artifact.

md-artifact — markdown docs as local-first artifacts

Mental model (read first)

  • Render once, view anywhere. artifact-render produces a snapshot dir (index.html + assets/) that is byte-identical at every rung: opened from file:// (rung 0), served by Caddy on the tailnet, or deployed to Cloudflare Pages. If it needs a server or the network to look right, it is broken — fix the snapshot, not the serving.
  • Viewing is not publishing. The default terminal state is a bounded Chrome app window (--app, no tab bar — same mechanism as the PWA launchers in home.nix). No URL, no TTL, no debt. Publishing is a separate deliberate act via [[publish-artifact]].
  • Aesthetics are not yours to invent. house.css is neutral-structural; the look comes from the brand kit tokens.css, which is DELIBERATELY EMPTY (Tom's ruling — tokens land at the very end). Do not hardcode colors/fonts into a doc to compensate.

Live facts (verify before acting)

FieldValue
Renderartifact-render <doc.md> <outdir> (pkgs/artifact-render; pandoc GFM, verified flag set)
View (rung 0)`artifact-view <dir \slug \URL> → google-chrome --app`
Config edit pointmodules/artifacts-defaults.nix (namespace art.mecattaf.dev, TTL, stateDir)
Brand kit hookpkgs/artifact-render/tokens.css — EMPTY by ruling; imported last by both lanes
Mermaidvendored IIFE 11.12.0, client-side, follows prefers-color-scheme
ScopeGFM + math (MathML) + mermaid. NO MDX (closed ruling 2026-07-11)

Verbs

bash
artifact-render notes/foo.md /tmp/foo-artifact # md -> snapshot dir
artifact-view /tmp/foo-artifact # bounded app window, file://
# want a URL? -> publish-artifact skill (tailnet default, TTL always)

Title = first # h1 (else filename). Local images referenced by the doc must be copied into the snapshot dir manually — check for them.

On a host without a display (the strix after 2026-09-11) artifact-view exits 2 and prints the publish rung; the seat (client) opens the URL — rung 0 is the CLIENT's rung.

Hard rules

  1. Snapshot must pass the file:// test — open it with artifact-view <dir> before calling it done; broken-at-rung-0 means broken everywhere.
  2. No CDN links, no ESM script tags (CORS-blocked on file://), no absolute local paths in output.
  3. Never edit house.css for a one-off look; brand belongs in tokens.css when Tom rules on it, per-doc hacks belong nowhere.
  4. GFM only. MDX is a closed ruling — route app-shaped content to a static build + publish-artifact instead.
  5. Rendering never requires the network or uploads content anywhere (this is why gh-markdown-preview was rejected as the render step — it posts the doc to GitHub's API; it remains fine as an interactive previewer).

Reference paths

  • Renderer + template + hook: pkgs/artifact-render/ (this repo).
  • Evidence for the tool choices: md-renderer-pick workflow 2026-07-11 (gh-markdown-preview = AJAX shell + API upload, CONFIRMED; pi-markdown-preview = no CLI, theme baked; both rejected as render step).
  • Lineage: skills/md-artifact-skill.md corpus (deleted 2026-07-11 — its earlier viewer idea is superseded by the chrome --app bounded window; its two candidate repos were evaluated and rejected).

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mecattaf/dotfiles/md-artifact/badge)](https://verified-skill.com/skills/mecattaf/dotfiles/md-artifact)

Something wrong with this skill or its page? Tell us.