defi-protocol-templates

Provide production-ready DeFi protocol templates for staking, AMMs, governance, lending, and flash loans.

Updated Feb 3, 2026
One-click install
npx skills add https://github.com/leonardoteodoroo/amino-advanced --skill defi-protocol-templates-leonardoteodoroo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: defi-protocol-templates
Source: https://github.com/leonardoteodoroo/amino-advanced/tree/main/.agent/skills/defi-protocol-templates
Command: npx skills add https://github.com/leonardoteodoroo/amino-advanced --skill defi-protocol-templates-leonardoteodoroo

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides production-ready DeFi protocol templates (staking, AMMs, governance, lending, and flash loans) to accelerate building decentralized finance applications without starting from scratch.

Core Features & Use Cases

  • Staking templates: reward distribution and token staking mechanics for loyalty and staking programs.
  • AMM templates: liquidity pools and swap logic for automated market making.
  • Governance templates: governance token and basic proposal/voting structures to enable on-chain governance.
  • Lending templates: lending/borrowing framework with collateral and repayment flows.
  • Flash Loan templates: short-term liquidity for arbitrage and liquidity opportunities.
  • Reference materials & assets: accompanying references and production-ready contract assets to speed up integration.

Quick Start

Review the assets to begin integrating the production-ready DeFi templates into your smart contract project.

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 smart contracts for staking and AMMs without starting from scratch?

DeFi smart contracts for staking and AMMs can be built using production-ready templates that provide liquidity pool logic and reward distribution mechanics. These templates offer modular design to accelerate decentralized finance application development safely.

What is a flash loan template and how does it support arbitrage?

A flash loan template provides short-term liquidity smart contracts that allow borrowing and repayment within a single transaction. It supports arbitrage by enabling developers to execute liquidity opportunities without upfront collateral.

Can I use these DeFi protocol templates with OpenZeppelin-compatible patterns?

Yes, these DeFi protocol templates are designed to support OpenZeppelin-compatible Solidity patterns. This ensures safe, reusable deployments for governance, lending, and automated market making smart contracts.

How do I implement on-chain governance and voting structures in a Solidity protocol?

On-chain governance and voting structures are implemented using governance token templates that provide basic proposal and voting mechanics. These templates enable decentralized decision-making directly within your smart contract protocol.

What is the best way to structure a lending and borrowing protocol with collateral flows?

The best way to structure a lending protocol is using modular lending templates that framework collateral and repayment flows. These production-ready assets provide the necessary logic to support secure borrowing operations.

Do I need to manually organize assets when integrating decentralized finance components?

No, you do not need to manually organize assets as the templates include accompanying references and production-ready contract assets. This organization speeds up integration for various DeFi components and real-world scenarios.