defi-templates

Generate Solidity smart contract templates for DeFi protocols on EVM-compatible blockchains.

7|2|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/LuisSambrano/antigravity-config --skill defi-templates
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: defi-templates
Source: https://github.com/LuisSambrano/antigravity-config/tree/main/skills/8-blockchain/defi-templates
Command: npx skills add https://github.com/LuisSambrano/antigravity-config --skill defi-templates

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) and references (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 blockchain applications.

Core Features & Use Cases

  • Staking Contracts: Implement token staking with reward distribution mechanisms.
  • Automated Market Makers (AMMs): Deploy customizable liquidity pools for token swapping.
  • Governance Systems: Set up token-based voting and proposal execution frameworks.
  • Lending/Borrowing Protocols: Create foundational smart contracts for decentralized lending.
  • Flash Loans: Integrate powerful flash loan functionality for arbitrage and other strategies.
  • Use Case: You need to launch a new yield farming platform. Use the staking and AMM templates to quickly build the core components, allowing users to stake tokens and provide liquidity for rewards.

Quick Start

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

Frequently Asked Questions about defi-templates

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

FAQPage Schema
How do I build a DeFi staking contract with reward distribution in Solidity?

Building a DeFi staking contract in Solidity involves implementing token staking with automated reward distribution mechanisms. Production-ready templates provide audited, reusable contract structures using OpenZeppelin libraries to accelerate protocol development.

What smart contracts are needed for an automated market maker (AMM) on EVM blockchains?

Smart contracts for an automated market maker (AMM) on EVM blockchains require customizable liquidity pools for token swapping. Pre-built DeFi templates offer these production-ready contract structures, allowing developers to quickly deploy AMMs without writing the complex mathematical logic from scratch.

Can I use these DeFi templates for token-based governance and voting systems?

Yes, you can use these DeFi templates for token-based governance and voting systems. The templates provide frameworks for setting up decentralized proposal execution and voting mechanisms, utilizing audited Solidity structures built on OpenZeppelin libraries.

Does this Skill include flash loan and lending protocol templates for EVM-compatible chains?

Yes, this Skill includes flash loan and lending protocol templates for EVM-compatible blockchains. It provides foundational smart contracts for decentralized lending and powerful flash loan functionality, facilitating strategies like arbitrage using Solidity and OpenZeppelin libraries.

What's the best way to launch a yield farming platform using audited smart contracts?

The best way to launch a yield farming platform using audited smart contracts is to combine pre-built staking and AMM templates. This approach allows users to stake tokens and provide liquidity for rewards rapidly, using reusable contract structures instead of writing untested code.