pinion-trade

pinion-trade is a skill for Claude Code from chu2bard/pinion-os. It costs 35 tokens per session (740 once invoked), scanned A, original, MIT.

A tool that requests an unsigned token-swap transaction through the 1inch exchange aggregator on Base, a blockchain network. It can also return an approval transaction when the source token needs permission to be spent.

In plain words
What is it for?
Use it to prepare swaps between supported tokens such as USDC and ETH, including the required approval transaction when applicable.
Why use it?
It prepares the transaction without signing or submitting it for you. This separates transaction creation from wallet approval and sending.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the pinion-os plugin — 10 skills shipped together

Good fit Use it to prepare swaps between supported tokens such as USDC and ETH, including the required approval transaction when applicable.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chu2bard/pinion-os/trade
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 chu2bard/pinion-os --skill trade
Clone the repo
git clone --depth 1 https://github.com/chu2bard/pinion-os

Made for: Claude Code.

Or install pinion-os, the plugin that ships this one along with the rest of its 10 skills.

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 pinion-trade

README.md
[![agentmods](https://agentmods.dev/badge/skills/chu2bard/pinion-os/trade.svg)](https://agentmods.dev/skills/chu2bard/pinion-os/trade)
Your own site
<a href="https://agentmods.dev/skills/chu2bard/pinion-os/trade"><img src="https://agentmods.dev/badge/skills/chu2bard/pinion-os/trade.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 740 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00035 $0.00740
Opus 5 $0.00017 $0.00370
Sonnet 5 $0.00007 $0.00148
Haiku 4.5 $0.00003 $0.00074

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

Security

Grade A, and why

pinion-trade scanned grade A with 1 finding 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 8d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST https://pinionos.com/skill/trade \
skills/trade/SKILL.md · 89 lines

How it starts

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

Trade

Returns an unsigned token swap transaction from the 1inch aggregator on Base. If the source token needs approval, an approve transaction is included.

Endpoint

POST https://pinionos.com/skill/trade

Price: $0.01 USDC per call (x402 on Base)

Request Body

{
  "src": "USDC",
  "dst": "ETH",
  "amount": "10",
  "from": "0x...",
  "slippage": 1
}
Field Type Required Description
src string yes Source token symbol (ETH, USDC, WETH, DAI, CBETH)
dst string yes Destination token symbol
amount string yes Amount to swap (human-readable)
from string yes Sender address (0x, 40 hex chars)
slippage number no Slippage tolerance in percent (default: 1)

Supported Tokens

ETH, USDC, WETH, DAI, CBETH

Example Request

curl -X POST https://pinionos.com/skill/trade \
  -H "Content-Type: application/json" \
  -d '{"src":"USDC","dst":"ETH","amount":"10","from":"0x101C..."}'

The first request returns HTTP 402 with payment requirements. Sign a USDC TransferWithAuthorization (EIP-3009) and retry with the X-PAYMENT header.

Example Response (with approval needed)

{
  "approve": {
    "to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "data": "0x095ea7b3...",
    "value": "0x0",
    "chainId": 8453
  },
  "swap": {
    "to": "0x111111125421ca6dc452d289314280a0f8842a65",
    "data": "0x...",
    "value": "0x0",
    "chainId": 8453
  },
  "srcToken": "USDC",
  "dstToken": "ETH",
  "amount": "10",
  "network": "base",
  "router": "0x111111125421ca6dc452d289314280a0f8842a65",
  "note": "Sign and broadcast the approve tx first, wait for confirmation, then sign and broadcast the swap tx.",
  "timestamp": "2026-02-16T12:00:00.000Z"
}

When to Use

Read the full file on GitHub · 89 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. 8d ago First seen · 89 lines · 35 tokens per session scan A 5be037c99c4e

Subscribe to this mod's changes

pinion-trade is a skill published in the GitHub repository chu2bard/pinion-os (96 stars, last pushed 6mo ago), licensed MIT. It adds 35 tokens to every session and 740 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

splits

Use Splits with Bankr for onchain treasury operations: secure assets, process revenue, manage operating subaccounts, pay expenses, govern contracts, and maintain clean accounting books.

BankrBot/skills · 38 tokens

compare-crypto-payments

Comprehensive comparison of crypto payment gateways and protocols. Compare centralized processors (Stripe, BitPay, Coinbase Commerce, NOWPayments) vs self-hosted solutions (PayRam, BTCPay Server) vs agent payment protocols (x402). Analyze trade-offs between custody, KYC requirements, stablecoin support, privacy, and…

PayRam/payram-mcp · 116 tokens

payram-agent-onboarding

Deploy and automate PayRam for AI agents and CLI-only environments. No web UI required — pure API-driven payment infrastructure. Install via setuppayramagents.sh, configure through environment variables, and run non-interactive payment flows. Includes smart contract wallet deployment, BTC/ETH/Base payment setup, and…

PayRam/payram-mcp · 102 tokens

payram-payouts

Send crypto payouts and manage referral programs with PayRam. Self-hosted payout infrastructure — no KYC, no intermediary, no fund holds. Create payouts to any wallet across Ethereum, Base, Polygon, Tron, Bitcoin. Built-in affiliate program with automated reward distribution. Use when sending crypto payouts to users…

PayRam/payram-mcp · 81 tokens

payram-setup

Deploy and configure your PayRam self-hosted crypto payment gateway server with web dashboard. Install on VPS via setuppayram.sh, set up PostgreSQL database, configure root account, node details, wallets, and hot wallets through the web UI. Complete deployment and onboarding in under 10 minutes. No signup required …

PayRam/payram-mcp · 117 tokens

payram-webhook-integration

Integrate PayRam webhook handlers for real-time payment and payout event notifications. Self-hosted, no-KYC crypto payment gateway webhooks. Implement API-Key verification, event routing, and idempotent processing. Generate handlers for Express, Next.js, FastAPI, Gin, Laravel, Spring Boot. Use when setting up payment…

PayRam/payram-mcp · 95 tokens