mecattaf/dotfiles/md-artifact
Claude Code and agent skill by mecattaf/dotfiles
- community
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-artifactSKILL.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-renderproduces a snapshot dir (index.html+assets/) that is byte-identical at every rung: opened fromfile://(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.cssis neutral-structural; the look comes from the brand kittokens.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)
| Field | Value | |||
|---|---|---|---|---|
| Render | artifact-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 point | modules/artifacts-defaults.nix (namespace art.mecattaf.dev, TTL, stateDir) | |||
| Brand kit hook | pkgs/artifact-render/tokens.css — EMPTY by ruling; imported last by both lanes | |||
| Mermaid | vendored IIFE 11.12.0, client-side, follows prefers-color-scheme | |||
| Scope | GFM + math (MathML) + mermaid. NO MDX (closed ruling 2026-07-11) |
Verbs
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
- Snapshot must pass the file:// test — open it with
artifact-view <dir>before calling it done; broken-at-rung-0 means broken everywhere. - No CDN links, no ESM script tags (CORS-blocked on file://), no absolute local paths in output.
- Never edit
house.cssfor a one-off look; brand belongs intokens.csswhen Tom rules on it, per-doc hacks belong nowhere. - GFM only. MDX is a closed ruling — route app-shaped content to a static build + publish-artifact instead.
- 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.mdcorpus (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
- SKILL.md in the repositoryCheckinghome/dot_claude/skills/md-artifact/SKILL.md
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
[](https://verified-skill.com/skills/mecattaf/dotfiles/md-artifact)