cow-protocol-sdk

cow-protocol-sdk is a skill for Claude Code from mahmoud20138/Tradecraft. It costs 63 tokens per session (1,853 once invoked), scanned A, original, MIT.

A TypeScript monorepo SDK for CoW Protocol, a crypto trading system where competing solvers find routes for trades and batch compatible orders to reduce certain forms of transaction manipulation.

In plain words
What is it for?
Use it to create market, limit, or TWAP orders, integrate CoW Protocol or CoW Swap, support solver-based execution, and work with cross-chain swaps or bridges.
Why use it?
It provides documented building blocks for integrating protected decentralized-exchange trades without implementing the protocol flow from scratch.

Skill for Claude Code

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

Part of the tradecraft plugin — 58 skills shipped together

Good fit Use it to create market, limit, or TWAP orders, integrate CoW Protocol or CoW Swap, support solver-based execution, and work with cross-chain swaps or bridges.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mahmoud20138/tradecraft/cow-protocol-sdk
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 mahmoud20138/Tradecraft --skill cow-protocol-sdk
Clone the repo
git clone --depth 1 https://github.com/mahmoud20138/Tradecraft

Made for: Claude Code.

Or install tradecraft, the plugin that ships this one along with the rest of its 58 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 cow-protocol-sdk

README.md
[![agentmods](https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/cow-protocol-sdk/github.svg)](https://agentmods.dev/skills/mahmoud20138/tradecraft/cow-protocol-sdk)
Your own site
<a href="https://agentmods.dev/skills/mahmoud20138/tradecraft/cow-protocol-sdk"><img src="https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/cow-protocol-sdk/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 cow-protocol-sdk

Your own site · 80×15
<a href="https://agentmods.dev/skills/mahmoud20138/tradecraft/cow-protocol-sdk"><img src="https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/cow-protocol-sdk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,853 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.00063 $0.01853
Opus 5 $0.00032 $0.00927
Sonnet 5 $0.00013 $0.00371
Haiku 4.5 $0.00006 $0.00185

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

Security

Grade A, and why

cow-protocol-sdk 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 12d 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.

plugins/tradecraft/skills/cow-protocol-sdk/SKILL.md · 229 lines

How it starts

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

cow-protocol-sdk

USE FOR:

  • "CoW Protocol / CoW Swap integration"
  • "MEV-protected DeFi trading"
  • "intent-based DEX order"
  • "TWAP on-chain order"
  • "limit order on DEX (crypto)"
  • "cross-chain swap / bridge"
  • "batch auction solver trading"
  • "TypeScript DeFi trading SDK" tags: [CoW-Protocol, DeFi, DEX, MEV-protection, TWAP, limit-order, intent-based, Ethereum, TypeScript, solver, batch-auction] kind: sdk category: crypto-defi-trading

What Is CoW Protocol?

Intent-based trading protocol with MEV protection via batch auctions and solver network.

How CoW Works

User submits signed intent (not on-chain tx)
         ↓
Solver network competes to find best execution:
  Option A: CoW match   → peer-to-peer, no AMM needed (best price)
  Option B: AMM route   → Uniswap/Curve/etc. (fallback)
  Option C: Aggregator  → 1inch/Paraswap route
         ↓
Best solver wins batch auction → executes on-chain
User gets guaranteed price or better (surplus → user)

MEV Protection: Orders are signed intents, not on-chain txs → front-running impossible. Surplus: Any price improvement beyond quoted amount goes back to the user.


Supported Networks

Ethereum · BNB Chain · Gnosis Chain · Polygon · Base · Arbitrum One · Avalanche · Linea · Ink · Sepolia (testnet)


Package Architecture (14 packages)

Package Purpose
@cowprotocol/cow-sdk Main entry point (re-exports all)
@cowprotocol/sdk-trading High-level: quote → sign → post
@cowprotocol/sdk-order-book OrderBook API client (get/post orders)
@cowprotocol/sdk-order-signing Cryptographic signing utilities
@cowprotocol/sdk-composable Programmatic orders: TWAP, conditional
@cowprotocol/sdk-bridging Cross-chain token transfers
@cowprotocol/sdk-cow-shed Account abstraction support
@cowprotocol/sdk-viem-adapter Viem provider adapter
@cowprotocol/sdk-ethers-v6-adapter Ethers v6 adapter
@cowprotocol/sdk-ethers-v5-adapter Ethers v5 adapter
@cowprotocol/sdk-app-data Order metadata / app data
@cowprotocol/sdk-config Chain/environment config
@cowprotocol/sdk-contracts-ts Type-safe contract ABIs
@cowprotocol/sdk-subgraph GraphQL subgraph queries

Read the full file on GitHub · 229 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. 12d ago First seen · 229 lines · 0 tokens per session scan A 2e7d7e00e6c4

Subscribe to this mod's changes

cow-protocol-sdk is a skill published in the GitHub repository mahmoud20138/Tradecraft (15 stars, last pushed 4mo ago), licensed MIT. It adds 63 tokens to every session and 1,853 once invoked, about $0.0003 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 skills, from other repositories

metengine-data-agent

Real-time smart money analytics API for Polymarket prediction markets, Hyperliquid perpetual futures, and Meteora Solana LP/AMM pools. 63 endpoints. Pay-per-request via x402 on Solana Mainnet USDC. No API keys.

sendaifun/skills · 57 tokens

meteora

Complete Meteora DeFi SDK suite for building liquidity pools, AMMs, bonding curves, vaults, token launches, and zap operations on Solana. Use when integrating DLMM, DAMM v2, DAMM v1, Dynamic Bonding Curves, Alpha Vaults, Zap, or Stake-for-Fee functionality.

sendaifun/skills · 69 tokens

kamino

Complete guide for Kamino Finance - Solana's leading DeFi protocol for lending, borrowing, liquidity management, and leverage trading. Covers klend-sdk (lending), kliquidity-sdk (automated liquidity strategies), scope-sdk (oracle aggregator), multiply/leverage operations, vaults, and obligation orders.

sendaifun/skills · 65 tokens

coingecko

Complete CoinGecko Solana API integration for token prices, DEX pool data, OHLCV charts, trades, and market analytics. Use for building trading bots, portfolio trackers, price feeds, and on-chain data applications.

sendaifun/skills · 50 tokens

dflow

Complete DFlow trading protocol SDK - the single source of truth for integrating DFlow on Solana. Covers spot trading, prediction markets, Swap API, Metadata API, WebSocket streaming, and all DFlow tools.

sendaifun/skills · 46 tokens

lulo

Complete guide for Lulo - Solana's premier lending aggregator. Covers API integration for deposits, withdrawals, balance queries, Protected/Boosted deposits, Custom deposits, and automated yield optimization across Kamino, Drift, MarginFi, and Jupiter.

sendaifun/skills · 52 tokens