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 agentpit-io/hunter-community --skill portfolio_risk_checkgit clone --depth 1 https://github.com/agentpit-io/hunter-communityWrote 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/agentpit-io/hunter-community/portfolio_risk_check)<a href="https://agentmods.dev/skills/agentpit-io/hunter-community/portfolio_risk_check"><img src="https://agentmods.dev/badge/skills/agentpit-io/hunter-community/portfolio_risk_check/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/agentpit-io/hunter-community/portfolio_risk_check"><img src="https://agentmods.dev/badge/skills/agentpit-io/hunter-community/portfolio_risk_check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00067 | $0.01175 |
| Opus 5.5 | $0.00027 | $0.00470 |
| Sonnet 5.5 | $0.00013 | $0.00235 |
| Haiku 4.5 | $0.00007 | $0.00118 |
Grade A, and why
portfolio_risk_check 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 16d 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.
What it actually says
持仓组合风险暴露与压力测试巡检(portfolio_risk_check)
一、技能定位与触发场景
当用户询问“检查一下我当前持仓的风险暴露”“我的模拟盘/持仓组合是不是太集中了?做个压力测试”时触发本技能。
二、标准执行步骤(四维组合风控体检)
- Step 1:获取组合持仓与压力测试数据(
portfolio&broker_*)- 调用
mcp__portfolio__portfolio_stress与mcp__portfolio__portfolio_rebalance获取当前组合持仓权重、现金比例、用户risk_profile约束(如单票上限、港股上限)及压力测试结果; - 对持仓标的调用
mcp__broker_security__get_security_profile、mcp__broker_market__get_quote、mcp__broker_fundamental__get_valuation补齐最新价、所属行业、ST/停牌状态与估值分位。
- 调用
- Step 2:核算五大核心风险暴露指标(参照
references/portfolio-risk-metrics.md)- 单票集中度:第一大重仓股占比、前三大重仓股合计占比(对照用户
risk_profile单票上限检查是否超标); - 行业集中度:按申万/中信一级行业汇总持仓权重,检查前三大行业占比是否超过 60% 警戒线;
- 估值与波动暴露:组合加权 PE/PB 分位、高波动/高 Beta 标的占比;
- 流动性与信用排雷:持仓中是否存在停牌、ST/*ST、日均成交额极低或近期有大额减持/问询函的标的;
- 历史回撤与极端情景压力测试:在大盘下跌 10% / 行业景气下修 / 利率上行情景下的组合预计回撤幅度。
- 单票集中度:第一大重仓股占比、前三大重仓股合计占比(对照用户
- Step 3:按三栏证据格式输出《组合风险巡检报告》
三、合规与红线硬约束
- 模拟盘与只读边界:本技能仅做客观风险指标计算与暴露提示,严禁直接触发任何实盘交易下单或未经用户确认篡改账本。
- 缺失数据诚实标注:若用户尚未录入持仓且未传参,明确提示用户“当前持仓为空或未指定持仓列表,请先在模拟盘/自选组合添加标的或直接提供持仓明细”,绝不编造虚假持仓。
参数
本技能的入参是持仓列表或留空读默认账本(代码或名称都可以)。用户这次给的是:
$ARGUMENTS
参数为空时,先问清楚要看哪只标的再开工,不要随便挑一只演示。
工具名对照
上面正文提到的工具,在 AtomCode 里的真名是:
| 正文里的写法 | 实际要调的工具 |
|---|---|
broker_security_get_security_profile |
mcp__broker_security__get_security_profile |
broker_fundamental_get_valuation |
mcp__broker_fundamental__get_valuation |
portfolio_portfolio_rebalance |
mcp__portfolio__portfolio_rebalance |
portfolio_portfolio_stress |
mcp__portfolio__portfolio_stress |
broker_market_get_quote |
mcp__broker_market__get_quote |
按右边那一列调。 左边是 HunterCode opencode 版的命名,这套发行版里不存在。
What ships with it
1 file 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.
- 16d ago First seen · 73 lines · 67 tokens per session scan A 71cf7a64f102
portfolio_risk_check is a skill published in the GitHub repository agentpit-io/hunter-community (623 stars, last pushed yesterday), licensed Apache-2.0. It adds 67 tokens to every session and 1,175 once invoked, about $0.0003 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-11-14.
portfolio_risk_check compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| portfolio_risk_checkagentpit-io/hunter-community | Skill | 623 | yesterday | Apache-2.0 | A | 67 | Claude Code |
| xlsxMODSetter/SurfSense | Skill | 17k | 3d ago | Apache-2.0 | A | 16 | Claude Code, Codex |
| stripe-skillzeenie-ai/OpenCompany | Skill | 1.1k | 3d ago | MIT | A | 56 | Claude Code |
| dodo-payments-skillzeenie-ai/OpenCompany | Skill | 1.1k | 3d ago | MIT | A | 69 | Claude Code |
| amex-travelborski/travel-hacking-toolkit | Skill | 1.1k | 6d ago | MIT | A | 47 | Claude Code |
| biltborski/travel-hacking-toolkit | Skill | 1.1k | 6d ago | MIT | A | 44 | Claude Code |
| compare-flightsborski/travel-hacking-toolkit | Skill | 1.1k | 6d ago | MIT | A | 46 | Claude Code |