A股风控评估 — 预交易风险检查(仓位/回撤/连续亏损/ST禁买)
Scanned 6/4/2026
Install to Claude Code
npx -y skills add gergchen/astock-market-engine --skill risk-assessor --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Risk Assessor?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/gergchen-risk-assessor)More formats (shields.io, HTML) on the badges page.
---
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": "所有风控检查通过"
}
```
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.