usdd-vault-v1

usdd-vault-v1 is a skill for Claude Code from decentralized-usd/usdd-skills. It costs 0 tokens per session (2,475 once invoked), scanned A, original, MIT.

A skill for managing USDD Vaults, also called collateralized debt positions: blockchain accounts where collateral backs borrowed USDD. It uses the official USDD server and supports several named blockchain networks.

In plain words
What is it for?
Discovering supported collateral types, checking oracle and vault risk, opening or closing vaults, adding collateral, minting USDD, repaying it, and withdrawing collateral.
Why use it?
It gives an agent a defined workflow for checking vault risk and handling network-specific vault actions without assuming the blockchain network.

Skill for Claude Code

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

Part of the usdd-skills plugin — 5 skills, 1 MCP server shipped together

Good fit Discovering supported collateral types, checking oracle and vault risk, opening or closing vaults, adding collateral, minting USDD, repaying it, and withdrawing collateral.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/decentralized-usd/usdd-skills/usdd-vault-v1
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 decentralized-usd/usdd-skills --skill usdd-vault-v1
Clone the repo
git clone --depth 1 https://github.com/decentralized-usd/usdd-skills

Made for: Claude Code.

Or install usdd-skills, the plugin that ships this one along with the rest of its 5 skills, 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 usdd-vault-v1

README.md
[![agentmods](https://agentmods.dev/badge/skills/decentralized-usd/usdd-skills/usdd-vault-v1/github.svg)](https://agentmods.dev/skills/decentralized-usd/usdd-skills/usdd-vault-v1)
Your own site
<a href="https://agentmods.dev/skills/decentralized-usd/usdd-skills/usdd-vault-v1"><img src="https://agentmods.dev/badge/skills/decentralized-usd/usdd-skills/usdd-vault-v1/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 usdd-vault-v1

Your own site · 80×15
<a href="https://agentmods.dev/skills/decentralized-usd/usdd-skills/usdd-vault-v1"><img src="https://agentmods.dev/badge/skills/decentralized-usd/usdd-skills/usdd-vault-v1.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,475 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.02475
Opus 5 $0.00000 $0.01238
Sonnet 5 $0.00000 $0.00495
Haiku 4.5 $0.00000 $0.00248

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

Security

Grade A, and why

usdd-vault-v1 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 11d 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.

skills/usdd-vault-v1/SKILL.md · 122 lines

How it starts

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

USDD Vault (CDP) — AI Agent Skill

This skill enables AI agents to manage USDD Vaults/CDPs through the official @usdd/mcp-server-usdd MCP server: discover supported ilks, inspect oracle and vault risk, open vaults, add collateral, mint USDD, repay, withdraw, and close.

This repo's local analytics MCP is read-only and does not provide per-ilk collateral history.

Prerequisites

  • Node.js v20+
  • Official MCP installed: npm install -g @usdd/mcp-server-usdd
  • This repo's MCP registered only if supported APY/supply analytics are needed

Network and Ilk Scope

Official MCP supports tron, eth, bsc, tron_nile, eth_sepolia, and bsc_testnet. Do not hard-code Vault support by chain. For every Vault workflow:

If a Vault request depends on a blockchain network and the user omitted it, the first response must ask which network. Do not call any MCP tool before the user names the network. Never default to TRON, tron, mainnet, testnet, set_network, get_network, or any configured default.

For protocol, collateral, USDD, and join addresses, use the official Chainlog-backed resolver first: call get_protocol_addresses({ network }), or get_chainlog_address({ network, key }) for one known key such as MCD_USDD or MCD_JOIN_ETH_A. Do not use local full-address tables or copy addresses from docs. The resolver may return live Chainlog data or cache. If it fails with TronGrid 429 or another RPC error and no cache is available, stop and ask the user to configure TRONGRID_API_KEY / TRON_FULL_NODE or the relevant RPC; do not fallback to get_protocol_overview just to discover addresses, and do not guess addresses.

  1. Resolve the user-facing chain to official MCP network.
  2. Call get_supported_ilks({ network }).
  3. Proceed only if the requested ilk appears in that network's returned ilks.
  4. If the requested ilk/network is unsupported, explain the supported alternatives returned by the tool.

Available Tools

Tool Inputs Description Write?
get_protocol_addresses (official) network Chainlog-backed protocol addresses, ilks, and PSM markets No
get_chainlog_address (official) network, key Resolve one Chainlog key such as MCD_USDD or MCD_JOIN_ETH_A No
get_protocol_overview (official) network Live protocol ceilings and debt metrics No
get_supported_ilks (official) network Configured collateral types and PSM joins for a network No
get_oracle_status (official) ilk, network Liquidation ratio, penalty, oracle status for an ilk No
get_user_vaults (official) address?, network Vault/CDP IDs owned by an address or active wallet proxy No
get_vault_summary (official) cdpId, network Collateral, debt, debt ceiling/floor, health factor, risk level No
analyze_vault_risk (official) cdpId, network Vault summary plus warnings No
get_native_balance (official) owner?, network Gas-token balance No
get_token_balance (official) token, owner?, decimals?, network Collateral / USDD balance No
check_allowance (official) token, spender, owner?, amount?, decimals?, network ERC20/TRC20 allowance and sufficiency No
approve_token (official) token, spender, amount, decimals?, network Approve a protocol spender Yes
open_vault (official) ilk, network Open or reuse a vault for an ilk Yes
deposit_and_mint (official) ilk, collateralAmount, drawAmount, cdpId?, transferFrom?, network Deposit collateral and mint USDD Yes
mint_usdd (official) cdpId, amount, network Draw additional USDD debt Yes
repay_usdd (official) cdpId, amount, network Repay USDD debt Yes
withdraw_collateral (official) cdpId, ilk, amount, network Withdraw collateral Yes
close_vault (official) cdpId, ilk, amountToFree, network Repay all debt, then free collateral Yes

Read the full file on GitHub · 122 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. 11d ago First seen · 122 lines · 0 tokens per session scan A c57f2cd53884

Subscribe to this mod's changes

usdd-vault-v1 is a skill published in the GitHub repository decentralized-usd/usdd-skills (1 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,475 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.