技能详情(站内镜像,无评论)
作者:RunByDaVinci @clawdiri-ai
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v0.1.0
统计:⭐ 0 · 25 · 0 current installs · 0 all-time installs
⭐ 0
安装量(当前) 0
🛡 VirusTotal :良性 · OpenClaw :可疑
Package:clawdiri-ai/einstein-research-options-dv
安全扫描(ClawHub)
- VirusTotal :良性
- OpenClaw :可疑
OpenClaw 评估
The skill claims to be an options analysis tool, but its instructions, README, and included code disagree about how data is fetched and which scripts to run, and it references an API key requirement that is not declared—these inconsistencies make the package incoherent and require clarification before use.
目的
The stated purpose (options pricing, Greeks, strategy simulation) matches the presence of a Black‑Scholes implementation (scripts/black_scholes.py). However the SKILL.md and README reference higher-level analyzer scripts/CLI behavior (options_analyzer.py, options-analyzer CLI) that are not included in the file manifest, which reduces coherence between claimed capabilities and what is actually present.
说明范围
SKILL.md instructs the agent to run commands and a main analysis script at paths that do not exist in the package (e.g., 'skills/options-analyzer/scripts/options_analyzer.py' and an 'options-analyzer' CLI). The SKILL.md says historical data is fetched via yfinance if volatility not provided, but the included code uses requests and a Financial Modeling Prep (FMP) API function that accepts an API key—these divergent instructions are contradictor…
安装机制
There is no install spec: this is instruction‑plus-code only and nothing in the package pulls remote installers or executes downloads during install. That lowers install-time risk.
证书
The manifest declares no required environment variables, but README explicitly states an 'FMP API key' is required, and the included code defines a fetch_historical_prices_for_hv(symbol, api_key, ...) function that expects an API key and will make network requests. The SKILL.md alternatively mentions yfinance which would not need an API key. This mismatch means the skill may require sensitive credentials (API key) not declared in the registry …
持久
The skill does not request always:true, does not declare config paths or special privileges, and does not indicate it will modify other skills or system settings. Autonomous invocation is allowed but that is normal platform behavior.
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Einstein Research — Options Strategy Advisor」。简介:Options trading strategy analysis and simulation tool. Provides theoretical pri…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/clawdiri-ai/einstein-research-options-dv/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
id: 'einstein-research-options'
name: 'einstein-research-options'
description: 'Options trading strategy analysis and simulation tool. Provides theoretical
pricing using Black-Scholes model, Greeks calculation, strategy P/L simulation,
and risk management guidance. Use when user requests options strategy analysis,
covered calls, protective puts, spreads, iron condors, earnings plays, or options
risk management. Includes volatility analysis, position sizing, and earnings-based
strategy recommendations. Educational focus with practical trade simulation.'
version: '1.0.0'
author: 'DaVinci'
last_amended_at: null
trigger_patterns: []
pre_conditions:
git_repo_required: false
tools_available: []
expected_output_format: 'natural_language'
---
# Options Strategy Analyzer
## Overview
This skill provides comprehensive analysis, simulation, and risk management for options trading strategies. It combines theoretical pricing with practical P/L simulation to help users understand the risk/reward profile of various options positions.
**Core Features:**
- **Black-Scholes Pricing**: Theoretical option value calculation
- **Greeks Calculation**: Delta, Gamma, Theta, Vega, Rho
- **Strategy Simulation**: P/L charts for common strategies (covered calls, spreads, etc.)
- **Volatility Analysis**: Implied vs. historical volatility, IV Rank/Percentile
- **Risk Management**: Position sizing, max loss calculation, earnings event awareness
- **Educational Focus**: Provides clear explanations of concepts and trade-offs
---
## When to Use This Skill
**Explicit Triggers:**
- "Analyze a covered call on AAPL"
- "Show me the P/L for a protective put on TSLA"
- "What's a good options strategy for a high-volatility stock?"
- "Calculate the Greeks for this SPY call option"
- "Simulate an iron condor on QQQ for next month"
- "Help me with an options play for the upcoming earnings report"
- "What are the risks of a cash-secured put?"
- User mentions specific options strategies: covered call, protective put, cash-secured put, credit/debit spread, iron condor, straddle, strangle
**Implicit Triggers:**
- User wants to hedge a stock position
- User is looking for income-generating strategies
- User is speculating on a large price move (up or down)
- User asks about managing risk for an options trade
**When NOT to Use:**
- Simple stock analysis (use `us-stock-analysis`)
- Portfolio-level risk management (use `portfolio-risk-analyzer`)
- Macroeconomic analysis (use `macro-regime-detector`)
---
## Workflow
### Step 1: Gather Inputs
The user must provide the following parameters for analysis:
```bash
options-analyzer analyze
--ticker AAPL
--strategy covered-call
--stock-price 175.00
--strike-price 180.00
--expiry-date 2026-04-17
--option-type call
--risk-free-rate 0.05
--dividend-yield 0.005
# Optional:
--volatility 0.35 # (If not provided, script fetches historical volatility)
--num-shares 100
--num-contracts 1
```
**Required Parameters:**
- `--ticker`: Underlying stock symbol
- `--strategy`: One of `covered-call`, `protective-put`, `cash-secured-put`, `credit-spread`, `debit-spread`, `iron-condor`, `straddle`, `strangle`
- `--stock-price`: Current price of the underlying stock
- `--strike-price`: Strike price of the option(s)
- `--expiry-date`: Expiration date of the option(s) (YYYY-MM-DD)
- `--option-type`: `call` or `put`
- `--risk-free-rate`: Current risk-free rate (e.g., 10-year Treasury yield)
**Optional Parameters:**
- `--volatility`: Implied volatility (if known, otherwise calculated from historical data)
- `--dividend-yield`: Annual dividend yield of the stock
- `--num-shares`: Number of shares held (for covered calls/puts)
- `--num-contracts`: Number of options contracts
### Step 2: Execute Analysis Script
Run the main analysis script with the gathered parameters:
```bash
python3 skills/options-analyzer/scripts/options_analyzer.py --ticker AAPL ...
```
The script performs the following actions:
1. Fetches historical data via yfinance to calculate historical volatility (if not provided).
2. Uses the Black-Scholes model to calculate the theoretical price of the option(s).
3. Calculates all relevant Greeks (Delta, Gamma, Theta, Vega, Rho).
4. Simulates the P/L of the strategy across a range of potential stock prices at expiration.
5. Identifies key metrics: max profit, max loss, break-even point(s).
6. Generates a P/L chart (ASCII or image) and a summary report.
### Step 3: Analyze Results and Provide Recommendations
The script generates a JSON output and a human-readable Markdown report.
**JSON Output (`options_analysis_YYYY-MM-DD_HHMMSS.json`):**
```json
{
"strategy": "Covered Call",
"ticker": "AAPL",
"theoretical_premium": 2.50,
"greeks": {
"delta": 0.45,
"gamma": 0.05,
"theta": -0.02,
"vega": 0.12,
"rho": 0.01
},
"simulation": {
"max_profit": 750.00,
"max_loss": -17250.00,
"break_even": 172.50,
"pnl_data": [...]
},
"recommendations": [
"This strategy profits if AAPL stays below $182.50 by expiration.",
"Time decay (theta) is beneficial, generating daily income.",
"High volatility (vega) increases the premium received but also risk."
]
}
```
**Markdown Report (`options_analysis_YYYY-MM-DD_HHMMSS.md`):**
- **Strategy Overview**: Explanation of the covered call strategy.
- **Trade Setup**: Summary of the user's inputs.
- **Theoretical Premium**: Calculated value of the option.
- **The Greeks Explained**: What each Greek means for this specific trade.
- **P/L Simulation**: Max profit, max loss, break-even points.
- **P/L Chart**: Visual representation of profit/loss at expiration.
- **Risk Analysis**: Key risks associated with the strategy.
- **Earnings Alert**: Checks if an earnings report falls within the trade duration.
### Step 4: Present Findings to User
Synthesize the Markdown report into a clear, educational response.
- Start with a high-level summary of the strategy's goal.
- Explain the key metrics (max profit/loss, break-even).
- Use the "Greeks Explained" section to educate the user on the trade's dynamics.
- Highlight any warnings, such as an upcoming earnings report.
- Attach the P/L chart image if generated.
---
## Supported Strategies
- **Covered Call**: Long stock, short call (income, limited upside)
- **Protective Put**: Long stock, long put (hedging, downside protection)
- **Cash-Secured Put**: Short put, cash collateral (income, willing to buy stock)
- **Credit Spread**: Short option, long further OTM option (income, defined risk)
- **Debit Spread**: Long option, short further OTM option (directional bet, defined risk)
- **Iron Condor**: Short call spread + short put spread (range-bound, income)
- **Straddle**: Long call + long put at same strike (speculating on large move)
- **Strangle**: Long OTM call + long OTM put (cheaper straddle, needs larger move)
---
## Important Considerations
- **American vs. European Options**: The Black-Scholes model is for European options (exercised only at expiration). While most US stock options are American, this provides a standard theoretical benchmark. Always mention this limitation.
- **Liquidity**: Remind users to check the bid-ask spread and open interest for the specific option contract. Illiquid options can have high transaction costs.
- **Earnings**: Always check for earnings dates within the option's life. Volatility crush after earnings can significantly impact the value of options. The script should automatically flag this.
- **Not Financial Advice**: Include a disclaimer that all analysis is for educational purposes only and not financial advice.