Skip to content
Back to skills

Portfolio Risk Check

ASecurity

持仓组合风险暴露与压力测试巡检。计算单票最高占比、前三大行业集中度、市场/币种敞口、相关性、历史最大回撤与压力测试情景,对照用户 risk_profile 约束输出三栏证据风控报告。

  • 626 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 14, 2026
ai-agentsgosecurity

Works with

  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 14, 2026

npx -y skills add agentpit-io/hunter-community --skill portfolio_risk_check --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Portfolio Risk Check?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Portfolio Risk Check
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentpit-io-portfolio-risk-check/badge)](https://www.skillsdirectory.com/skills/agentpit-io-portfolio-risk-check)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: portfolio_risk_check
description: 持仓组合风险暴露与压力测试巡检。计算单票最高占比、前三大行业集中度、市场/币种敞口、相关性、历史最大回撤与压力测试情景,对照用户 risk_profile 约束输出三栏证据风控报告。
user-invocable: true
allowed-tools: mcp__portfolio__portfolio_stress mcp__portfolio__portfolio_rebalance mcp__broker_security__get_security_profile mcp__broker_market__get_quote mcp__broker_fundamental__get_valuation
version: 3.2.0
author: HunterCode Team
license: MIT
metadata:
  tags: [finance, portfolio, risk-check, stress-test, concentration, drawdown, broker-envelope, p0]
hunter:
  display_name: 组合风险巡检
  icon: Shield
  category: 组合级
  prompt_tpl: 检查我当前持仓组合 {持仓列表或留空读默认账本} 的行业集中度、单票占比与压力测试风险
  needs_tools:
    - portfolio_portfolio_stress
    - portfolio_portfolio_rebalance
    - broker_security_get_security_profile
    - broker_market_get_quote
    - broker_fundamental_get_valuation
---

# 持仓组合风险暴露与压力测试巡检(`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. **缺失数据诚实标注**:若用户尚未录入持仓且未传参,明确提示用户“当前持仓为空或未指定持仓列表,请先在模拟盘/自选组合添加标的或直接提供持仓明细”,绝不编造虚假持仓。

<!-- HCA:BEGIN 由 tools/build_skills.py 生成,勿手改 -->

## 参数

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

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

<!-- HCA:END -->

Files in this skill

  • SKILL.md4.1 KB
  • references/portfolio-risk-metrics.md2.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.