Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add seaworld008/Commonly-used-high-value-skills --skill portfolio-risk-managergit clone --depth 1 https://github.com/seaworld008/Commonly-used-high-value-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/seaworld008/commonly-used-high-value-skills/portfolio-risk-manager)<a href="https://agentmods.dev/skills/seaworld008/commonly-used-high-value-skills/portfolio-risk-manager"><img src="https://agentmods.dev/badge/skills/seaworld008/commonly-used-high-value-skills/portfolio-risk-manager/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/seaworld008/commonly-used-high-value-skills/portfolio-risk-manager"><img src="https://agentmods.dev/badge/skills/seaworld008/commonly-used-high-value-skills/portfolio-risk-manager.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium MCP Rug Pull · line 26 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.02576 |
| Opus 5.5 | $0.00014 | $0.01030 |
| Sonnet 5.5 | $0.00007 | $0.00515 |
| Haiku 4.5 | $0.00003 | $0.00258 |
Grade A, and why
portfolio-risk-manager scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 144 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Portfolio Risk Manager (投资组合风险管理器)
像专业的风险会议(Risk Meeting)一样汇总投资组合:分析集中度(Concentration)、敞口(Exposure)、贝塔(Beta)、波动率(Volatility),识别组合在哪些领域过度倾斜。本技能旨在将杂乱的持仓清单转化为具有前瞻性的风险视图,辅助投资经理在调仓前进行全方位的“健康体检”。
运行前提与实际脚本范围
仓库已附带脚本和样例,使用 Python 3 标准库即可运行,无需额外安装第三方包或重新安装技能。 从本技能目录执行下方命令;在其他工作目录调用时,使用脚本和输入文件的完整路径。
计算加权 beta、前五大集中度、行业/地区权重及忽略相关性的 naive_portfolio_volatility;后者不能作为完整组合波动率。build_optimizer_inputs.py 只输出均值、协方差与初始权重,不求解最优组合;returns 必须同频、等长且日期对齐。VaR、压力测试、相关性分析和跟踪误差需要独立计算。
后续领域方法描述的是研究工作流。超出上述输出的指标需补充数据、方法和独立验证,不能声称由附带脚本自动生成。报告中的示例数值为格式示意,不是模型输出或投资结论。
触发条件 / When to Use
- 每周 PM 评审 (Weekly PM Review):在每周一开盘前,对整个组合的风险暴露进行全量扫描。
- 调仓前风险核查 (Pre-trade Sanity Check):在大幅增加某个标的或行业的权重前,评估其对组合整体风险的影响。
- 致投资者信准备 (Investor Letter Prep):需要向投资者清晰地说明目前持仓的风险属性(如:低 Beta、高分红、区域倾斜)。
- 仓位规模讨论 (Position Sizing):根据波动率逆向计算每个标的应占的最优权重。
- 极端行情复盘:当市场发生剧烈波动时,快速计算组合的 VaR(在职风险值)并制定防御方案。
核心能力 / Core Capabilities
1. 集中度与多维敞口分析 (Exposure Analysis)
- 操作步骤:
- 统计前 10 大持仓的权重(Top 10 Weight)。
- 按 行业 (Sector)、地区 (Region)、市值 (Market Cap) 及 风格 (Style) 进行穿透式汇总。
- 识别“非意图敞口”(Accidental Exposure),即由于多个标的同属一个子行业而导致的隐性集中风险。
- 最佳实践:单一标的权重通常不应超过 10%,单一行业敞口不应超过 25%,除非该策略是高集中度的特定风格。
2. 系统性与特有风险测算 (Beta & Volatility)
- 操作步骤:
- 运行
scripts/portfolio_risk.py。 - 计算加权贝塔(Weighted Beta):评估组合对大盘波动的敏感度。
- 拆解风险来源:区分 系统性风险 (Systematic Risk) 和 特有风险 (Idiosyncratic Risk)。
- 计算 跟踪误差 (Tracking Error):衡量组合相对于基准的偏离程度。
- 运行
- 最佳实践:在熊市环境下,重点关注 Beta 的漂移情况。
3. 相关性矩阵与多元化分析 (Correlation Analysis)
- 操作步骤:
- 计算所有持仓之间的相关性矩阵(Correlation Matrix)。
- 识别“假多元化”:表面上买了 20 只股票,但如果它们的相关系数都在 0.8 以上,实质上是一个高风险头寸。
- 最佳实践:通过寻找相关性低于 0.3 的资产来优化夏普比率。
4. 压力测试与情景模拟 (Stress Testing)
- 操作步骤:
- 模拟极端情景:如“利率上升 100bp”、“纳斯达克回调 10%”、“原油价格翻倍”。
- 预估组合在这些情景下的最大跌幅。
- 输出“VaR (Value at Risk)”报告。
常用命令/模板 / Common Patterns
投资组合 JSON 模板 (Portfolio JSON)
{
"portfolio_name": "Global Compounders",
"cash_weight": 0.08,
"holdings": [
{"ticker": "AAPL", "weight": 0.18, "beta": 1.1, "volatility": 0.24, "sector": "Technology", "region": "US"},
{"ticker": "MSFT", "weight": 0.17, "beta": 0.95, "volatility": 0.21, "sector": "Technology", "region": "US"},
{"ticker": "NOVO", "weight": 0.14, "beta": 0.8, "volatility": 0.19, "sector": "Healthcare", "region": "Europe"},
{"ticker": "TSM", "weight": 0.13, "beta": 1.05, "volatility": 0.28, "sector": "Technology", "region": "Asia"},
{"ticker": "SPGI", "weight": 0.12, "beta": 0.9, "volatility": 0.18, "sector": "Financials", "region": "US"},
{"ticker": "MELI", "weight": 0.1, "beta": 1.2, "volatility": 0.31, "sector": "Consumer", "region": "LatAm"},
{"ticker": "ASML", "weight": 0.08, "beta": 1.0, "volatility": 0.27, "sector": "Technology", "region": "Europe"}
]
}
What ships with it
6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 7d ago Changed 75c919bb2a4a
- 12d ago Changed a38ef01445dc
- 13d ago Changed · +3 lines 5dde4bac459e
- 26d ago Changed 96070463513e
- 2mo ago First seen · 141 lines · 34 tokens per session scan A 907d765cddf3
portfolio-risk-manager is a skill published in the GitHub repository seaworld008/Commonly-used-high-value-skills (75 stars, last pushed yesterday), licensed MIT. It adds 34 tokens to every session and 2,576 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
portfolio-risk-manager compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| portfolio-risk-managerseaworld008/Commonly-used-high-value-skills | Skill | 75 | yesterday | MIT | A | 34 | Claude Code, Codex |
| omh-spend-gaterlaope/oh-my-hermes | Skill | 6.2k | today | MIT | A | 23 | Claude Code |
| omh-internal-auditrlaope/oh-my-hermes | Skill | 6.2k | today | MIT | A | 23 | Claude Code |
| omh-finance-analysisrlaope/oh-my-hermes | Skill | 6.2k | today | MIT | A | 20 | Claude Code |
| a-share-swing-sniperhuangrichao2020/pretty-skills | Skill | 54 | 4d ago | MIT | A | 278 | Claude Code, Codex |
| daily-market-reviewhuangrichao2020/pretty-skills | Skill | 54 | 4d ago | MIT | A | 116 | Claude Code, Codex |
| portfolio-diagnosishuangrichao2020/pretty-skills | Skill | 54 | 4d ago | MIT | A | 115 | Claude Code, Codex |