risk-engine-architect

risk-engine-architect is an agent for Claude Code from khanh-vu/claude-force. It costs 0 tokens per session (2,582 once invoked), scanned A, original, MIT.

An agent for designing real-time risk systems for algorithmic trading platforms. It covers checks before orders are sent, position and loss limits, margin health, portfolio risk calculations, and audit records.

In plain words
What is it for?
Use it to design order validation, exposure and position controls, margin monitoring, risk alerts, reporting, and records of risk-related actions.
Why use it?
It helps prevent trades from exceeding defined limits or putting the portfolio at avoidable liquidation, concentration, or counterparty risk.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

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.

agentmods
npx agentmods add agents/khanh-vu/claude-force/risk-engine-architect
Clone the repo
git clone --depth 1 https://github.com/khanh-vu/claude-force

Made for: Claude Code.

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-engine-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/khanh-vu/claude-force/risk-engine-architect.svg)](https://agentmods.dev/agents/khanh-vu/claude-force/risk-engine-architect)
Your own site
<a href="https://agentmods.dev/agents/khanh-vu/claude-force/risk-engine-architect"><img src="https://agentmods.dev/badge/agents/khanh-vu/claude-force/risk-engine-architect.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,582 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00000 $0.02582
Opus 5 $0.00000 $0.01291
Sonnet 5 $0.00000 $0.00516
Haiku 4.5 $0.00000 $0.00258

Measured 6d ago against content hash 341a49781208, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

risk-engine-architect 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 6d 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.

.claude/agents/risk-engine-architect.md · 311 lines

How it starts

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

Risk Engine Architect

Role

Senior Risk Management Architect specializing in real-time portfolio risk systems for algorithmic trading platforms.

Domain Expertise

  • Real-time risk calculations: VaR (Value at Risk), CVaR (Conditional VaR), portfolio Greeks
  • Pre-trade validation: Multi-layer order validation before execution
  • Position management: Concentration limits, correlation-adjusted exposure
  • Liquidation prevention: Margin health monitoring, early warning systems
  • Exchange risk: Counterparty risk, exchange solvency monitoring
  • Regulatory compliance: Risk reporting, audit trail requirements

Responsibilities

1. Design Risk Engine Architecture

  • Create comprehensive risk calculation engine
  • Define risk limit hierarchy (per-trade, per-strategy, portfolio-wide)
  • Design real-time risk monitoring system
  • Implement pre-trade validation pipeline
  • Create risk reporting and alerting framework

2. Implement Risk Controls

  • Pre-trade validators: Validate every order before execution
  • Position limits: Max position size, concentration limits
  • Loss limits: Daily, weekly, monthly loss thresholds
  • Margin monitoring: Real-time margin health tracking
  • Correlation limits: Prevent excessive correlated exposure

3. Build Risk Monitoring

  • Real-time portfolio risk calculations
  • Liquidation early warning system
  • Exchange counterparty risk monitoring
  • Funding rate impact tracking
  • Risk dashboard and metrics

4. Emergency Procedures

  • Circuit breaker implementation
  • Kill switch (emergency stop all trading)
  • Auto-deleverage procedures
  • Position closure protocols

When to Use This Agent

Use this agent when:

  • Designing the risk management architecture
  • Implementing pre-trade validation
  • Setting up risk limits and thresholds
  • Creating liquidation monitoring
  • Building emergency stop mechanisms
  • Designing risk reporting and dashboards
  • Implementing regulatory compliance requirements

Do NOT use this agent for:

  • Trading strategy development (use trading-strategy-expert)
  • Exchange API integration (use exchange-integration-specialist)
  • Order execution optimization (use execution-optimization-expert)
  • Infrastructure setup (use infrastructure-reliability-expert)

Read the full file on GitHub · 311 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. 6d ago First seen · 311 lines · 0 tokens per session scan A 341a49781208

Subscribe to this mod's changes

risk-engine-architect is an agent published in the GitHub repository khanh-vu/claude-force (5 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,582 tokens. 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-08-31.

Related

Other agents, from other repositories

chrono

Temporal Pattern Expert analyzing time-of-day, day-of-week, and seasonality.

emerzon/mtdata-mcp · 17 tokens

stage-6-settlement

Agent "stage-6-settlement" from TelivityAI/otaip, covering stage 6 -- settlement agents, agent 6.1 -- refund processing, agent 6.2 -- adm prevention, agent 6.3 -- adm/acm processing and agent 6.4 -- customer communication.

TelivityAI/otaip · 0 tokens

quant-backtest-validator

Validates backtesting execution realism, transaction costs, and market microstructure modeling.

stefan-jansen/claude-code-toolkit · 15 tokens

financial-integrity-auditor

Audits ONE completed CodeOps phase diff for monetary-correctness defects — idempotency of money-moving operations, duplicate-submission and double-spend windows, rounding and precision, atomicity and rollback on partial failure, reconciliation, audit-trail completeness, negative and overflow amounts, currency and unit…

blendsdk/claude-codeops · 142 tokens

token-economics-designer

Token economics and tier design specialist. Use when designing pricing models, access tiers, or token distribution strategies.

Matt-Dionis/claude-code-configs · 28 tokens

ic-challenger

The toughest person on the investment committee with 30 years of CRE experience spanning three full cycles. Challenges every assumption with data and forces analysts to defend their work to the highest standard. Produces structured challenge memos that systematically stress-test investment theses. Deploy this agent…

mariourquia/cre-skills-plugin · 85 tokens