artefact
Installation
SKILL.md
Artefact
A visualization tool: one concept → one self-contained HTML file → opened in the user's browser.
Produce the file
- Resolve the temp directory:
$TMPDIR, falling back to/tmp(%TEMP%on Windows). - Write a single HTML file to
<tmpdir>/<concept-slug>-<timestamp>.html— a fresh file per run, nothing lands in the repo. - Open it for the user:
xdg-open <path>on Linux,open <path>on macOS,start <path>on Windows. On WSL, useexplorer.exe "$(wslpath -w <path>)". - Tell the user the absolute path, so they can reopen or share it.
Done when: the file is written, opened (or the open command failed and you said so), and the path is in your reply.