sickn33 avatar

Defi Protocol Templates

This gives you production-ready Solidity contracts for common DeFi primitives: staking with reward distribution, a constant product AMM with liquidity pools, governance tokens, and lending protocols. The templates use OpenZeppelin for security basics like reentrancy guards and include the math you'd expect (reward per token calculations, liquidity share formulas, swap pricing with 0.3% fees). It's solid scaffolding if you're prototyping a DeFi protocol or learning how these mechanisms work under the hood. The code is clean but simplified, so you'll want to add proper access controls, emergency pauses, and thorough testing before putting real money on it. Saves you from writing the constant product formula from scratch for the hundredth time.

skills.sh installs
187
GitHub stars
39.4K
last updated
Jun 3, 2026

Install

$ npx -y skills add sickn33/antigravity-awesome-skills --skill defi-protocol-templates --agent claude-code

Installs into .claude/skills of the current project.

Files

Supporting material availability

This catalog copy contains the inline guidance below, but does not include the following supporting paths. They are external prerequisites, not bundled files:

  • <support-root>/references/staking.md
  • <support-root>/references/liquidity-pools.md
  • <support-root>/references/governance-tokens.md
  • <support-root>/references/lending-protocols.md
  • <support-root>/references/flash-loans.md
  • <support-root>/assets/staking-contract.sol
  • <support-root>/assets/amm-contract.sol
  • <support-root>/assets/governance-token.sol
  • <support-root>/assets/lending-protocol.sol

Sponsors

Details

Repository
github.com/sickn33/antigravity-awesome-skills
Categories
Finance & Trading, Web3 & Blockchain
First seen
Jun 3, 2026

More from sickn33/antigravity-awesome-skills

All 708
1aradotso avatarhyperliquid-grid-trading-botaradotso/trending-skillshyperliquid grid trading bot184skills.sh installs
2aradotso avatarhyperliquid-trading-botaradotso/trending-skillshyperliquid trading bot178skills.sh installs
3stripe avatarstripe-projectsstripe/agent-toolkitstripe projects156skills.sh installs
4fakehank avatarstock-qualitative-analysisfakehank/stock_qualitative_analysis_skillsstock qualitative analysis148skills.sh installs
5workersio avatarsolana-auditworkersio/specsolana audit131skills.sh installs
6bankrbot avatarBankr Dev - Leverage Tradingbankrbot/claude-pluginsThis skill should be used when building perpetual trading bots, implementing leverage functionality, or adding position management. Covers Avantis integration, 0skills.sh installs