flow-defi

flow-defi is a skill for Claude Code, Codex from onflow/flow-ai-tools. It costs 330 tokens per session (866 once invoked), scanned A, original, no licence file.

A guide to designing and building decentralised finance protocols on the Flow blockchain. DeFi means financial services such as lending and trading that run through blockchain programs.

In plain words
What is it for?
Use it when planning lending systems, interest calculations, automated market makers, or liquidity bootstrapping on Flow.
Why use it?
It helps developers account for Flow-specific behaviour and common safety concerns when designing DeFi systems.

Skill for Claude CodeCodex

Part of the flow-dev plugin — 12 skills shipped together

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.

agentmods
npx agentmods add skills/onflow/flow-ai-tools/flow-defi
Any agent
npx skills add onflow/flow-ai-tools --skill flow-defi
Clone the repo
git clone --depth 1 https://github.com/onflow/flow-ai-tools

Made for: Claude Code, Codex.

Or install flow-dev, the plugin that ships this one along with the rest of its 12 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 flow-defi

README.md
[![agentmods](https://agentmods.dev/badge/skills/onflow/flow-ai-tools/flow-defi.svg)](https://agentmods.dev/skills/onflow/flow-ai-tools/flow-defi)
Your own site
<a href="https://agentmods.dev/skills/onflow/flow-ai-tools/flow-defi"><img src="https://agentmods.dev/badge/skills/onflow/flow-ai-tools/flow-defi.svg" alt="Measured on agentmods" height="20"></a>
Per session 330 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 866 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00330 $0.00866
Opus 5 $0.00165 $0.00433
Sonnet 5 $0.00066 $0.00173
Haiku 4.5 $0.00033 $0.00087

Measured 5d ago against content hash 36b61c7b666b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

flow-defi 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 5d 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/flow-dev/skills/flow-defi/SKILL.md · 38 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 38 lines · 330 tokens per session scan A 36b61c7b666b

Subscribe to this mod's changes

flow-defi is a skill published in the GitHub repository onflow/flow-ai-tools (6 stars, last pushed 1mo ago), with no licence file. It adds 330 tokens to every session and 866 once invoked, about $0.0016 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.

Related

Other skills, from other repositories

rtc-balance

Check RustChain wallet balance, epoch info, and network status via the public RPC.

Scottcjn/Rustchain · 20 tokens

okx-dex-strategy

Limit-order strategy trading on OKX Agentic Wallet. Use this skill when the user wants to place a price-triggered limit order (buy a dip, take profit, stop loss, chase a high), cancel one or more pending orders, list active or historical orders, or resume orders that have been suspended by SA TEE upgrades. Distinct…

nirholas/three.ws · 184 tokens

tokenized-agents

Use when the user wants to charge users for actions. Use @three-ws/agent-payments, to build Solana payment transactions, verify on-chain invoice payments, or integrate Solana wallet adapters for agent payment flows.

nirholas/three.ws · 50 tokens

metamask-agent-wallet

Use when the user asks anything about blockchain wallets, transactions, signing, token transfers, supported chains, wallet balances, perpetual futures trading, prediction markets, token swaps, cross-chain bridges, market data, token discovery, decoding EVM calldata, Aave V3 lending and borrowing, or authentication via…

nirholas/three.ws · 81 tokens

okx-defi-invest

OKX-aggregated DeFi discovery and execution — for users who want OKX to find and route to the best protocol WITHOUT naming a specific DApp. If the user names ANY third-party protocol/DApp as destination (Aave, Lido, PancakeSwap, Uniswap, Curve, Compound, Morpho, Pendle, Kamino, Raydium, Hyperliquid, Polymarket, etc.)…

nirholas/three.ws · 276 tokens

okx-dex-bridge

Use this skill to bridge tokens, cross-chain swap/transfer, move assets between chains, get cross-chain quotes, compare bridge fees, find the cheapest/fastest route, build bridge calldata, check bridge status, track a cross-chain transaction, list supported chains or bridge protocols, or when the user mentions…

nirholas/three.ws · 162 tokens