/moss-skills:moss-formulas-variablesfrom mossnotes.app for Claude Code
Creates or edits Moss formulas and variables with UI entry, persisted Markdown, linked instances, derived values, bound references, IDs, and stale metadata.
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 formulas for one-off numeric expressions and variables for named values that should be reused or referenced.
In the editor:
=2+2 creates an unnamed executable formula.sum=2+2 creates a named executable variable.time=9am or window_1=9am-930am creates a named symbolic variable.Variable names start with a letter and contain only letters, digits, _, or -. Symbolic values may contain punctuation and non-Latin text. A value is executable only when it is a supported numeric expression or contains a bound reference.
The persisted grammar is:
{{source|display}}
{{source|display|key=value;key=value}}
source ends at the first |, display ends at the second |, and optional semicolon-separated metadata follows. Pipes are unsupported inside source or display; there is no escape form.
| Kind | Persisted example |
|---|---|
| One-off formula | `{{2+2 |
| Symbolic variable | `{{time |
| Named executable variable | `{{5000 |
Moss may read a symbolic variable without an ID for compatibility, but new or rewritten symbolic variables should persist one. Anonymous executable formulas retain the two-field form and do not require persisted identity metadata.
Supported executable syntax is + - * / ( ), decimals, $, thousands commas, %, and numeric k/m/b suffixes. Functions and exponentiation are unsupported. Results use thousands separators and at most two decimal places; currency and percent characters affect parsing but do not decorate the result.
Moss identifies a variable by (noteId, id).
name=value; Moss assigns a new ID.A bound reference is @(name#note-id#formula-id). It is executable and points to an exact variable identity.
{{28|28|id=b371c6db-70db-48f1-99e2-9ea1ef6f1151;name=h1_size}}
{{@(h1_size#9e64c3df-c1e2-4a4d-8c07-91528f422413#b371c6db-70db-48f1-99e2-9ea1ef6f1151)-6|22|id=c520e764-a784-48c5-81ca-f93ac6f4ad37;name=h2_size}}
Create a bound reference only when the real containing note ID and target formula ID are supplied by Moss context or existing persisted metadata. Never substitute example IDs, guess an ID from a path, or edit app-owned metadata. When exact IDs are unavailable, use the editor's variable typeahead or leave the relationship unbound.
Supported metadata is:
| Key | Meaning |
|---|---|
id | Formula or variable identity within its containing note. |
name | Name of an executable variable; symbolic variables derive their name from source. |
stale=1 | Moss could not recompute a bound expression because a reference is missing or cyclic, so the displayed numeric result is the last known value. |
Treat stale=1 as app-maintained state: preserve it unless the expression is deliberately rebuilt, and do not add it manually. Legacy format=... metadata is accepted but ignored; remove it when rewriting the pill.
Formula pills may appear inside a one-line Markdown table row. Their internal pipes are formula syntax and do not become table separators.
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-commentsComment annotation and sidecar rules for Moss notes. Use when adding, replying to, resolving, preserving, or editing comments and comments.json./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