← スキル一覧に戻る

math
by chaddm
⭐ 0🍴 0📅 2026年1月16日
SKILL.md
name: math description: Compute a value from a Python math expression string. license: MIT compatibility: opencode metadata:
What I do
Run the following command to evaluate a Python math expression:
~/.config/opencode/skills/math/compute.py "<expression>"
Replace <expression> with any valid Python math expression, such as:
- Simple arithmetic: "2+2", "10*5", "100/4"
- More complex: "2**8", "sqrt(16)", "sin(3.14159/2)"
- With parentheses: "(5+3)*2", "((10-2)/4)+1"
When to use me
Use me when you need to:
- Evaluate mathematical expressions programmatically
- Perform calculations with arithmetic operators (+, -, *, /, //, %, **)
- Use mathematical functions (sin, cos, tan, sqrt, log, etc.)
- Get precise numeric results from complex expressions
Examples
# Simple arithmetic
./compute.py "2+2"
# Output: 4
# Exponentiation
./compute.py "2**10"
# Output: 1024
# Complex expression
./compute.py "(25 + 15) * 2 / 4"
# Output: 20.0
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です