Agent skill

calculator

Performs arbitrary-precision arithmetic calculations including addition, subtraction, multiplication, division, and exponents. Use when the user asks to calculate, compute, or evaluate math expressions, or when precise decimal arithmetic is needed to avoid floating-point errors.

Code-and-Sortsgithub.com/Code-and-SortsGitHub ↗
copilotships scriptsCC0-1.0
Install
npx skills add Code-and-Sorts/awesome-copilot-agents --skill calculator --agent copilot

Same command for any agent — swap --agent for claude-code, codex, cursor.

Facts
Files in the skill folder: 8
SKILL.md size: 2 KB
Bundled scripts: yes
Version: 1.0
Declared author: Colby Timm
Requires: Requires Node.js and npm
Path: skills/calculator/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 554
Language: TypeScript

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Calculator Evaluate arithmetic expressions with arbitrary-precision decimal math using [big.js](https://github.com/MikeMcl/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 ```bash 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 er

What's inside
Steps it walks through
  1. When to Use
  2. Supported Operations
  3. Usage
  4. Examples
  5. Edge Cases
  6. Limitations
Ships with 7 files
  • scripts/jest.config.js
  • scripts/package-lock.json
  • scripts/package.json
  • scripts/src/calculator.test.ts
  • scripts/src/calculator.ts
  • scripts/src/run.ts
  • scripts/tsconfig.json
Commands it runs
cd scripts
npm ci || npm install
npm run build
npm run calculate "<expression>"
More from awesome-copilot-agents
All skills →
About this skill
What does the calculator skill do?

Performs arbitrary-precision arithmetic calculations including addition, subtraction, multiplication, division, and exponents. Use when the user asks to calculate, compute, or evaluate math expressions, or when precise decimal arithmetic is needed to avoid floating-point errors.

How do I install it?

Run `npx skills add Code-and-Sorts/awesome-copilot-agents --skill calculator --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From Code-and-Sorts/awesome-copilot-agents, a repository with 554 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going