calculator
Pass
Audited by Gen Agent Trust Hub on May 8, 2026
Risk Level: SAFE
Full Analysis
- [SAFE]: The skill uses a robust security pattern for evaluating mathematical expressions. The script
scripts/calc.pyparses input usingast.parseand manually traverses the tree, only allowing a strictly defined whitelist of arithmetic operations (Add, Sub, Mult, Div, FloorDiv, Mod, Pow, Unary Negation/Positive) and numeric constants. Any attempt to use functions, classes, or imports will result in a ValueError, preventing arbitrary code execution.
Audit Metadata