/moss-skills:moss-commentsfrom mossnotes.app for Claude Code
Adds, edits, and resolves inline comments with body markers and a sidecar JSON file. Handles root vs reply entries, attribution sources, and image attachments.
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 comments for explicit questions, decisions, approvals, or review points that need attention on exact evidence. Fix ordinary wording, duplication, and scannability issues directly instead of leaving editorial comments, except when annotating your own edits to an existing large note.
A root comment has body markers plus a matching comments.json entry. Replies exist only in the sidecar and connect through parentId.
Use these attribution values:
| Writer | source / resolvedBy |
|---|---|
| Human using Moss UI | user |
| Moss's in-app agent | agent |
| Agent or tool editing files outside Moss | external |
Do not write user for agent-authored content. Preserve missing attribution as legacy/unknown instead of backfilling it.
Wrap the exact annotated range:
The %%m:c1:start%%current layout%%m:c1:end%% needs review.
_, and -.%%m:a,b:start%%text%%m:a,b:end%%.Wrap an entire inline pill rather than placing markers inside it. Put block markers on standalone lines around the whole image, chart, HTML block, code fence, or other block node. Never place markers inside wiki links, formulas, color pills, fenced payloads, or raw HTML comments.
comments.json is a JSON object keyed by comment ID. Required fields use Unix timestamps in seconds.
| Field | Required | Contract |
|---|---|---|
text | Yes | Comment or reply text. |
createdAt | Yes | Finite Unix timestamp in seconds; do not change after creation. |
updatedAt | Yes | Finite Unix timestamp in seconds; update when the entry changes. |
source | New entries | user, agent, or external. |
parentId | Replies only | Existing root or reply ID; no cycles or dangling targets. |
imageUrls | No | Note-relative paths under assets/. |
resolvedAt | Resolved thread | Finite Unix timestamp in seconds. |
resolvedBy | When known | user, agent, or external. |
Complete user-root and external-reply example:
{
"c1": {
"text": "Should this ship in the first phase?",
"createdAt": 1707900000,
"updatedAt": 1707900000,
"source": "user"
},
"c1-r1": {
"text": "The first phase is now reflected in the plan.",
"createdAt": 1707900100,
"updatedAt": 1707900100,
"source": "external",
"parentId": "c1"
}
}
The app may retain legacy singular imageUrl; preserve it, but author new attachments with imageUrls.
comments.json beside the Markdown content file.When you edit an existing large note, leave a comment at each location you changed, so the user can review the edit by reading the comments instead of re-reading the note. Treat a note as large when its Markdown body, as it exists before your edit, is roughly 100 lines or more.
comments.json you are permitted to write. The in-app agent may annotate only the active note; for any other note, edit directly and describe the changes in your response.comments.json entry. There is no separate annotation syntax, marker type, or sidecar field.source to your execution context and leave this pass's annotations open so the user sees them.These annotations are the one case where an editorial change also gets a comment.
parentId; a reply may point to the root or another reply.resolvedAt and appropriate resolvedBy on the root and every descendant, and update every affected updatedAt.Attachment paths are note-relative, for example assets/comment-abc.png. Resolve them against the note directory.
Mentions in comment text use U+2063 before and U+2064 after the displayed reference: \u2063@Project Plan\u2064 for a note or \u2063@folder:Launch assets\u2064 for a folder. When Moss knows the target's ID it appends it after a U+2062 separator — \u2063@Project Plan\u2062<note-id>\u2064 — and that ID, not the title, is what resolves the link. Preserve existing wrappers and ID segments verbatim, and drop the ID segment when rendering a mention as plain text. Create mentions through Moss UI; an external writer must not invent a reference from display text alone.
[[Note]], [[#Heading]]) and Markdown links do not render in comment text; they stay literal text.@Note Title (or @folder:Folder Path), then optionally U+2062 plus the target ID, then U+2064. A note mention without an ID resolves by title.What SKILL.md sets; muted values are Claude Code's defaults
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-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-htmlAuthor self-contained moss-html blocks for genuine interactive design artifacts, embedded HTML previews, prototypes, and behavior demonstrations that native Moss nodes cannot represent./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