← Back to Skills Marketplace
Option Calculator
by
bytesagain4
· GitHub ↗
· v2.4.0
· MIT-0
625
Downloads
1
Stars
6
Active Installs
17
Versions
Install in OpenClaw
/install option-calculator
Description
Price options, compute Greeks, and plot P&L diagrams with exercise analysis. Use when pricing options, calculating Greeks, visualizing profit-loss curves.
Usage Guidance
This skill appears to do what it says: local Black‑Scholes calculations using python3 and a bundled shell script. Before installing or running it, check that you are comfortable with the script writing to ~/.option-calculator (it may store usage data). Confirm python3 is available in your environment. If you handle any sensitive data (e.g., proprietary trade data), inspect the full scripts/script.sh file and consider running it in an isolated environment first; there are no network calls or credential requests in the included code, so risk is limited to local file writes and execution of the bundled script.
Capability Analysis
Type: OpenClaw Skill
Name: option-calculator
Version: 2.4.0
The skill contains a significant security vulnerability in 'scripts/script.sh' where unsanitized shell arguments are directly injected into Python heredocs across multiple functions (e.g., 'bs_price', 'bs_greeks', 'bs_iv'). This allows for arbitrary Python code execution if a user or agent provides crafted input. While the tool's stated purpose of option pricing is consistent with its logic and the documentation in 'SKILL.md' is benign, the lack of input validation makes it highly risky.
Capability Assessment
Purpose & Capability
Name/description match the implementation. The provided script implements pricing, Greeks, IV solver, payoff tables, chain, P/L, etc., which are exactly the advertised features. The code relies only on python3 and standard math; no unrelated capabilities or service integrations are requested.
Instruction Scope
SKILL.md and the script instruct the agent to run a local CLI-style script that executes inline Python to compute results. The script creates a data directory ($HOME/.option-calculator) for persistence; otherwise it does not read other system files or access environment variables beyond HOME. This is expected for a CLI tool but worth noting because inputs may be written to disk.
Install Mechanism
No install spec is provided (instruction-only), which is low-risk. There are no downloads or external package installs referenced in the repository. The script is included in the skill bundle and will run locally; it does not pull code from remote URLs.
Credentials
The skill declares no required environment variables or credentials. The only environment usage is HOME to create ~/.option-calculator. No secrets, API keys, or unrelated credentials are requested.
Persistence & Privilege
always:false (default) and the skill does not request elevated privileges. It does persist data under $HOME/.option-calculator; that is a reasonable, limited persistence scope but users should be aware inputs or history may be stored there.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install option-calculator - After installation, invoke the skill by name or use
/option-calculator - Provide required inputs per the skill's parameter spec and get structured output
Version History
v2.4.0
v2.4.0: Real Black-Scholes pricing with greeks, implied volatility, payoff tables, option chains.
v2.3.8
update
v2.3.7
v2.5 standard: Use-when desc, homepage, source, security fix
v2.3.6
yaml-fix+quality
v2.3.5
yaml-fix+quality
v2.3.4
Quality upgrade
v2.3.3
Quality upgrade: custom functionality
v2.3.2
Standards compliance: unique content, no template text
v2.3.1
Quality improvement: better docs, examples, cleaner text
v2.3.0
Quality fixes: aligned docs with implementation
v2.2.0
Enhanced descriptions for better AI triggering
v1.0.2
Runtime fix
v1.0.1
Add runtime declaration + security compliance
v2.1.0
Full script rewrite: real calculator tool
v2.0.0
Complete rewrite: real functionality replacing prompt templates
v0.0.1
p
v1.0.0
Initial release of Option Calculator.
- Provides option pricing, Greeks calculation, strategy analysis, payoff charts, implied volatility, and exercise analysis.
- Supports commands: price, greeks, strategy, payoff, iv, exercise.
- Includes recommended workflow and bilingual documentation.
Metadata
Frequently Asked Questions
What is Option Calculator?
Price options, compute Greeks, and plot P&L diagrams with exercise analysis. Use when pricing options, calculating Greeks, visualizing profit-loss curves. It is an AI Agent Skill for Claude Code / OpenClaw, with 625 downloads so far.
How do I install Option Calculator?
Run "/install option-calculator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Option Calculator free?
Yes, Option Calculator is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Option Calculator support?
Option Calculator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Option Calculator?
It is built and maintained by bytesagain4 (@xueyetianya); the current version is v2.4.0.
More Skills