usdd-psm-v1

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

A tool for swapping supported stablecoins, cryptocurrencies designed to track a currency’s value, to or from USDD through USDD PSM markets.

In plain words
What is it for?
Use it to swap assets such as USDT or USDC into USDD, or USDD back into a supported stablecoin, on a selected network.
Why use it?
It gives an agent a defined way to perform these swaps while requiring the user to choose the blockchain network and market.

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 Use it to swap assets such as USDT or USDC into USDD, or USDD back into a supported stablecoin, on a selected network.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/decentralized-usd/usdd-skills/usdd-psm-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-psm-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-psm-v1

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/decentralized-usd/usdd-skills/usdd-psm-v1"><img src="https://agentmods.dev/badge/skills/decentralized-usd/usdd-skills/usdd-psm-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,211 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.02211
Opus 5 $0.00000 $0.01105
Sonnet 5 $0.00000 $0.00442
Haiku 4.5 $0.00000 $0.00221

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

Security

Grade A, and why

usdd-psm-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 10d 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-psm-v1/SKILL.md · 117 lines

How it starts

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

USDD PSM (Peg Stability Module) — AI Agent Skill

This skill enables AI agents to swap supported stablecoins to/from USDD through USDD PSM markets using the official @usdd/mcp-server-usdd MCP server.

The local analytics MCP is not used for PSM writes.

Prerequisites

  • Node.js v20+
  • Official MCP installed: npm install -g @usdd/mcp-server-usdd

Core Concepts

Official PSM tools require:

  • network: one of tron, eth, bsc, tron_nile, eth_sepolia, bsc_testnet
  • market: a PSM market key such as PSM-USDT, PSM-USDC, or PSM-USD1

If a PSM 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.

If the user gives only a stable symbol such as "USDT", resolve it to a market by calling Chainlog-backed get_protocol_addresses({ network }) or get_supported_ilks({ network }) and checking returned psmMarkets only after the network is explicit.

Regression case: for Swap 500 USDT to USDD., ask which network to use, such as tron, eth, bsc, tron_nile, eth_sepolia, or bsc_testnet; make no MCP tool call until the user answers with a network.

For PSM token and market addresses, use the official Chainlog-backed resolver first: call get_protocol_addresses({ network }), or get_chainlog_address({ network, key }) for one known key. 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.

Available Tools

Tool Inputs Description Write?
get_protocol_addresses (official) network Chainlog-backed protocol addresses, configured ilks, and PSM markets No
get_chainlog_address (official) network, key Resolve one Chainlog key such as MCD_USDD or MCD_JOIN_PSM_USDT_A No
get_supported_ilks (official) network Configured collateral types and PSM joins No
get_psm_status (official) market, network PSM market config, buy/sell enablement, in/out fees No
get_psm_metrics (official) market, network Route availability and route fees No
get_native_balance (official) owner?, network Gas-token balance No
get_token_balance (official) token, owner?, decimals?, network Input token balance No
check_allowance (official) token, spender, owner?, amount?, decimals?, network Token allowance and sufficiency No
approve_token (official) token, spender, amount, decimals?, network Approve token spending for a protocol spender Yes
psm_swap_to_usdd (official) market, amount, network Sell the market gem into USDD Yes
psm_swap_from_usdd (official) market, amount, network Buy the market gem with USDD Yes

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

Subscribe to this mod's changes

usdd-psm-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,211 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.