本文へ移動
cccskills
無料GitHub で公開

math-calculator

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

インストール方法を見る

含まれるファイル(1)

  • SKILL.md1.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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:

echo "(2 + 3) * 4" | bc
# Output: 20

echo "2 ^ 10" | bc
# Output: 1024

For decimal results, set the scale first:

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.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Use when building, scaffolding, modifying, debugging, converting, or verifying Apache Flink Agents applications, including Flink Agents YAML, Workflow Agent, ReAct Agent, Actions, Resources, MCP servers, vector stores, runtime skills, Python, or Java. Do not use for ordinary Flink jobs that do not use Flink Agents.

日本語の概要は準備中です。原文の説明を表示しています。

apache/flink-agents4642026年10月10日 更新

Tell a joke about cat.

日本語の概要は準備中です。原文の説明を表示しています。

apache/flink-agents4642026年10月10日 更新

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

日本語の概要は準備中です。原文の説明を表示しています。

apache/flink-agents4642026年10月10日 更新

apache のスキルをすべて見る

このスキルの問題を報告する