agent-otc-trade
Facilitate over-the-counter trades between agents using Uniswap as the settlement layer
Install / Use
npx skills add LeoYeAI/openclaw-master-skills --skill agent-otc-tradeInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of agent-otc-trade
agent-otc-trade scores 87/100 on our quality scale, 2159th of 4,698 Development & Engineering skills we index (top 46%).
Its SKILL.md is 17 KB long, well organised into 16 sections with 10 code examples: a thorough specification that gives an agent plenty to work with.
With 2,149 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated about 4 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
- Our last check on 2026-11-02 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 98/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-10-01. Automated pattern scan on 2026-09-30. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
agent-otc-trade compared with similar skills
All 4 of these similar skills score higher than agent-otc-trade; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| agent-otc-trade (this skill)by LeoYeAI | 87 | 2.1k | 4mo ago | SKILL.md |
| taste-skillby Leonxlnx | 100 | 116.8k | 8d ago | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 112.3k | 8d ago | CLAUDE.md |
| rufloby ruvnet | 100 | 81.9k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 79.8k | today | CLAUDE.md |
Frequently asked questions
- How do I install agent-otc-trade?
- Run
npx skills add LeoYeAI/openclaw-master-skills --skill agent-otc-trade. The install tabs above show the steps for each supported agent. - Which AI agents does agent-otc-trade work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is agent-otc-trade safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 98/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is agent-otc-trade still maintained?
- The repository was last updated about 4 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
Skill content
View source on GitHubname: agent-otc-trade description: >- Facilitate over-the-counter trades between agents using Uniswap as the settlement layer. Use when user wants to trade tokens directly with another agent, settle an agent-to-agent trade through Uniswap, or execute an OTC swap with a specific counterparty agent. Verifies counterparty identity via ERC-8004, negotiates terms, and settles through Uniswap pools. model: opus allowed-tools:
- Task(subagent_type:trade-executor)
- Task(subagent_type:identity-verifier)
- mcp__uniswap__get_quote
- mcp__uniswap__get_token_price
- mcp__uniswap__get_pool_info
- mcp__uniswap__get_agent_balance
- mcp__uniswap__execute_swap
- mcp__uniswap__submit_cross_chain_intent
- mcp__uniswap__check_safety_status
Agent OTC Trade
Overview
Facilitates over-the-counter trades between agents using Uniswap as the trustless settlement layer. Instead of agents manually coordinating trades through ad-hoc channels, verifying each other's identity, agreeing on prices, and handling settlement independently, this skill provides a structured pipeline: verify counterparty identity via ERC-8004, agree on terms using Uniswap pool prices as the reference rate, and settle atomically through Uniswap pools.
Why this is 10x better than manual agent-to-agent trading:
- Counterparty verification: Before any trade, the counterparty agent's identity is verified via ERC-8004 on-chain registries. Without this, agents trade blindly -- trusting addresses they've never interacted with. The skill checks identity, reputation score, and trust tier, refusing to trade with unverified agents.
- Fair pricing via Uniswap oracle: OTC trades use Uniswap pool prices as the reference rate, preventing either party from proposing unfair terms. The skill shows the current pool price, the proposed OTC price, and the premium/discount so both parties have full transparency.
- Atomic settlement: Trades settle through Uniswap pools in a single transaction. No escrow risk, no counterparty default risk, no partial fills. The pool provides guaranteed liquidity at the agreed price.
- Cross-chain support: For agents on different chains, settlement uses ERC-7683 cross-chain intents. Without this skill, cross-chain OTC trades require manual bridge coordination -- a multi-step process prone to stuck transactions and timing mismatches.
- Audit trail: Every OTC trade is recorded with counterparty identity, agreed terms, settlement transaction, and fees. This creates a verifiable history for reputation building and dispute resolution.
When to Use
Activate when the user says anything like:
- "Trade tokens directly with another agent"
- "Settle an agent-to-agent trade through Uniswap"
- "Execute an OTC swap with agent 0x..."
- "Buy tokens from agent 0x... using Uniswap"
- "Set up a direct trade with a counterparty agent"
- "OTC trade 1000 USDC for UNI with agent 0x..."
- "Settle a service payment with another agent via Uniswap"
Do NOT use when the user wants a regular swap without a specific counterparty (use execute-swap instead), wants to provide liquidity (use manage-liquidity instead), or wants to find trading opportunities (use scan-opportunities instead).
Parameters
| Parameter | Required | Default | How to Extract | | ------------------- | -------- | ----------- | --------------------------------------------------------------------- | | counterpartyAgent | Yes | -- | Counterparty address (0x...) or ERC-8004 identity | | tokenSell | Yes | -- | Token you are selling: "USDC", "UNI", or 0x address | | tokenBuy | Yes | -- | Token you are buying: "ETH", "UNI", or 0x address | | amount | Yes | -- | Amount to sell: "1000 USDC", "50 UNI", "$5,000 worth" | | chain | No | ethereum | Settlement chain: "ethereum", "base", "arbitrum" | | settlementMethod | No | direct-swap | "direct-swap", "intent" (ERC-7683 cross-chain) | | maxPremium | No | 1% | Max acceptable premium/discount vs pool price | | requireVerified | No | true | Require ERC-8004 verified counterparty (true/false) |
If the user doesn't provide counterpartyAgent, tokenSell/tokenBuy, or amount, ask for them -- never guess OTC trade parameters.
Workflow
AGENT OTC TRADE PIPELINE
┌──────────────────────────────────────────────────────────────────────┐
│ │
│ Step 1: VERIFY COUNTERPARTY │
│ ├── Check ERC-8004 identity registry │
│ ├── Query reputation score │
│ ├── Determine trust tier (unverified/basic/verified/trusted) │
│ └── Output: Identity report + trust decision │
│ │ │
│ ▼ IDENTITY GATE │
│ ┌───────────────────────────────────────────┐ │
│ │ trusted/verified -> Proceed │ │
│ │ basic -> Warn, ask user │ │
│ │ unverified -> STOP (if required) │ │
│ └───────────────────────────────────────────┘ │
│ │ │
│ ▼ │
│ │
│ Step 2: PRICE DISCOVERY │
│ ├── Get current Uniswap pool price for the token pair │
│ ├── Get quote at the OTC trade size │
│ ├── Calculate fair OTC price (pool price + spread) │
│ └── Output: Reference price + OTC terms │
│ │ │
│ ▼ │
│ │
│ Step 3: TERMS AGREEMENT │
│ ├── Present terms to user: price, amounts, fees, settlement method │
│ ├── Compare OTC price vs pool price (premium/discount) │
│ ├── Show total cost including gas and slippage │
│ └── User must explicitly confirm │
│ │ │
│ ▼ │
│ │
│ Step 4: SETTLEMENT │
│ ├── Check wallet balance and approvals │
│ ├── Execute swap via trade-executor (or cross-chain intent) │
│ ├── Verify settlement on-chain │
│ └── Output: Settlement confirmation + tx hash │
│ │ │
│ ▼ │
│ │
│ Step 5: RECORD & REPORT │
│ ├── Record trade in OTC history │
│ ├── Log counterparty, terms, settlement tx │
│ └── Output: Full OTC trade report │
│ │
└──────────────────────────────────────────────────────────────────────┘
Step 1: Verify Counterparty
Delegate to Task(subagent_type:identity-verifier):
Verify the identity and reputation of this agent:
- Agent address: {counterpartyAgent}
- Chain: {chain}
Check the ERC-8004 Identity Registry, Reputation Registry, and Validation
Registry. Return the trust tier (unverified/basic/verified/trusted),
reputation score, registration date, and any flags.
Present to user:
Step 1/5: Counterparty Verification
Agent: 0x1234...abcd
ERC-8004: Registered (verified tier)
Reputation: 78/100 (good)
Registered: 2025-11-15 (87 days ago)
Trades: 142 completed, 0 disputes
Trust Tier: VERIFIED
Proceeding to price discovery...
Identity gate logic:
| Trust Tier | Action |
| ------------ | ----------------------------------------------------------------------------- |
| trusted | Proceed to Step 2 automatically |
| verified | Proceed to Step 2 automatically |
| basic | Warn user: "Counterparty has basic verification only. Proceed?" Ask to confirm. |
| unverified | If requireVerified=true: STOP. Show reason. Suggest verifying first. |
| | If requireVerified=false: Warn strongly, ask for explicit confirmation. |
Step 2: Price Discovery
- Call
mcp__uniswap__get_token_pricefor both tokens to establish USD values. - Call
mcp__uniswap__get_pool_infofor the token pair to get the current pool price. - Call
mcp__uniswap__get_quoteat the OTC trade size to determine actual execution price including slippage.
Step 2/5: Price Discovery
Token Pair: USDC / UNI
Pool Price: 1 UNI = $7.10 (USDC/UNI 0.3% V3)
Pool TVL: $42M
Quote at Size: 1000 USDC -> 140.65 UNI (impact: 0.08%)
OTC Reference Rate: $7.10 per UNI
Your Trade: 1000 USDC -> ~140.85 UNI
Proceeding to terms agreement...
Step 3: Terms Agreement
Present the complete trade terms for user confirmation:
OTC Trade Terms
You Sell: 1,000 USDC
You Receive: ~140.85 UNI ($999.90)
Counterparty: 0x1234...abcd (VERIFIED, rep: 78/100)
Pricing:
Pool Rate: $7.10 per UNI
OTC Rate: $7.10 per UNI (0.00% premium)
Slippage: ~0.08%
Gas Est: ~$5.00
Settlement:
Method: Direct swap via Uniswap V3
Chain: Ethereum
Pool: USDC/UNI 0.3%
Proceed with this OTC trade? (yes/no)
Only proceed to Step 4 if the user explicitly confirms.
If the OTC price deviates from the pool price by more than maxPremium, warn the user:
WARNING: OTC rate ($7.25/UNI) is 2.1% above pool rate ($7.10/UNI).
This exceeds your max premium of 1%. Proceed anyway? (yes/no)
Step 4: Settlement
Delegate to Task(subagent_type:trade-executor):
For direct-swap settlement:
Execute this OTC trade settlement:
- Sell: {amount} {tokenSell}
- Buy: {tokenBuy}
- Chain: {chain}
- Slippage tolerance: based on OTC terms
- Context: This is an OTC trade with counterparty {counterpartyAgent}
(ERC-8004 verified, reputation {score}/100). Settle through the
{fee}% pool.
For cross-chain intent settlement:
Use mcp__uniswap__submit_cross_chain_intent with:
tokenIn: tokenSell on source chaintokenOut: tokenBuy on destination chainsourceChain: your chaindestinationChain: counterparty's chain
Step 5: Record & Report
Step 5/5: OTC Trade Complete
Settlement:
Sold: 1,000 USDC
Received: 140.85 UNI ($999.90)
Slippage: 0.07%
Gas: $4.80
Tx: https://etherscan.io/tx/0x...
Counterparty:
Agent:
Truncated for display — read the full file on GitHub.
Related Skills
taste-skill
116.8kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
Agent-Reach
112.3kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
ruflo
81.9k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
headroom
79.8kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
