building-blocks

Map DeFi protocol primitives and on-chain behaviors into composable integration plans.

1|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/tawf-labs/zkt-hackathon --skill building-blocks-tawf-labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: building-blocks
Source: https://github.com/tawf-labs/zkt-hackathon/tree/main/.agents/skills/ethskills/building-blocks
Command: npx skills add https://github.com/tawf-labs/zkt-hackathon --skill building-blocks-tawf-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you avoid guesswork and fragile integrations by explaining how major DeFi primitives work and how to safely compose them across Ethereum and L2s.

Core Features & Use Cases

  • Protocol “legos” by chain: Covers major DEX/DeFi building blocks (e.g., Uniswap V2/V3/V4, Aave V3, Curve-style liquidity concepts, and L2-native ecosystems like Aerodrome/Aero, GMX, and Pendle) with practical guidance.
  • Composable integration patterns: Provides reusable patterns such as flash-loan arbitrage, leveraged yield loops, meta-aggregation routing, and ERC-4626 vault design.
  • Modern EVM composability mechanisms: Explains Uniswap V4 hooks and how hooks enable custom logic around swaps/liquidity, plus chain-specific concepts like Arbitrum tooling and GMX market structure.
  • Use cases: Designing yield strategies, choosing the right DEX per L2, building DeFi integrations, and combining existing protocols into new products while managing integration tradeoffs.

Quick Start

Use the building-blocks skill to design a new DeFi strategy by telling the AI which chain you’re targeting, the assets involved, and whether you want a DEX-integrated swap strategy or a vault-based yield approach.

Frequently Asked Questions about building-blocks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compose DeFi protocols like Uniswap V4 and Aave V3 into a single yield strategy?

To compose DeFi protocols, you map major protocol primitives like Uniswap V4 hooks and Aave V3 flash loans to actionable integration plans. This involves selecting appropriate protocols per chain and designing cohesive workflows for swaps, lending, and ERC-4626 yield vaults.

What is the best way to design an ERC-4626 vault strategy across Ethereum and L2s?

Designing an ERC-4626 vault strategy requires mapping on-chain behaviors to implementation guidance across Ethereum and L2s. You can use reusable patterns like leveraged yield loops and meta-aggregation routing while applying practical guardrails for dependency risks and compositional safety.

How do Uniswap V4 hooks enable custom logic for DeFi protocol composability?

Uniswap V4 hooks enable custom logic around swaps and liquidity for DeFi protocol composability. They allow developers to inject specific execution rules into pool behaviors, creating tailored integration patterns for routing and yield generation workflows.

Can I use Aave V3 flash loans for arbitrage across different EVM chains?

Yes, Aave V3 flash loans can be used for arbitrage by providing reusable composable integration patterns. The approach requires understanding on-chain behaviors and applying guardrails against oracle manipulation and dependency risks to ensure compositional safety.

What are the limitations and dependency risks when integrating multiple DeFi building blocks?

Integrating multiple DeFi building blocks introduces limitations like oracle manipulation and dependency risks. Compositional safety requires mapping protocol mechanics and applying practical guardrails to avoid fragile integrations across Ethereum and L2 ecosystems.

How do I choose the right DEX per L2 for my DeFi integration?

Choosing the right DEX per L2 involves mapping chain-specific primitives and market structures like Aerodrome or GMX. You evaluate on-chain behaviors and protocol mechanics to select appropriate platforms for swaps, lending, and vault-based yield approaches.