calculator

calculator is a skill for Claude Code, Codex from Code-and-Sorts/awesome-copilot-agents. It costs 50 tokens per session (534 once invoked), scanned A, original, CC0-1.0.

A calculator for exact decimal arithmetic, including basic operations, parentheses, and integer exponents.

In plain words
What is it for?
Use it to evaluate expressions involving addition, subtraction, multiplication, division, powers, negative numbers, and decimal values.
Why use it?
It avoids rounding errors and follows the intended order of operations for precise calculations.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to evaluate expressions involving addition, subtraction, multiplication, division, powers, negative numbers, and decimal values.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/code-and-sorts/awesome-copilot-agents/calculator
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 Code-and-Sorts/awesome-copilot-agents --skill calculator
Clone the repo
git clone --depth 1 https://github.com/Code-and-Sorts/awesome-copilot-agents

Made for: Claude Code, Codex.

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 calculator

README.md
[![agentmods](https://agentmods.dev/badge/skills/code-and-sorts/awesome-copilot-agents/calculator.svg)](https://agentmods.dev/skills/code-and-sorts/awesome-copilot-agents/calculator)
Your own site
<a href="https://agentmods.dev/skills/code-and-sorts/awesome-copilot-agents/calculator"><img src="https://agentmods.dev/badge/skills/code-and-sorts/awesome-copilot-agents/calculator.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 534 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.00050 $0.00534
Opus 5 $0.00025 $0.00267
Sonnet 5 $0.00010 $0.00107
Haiku 4.5 $0.00005 $0.00053

Measured 8d ago against content hash 45d4e99787d6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

calculator 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 8d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/jest.config.js, scripts/src/calculator.test.ts, scripts/src/calculator.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/calculator/SKILL.md · 66 lines

What it actually says

Calculator

Evaluate arithmetic expressions with arbitrary-precision decimal math using big.js.

When to Use

  • User asks to calculate or evaluate a math expression
  • Precise decimal arithmetic is needed (avoids floating-point errors like 0.1 + 0.2 = 0.30000000000000004)
  • Expressions involve parentheses, operator precedence, or exponents

Supported Operations

Operator Description Precedence
+ Addition 1
- Subtraction 1
* Multiplication 2
/ Division 2
^ Exponent (right-associative) 3
() Parentheses Highest

Usage

cd scripts
npm ci || npm install
npm run build
npm run calculate "<expression>"

Examples

Input Output
"3 + 2" 5
"10 / 4" 2.5
"2 ^ 10" 1024
"(2 + 3) * 4" 20
"1 + 4.5 * (3-6) / 5" -1.7
"-5 + 3" -2
"2 ^ 3 ^ 2" 512 (right-associative: 2^9)

Edge Cases

  • Empty expression: Throws "Empty expression" error
  • Mismatched parentheses: Throws "Mismatched parentheses" error
  • Division by zero: big.js throws an error
  • Exponent must be integer: big.js .pow() requires integer exponents

Limitations

  • No trigonometric functions (sin, cos, tan)
  • No variables or symbolic math
  • Exponents must be integers
  • No factorial, modulo, or bitwise operators
Files

What ships with it

7 files 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. 8d ago First seen · 66 lines · 50 tokens per session scan A 45d4e99787d6

Subscribe to this mod's changes

calculator is a skill published in the GitHub repository Code-and-Sorts/awesome-copilot-agents (564 stars, last pushed 4mo ago), licensed CC0-1.0. It adds 50 tokens to every session and 534 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

Calculator

Perform precise arithmetic and unit conversions.

ReactSphere/awesome-copilot-agents · 9 tokens

paper-polish

Polishes existing academic prose while preserving the author's meaning: grammar and flow repair, tone calibration against evidence strength, AI-tone removal, and Chinese-to-English rewriting at submission quality. Never fabricates data, citations, or claims, and flags any edit that could change scientific meaning. Use…

HKUSTDial/Supervisor-Skills · 93 tokens

paper-writer

Drafts publishable paper prose from the author's own materials, from a single paragraph to a full manuscript, across STEM and non-STEM fields. Every factual claim traces to user input, verified retrieval, or field common knowledge; citations pass an independent verification ladder; delivery is clean prose with zero…

HKUSTDial/Supervisor-Skills · 90 tokens

pre-submission-reviewer

Runs a pre-submission review of a technical paper across five dimensions: macro logic, writing details, English grammar, LaTeX formatting, and figure quality. Uses a reviewer-style severity taxonomy (CRITICAL / MAJOR / MINOR) and flags banned AI-tone vocabulary and em-dash misuse. Use when the user asks to 'review…

HKUSTDial/Supervisor-Skills · 104 tokens

intro-drafter

Drafts the Introduction prose for a technical paper, guided internally by a six-paragraph flowchart: background and running example, existing limitations, problem essence and goal, key challenges, solution overview, contributions. Positions the paper as Technique or New Problem/Setting, aligns contributions with…

HKUSTDial/Supervisor-Skills · 95 tokens

figure-designer

Advises on the design of the three core figures in a technical paper: the Motivated Example (Figure 1), the Solution Overview (Methodology), and the Experimental Results figures. Recommends the right design paradigm, layout, labelling, and tool for each figure type, then runs a quality-control audit. Use when the user…

HKUSTDial/Supervisor-Skills · 112 tokens