building-blocks

Analyze DeFi protocol building blocks and composability across Ethereum and L2s.

Updated Apr 8, 2026
One-click install
npx skills add https://github.com/mashharuki/flare-sample --skill building-blocks-mashharuki
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: building-blocks
Source: https://github.com/mashharuki/flare-sample/tree/main/.claude/skills/eth-building-blocks
Command: npx skills add https://github.com/mashharuki/flare-sample --skill building-blocks-mashharuki

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill clarifies how major DeFi building blocks fit together across Ethereum and L2s, removing guesswork when selecting protocols, composing strategies, and integrating onchain primitives safely and efficiently.

Core Features & Use Cases

  • Protocol mapping: Identifies dominant DEXs and primitives per chain (Uniswap V4, Aero, GMX, Pendle, Velodrome) and provides verified contract-level references and patterns.
  • Composability patterns: Explains practical patterns (flash loan arbitrage, ERC-4626 vault integration, meta-aggregation, dynamic fee hooks) with integration guidance and guardrails.
  • Chain-specific guidance: Highlights L2-specific tools and tradeoffs for Base, Arbitrum, Optimism and mainnet, helping choose the right primitives for yield strategies, routing, and security reviews.
  • Developer examples: Includes hook and flash-loan code patterns, recommended architectures, and security considerations for building production integrations.

Quick Start

Use the building-blocks skill to summarize recommended DEX and vault choices for deploying a USDC yield strategy on Base and produce the core integration checklist.

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 primitives into a yield strategy on Base?

You can compose DeFi primitives into a yield strategy by mapping dominant DEXs like Aerodrome, applying ERC-4626 vault integration patterns, and using verified contract addresses to route assets securely on the Base network.

What are the composability patterns for ERC-4626 vault integration?

ERC-4626 vault integration patterns include meta-aggregation, flash loan arbitrage, and dynamic fee hooks, providing specific architectural guidance and security guardrails for combining vaults with other DeFi protocols.

Does this skill provide verified contract addresses for Uniswap and Aave on L2s?

Yes, it provides verified contract-level references and protocol integration patterns for primitives like Uniswap and Aave across Ethereum mainnet, Base, Arbitrum, and Optimism to ensure safe cross-protocol interactions.

What's the best way to design a flash loan arbitrage strategy across Ethereum and L2s?

The best way to design a flash loan arbitrage strategy is by identifying chain-specific DEXs, applying provided hook and flash-loan code patterns, and following practical guardrails to audit cross-protocol interactions securely.

When do I need dynamic fee hooks for Uniswap V4 protocol integration?

Dynamic fee hooks for Uniswap V4 are needed when building custom yield strategies or meta-aggregation routing that require adjusting swap mechanics based on real-time onchain conditions to maximize returns.

What are the security limitations when auditing cross-protocol interactions on Arbitrum?

Limitations include L2-specific tradeoffs and cross-protocol integration risks, requiring strict adherence to practical guardrails and careful architecture reviews to prevent exploitation when using protocols like GMX or Pendle.