brsbl/moss-skills/moss-formulas-variables
Claude Code and agent skill by brsbl/moss-skills
- community
Checking that the SKILL.md file is still in the repository.
Create or edit Moss formulas and variables, including UI entry, persisted Markdown, linked instances, derived values, bound references, IDs, and stale metadata.
Install
npx vskill@latest install brsbl/moss-skills/moss-formulas-variablesSKILL.md
The same SKILL.md was published earlier as brsbl/moss-skills/moss-formulas-variables.
Moss Formulas And Variables
Use formulas for one-off numeric expressions and variables for named values that should be reused or referenced.
Editor Entry
In the editor:
=2+2creates an unnamed executable formula.sum=2+2creates a named executable variable.time=9amorwindow_1=9am-930amcreates 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.
Persisted Markdown
The persisted grammar is:
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 | 4}}` | ||
| Symbolic variable | `{{time | 9am | id=6ff0a3b9-16b8-4394-bc11-bc9c1ba2d3f8}}` | |
| Named executable variable | `{{5000 | 5,000 | id=ff796681-9dd9-49de-bd28-85a116d07236;name=budget}}` |
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.
Identity And Linked Instances
Moss identifies a variable by (noteId, id).
- Copying and pasting a variable within the same note preserves its ID and creates another linked instance.
- Editing the name or value of any linked instance updates every instance with that ID in the note.
- Create an independent variable by entering a new
name=value; Moss assigns a new ID. - The same ID in another note is independent because the note ID differs.
- When directly duplicating a variable in the same note, preserve the ID only when the duplicate should remain linked. Generate a fresh UUID for a newly created independent variable.
Bound References
A bound reference is @(name#note-id#formula-id). It is executable and points to an exact variable identity.
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.
Metadata
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.
Tables And Preservation
Formula pills may appear inside a one-line Markdown table row. Their internal pipes are formula syntax and do not become table separators.
- Preserve existing IDs, names, references, and stale state unless the task changes that relationship.
- Keep pills inline; do not use them for multiline calculations or chart data.
- Wrap literal examples in backticks so they do not become live pills.
Final Check
- Editor-entry syntax is not confused with persisted Markdown.
- Every new independent variable has a fresh UUID.
- Linked same-note instances share an ID and therefore update together.
- Bound references use real note and formula IDs.
- App-maintained stale state was preserved rather than invented.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/moss-formulas-variables/SKILL.md
Popularity
- Repository stars
- 11
- Repository forks
- 1
- 7-day trend score
- 12
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
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/brsbl/moss-skills/moss-formulas-variables)