sapegin/dotfiles/pretty-html
Claude Code and agent skill by sapegin/dotfiles
- community
Checking that the SKILL.md file is still in the repository.
Create and update standalone HTML documents with syntax highlighting, diagrams, and live demos.
Install
npx vskill@latest install sapegin/dotfiles/pretty-htmlSKILL.md
Create lightweight HTML pages backed by shared assets in $DOTFILES_DIR/pretty-html/_assets/. Pages hold prose and semantic markup only; styling and interactivity come from shared assets.
Paths
Shared assets live in $DOTFILES_DIR/pretty-html/_assets/ (git-tracked). Handbook pages in the vault use a synced copy at ~/murder/zz-handbook/_assets/ — see Sync after changing assets.
| Intent | Page location | Git | |
|---|---|---|---|
| Durable handbook reference | ~/murder/zz-handbook/<topic>/ — use the teach skill | Obsidian vault | |
| Temporary explainer, demo, one-off | $DOTFILES_DIR/pretty-html/pages/ | Ignored | |
| Golden reference | $DOTFILES_DIR/pretty-html/example.html | Tracked |
Link only doc.css (it @imports squirrelsong.css) and components.js (lazy-loads highlight.js and Mermaid from _assets/lib/). Adjust the _assets/ prefix by depth:
| Page location | Stylesheet | Components | |
|---|---|---|---|
pretty-html/example.html | _assets/doc.css | _assets/components.js | |
pretty-html/pages/<doc>.html | ../_assets/doc.css | ../_assets/components.js | |
zz-handbook/<topic>/<doc>.html | ../_assets/doc.css | ../_assets/components.js |
Page template
Copy from example.html. Every page needs:
- Theme bootstrap (inline, before CSS) — one line, sets
.lightor.darkon<html>fromprefers-color-schemeat load time; no toggle, no change listener. - One stylesheet —
doc.css(imports Squirrelsong). - One script at end of `<body>` —
components.jsonly (classic script, nottype="module"— required for reliablefile://pages). It lazy-loads highlight.js and Mermaid. - `<main>` — main content wrapper.
Components
Light DOM custom elements — no Shadow DOM, so Squirrelsong CSS variables apply.
<ss-callout variant="…">
Aside boxes for facts easy to forget. Variants: remember, gotcha, prefer, avoid, info. Pure CSS labels — put content directly inside.
<ss-code language="…">
Put raw source in a `<pre>` child (semantic preformatted text; Oxfmt leaves <pre> alone). Leading and trailing whitespace on the <pre> contents are trimmed. highlight.js loads lazily on first <ss-code>. Plain text without <pre> still works but is easy for formatters to break.
Do not hand-write highlighted <pre class="hljs"> markup — the component replaces content after highlight.js runs.
<ss-diagram>
Mermaid source in a `<pre>` child; rendered at runtime on first diagram. Leading and trailing whitespace on the <pre> contents are trimmed.
<ss-demo>
Live preview in a sandboxed iframe (allow-scripts only). Put HTML/CSS/JS as child elements — not escaped text. The component reads innerHTML, not textContent.
<ss-resources>
Further-reading section. Wrap a <ul> of external links inside.
Prefer official or high-trust sources (MDN, specs, vendor docs).
Authoring rules
- Add a
<nav class="breadcrumbs" aria-label="Breadcrumb">before page content. Handbook topic documents link to the root handbook index and their topic hub; topic hubs mark the topic name witharia-current="page". - Wrap
<ss-code>/<ss-diagram>source in<pre>. - Glorified Markdown — HTML carries text and semantic markup only. No inline
<script>in authored content except the one-line theme bootstrap in<head>. No pre-rendered SVG, no duplicated library code. - Reuse components — read
$DOTFILES_DIR/pretty-html/_assets/before inventing new patterns. Add reusable widgets tocomponents.jsand styles todoc.css. - Do not edit
squirrelsong.css— it syncs from$THEMES_DIR/CSS/squirrelsong.css. - Vendored libs live in
_assets/lib/(highlight.js, Mermaid). Pin new versions there when upgrading and update_assets/lib/versions.json.
After writing or updating a page
Open it in the default browser:
Sync
Run sync-dotfiles after changing _assets/. Never symlink into ~/murder (iCloud).
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingai/skills/pretty-html/SKILL.md
Popularity
- Repository stars
- 537
- Repository forks
- 51
- 7-day trend score
- 31
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 5 Oct 2026, 25 days ago.
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/sapegin/dotfiles/pretty-html)