Skip to main content

math-calculator

Calculate mathematical expressions using shell commands. Use when the user asks to perform arithmetic calculations like addition, subtraction, multiplication, division, or powers.

소스 정보

저장소
apache/flink-agents
최근 소스 활동
2026년 5월 27일 16:02
감지된 SKILL.md 언어
영어
스타
462
포크
170

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
math-calculator
description
Calculate mathematical expressions using shell commands. Use when the user asks to perform arithmetic calculations like addition, subtraction, multiplication, division, or powers.
license
Apache-2.0
compatibility
Requires bash with bc (basic calculator)
# Math Calculator Skill This skill calculates mathematical expressions using shell commands. ## When to Use Use this skill when the user asks to evaluate a numeric expression, such as: - Basic arithmetic (add, subtract, multiply, divide) - Expressions with parentheses - Powers and square roots ## Method Pipe the expression into the `bc` (basic calculator) command: ```bash echo "(2 + 3) * 4" | bc # Output: 20 echo "2 ^ 10" | bc # Output: 1024 ``` For decimal results, set the scale first: ```bash echo "scale=2; 10 / 3" | bc # Output: 3.33 ``` ## Instructions 1. Translate the user's question into a single `bc` expression. 2. Run it with the `bash` tool: `echo "<expression>" | bc`. 3. Report the number printed by `bc` as the answer.
GitHub에서 보기