defi-protocol-templates

Generate smart contract templates for DeFi staking, AMMs, governance, lending, and flash loans.

Updated Jan 13, 2026
One-click install
npx skills add https://github.com/ollieb89/vibe_coding --skill defi-protocol-templates-ollieb89
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: defi-protocol-templates
Source: https://github.com/ollieb89/vibe_coding/tree/main/.agent/blockchain-web3/skills/defi-protocol-templates
Command: npx skills add https://github.com/ollieb89/vibe_coding --skill defi-protocol-templates-ollieb89

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides pre-built, production-ready smart contract templates for common Decentralized Finance (DeFi) protocols, significantly accelerating the development of new dApps.

Core Features & Use Cases

  • Staking: Implement reward distribution mechanisms for staked tokens.
  • Automated Market Makers (AMMs): Create decentralized exchanges with liquidity pools.
  • Governance: Develop token-based voting systems for protocol decisions.
  • Lending/Borrowing: Build systems for users to lend and borrow assets.
  • Flash Loans: Integrate powerful, short-term uncollateralized loans for arbitrage or other strategies.
  • Use Case: Launching a new yield farming platform by quickly integrating staking and AMM functionalities.

Quick Start

Use the defi-protocol-templates skill to generate a staking contract template for ERC20 tokens.

Frequently Asked Questions about defi-protocol-templates

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

FAQPage Schema
How do I build DeFi protocols like staking and AMMs using Solidity?

You build DeFi protocols using Solidity by implementing pre-built smart contract templates for staking and automated market makers (AMMs) that utilize OpenZeppelin libraries for secure, battle-tested patterns.

What is a flash loan and how do I integrate it into a lending protocol?

A flash loan is a short-term, uncollateralized loan used for arbitrage strategies. You integrate it into lending protocols by deploying smart contract templates designed specifically for executing and settling flash loan transactions securely.

Can I use these smart contract templates to create a governance token?

Yes, you can use these smart contract templates to create a governance token, providing pre-built token-based voting systems that enable decentralized protocol decisions and community governance mechanisms directly on-chain.

Does this DeFi template framework work with OpenZeppelin libraries?

Yes, this DeFi template framework works directly with OpenZeppelin libraries, utilizing their battle-tested patterns to ensure the security and efficiency of core decentralized finance primitives like lending and staking.

What's the best way to launch a yield farming platform with ERC20 tokens?

The best way to launch a yield farming platform with ERC20 tokens is by integrating staking and automated market maker (AMM) templates to quickly establish reward distribution mechanisms and liquidity pools.

Are there limitations to using pre-built templates for decentralized exchange creation?

While pre-built templates accelerate decentralized exchange creation, limitations exist in customizing automated market maker (AMM) logic beyond standard liquidity pool patterns without modifying the underlying smart contract code directly.