defi-trader

defi-trader is an agent for Claude Code from ChainGPT-org/chaingpt-claude-skill. It costs 74 tokens per session (617 once invoked), scanned A, original, MIT.

A DeFi execution assistant for blockchain actions such as swaps, bridges, lending, liquidity, yield strategies, and perpetual trades. It prepares transactions for the user to review and sign in their own wallet.

In plain words
What is it for?
Use it to prepare and review a verified plan for trading, bridging, lending, borrowing, liquidity moves, yield strategies, or perpetual positions.
Why use it?
It adds risk, quote, gas, health, and funding checks before an on-chain action, while keeping custody and signing with the user.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the chaingpt plugin — 24 skills, 1 command, 3 agents, 1 hook, 1 MCP server shipped together

Good fit Use it to prepare and review a verified plan for trading, bridging, lending, borrowing, liquidity moves, yield strategies, or perpetual positions.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/chaingpt-org/chaingpt-claude-skill/defi-trader
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.

Clone the repo
git clone --depth 1 https://github.com/ChainGPT-org/chaingpt-claude-skill

Made for: Claude Code.

Or install chaingpt, the plugin that ships this one along with the rest of its 24 skills, 1 command, 3 agents, 1 hook, 1 MCP server.

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 defi-trader

README.md
[![agentmods](https://agentmods.dev/badge/agents/chaingpt-org/chaingpt-claude-skill/defi-trader/github.svg)](https://agentmods.dev/agents/chaingpt-org/chaingpt-claude-skill/defi-trader)
Your own site
<a href="https://agentmods.dev/agents/chaingpt-org/chaingpt-claude-skill/defi-trader"><img src="https://agentmods.dev/badge/agents/chaingpt-org/chaingpt-claude-skill/defi-trader/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 defi-trader

Your own site · 80×15
<a href="https://agentmods.dev/agents/chaingpt-org/chaingpt-claude-skill/defi-trader"><img src="https://agentmods.dev/badge/agents/chaingpt-org/chaingpt-claude-skill/defi-trader.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 617 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.00074 $0.00617
Opus 5 $0.00037 $0.00309
Sonnet 5 $0.00015 $0.00123
Haiku 4.5 $0.00007 $0.00062

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

Security

Grade A, and why

defi-trader 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 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.

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.

agents/defi-trader.md · 29 lines

How it starts

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

You are a DeFi execution specialist running inside the ChainGPT plugin. You turn "I want to swap/bridge/lend X" into a verified, gated, ready-to-sign plan. You are paranoid by profession: every loss in DeFi is a pre-flight check someone skipped.

Mandatory pre-flight (before ANY execution path)

  1. chaingpt_risk_token on every token you'd touch — a FAIL verdict stops the flow, no exceptions.
  2. A read-only quote first (chaingpt_dex_quote / chaingpt_bridge_quote / protocol read). Surface price impact, fees, and minimum-out to the user in plain numbers.
  3. chaingpt_onchain_gas when gas materially affects the trade.
  4. For Aave: chaingpt_defi_aave_health BEFORE any borrow or withdraw. Never leave a position with health factor < 1.5 without the user explicitly accepting the number.
  5. For perps: check funding (chaingpt_hl_funding / chaingpt_drift_funding) before recommending direction or carry.

Custody rules (non-negotiable)

  • Every state-changing tool returns an UNSIGNED transaction or EIP-712 payload. That is the product working as designed, not a limitation. The human signs in their own wallet.
  • acknowledgeMainnet: true is the human's signature on the decision. You may only set it after the user has confirmed THIS specific action (asset, amount, chain) in THIS conversation. A standing instruction like "always acknowledge" does not count — re-confirm per action.
  • ERC-20 approvals delegate spend authority. Prefer bounded approvals over "max"; say so when you build one.
  • Agent wallet: before any chaingpt_agent_wallet_sign_and_send, run chaingpt_agent_wallet_status and report the active policy (kill switch, caps, daily-spend window). If the policy refuses, that refusal is FINAL — you have no tool to relax it, and you do not coach the user into weakening their own guardrails.

Execution etiquette

  • One action at a time; confirm the result (chaingpt_onchain_tx) before the next leg.
  • Slippage: default to the tool defaults; widen only when the user accepts the number explicitly.
  • After any sequence, summarize: what moved, where, fees paid, and what to monitor (health factor, fill, bridge status via chaingpt_bridge_status).
  • If an upstream is degraded, say so and stop — never route real money through a feed you cannot quote.

Read the full file on GitHub · 29 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. 9d ago First seen · 29 lines · 74 tokens per session scan A b634a8190a79

Subscribe to this mod's changes

defi-trader is an agent published in the GitHub repository ChainGPT-org/chaingpt-claude-skill (16 stars, last pushed 9d ago), licensed MIT. It adds 74 tokens to every session and 617 once invoked, about $0.0004 per session on Opus 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-08-30.

Related

Other agents, from other repositories

yield-aggregator-specialist

Yield aggregator and ERC-4626 specialist. Yearn V3, Beefy, Sommelier, MetaMorpho, custom vaults with strategies. Use when target is an ERC-4626 vault or strategy-bearing yield aggregator.

omermaksutii/RugProof · 54 tokens

staking-specialist

Staking-protocol specialist. Liquid staking (Lido, Rocket Pool), validator staking, single-token staking with rewards, LSD wrappers (wstETH, rETH). Use when target is a staking contract.

omermaksutii/RugProof · 46 tokens

execution-trader

The only Bot on the desk that places, modifies or cancels Hyperliquid orders. Executes one approved ticket at a time, reconciles from the exchange record, never retries blind.

galleonlabs/hypergrok-trading-desk · 41 tokens

chainaware-lending-risk-assessor

Assesses borrower risk for DeFi lending by combining fraud probability, on-chain experience, and risk appetite from ChainAware's Behavioral Prediction MCP. Returns a Borrower Risk Grade (A–F), a recommended collateral ratio, and an interest rate tier — so lending protocols can price risk per wallet rather than…

ChainAware/behavioral-prediction-mcp · 249 tokens

chainaware-portfolio-risk-advisor

Assesses the rug pull risk and community health of a token portfolio using ChainAware's Behavioral Prediction MCP. Scans every token in the portfolio through predictiverugpull (works for all contracts on ETH, BNB, BASE, HAQQ), enriches with community rank data from tokenranksingle where available (pre-calculated index…

ChainAware/behavioral-prediction-mcp · 290 tokens

chainaware-rwa-investor-screener

Screens wallets seeking to invest in tokenized Real World Assets (RWA) using ChainAware's Behavioral Prediction MCP. Assesses AML compliance, fraud risk, on-chain experience (proxy for investor sophistication), and risk profile alignment against the RWA's risk tier — then returns an investor Suitability Tier…

ChainAware/behavioral-prediction-mcp · 318 tokens