home / skills / bdambrosio / cognitive_workbench / test-calculate
This skill tests and validates a calculate tool across arithmetic, trig, and variable substitution to ensure correct results.
npx playbooks add skill bdambrosio/cognitive_workbench --skill test-calculateReview the files below or copy the command above to add this skill to your agents.
---
name: test-calculate
description: Tests calculate tool with arithmetic, trig, and variable substitution
manual_only: true
---
# Test Calculate Tool
Tests the calculate tool with:
- Basic arithmetic: 2 + 3 * 4 = 14
- Trig with degrees: projectile flight time formula
- Variable substitution: formula with {"v": 20, "theta": 30, "g": 9.8}
- Other functions: sqrt(16) + factorial(5) = 124
This skill exercises a calculate tool to validate arithmetic, trigonometry, and variable substitution in formula evaluation. It runs targeted checks like basic operations, degree-based trig for projectile motion, and combined functions such as square root and factorial. The goal is a quick, reliable verification of numerical parsing and execution behavior.
The skill sends formulas to the calculate tool and compares results against expected values. It covers basic operator precedence, trig functions interpreted in degrees, substitution of named variables into expressions, and composite function calls (e.g., sqrt and factorial). Failures indicate parsing, unit handling, or function implementation issues.
Does this skill assume trig inputs are degrees or radians?
Tests explicitly use degrees; document and confirm the calculator's expected unit to avoid mismatches.
What variable names are supported?
Use simple alphanumeric names like v, theta, and g; adapt tests if your evaluator enforces different naming rules.