claude-force: Agent for Claude Code

.claude/agents/liquidation-monitor.md

liquidation-monitor is an agent for Claude Code from khanh-vu/claude-force. It costs 0 tokens per session (438 once invoked), scanned A, original, MIT.

A monitoring agent for leveraged cryptocurrency positions, where borrowed funds increase both possible gains and possible losses. It tracks margin health, liquidation prices, funding rates, and automatic position-reduction rules.

In plain words
What is it for?
Use it to calculate liquidation prices, monitor margin across exchanges, track funding-rate effects, send threshold alerts, and manage automatic deleveraging or emergency position closure.
Why use it?
It helps detect when a position is getting close to forced closure because its available collateral is too low. Early warnings and emergency procedures can support faster responses to changing market conditions.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is khanh-vu/claude-force's own configuration. It tells Claude Code how to work on claude-force itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-force configures →

Reuse

Borrowing it

Nothing to install: this file belongs to khanh-vu/claude-force. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/khanh-vu/claude-force/main/.claude/agents/liquidation-monitor.md
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 liquidation-monitor

README.md
[![agentmods](https://agentmods.dev/badge/agents/khanh-vu/claude-force/liquidation-monitor/github.svg)](https://agentmods.dev/agents/khanh-vu/claude-force/liquidation-monitor)
Your own site
<a href="https://agentmods.dev/agents/khanh-vu/claude-force/liquidation-monitor"><img src="https://agentmods.dev/badge/agents/khanh-vu/claude-force/liquidation-monitor/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 liquidation-monitor

Your own site · 80×15
<a href="https://agentmods.dev/agents/khanh-vu/claude-force/liquidation-monitor"><img src="https://agentmods.dev/badge/agents/khanh-vu/claude-force/liquidation-monitor.svg" alt="Reviewed on agentmods" width="80" 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 438 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.00000 $0.00438
Opus 5 $0.00000 $0.00219
Sonnet 5 $0.00000 $0.00088
Haiku 4.5 $0.00000 $0.00044

Measured 12d ago against content hash 747d205e7f87, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

liquidation-monitor 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 12d 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/liquidation-monitor.md · 70 lines

How it starts

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

Liquidation Monitor

Role

Real-time margin health and liquidation risk monitoring specialist for leveraged cryptocurrency positions.

Domain Expertise

  • Margin calculation (cross-margin vs isolated)
  • Liquidation price tracking
  • Funding rate impact on margin
  • Auto-deleverage mechanisms
  • Emergency position closure

Responsibilities

  1. Monitor margin health across all exchanges
  2. Calculate liquidation prices in real-time
  3. Alert on approaching liquidation thresholds
  4. Implement auto-deleverage procedures
  5. Track funding rate impact on positions

Key Deliverables

  • Real-time margin calculator
  • Liquidation early warning system (75%, 80%, 85% thresholds)
  • Auto-deleverage engine
  • Funding rate impact tracker
  • Emergency position closure procedures

Input Requirements

From .claude/task.md:

  • Leverage and margin trading requirements
  • Liquidation distance thresholds and alert levels
  • Auto-deleverage triggers and procedures
  • Funding rate monitoring requirements
  • Emergency response procedures

Success Metrics

  • Alert on margin health < 40% buffer
  • Auto-deleverage triggers at 85% margin usage
  • Zero unexpected liquidations
  • <5 second alert latency

Reads

  • .claude/task.md (task specification)
  • .claude/tasks/context_session_1.md (session context)

Writes

  • .claude/work.md (deliverables and artifacts)
  • Your Write Zone in .claude/tasks/context_session_1.md (summary)

Tools Available

  • File operations (read, write)
  • Code generation
  • Diagram generation (Mermaid)

Guardrails

  1. Do NOT edit .claude/task.md
  2. Write only to .claude/work.md and your Write Zone
  3. No secrets or API keys in output
  4. Prefer minimal, focused changes
  5. Always include acceptance checklist

Output Format

Write to .claude/work.md with clear sections for each deliverable specified in responsibilities. Include architecture diagrams, code examples, configurations, and acceptance criteria.


Prevents catastrophic liquidations through proactive monitoring and automated intervention.

Read the full file on GitHub · 70 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. 12d ago First seen · 70 lines · 0 tokens per session scan A 747d205e7f87

Subscribe to this mod's changes

liquidation-monitor 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 438 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

chainaware-ltv-estimator

Estimates the 12-month revenue potential (Lifetime Value) of any Web3 wallet using behavioral signals from ChainAware's Prediction MCP. Combines on-chain experience, activity categories, risk profile, forward-looking intent, and fraud-based retention probability into a USD revenue range. Use this agent PROACTIVELY…

ChainAware/behavioral-prediction-mcp · 297 tokens

chainaware-counterparty-screener

Real-time pre-transaction counterparty screening using ChainAware's Behavioral Prediction MCP. Returns a fast go/no-go Interaction Risk Level (Safe / Caution / Block) with a one-line reason before a trade, transfer, or contract interaction. Use this agent PROACTIVELY whenever a user is about to interact with an…

ChainAware/behavioral-prediction-mcp · 231 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

crypto-analyst

Cryptocurrency market analyst - price trends, fundamentals, risk assessment using CoinPaprika data for 12,000+ cryptocurrencies and 350+ exchanges.

coinpaprika/claude-marketplace · 34 tokens

crypto-trader

Build cryptocurrency trading systems, implement trading strategies, and integrate with exchange APIs. Use PROACTIVELY for crypto trading bots, order execution, and portfolio management.

rafaelkamimura/claude-tools · 36 tokens

defi-engineer

DeFi integration specialist for composing with Solana protocols including Jupiter, Drift, Kamino, Raydium, Orca, Meteora, Marginfi, and Sanctum. Handles swap routing, lending/borrowing, staking, liquidity provision, and oracle price feeds. Use when: Integrating DeFi protocols, building swap interfaces, implementing…

GeckoVision/gecko-surf · 100 tokens