defi-protocol-templates
Production-ready Solidity templates for DeFi protocols including staking, AMMs, governance, and flash loans.
Install
npx skills add https://github.com/wshobson/agents --skill defi-protocol-templatesStats
| Total installs | 3,347 |
| Weekly installs | 3.3K |
| GitHub stars | 32.4K |
| First seen | Jan 20, 2026 |
| Source | @wshobson/agents |
Summary
- Includes five core DeFi contract templates: staking with reward distribution, AMM with liquidity pools and swaps, governance token with voting, flash loan provider, and flash loan receiver patterns
- Staking contract features time-based reward calculations, reentrancy guards, and exit functionality for combined withdrawal and reward claiming
- AMM implements constant product formula with 0.3% trading fees, liquidity provider shares, and add/remove liquidity operations
- Governance system includes proposal creation with vote thresholds, time-locked voting periods, vote casting, and execution logic
- Flash loan template demonstrates 0.09% fee structure, callback execution, and repayment verification patterns
Tags
Related skills
| Skill | Installs | vs defi-protocol-templates |
|---|---|---|
| yahoo-finance | 2,434 | -913 |
| multi-cloud-architecture | 3,483 | +136 |
| market-sizing-analysis | 3,673 | +326 |
| wallet | 3,664 | +317 |
| okx-onchain-gateway | 3,315 | -32 |
FAQ
- How many installs does defi-protocol-templates have?
- defi-protocol-templates has 3,347 total installs and 3.3K installs this week.
- Where is defi-protocol-templates hosted?
- defi-protocol-templates is published by @wshobson/agents at https://github.com/wshobson/agents.
- How many GitHub stars does defi-protocol-templates have?
- defi-protocol-templates has 32.4K GitHub stars.
- When was defi-protocol-templates first indexed?
- OrangeBot.AI first indexed defi-protocol-templates on Jan 20, 2026.
- How do I install defi-protocol-templates?
- Run: npx skills add https://github.com/wshobson/agents --skill defi-protocol-templates