moss-formulas-variables

moss-formulas-variables is a skill for Claude Code, Codex from brsbl/moss-skills. It costs 37 tokens per session (1,105 once invoked), scanned A, original, MIT.

Instructions for creating and editing Moss formulas and named variables, including how they are entered and stored in Markdown.

In plain words
What is it for?
Use it to create numeric expressions, reusable variables, symbolic time values, linked references, and persisted formula data in Moss.
Why use it?
It keeps calculated values, reusable names, references, IDs, and stored metadata consistent between the editor and saved documents.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the moss-skills plugin — 8 skills shipped together

Good fit Use it to create numeric expressions, reusable variables, symbolic time values, linked references, and persisted formula data in Moss.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/brsbl/moss-skills/moss-formulas-variables
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add brsbl/moss-skills --skill moss-formulas-variables
Clone the repo
git clone --depth 1 https://github.com/brsbl/moss-skills

Made for: Claude Code, Codex.

Or install moss-skills, the plugin that ships this one along with the rest of its 8 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for moss-formulas-variables

README.md
[![agentmods](https://agentmods.dev/badge/skills/brsbl/moss-skills/moss-formulas-variables/github.svg)](https://agentmods.dev/skills/brsbl/moss-skills/moss-formulas-variables)
Your own site
<a href="https://agentmods.dev/skills/brsbl/moss-skills/moss-formulas-variables"><img src="https://agentmods.dev/badge/skills/brsbl/moss-skills/moss-formulas-variables/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for moss-formulas-variables

Your own site · 80×15
<a href="https://agentmods.dev/skills/brsbl/moss-skills/moss-formulas-variables"><img src="https://agentmods.dev/badge/skills/brsbl/moss-skills/moss-formulas-variables.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,105 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.01105
Opus 5 $0.00018 $0.00553
Sonnet 5 $0.00007 $0.00221
Haiku 4.5 $0.00004 $0.00111

Measured 10d ago against content hash 13b14c4f4d02, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

moss-formulas-variables scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/moss-skills/skills/moss-formulas-variables/SKILL.md · 89 lines

How it starts

The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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+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.

Persisted Markdown

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.

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.

Read the full file on GitHub · 89 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 89 lines · 37 tokens per session scan A 13b14c4f4d02

Subscribe to this mod's changes

moss-formulas-variables is a skill published in the GitHub repository brsbl/moss-skills (11 stars, last pushed 15d ago), licensed MIT. It adds 37 tokens to every session and 1,105 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

companion-clis

Companion CLIs for Runpod workflows — HuggingFace, GitHub, Docker, and AWS.

gaelic-ghost/socket · 26 tokens

optimize-claude-opus-5-prompts

Clarify, audit, and rewrite rough or existing prompts for Claude Opus 5 using Anthropic's official prompting guidance. Use when a user asks to optimize, improve, migrate, debug, or design a prompt, system prompt, or agent harness for Claude Opus 5 (claude-opus-5), including requests phrased as Opus 5 prompt…

IchenDEV/prompt-optimizer-plugins · 182 tokens

optimize-claude-fable-5-prompts

A prompt-editing method for Claude Fable 5, an AI model. It turns rough or existing instructions into clearer prompts while keeping the original goal and important limits.

IchenDEV/prompt-optimizer-plugins · 137 tokens

optimize-gpt-5-6-prompts

A guide for improving prompts written for OpenAI’s GPT-5.6 models, including GPT-5.6 Sol.

IchenDEV/prompt-optimizer-plugins · 135 tokens

optimize-gpt-6-astra-prompts

Clarify, audit, migrate, and rewrite prompts for GPT-6 Astra using OpenAI's official latest-model prompting guidance. Use when a user asks to optimize, improve, rewrite, debug, migrate, or design a GPT-6 Astra prompt, including requests phrased as GPT-6, Astra, or gpt-6-astra prompt optimization, or when an…

IchenDEV/prompt-optimizer-plugins · 134 tokens

optimize-deepseek-v4-prompts

Clarify, audit, and rewrite rough or existing prompts specifically for DeepSeek-V4 Pro and Flash using the DeepSeek-AI V4 technical report as the model-specific evidence base. Use when a user asks to optimize, improve, rewrite, debug, migrate, or design a DeepSeek-V4 prompt, including requests phrased as DeepSeek…

IchenDEV/prompt-optimizer-plugins · 151 tokens