/moss-skills:moss-htmlfrom mossnotes.app for Claude Code
Authors self-contained HTML blocks for interactive design artifacts, prototypes, and behavior demonstrations within Moss nodes.
Ships in mossnotes.app for Claude Code. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use moss-html only for a genuine interactive design artifact or browser behavior that native Moss nodes cannot represent. Do not rebuild native tabs, tables, callouts, checklists, charts, comments, or review workflow. Keep requirements and review instructions in native Markdown.
```moss-html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="moss-html-version" content="v1">
<style>
* { box-sizing: border-box; }
:root {
color-scheme: light;
--artifact-surface: rgb(253 250 246);
--artifact-ink: rgb(72 67 60);
--artifact-line: rgb(215 211 201);
--artifact-accent: rgb(57 112 77);
}
body {
width: 1200px;
min-height: 900px;
margin: 0;
background: var(--artifact-surface);
color: var(--artifact-ink);
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.artifact { min-height: 900px; padding: 32px; }
</style>
</head>
<body>
<main class="artifact"><!-- interactive artifact --></main>
</body>
</html>
```
Use a plain moss-html fence line; dimensions belong in the document CSS, not the fence.
DOMContentLoaded.localStorage, sessionStorage, cookies, same-origin fetches, parent/window APIs, and Moss internals are unavailable or unreliable.width and height or min-height; otherwise Moss uses 1200x900.Workspace-relative asset paths do not resolve inside the HTML data URL. For a small required image, embed a self-contained data URL such as src="data:image/png;base64,..."; keep payload size reasonable. Remote images, fonts, scripts, and fetches may fail and must not be required for the first frame or core interaction.
Do not use file://, absolute local paths, Moss internal URLs, or placeholder image URLs.
HTML nodes do not know the surrounding Moss theme. Use one fixed self-contained palette that remains legible in both light and dark Moss modes.
color-scheme for native controls.<meta name="moss-html-version" content="v1">.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub brsbl/moss-skills --plugin moss-skills8 skills in this plugin
/moss-canvasCreate or edit Moss canvas blocks. Use for an existing canvas or when the user explicitly asks for canvas or an editable spatial diagram; use ASCII for generic diagrams and wireframes./moss-commentsComment annotation and sidecar rules for Moss notes. Use when adding, replying to, resolving, preserving, or editing comments and comments.json./moss-formulas-variablesCreate or edit Moss formulas and variables, including UI entry, persisted Markdown, linked instances, derived values, bound references, IDs, and stale metadata./moss-frontmatterYAML frontmatter rules for Moss note metadata. Use when adding, preserving, or editing the optional metadata block at the top of a note./moss-linksCreate or edit Moss wiki links, heading links, aliases, resolved IDs, Markdown links, webpage previews, videos, and note-local media./moss-notesSyntax and file rules for creating or editing Moss notes under ~/Moss/Notes/. Use when authoring or modifying notes, choosing a node type, or following Moss Markdown conventions.Other plugins' skills for the same job