{"id":"ae111c28-16b4-48df-952c-98b56108f75e","shortId":"Fy5XQC","kind":"skill","title":"calculator","tagline":"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.","description":"# Calculator\n\nEvaluate arithmetic expressions with arbitrary-precision decimal math using [big.js](https://github.com/MikeMcl/big.js/).\n\n## When to Use\n\n- User asks to calculate or evaluate a math expression\n- Precise decimal arithmetic is needed (avoids floating-point errors like `0.1 + 0.2 = 0.30000000000000004`)\n- Expressions involve parentheses, operator precedence, or exponents\n\n## Supported Operations\n\n| Operator | Description | Precedence |\n| -------- | ----------- | ---------- |\n| `+` | Addition | 1 |\n| `-` | Subtraction | 1 |\n| `*` | Multiplication | 2 |\n| `/` | Division | 2 |\n| `^` | Exponent (right-associative) | 3 |\n| `()` | Parentheses | Highest |\n\n## Usage\n\n```bash\ncd scripts\nnpm ci || npm install\nnpm run build\nnpm run calculate \"<expression>\"\n```\n\n## Examples\n\n| Input | Output |\n| ----- | ------ |\n| `\"3 + 2\"` | `5` |\n| `\"10 / 4\"` | `2.5` |\n| `\"2 ^ 10\"` | `1024` |\n| `\"(2 + 3) * 4\"` | `20` |\n| `\"1 + 4.5 * (3-6) / 5\"` | `-1.7` |\n| `\"-5 + 3\"` | `-2` |\n| `\"2 ^ 3 ^ 2\"` | `512` (right-associative: 2^9) |\n\n## Edge Cases\n\n- **Empty expression**: Throws \"Empty expression\" error\n- **Mismatched parentheses**: Throws \"Mismatched parentheses\" error\n- **Division by zero**: big.js throws an error\n- **Exponent must be integer**: big.js `.pow()` requires integer exponents\n\n## Limitations\n\n- No trigonometric functions (sin, cos, tan)\n- No variables or symbolic math\n- Exponents must be integers\n- No factorial, modulo, or bitwise operators","tags":["calculator","awesome","copilot","agents","code-and-sorts","agent-skills","ai-agents","awesome-list","copilot-instructions","copilot-prompting","custom-agents","github-copilot"],"capabilities":["skill","source-code-and-sorts","skill-calculator","topic-agent-skills","topic-ai-agents","topic-awesome","topic-awesome-list","topic-copilot-instructions","topic-copilot-prompting","topic-custom-agents","topic-github-copilot","topic-mcp","topic-prompt-engineering","topic-vscode-copilot-chat"],"categories":["awesome-copilot-agents"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/Code-and-Sorts/awesome-copilot-agents/calculator","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add Code-and-Sorts/awesome-copilot-agents","source_repo":"https://github.com/Code-and-Sorts/awesome-copilot-agents","install_from":"skills.sh"}},"qualityScore":"0.699","qualityRationale":"deterministic score 0.70 from registry signals: · indexed on github topic:agent-skills · 498 github stars · SKILL.md body (1,457 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-02T18:53:32.706Z","embedding":null,"createdAt":"2026-04-18T22:00:35.601Z","updatedAt":"2026-05-02T18:53:32.706Z","lastSeenAt":"2026-05-02T18:53:32.706Z","tsv":"'-1.7':143 '-2':146 '-5':144 '-6':141 '/mikemcl/big.js/).':54 '0.1':78 '0.2':79 '0.30000000000000004':80 '1':94,96,138 '10':128,132 '1024':133 '2':98,100,126,131,134,147,149,154 '2.5':130 '20':137 '3':105,125,135,140,145,148 '4':129,136 '4.5':139 '5':127,142 '512':150 '9':155 'addit':9,93 'arbitrari':4,46 'arbitrary-precis':3,45 'arithmet':6,31,42,69 'ask':19,59 'associ':104,153 'avoid':35,72 'bash':109 'big.js':51,173,181 'bitwis':206 'build':118 'calcul':1,7,21,40,61,121 'case':157 'cd':110 'ci':113 'comput':22 'cos':191 'decim':30,48,68 'descript':91 'divis':12,99,170 'edg':156 'empti':158,161 'error':39,76,163,169,176 'evalu':24,41,63 'exampl':122 'expon':14,87,101,177,185,198 'express':26,43,66,81,159,162 'factori':203 'float':37,74 'floating-point':36,73 'function':189 'github.com':53 'github.com/mikemcl/big.js/).':52 'highest':107 'includ':8 'input':123 'instal':115 'integ':180,184,201 'involv':82 'like':77 'limit':186 'math':25,49,65,197 'mismatch':164,167 'modulo':204 'multipl':11,97 'must':178,199 'need':33,71 'npm':112,114,116,119 'oper':84,89,90,207 'output':124 'parenthes':83,106,165,168 'perform':2 'point':38,75 'pow':182 'preced':85,92 'precis':5,29,47,67 'requir':183 'right':103,152 'right-associ':102,151 'run':117,120 'script':111 'sin':190 'skill' 'skill-calculator' 'source-code-and-sorts' 'subtract':10,95 'support':88 'symbol':196 'tan':192 'throw':160,166,174 'topic-agent-skills' 'topic-ai-agents' 'topic-awesome' 'topic-awesome-list' 'topic-copilot-instructions' 'topic-copilot-prompting' 'topic-custom-agents' 'topic-github-copilot' 'topic-mcp' 'topic-prompt-engineering' 'topic-vscode-copilot-chat' 'trigonometr':188 'usag':108 'use':15,50,57 'user':18,58 'variabl':194 'zero':172","prices":[{"id":"1bddfd80-b9d9-4479-b8f6-9e1e1c02994c","listingId":"ae111c28-16b4-48df-952c-98b56108f75e","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"Code-and-Sorts","category":"awesome-copilot-agents","install_from":"skills.sh"},"createdAt":"2026-04-18T22:00:35.601Z"}],"sources":[{"listingId":"ae111c28-16b4-48df-952c-98b56108f75e","source":"github","sourceId":"Code-and-Sorts/awesome-copilot-agents/calculator","sourceUrl":"https://github.com/Code-and-Sorts/awesome-copilot-agents/tree/main/skills/calculator","isPrimary":false,"firstSeenAt":"2026-04-18T22:00:35.601Z","lastSeenAt":"2026-05-02T18:53:32.706Z"}],"details":{"listingId":"ae111c28-16b4-48df-952c-98b56108f75e","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"Code-and-Sorts","slug":"calculator","github":{"repo":"Code-and-Sorts/awesome-copilot-agents","stars":498,"topics":["agent-skills","ai-agents","awesome","awesome-list","copilot-instructions","copilot-prompting","custom-agents","github-copilot","mcp","prompt-engineering","vscode-copilot-chat"],"license":"cc0-1.0","html_url":"https://github.com/Code-and-Sorts/awesome-copilot-agents","pushed_at":"2026-04-29T06:42:59Z","description":"✨ A curated list of awesome GitHub instructions, prompt, skills, MCPs and agent markdown files for enhancing your GitHub Copilot AI experience.","skill_md_sha":"7f0782143ce212b1c66ddea7b99f2efd94a3f188","skill_md_path":"skills/calculator/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/Code-and-Sorts/awesome-copilot-agents/tree/main/skills/calculator"},"layout":"multi","source":"github","category":"awesome-copilot-agents","frontmatter":{"name":"calculator","license":"MIT","description":"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.","compatibility":"Requires Node.js and npm"},"skills_sh_url":"https://skills.sh/Code-and-Sorts/awesome-copilot-agents/calculator"},"updatedAt":"2026-05-02T18:53:32.706Z"}}