/SKILL.md
深度学习组合优化与四个非 DL 基准(equal_weight / momentum / min_variance / risk_parity)在同一份数据上做 Sharpe / 最大回撤 / Calmar 对比的实验工具。
npx skillsauth add gaaiyun/deepdow-portfolio-skill deepdow-portfolio-skillInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
python __main__.py fetch --tickers AAPL,MSFT,GOOG --start 2022-01-01 -o data.csv
python __main__.py baseline --csv data.csv --strategy risk_parity
python __main__.py train --csv data.csv --epochs 30 -o outputs/model.pth
python __main__.py compare --csv data.csv -o report.json
库调用入口:
scripts/baselines.py::BASELINES — {"equal_weight": fn, "momentum_topk": fn, ...}scripts/portfolio_eval.py::compare(returns, weights_by_name) -> List[PerformanceMetrics]scripts/data_io.py::load_yfinance / load_csv / synthetic_returnsscripts/simple_model.py::SimpleNet / train_simple / predict_weights| 指标 | 含义 |
|---|---|
| cum_return | 整段累计收益(不年化) |
| annualized_return | 按 252 period/年年化 |
| annualized_volatility | 同上 |
| sharpe | (mean - rf) / std × √252 |
| sortino | 只用下行波动算分母 |
| max_drawdown | 累计净值最大回撤(负数) |
| calmar | 年化收益 / |最大回撤| |
scripts/train.py / predict.py)evaluate(..., periods_per_year=12) / =52 传对。tools
Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
A CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.