defi-protocol-templates

Provide modular Solidity templates for staking, AMMs, governance, and lending on EVM networks.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provide production-ready templates for staking, AMMs, governance, and lending to accelerate DeFi protocol development.

Core Features & Use Cases

  • Staking templates with rewards distribution and governance integration
  • Automated market maker (AMM) templates for liquidity pools
  • Governance token and on-chain voting scaffolds
  • Lending/borrowing protocol foundations
  • Flash loan patterns for arbitrage and capital efficiency

Quick Start

Deploy the included templates by configuring your token addresses and deploying the Solidity contracts to your target EVM network.

Frequently Asked Questions about defi-protocol-templates

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

FAQPage Schema
How do I deploy a DeFi staking smart contract with rewards distribution?

To deploy a DeFi staking smart contract, configure your token addresses and deploy the provided modular Solidity templates to your target EVM network. The templates include reward distribution logic and integrate with governance voting.

What is the best way to build an AMM liquidity pool on an EVM-compatible network?

The best way to build an AMM liquidity pool is using forkable automated market maker templates with standard ERC20 interfaces. These scaffolds provide foundational logic for liquidity pools on EVM-compatible networks.

Can I use OpenZeppelin patterns for governance token and on-chain voting scaffolds?

Yes, you can use OpenZeppelin patterns for governance token and on-chain voting scaffolds. The templates provide modular Solidity structures to deploy governance voting features securely on EVM-compatible networks.

How do flash loan patterns work for arbitrage in Solidity smart contracts?

Flash loan patterns for arbitrage work by providing capital efficiency templates within Solidity smart contracts. These DeFi protocol templates offer forkable foundations to execute flash loan features for arbitrage on EVM-compatible networks.

Do I need existing token addresses to deploy these lending protocol foundations?

Yes, you need existing token addresses to deploy these lending protocol foundations. The deployment process requires configuring your token addresses before deploying the Solidity contracts to your target EVM network.