defi-integration

defi-integration is a skill for Codex from san-npm/skills-ws. It costs 96 tokens per session (698 once invoked), scanned A, original, MIT.

A set of templates and guidance for connecting TypeScript or Solidity applications to DeFi protocols such as Uniswap, Aave, Compound, Curve, 1inch, and ERC-4626 vaults. DeFi is software-based financial activity on blockchains.

In plain words
What is it for?
Use it when writing wallet or smart-contract code for token swaps, liquidity provision, lending, borrowing, flash loans, or yield strategies.
Why use it?
It provides a structured starting point for swaps, lending, liquidity, borrowing, flash loans, and yield while highlighting safeguards needed before handling real funds.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it when writing wallet or smart-contract code for token swaps, liquidity provision, lending, borrowing, flash loans, or yield strategies.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/san-npm/skills-ws/defi-integration
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 san-npm/skills-ws --skill defi-integration
Clone the repo
git clone --depth 1 https://github.com/san-npm/skills-ws

Made for: Codex.

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 defi-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/san-npm/skills-ws/defi-integration/github.svg)](https://agentmods.dev/skills/san-npm/skills-ws/defi-integration)
Your own site
<a href="https://agentmods.dev/skills/san-npm/skills-ws/defi-integration"><img src="https://agentmods.dev/badge/skills/san-npm/skills-ws/defi-integration/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 defi-integration

Your own site · 80×15
<a href="https://agentmods.dev/skills/san-npm/skills-ws/defi-integration"><img src="https://agentmods.dev/badge/skills/san-npm/skills-ws/defi-integration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 698 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.00096 $0.00698
Opus 5 $0.00048 $0.00349
Sonnet 5 $0.00019 $0.00140
Haiku 4.5 $0.00010 $0.00070

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

Security

Grade A, and why

defi-integration 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.

skills/defi-integration/SKILL.md · 25 lines

How it starts

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

DeFi Protocol Integration

SAFETY — read first. Every contract in this skill is an unaudited teaching template, not production code. Before any mainnet use you MUST: (1) add slippage bounds derived from a live quote/oracle (never 0/1), (2) set real deadlines, (3) add reentrancy protection (ReentrancyGuard / checks-effects-interactions) on any function that calls external contracts and moves funds, (4) use SafeERC20 for all token transfers/approvals, (5) dry-run via a fork or Tenderly simulation, (6) verify every address against the official deployment registry for the target chain, and (7) get an independent security audit. Do not broadcast a money-moving transaction without explicit user confirmation. See §7 (Slippage & MEV) and §11 (Pre-flight Safety Checklist).

Reference guide

Read only the references needed for the current request:

Read the full file on GitHub · 25 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 · 25 lines · 96 tokens per session scan A 628d6da928d0

Subscribe to this mod's changes

defi-integration is a skill published in the GitHub repository san-npm/skills-ws (2 stars, last pushed 5d ago), licensed MIT. It adds 96 tokens to every session and 698 once invoked, about $0.0005 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-31.