Skip to content
Back to skills

Risk Assessor

ASecurity

A股风控评估 — 预交易风险检查(仓位/回撤/连续亏损/ST禁买)

  • 19 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 4, 2026
ai-agentspython

Security analysis

A100/100

Scanned June 4, 2026

npx -y skills add gergchen/astock-market-engine --skill risk-assessor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Risk Assessor?

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

Security grade badge for Risk Assessor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gergchen-risk-assessor/badge)](https://www.skillsdirectory.com/skills/gergchen-risk-assessor)

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: risk-assessor
description: A股风控评估 — 预交易风险检查(仓位/回撤/连续亏损/ST禁买)
origin: custom
version: 0.1
---

# 风控评估 Skill

对所有交易信号执行风控检查,将结果发布给交易员。

## When to Activate

- 收到研究员信号后自动触发
- 交易员执行前验证
- 用户问"这只票能买吗"
- 关键词:风控、仓位、回撤、止损

## Python Module

```python
from astock_trade.skills.risk_assessor import pre_trade_check, publish_decision

# 执行风控检查
account = {
    "total_assets": 1000000,
    "cash": 500000,
    "positions": {"600519": 100000},
    "daily_pnl": -5000,
}
decision = pre_trade_check(signal, account)
# Returns: {decision: APPROVED|REJECTED, checks: {...}, reason: "..."}

# 发布决策
publish_decision(decision)
```

## 风控规则

| 规则 | 阈值 | 类型 |
|------|------|------|
| 单票仓位 | ≤ 20% | 硬性 |
| 总仓位 | ≤ 70% | 硬性 |
| 日内回撤 | ≤ 5% | 硬性 |
| 连续亏损 | < 3 笔 | 硬性 |
| ST 禁买 | 禁止 | 硬性 |

## 决策格式

```json
{
  "type": "risk_decision",
  "decision": "APPROVED",
  "checks": {"single_stock_position": true, ...},
  "reason": "所有风控检查通过"
}
```

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.

Comments

Loading comments…

Newsletter

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