Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/lisonevf-portfolio-risk
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: finance
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/portfolio-risk
What's inside
- Skill name
portfolio-risk- Description
- Analyzes portfolio risk and performance metrics. Computes Value at Risk (VaR), Sharpe ratio, Sortino ratio, beta, correlation matrices, drawdown analysis, and position sizing recommendations. Trigger when the user requests risk analysis, portfolio optimization, or performance attribution.
- License
- MIT
- Instructions
- 46 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Portfolio Risk
Analyzes portfolio risk and recommends position sizing and diversification.
## Real Code Reference
- `tradinglearn/backtest/backtester.py` — `Backtester._calculate_performance()` computes Sharpe, max drawdown, win rate, total return, CAGR
- `tradinglearn/utils/parameter_optimizer.py` — `plot_optimization_results()` heatmaps: return, Sharpe, drawdown, win rate
- `tradinglearn/pytdx2/backtest.py` — `BacktestEngine` tracks per-trade P&L for risk analysis
## Risk Metrics
- **VaR**: historical simulation, parametric, Monte Carlo
- **CVaR (Expected Shortfall)**: average loss beyond VaR
- **Maximum Drawdown**: peak-to-trough with recovery duration
- **Volatility**: annualized std of returns
## Performance Metrics
- **Sharpe Ratio**: (R - Rf) / sigma
- **Sortino Ratio**: downside-only volatility
- **Calmar Ratio**: annual return / max drawdown
- **Information Ratio**: active return / tracking error
## Portfolio Analysis
- Correlation matrix between holdings
- Beta to market benchmark
- Position concentration (Herfindahl index)
- Risk parity weights
## Usage
```python
from backtest.backtester import Backtester
bt = Backtester(initial_capital=100000.0)
bt.run_backtest(data, MyStrategy, params)
perf = bt.get_performance()
# {'total_return': 0.15, 'annual_return': 0.12, 'sharpe_ratio': 1.2,
# 'max_drawdown': -0.08, 'win_rate': 0.55, 'total_trades': 42}
portfolio = bt.get_portfolio()
# DataFrame with: portfolio_value, position, cash, returns
```From LisonEvf/finance-skills, MIT.
More from LisonEvf/finance-skills
- 0.507score
backtest-strategy
LisonEvf
Runs backtests on trading strategies using historical market data.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
market-data
LisonEvf
Fetches and processes real-time and historical stock market data from TDX protocol servers.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
technical-analysis
LisonEvf
Computes technical indicators for stock data including MACD, RSI, moving averages, Bollinger Bands, ATR, and volume analysis.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
query-skills
LisonEvf
Queries and discovers available skills in the finance-skills marketplace.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
strategy-development
LisonEvf
Designs and implements new trading strategies.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
report-generation
LisonEvf
Generates structured trading performance reports.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
visualization
LisonEvf
Creates financial charts and visualizations.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
data-cleaning
LisonEvf
Cleans and preprocesses financial time series data.
SkillCFreshness: C★ 2Claude Code +9 - 0.501score
yeren-trading-system
LisonEvf
野人交易系统。情绪周期+题材龙头+短线博弈+波段操作+仓位管理+人性博弈的完整交易方法论,含一肉三吃、扶老太太下楼梯、二次回踩、弱转强等战法,以及量化应对、洗盘出货识别。
SkillCFreshness: C★ 2Claude Code +9 - 0.501score
gelan-trinity-trading
LisonEvf
格兰书院三位一体交易系统。均线(55+233)+结构(ABCD)+时空(级别嵌套)的完整交易方法论,含仓位管理、做T/加仓抉择、止盈止损、集合竞价、主涨段判断、关键K、维科夫法。
SkillCFreshness: C★ 2Claude Code +9 - 0.501score
yanchixia-short-term
LisonEvf
燕赤霞短线打板体系 — 一进二/二进三/反包/弱转强/竞价/分歧转一致/涨停金凤凰。基于抖音口播稿蒸馏,适用于A股短线打板、龙头战法、情绪周期判断。
SkillCFreshness: C★ 2Claude Code +9 - 0.499score
new-skill
LisonEvf
Replace with description of the skill and when Claude should use it.
SkillCFreshness: C★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- May 15, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/LisonEvf/finance-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from LisonEvf
- 0.507score
strategy-development
LisonEvf
Designs and implements new trading strategies.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
query-skills
LisonEvf
Queries and discovers available skills in the finance-skills marketplace.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
technical-analysis
LisonEvf
Computes technical indicators for stock data including MACD, RSI, moving averages, Bollinger Bands, ATR, and volume analysis.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
report-generation
LisonEvf
Generates structured trading performance reports.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
visualization
LisonEvf
Creates financial charts and visualizations.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
data-cleaning
LisonEvf
Cleans and preprocesses financial time series data.
SkillCFreshness: C★ 2Claude Code +9
Cite this page
portfolio-risk skill. Agent Mart. https://agentmart.dev/skills/lisonevf-portfolio-risk (last updated 2026-10-24)