risk-guard

risk-guard is a skill for Claude Code, Codex from Fize/mmtickerlab. It costs 159 tokens per session (1,891 once invoked), scanned A, original, MIT.

A trading risk-control procedure that checks quantitative market signals against an investment thesis and sets position limits, stop-loss levels, and concentration limits. It can block a trade when required market data is missing or the signals conflict.

In plain words
What is it for?
Use it before buying to review market conditions, technical indicators such as moving averages and MACD, position sizing, stop levels, and portfolio concentration.
Why use it?
It reduces the risk of making a trade from inconsistent reasoning, excessive exposure, or fabricated or unavailable data. A veto result stops the process rather than approving a trade in a data blind spot.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it before buying to review market conditions, technical indicators such as moving averages and MACD, position sizing, stop levels, and portfolio concentration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fize/mmtickerlab/risk-guard
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 Fize/mmtickerlab --skill risk-guard
Clone the repo
git clone --depth 1 https://github.com/Fize/mmtickerlab

Made for: Claude Code, Codex.

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 risk-guard

README.md
[![agentmods](https://agentmods.dev/badge/skills/fize/mmtickerlab/risk-guard/github.svg)](https://agentmods.dev/skills/fize/mmtickerlab/risk-guard)
Your own site
<a href="https://agentmods.dev/skills/fize/mmtickerlab/risk-guard"><img src="https://agentmods.dev/badge/skills/fize/mmtickerlab/risk-guard/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 risk-guard

Your own site · 80×15
<a href="https://agentmods.dev/skills/fize/mmtickerlab/risk-guard"><img src="https://agentmods.dev/badge/skills/fize/mmtickerlab/risk-guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 159 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,891 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.00159 $0.01891
Opus 5.5 $0.00064 $0.00756
Sonnet 5.5 $0.00032 $0.00378
Haiku 4.5 $0.00016 $0.00189

Measured 1mo ago against content hash 75b2f4fd6891, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

risk-guard 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 1mo 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.

risk-guard/SKILL.md · 106 lines

How it starts

The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Risk Guard — 量化信号核验与风控门禁

本技能作为投研流水线的第三步(买入前风控门禁)。核心原则:不唯凭感性下注,用数据算仓位,触发风控红线一票否决。

独立运行与输入边界

本技能可以单独运行。调用方只需提供评估对象、评估阶段和拟议动作;市场与标的数据由本技能自行准备并核验。可从其他 Skill 接收结构化事实,但不把其他 Skill 的报告正文当作数据源。关键数据经过补充仍不可核验时输出 VETO: BLOCKED。


零虚构与数据真实性铁律(Zero-Fabrication Data Gate)

  1. 真实数据唯一原则:风控评估中引用的市场宽度、涨跌停数据、均线及 MACD 指标必须 100% 真实。
  2. 多级真实数据获取路径:
    • 第一优先:调用 market 技能(参见 market/SKILL.md)获取大势与个股技术面确定性数据;
    • 第二优先:若命令报错或暂时不可用,必须使用 search_web / read_url_content / tencent-news / agent-browser 检索权威市场数据。
  3. 缺失即阻断(Fail-Fast):若通过上述所有途径均无法获取到标的的关键真实技术或行情数据,风控裁决直接输出 VETO: BLOCKED,告知用户:“由于无法获取 [具体数据],风控评估已安全阻断,拒绝在数据盲区下单”。绝对禁止编造假数据放行交易!

真实数据核验源(调用 market 技能)

在进行风控评估前,遵循渐进式披露原则,直接查阅 market/SKILL.md 调用对应能力拉取大势与技术数据:

风控核验场景 market 对应指令与能力 校验核心要素
大势环境与市场宽度 snapshot 命令 上涨/下跌家数分布、涨跌中位数、全市场成交额(用于标定 Regime 与仓位乘数)
情绪周期与连板梯队 limits 命令 涨停家数、跌停家数、炸板率、最高连板梯队(用于排查系统性退潮红线)
标的技术指标自洽性 technical 命令 均线排列(MA5/10/20)、MACD 零轴与金死叉、RSI_6 超买超卖、布林带通道位置

核心风控三步法

步骤 1:信号自洽性交叉核验

将看多/看空逻辑与底层量化数值进行对比,检验是否存在“逻辑矛盾”:

维度 主观分析结论 量化指标验证依据 是否自洽
趋势方向 看多 / 看空 / 震荡 均线排列状态、MACD DIF/DEA 零轴位置 ✅ / ❌
估值位置 处于相对低位 / 偏高 PE/PB 历史分位数(A 股) ✅ / ❌
动量与超买 强势突破 / 逢低抄底 RSI_6、KDJ_J、VWMA 量价配合度 ✅ / ❌

红线规则:若分析结论看多,但 technical 显示均线空头排列且 MACD 死叉向下,认定为 逻辑矛盾(❌),直接降级评级。


步骤 2:大势环境与仓位/止损矩阵

风控系数与仓位上限根据当前大势状态(Regime)动态调整:

市场环境(Regime) 趋势乘数 超买警告乘数 推荐全仓位上限 单标的仓位上限 动态止损线
牛市 / 强势 (Bull) ×1.5 ×0.3 (容忍超买) 80% 20% - 25% -10%
结构牛 / 主线 (Structural) ×1.3 ×0.5 60% 15% - 20% -8%
震荡市 (Range-Bound) ×1.0 ×1.0 40% 10% - 15% -5%
熊市 / 弱势 (Bear) ×0.5 ×1.5 (严防追高) 20% ≤ 10% -3%

步骤 3:一票否决权(Veto Authority)

当出现以下任一硬性红线时,风控官必须行使 VETO: BLOCKED(一票否决):

  1. 逻辑矛盾:买入理由与底层技术指标严重背离(如死叉抄底、无量突破);
  2. 环境不匹配:熊市/主线退潮期尝试满仓或追高连板标的;
  3. 风控超限:拟建仓位数超过当前大势允许的单标上限;
  4. 流动性缺失:标的日均成交额极低(如 A 股日成交低于 5000 万,或港美股日成交严重不足)。

Read the full file on GitHub · 106 lines

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. 1mo ago Changed · +3 lines 75b2f4fd6891
  2. 1mo ago Changed · +5 lines · +82 tokens per session fc7087b48778
  3. 1mo ago First seen · 98 lines · 77 tokens per session scan A fc2142ad4a10

Subscribe to this mod's changes

risk-guard is a skill published in the GitHub repository Fize/mmtickerlab (5 stars, last pushed 25d ago), licensed MIT. It adds 159 tokens to every session and 1,891 once invoked, about $0.0006 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-09-05.

Related

Other skills, from other repositories

tushare

A Python interface for Tushare, a financial data service that provides market and company information for stocks, funds, futures, and digital assets. It returns queried data as pandas tables.

HKUDS/Vibe-Trading · 79 tokens

social-media-intelligence

Social media intelligence: financial signal extraction from Twitter/X, Telegram, Discord, and Reddit for sentiment-driven trading strategies.

HKUDS/Vibe-Trading · 28 tokens

credit-analysis

A guide to analysing bonds and other fixed-income investments, including issuer credit quality, interest payments, default risk, credit spreads, and convertible bonds. It also covers Chinese fixed-income markets and local-government financing bonds.

HKUDS/Vibe-Trading · 36 tokens

etf-analysis

A framework for comparing exchange-traded funds (ETFs), which are funds bought and sold on a stock exchange and usually track an index, industry, asset, or strategy. It covers fees, how closely an ETF follows its target, trading activity, and portfolio use.

HKUDS/Vibe-Trading · 39 tokens

geopolitical-risk

Geopolitical risk analysis: quantify crisis signals, identify precursors, and build event-driven strategies for war, sanctions, and supply disruption scenarios.

HKUDS/Vibe-Trading · 34 tokens

vibe-trading

Professional finance research toolkit — backtesting (11 engines + benchmark comparison panel), factor analysis, Alpha Zoo (478 pre-built alphas across qlib158/alpha101/gtja191/academic/fundamental), options pricing, 90 finance skills, 30 multi-agent swarm teams, Trade Journal analyzer, and Shadow Account (extract →…

HKUDS/Vibe-Trading · 176 tokens