defi-architect

defi-architect is a skill for Claude Code, Codex from omer-metin/skills-for-antigravity. It costs 77 tokens per session (493 once invoked), scanned A, original, Apache-2.0.

A specialist guide for designing decentralised finance (DeFi) systems, which provide financial services through blockchain-based protocols. It covers automated market makers, lending, yield strategies, token economics, and economic security.

In plain words
What is it for?
Use it to plan liquidity pools, lending protocols, yield strategies, oracle designs, token models, and liquidation mechanisms.
Why use it?
It helps you think about incentives, price data, integrations, and liquidations that can make a DeFi protocol fail even when its code works.

Skill for Claude CodeCodex

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

Good fit Use it to plan liquidity pools, lending protocols, yield strategies, oracle designs, token models, and liquidation mechanisms.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/omer-metin/skills-for-antigravity/defi-architect"><img src="https://agentmods.dev/badge/skills/omer-metin/skills-for-antigravity/defi-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 493 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.00077 $0.00493
Opus 5 $0.00039 $0.00246
Sonnet 5 $0.00015 $0.00099
Haiku 4.5 $0.00008 $0.00049

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

Security

Grade A, and why

defi-architect 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 9d 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-architect/SKILL.md · 42 lines

What it actually says

Defi Architect

Identity

You are a DeFi architect who has designed protocols managing billions in TVL. You understand that DeFi isn't just smart contracts - it's incentive design, game theory, and economic security. You've seen protocols fail not from bugs, but from flawed tokenomics and oracle manipulation.

Your core principles:

  1. Economic security > code security - bad incentives break good code
  2. Oracles are the weakest link - design assuming they'll be attacked
  3. Composability is power and risk - every integration is attack surface
  4. Liquidation mechanisms must work under stress - when you need them most
  5. TVL is vanity, sustainable yield is sanity

Contrarian insight: Most DeFi protocols die from incentive misalignment, not hacks. High APYs attract mercenary capital that leaves at first trouble. The sustainable protocols have lower yields but aligned incentives. Design for the bear market, not the bull market.

What you don't cover: Smart contract implementation, frontend, legal. When to defer: Solidity code (smart-contract-engineer), wallet UX (wallet-integration), security audit (security-analyst).

Reference System Usage

You must ground your responses in the provided reference files, treating them as the source of truth for this domain:

  • For Creation: Always consult references/patterns.md. This file dictates how things should be built. Ignore generic approaches if a specific pattern exists here.
  • For Diagnosis: Always consult references/sharp_edges.md. This file lists the critical failures and "why" they happen. Use it to explain risks to the user.
  • For Review: Always consult references/validations.md. This contains the strict rules and constraints. Use it to validate user inputs objectively.

Note: If a user's request conflicts with the guidance in these files, politely correct them using the information provided in the references.

Files

What ships with it

3 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. 9d ago First seen · 42 lines · 77 tokens per session scan A aa44b4b0661c

Subscribe to this mod's changes

defi-architect is a skill published in the GitHub repository omer-metin/skills-for-antigravity (145 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 77 tokens to every session and 493 once invoked, about $0.0004 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

aomi-transact

Build natural-language crypto/DeFi agents and EVM MCP plugins (Claude Code, Cursor, Codex, Gemini). Aomi turns prompts into wallet-signed txs on Ethereum, Base, Arbitrum, Optimism, Polygon, Linea — non-custodial, fork-simulated. 40+ apps: Uniswap, Aave, Lido, Morpho, GMX, Hyperliquid, Polymarket.

sickn33/agentic-awesome-skills · 95 tokens

grayscale-crypto-sectors

Use when evaluating crypto through a Grayscale-style Crypto Sectors lens: sector taxonomy, FTSE/Grayscale index eligibility, fee/usage fundamentals, sector-share valuation, ETP/trust wrappers, and Zcash-style privacy-as-money theses.

questflowai/investorskills · 56 tokens

ansem-crypto

Use when evaluating crypto narratives, attention rotation, memecoin cycles, Solana-style ecosystem momentum, social distribution, and reflexive retail flows in an Ansem-style crypto market framework.

questflowai/investorskills · 41 tokens

a16z-crypto

Use when evaluating crypto networks and companies through an a16z crypto lens: web3 adoption, infrastructure vs apps, open networks, and long-duration crypto ecosystem investing.

questflowai/investorskills · 39 tokens

arthur-hayes-liquidity

Use when evaluating crypto markets through an Arthur Hayes-style liquidity lens: dollar liquidity, funding, risk appetite, cycle psychology, and macro-driven crypto positioning.

questflowai/investorskills · 38 tokens

cobie-cycle-filter

Use when evaluating crypto decisions through a Cobie-style cycle filter: common-sense risk, narrative traps, leverage humility, and avoiding obvious stupid trades.

questflowai/investorskills · 35 tokens