defi-protocol-templates

Provide modular Solidity DeFi templates for staking, AMMs, governance, lending, and flash loans.

1|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/Sumeet138/qwen-code-agents --skill defi-protocol-templates-sumeet138
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: defi-protocol-templates
Source: https://github.com/Sumeet138/qwen-code-agents/tree/main/plugins/blockchain-web3/skills/defi-protocol-templates
Command: npx skills add https://github.com/Sumeet138/qwen-code-agents --skill defi-protocol-templates-sumeet138

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Production-ready templates for DeFi protocols accelerate secure development by providing modular, battle-tested contracts for common patterns like staking, AMMs, governance, lending, and flash loans.

Core Features & Use Cases

  • Staking template with configurable rewards and safety checks.
  • AMM prototype for liquidity pools and token swaps.
  • Governance token scaffold with proposal and voting mechanics.
  • Lending framework with collateral and repayment flows.
  • Flash loan integration for atomic arbitrage and liquidations.
  • Use Case: A team can launch a new DeFi protocol by integrating these templates, then customize economics and access controls.

Quick Start

Instantiate a staking template with your ERC20 token and configure reward parameters to launch a basic staking program.

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 a DeFi protocol on Ethereum using Solidity templates?

DeFi protocol templates provide modular, production-ready Solidity contracts for staking, AMMs, lending, and governance. You instantiate these OpenZeppelin-aligned contracts, configure parameters like reward rates, and integrate them to accelerate secure protocol deployment.

What do I need to set up a configurable staking contract with reward parameters?

To launch a basic staking program, instantiate the provided staking template with your specific ERC20 token, then configure the reward parameters and safety checks to match your economic model.

Can I use these DeFi templates for governance tokens and voting mechanics?

Yes, the templates include a governance token scaffold with built-in proposal and voting mechanics, allowing teams to quickly implement decentralized governance for their protocols.

Does this framework support flash loan integration for atomic arbitrage?

Yes, the framework includes flash loan integration specifically designed for atomic arbitrage and liquidations, alongside lending templates with collateral and repayment flows.

Are these DeFi protocol templates suitable for auditors validating contract security?

Yes, auditors can use these modular, battle-tested templates to validate security across main modules like AMMs and lending, checking compliance with OpenZeppelin standards during audits.