defi-protocol-templates

defi protocol templates

wshobson ↓ 8.1k
Claude Code
View source ↗

What it does

  • Building staking platforms with reward distribution
  • Implementing AMM (Automated Market Maker) protocols
  • Creating governance token systems
  • Integrating flash loan functionality

Requirements & configuration

  • Creating governance token systems
  • import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
  • require(amount > 0, "Cannot stake 0");
  • require(amount > 0, "Cannot withdraw 0");
  • require(shares > 0, "Shares = 0");

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

defi protocol templates

Source

Repository: https://github.com/wshobson/agents

defi-protocol-templates FAQ

What does the defi-protocol-templates skill do?

Implement DeFi protocols with production-ready templates for staking, AMMs, governance, and flash loans. Use when building decentralized finance applications or smart contract protocols. Building staking platforms with reward distribution Implementing AMM (Automated Market Maker) protocols

What does defi-protocol-templates require?

Creating governance token systems import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; require(amount > 0, "Cannot stake 0"); require(amount > 0, "Cannot withdraw 0"); require(shares > 0, "Shares = 0");

How do I install defi-protocol-templates?

Run: npx -y skills add https://github.com/wshobson/agents --skill defi-protocol-templates --agent claude-code — the source lives at github.com/wshobson/agents.

Maintain defi-protocol-templates?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

defi-protocol-templates on getagentictools
[![defi-protocol-templates on getagentictools](https://getagentictools.com/badge/skills/wshobson-agents-defi-protocol-templates.svg)](https://getagentictools.com/skills/wshobson-agents-defi-protocol-templates?ref=badge)
npx agentictools info skills/wshobson-agents-defi-protocol-templates

The second line is the CLI lookup for this page — handy in READMEs and docs.