blockchain-defi

blockchain-defi is a skill for Claude Code, Codex from j4flmao/agent-skills. It costs 154 tokens per session (6,040 once invoked), scanned A, original, MIT.

A guide to designing and analyzing decentralized finance (DeFi) systems, where financial services such as trading and lending run on blockchains instead of through a bank.

In plain words
What is it for?
Use it to plan automated market makers, lending and borrowing systems, perpetual futures, staking and yield strategies, and their smart-contract structure.
Why use it?
It helps reason about how these systems work and where their financial and security risks come from.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to plan automated market makers, lending and borrowing systems, perpetual futures, staking and yield strategies, and their smart-contract structure.

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

Made for: Claude Code, 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 blockchain-defi

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/blockchain-defi"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/blockchain-defi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 154 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,040 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00154 $0.06040
Opus 5 $0.00077 $0.03020
Sonnet 5 $0.00031 $0.01208
Haiku 4.5 $0.00015 $0.00604

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

Security

Grade A, and why

blockchain-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 7d 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/blockchain/blockchain-defi/SKILL.md · 552 lines

How it starts

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

Blockchain DeFi

Purpose

Guide decentralized finance protocol design, analysis, and implementation. Covers AMM mechanics, lending/borrowing, derivatives, liquid staking, yield strategies, and DeFi security with focus on economic security and incentive alignment.

Agent Protocol

Trigger

"defi", "decentralized finance", "amm", "automated market maker", "lending protocol", "borrowing", "liquidation", "yield farming", "liquidity mining", "perpetual futures", "perps", "liquid staking", "restaking", "eigenlayer", "lido", "uniswap", "curve", "aave", "compound", "yearn", "convex", "yield optimization", "mev defi", "flash loan", "liquidation", "oracle price defi"

Input Context

  • Protocol category (AMM/lending/derivatives/LSD/yield aggregator)
  • Target blockchain (EVM/Solana/Cosmos)
  • Capital base and liquidity requirements
  • Risk tolerance (collateral factors, liquidation thresholds)
  • Oracle integration requirements
  • Governance model (on-chain/off-chain, emergency pause mechanism)

Output Artifact

DeFi protocol specification including: mechanism design, economic security analysis, contract architecture, risk assessment, and integration guide.

Response Format

  1. Protocol category: AMM / lending / derivatives / LSD / yield aggregator
  2. Mechanism design: core invariants, pricing formulas, incentive model, fee structure
  3. Economic security: oracle risk, liquidation safety, capital efficiency trade-offs, MEV exposure
  4. Implementation: key contract architecture, integration points, Solidity/EVM patterns
  5. Risk analysis: smart contract risk, impermanent loss, depeg risk, regulatory exposure, composability risk

Completion Criteria

  • Mechanism design includes: invariant function, fee model, incentive alignment analysis
  • Economic security analysis covers: oracle manipulation, flash loan attacks, liquidity crises
  • Contract architecture follows established patterns (checks-effects-interactions, access control)
  • Risk assessment quantifies: IL, liquidation risk, depeg scenarios, protocol composability risks
  • Governance and emergency procedures specified

Read the full file on GitHub · 552 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. 7d ago First seen · 552 lines · 154 tokens per session scan A 8bb8233547f9

Subscribe to this mod's changes

blockchain-defi is a skill published in the GitHub repository j4flmao/agent-skills (22 stars, last pushed 4d ago), licensed MIT. It adds 154 tokens to every session and 6,040 once invoked, about $0.0008 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-09-03.

Related

Other skills, from other repositories

crypto-report

Analyze cryptocurrency projects with tokenomics, on-chain metrics, and market analysis. Generate comprehensive crypto research reports.

claude-office-skills/skills · 24 tokens

crypto-defi

DeFi Protocol Analysis — analyzes TVL, revenue, yields, liquidity, security, governance, and competitive positioning with a composite DeFi Score (0-100).

zubair-trabzada/ai-crypto-claude · 37 tokens

emblem-defi-yield

DeFi yield research and liquid staking via EmblemAI. Discover yield opportunities, compare protocols, check DeFi positions with Nansen, and enter liquid staking via token swaps. Use when the user wants to research yields, find staking options, or review DeFi positions.

EmblemCompany/Agent-skills · 61 tokens

emblem-memecoin-scout

Memecoin discovery and risk assessment via EmblemAI. Trending memecoins on Solana, Base, and Hedera. Pump.fun and LaunchLab new token alerts, Clanker discovery, rug-pull detection, holder analysis, and smart money tracking. Use when the user wants to find new memecoins, check if a token is a rug pull, or scout…

EmblemCompany/Agent-skills · 87 tokens

emblem-portfolio-tracker

Track crypto portfolio across 7 blockchains via EmblemAI. Aggregated balances with USD values, conditional trade P&L, and DeFi position tracking via Nansen. Use when the user wants to check their portfolio, see balances across chains, or review trade positions.

EmblemCompany/Agent-skills · 62 tokens

emblem-token-swap

Execute token swaps across 6 blockchains via EmblemAI. Automatic route optimization and cross-chain bridging via ChangeNow. Use when the user wants to swap tokens, exchange crypto, convert between currencies, or bridge assets cross-chain.

EmblemCompany/Agent-skills · 52 tokens