portfolio_risk_check

portfolio_risk_check is a skill for Claude Code from agentpit-io/hunter-community. It costs 67 tokens per session (1,175 once invoked), scanned A, original, Apache-2.0.

A portfolio risk checker for investments held together. It measures concentration, industry and currency exposure, relationships between holdings, past declines, liquidity concerns, and results under stressful market scenarios.

In plain words
What is it for?
Use it to review holding weights, the largest positions, industry concentration, valuation and volatility exposure, liquidity, credit concerns, and possible losses in adverse scenarios.
Why use it?
It shows where a portfolio may depend too heavily on one stock, industry, market, or currency, and highlights risks such as suspended or specially flagged companies.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions OpenCode.

Good fit Use it to review holding weights, the largest positions, industry concentration, valuation and volatility exposure, liquidity, credit concerns, and possible losses in adverse scenarios.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agentpit-io/hunter-community/portfolio_risk_check
Install

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.

Any agent
npx skills add agentpit-io/hunter-community --skill portfolio_risk_check
Clone the repo
git clone --depth 1 https://github.com/agentpit-io/hunter-community

Made for: Claude Code.

Wrote 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.

agentmods badge for portfolio_risk_check

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentpit-io/hunter-community/portfolio_risk_check/github.svg)](https://agentmods.dev/skills/agentpit-io/hunter-community/portfolio_risk_check)
Your own site
<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.

agentmods 80×15 button for portfolio_risk_check

Your own site · 80×15
<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>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,175 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 16d ago against content hash 71cf7a64f102, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

distro/workspace-template/.atomcode/skills/portfolio_risk_check/SKILL.md · 73 lines

What it actually says

持仓组合风险暴露与压力测试巡检(portfolio_risk_check)

一、技能定位与触发场景

当用户询问“检查一下我当前持仓的风险暴露”“我的模拟盘/持仓组合是不是太集中了?做个压力测试”时触发本技能。

二、标准执行步骤(四维组合风控体检)

  1. 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/停牌状态与估值分位。
  2. Step 2:核算五大核心风险暴露指标(参照 references/portfolio-risk-metrics.md)
    • 单票集中度:第一大重仓股占比、前三大重仓股合计占比(对照用户 risk_profile 单票上限检查是否超标);
    • 行业集中度:按申万/中信一级行业汇总持仓权重,检查前三大行业占比是否超过 60% 警戒线;
    • 估值与波动暴露:组合加权 PE/PB 分位、高波动/高 Beta 标的占比;
    • 流动性与信用排雷:持仓中是否存在停牌、ST/*ST、日均成交额极低或近期有大额减持/问询函的标的;
    • 历史回撤与极端情景压力测试:在大盘下跌 10% / 行业景气下修 / 利率上行情景下的组合预计回撤幅度。
  3. Step 3:按三栏证据格式输出《组合风险巡检报告》

三、合规与红线硬约束

  1. 模拟盘与只读边界:本技能仅做客观风险指标计算与暴露提示,严禁直接触发任何实盘交易下单或未经用户确认篡改账本。
  2. 缺失数据诚实标注:若用户尚未录入持仓且未传参,明确提示用户“当前持仓为空或未指定持仓列表,请先在模拟盘/自选组合添加标的或直接提供持仓明细”,绝不编造虚假持仓。

参数

本技能的入参是持仓列表或留空读默认账本(代码或名称都可以)。用户这次给的是:

$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 版的命名,这套发行版里不存在。

Files

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.

Changes

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.

  1. 16d ago First seen · 73 lines · 67 tokens per session scan A 71cf7a64f102

Subscribe to this mod's changes

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.

Related

portfolio_risk_check compared with skills from other repositories

portfolio_risk_check next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
portfolio_risk_checkagentpit-io/hunter-communitySkill623yesterdayApache-2.0A67Claude Code
xlsxMODSetter/SurfSenseSkill17k3d agoApache-2.0A16Claude Code, Codex
stripe-skillzeenie-ai/OpenCompanySkill1.1k3d agoMITA56Claude Code
dodo-payments-skillzeenie-ai/OpenCompanySkill1.1k3d agoMITA69Claude Code
amex-travelborski/travel-hacking-toolkitSkill1.1k6d agoMITA47Claude Code
biltborski/travel-hacking-toolkitSkill1.1k6d agoMITA44Claude Code
compare-flightsborski/travel-hacking-toolkitSkill1.1k6d agoMITA46Claude Code