building-blocks

Explain DeFi protocols, composability patterns, and cross-chain strategies with Solidity examples.

Updated Feb 28, 2026
One-click install
npx skills add https://github.com/freeslugs/unlink-hackathon --skill building-blocks-freeslugs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: building-blocks
Source: https://github.com/freeslugs/unlink-hackathon/tree/main/_skills/eth-skills/building-blocks
Command: npx skills add https://github.com/freeslugs/unlink-hackathon --skill building-blocks-freeslugs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers and DeFi users navigate the complex landscape of decentralized finance protocols, understand their composability, and make informed decisions about building integrations or yield strategies across different blockchains.

Core Features & Use Cases

  • Protocol Deep Dives: Explains the mechanics of major DeFi protocols like Uniswap V4, Aave V3, GMX V2, and Pendle.
  • Cross-Chain Strategy: Provides insights into dominant DEXs and unique features on L2s like Base, Arbitrum, and Optimism.
  • Composability Patterns: Details practical patterns like flash loan arbitrage, leveraged yield farming, and ERC-4626 vaults with code examples.
  • Use Case: A developer wants to build a new yield aggregator on Arbitrum. They can use this Skill to understand how GMX V2 and Pendle work, identify key contract addresses, and learn about Arbitrum-specific technologies like Stylus and Orbit.

Quick Start

Explain how to use Uniswap V4 hooks for dynamic fee implementation.

Frequently Asked Questions about building-blocks

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

FAQPage Schema
How do DeFi composability patterns like flash loans and ERC-4626 vaults work?

DeFi composability patterns like flash loans and ERC-4626 vaults work by allowing protocols to interact programmatically, enabling mechanisms such as flash loan arbitrage and yield tokenization through modular smart contract design and shared standards.

How do I use Uniswap V4 hooks for dynamic fee implementation?

To use Uniswap V4 hooks for dynamic fee implementation, you leverage the protocol's hook architecture to execute custom logic at specific points in the pool lifecycle, enabling dynamic fee adjustments based on predefined market conditions.

Does this DeFi guide cover L2-specific DEXs on Arbitrum and Base?

Yes, this DeFi guide covers L2-specific DEXs on Arbitrum and Base, detailing dominant platforms like Aerodrome and Velodrome, alongside unique cross-chain integration strategies and Arbitrum-specific technologies like Stylus and Orbit.

What is the best way to build a yield aggregator using GMX V2 and Pendle?

The best way to build a yield aggregator using GMX V2 and Pendle is to study their protocol mechanics, identify key contract addresses, and apply composability patterns like leveraged yield farming and yield tokenization to stack returns across blockchains.

When should I not use flash loan arbitrage for DeFi composability?

You should avoid using flash loan arbitrage for DeFi composability when transaction fees on the target blockchain exceed the potential profit margin, or when smart contract execution risks and oracle latency introduce unacceptable financial exposure.