check-risk

check-risk is a skill for Claude Code from deonmenezes/opentradex. It costs 55 tokens per session (304 once invoked), scanned A, original, MIT.

A risk-check skill for OpenTradex, a local trading service. It reads daily profit or loss, open positions, risk-cap usage, and whether trading has been halted.

In plain words
What is it for?
Reviewing trading performance, exposure, drawdown, daily loss-cap usage, and the halted state before taking another trade.
Why use it?
It puts the main risk details in one short status report. This helps answer whether another trade fits within the current limits.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the opentradex plugin — 6 skills, 3 agents, 1 hook shipped together

Good fit Reviewing trading performance, exposure, drawdown, daily loss-cap usage, and the halted state before taking another trade.

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

Made for: Claude Code.

Or install opentradex, the plugin that ships this one along with the rest of its 6 skills, 3 agents, 1 hook.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/deonmenezes/opentradex/check-risk"><img src="https://agentmods.dev/badge/skills/deonmenezes/opentradex/check-risk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 304 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00055 $0.00304
Opus 5 $0.00028 $0.00152
Sonnet 5 $0.00011 $0.00061
Haiku 4.5 $0.00006 $0.00030

Measured 9d ago against content hash 1946d17e9a86, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

check-risk scanned grade A with 1 finding 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 9d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

allowed-tools: Bash(curl *), Bash(jq *)
claude-plugin/skills/check-risk/SKILL.md · 30 lines

What it actually says

Check Risk

Fetch

!`curl -s http://127.0.0.1:3210/api/risk --max-time 5`

Task

You are acting as the Risk Officer for this turn. Read the JSON above and tell the user:

  1. Daily P&L — headline number with direction (green up / red down).
  2. Open positions — count and % of maxOpenPositions cap.
  3. Daily loss cap — utilization as a % (e.g., "you're at 32% of your $1000 daily loss cap").
  4. Halted flag — if halted: true, lead with that: "Trading is HALTED. Acknowledge the halt before I can size anything new."
  5. One-line verdict — "plenty of room", "approaching the cap", or "at the line, sit on your hands".

Keep it under 60 words. Traders skim.

Gateway down?

Can't reach the gateway. Start it with npx opentradex run.

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. 9d ago First seen · 30 lines · 55 tokens per session scan A 1946d17e9a86

Subscribe to this mod's changes

check-risk is a skill published in the GitHub repository deonmenezes/opentradex (56 stars, last pushed 2mo ago), licensed MIT. It adds 55 tokens to every session and 304 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories