
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-codeInstalls 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- Screen Reader Testing187
- Shellcheck Configuration186
- Smtp Penetration Testing186
- Slo Implementation184
- Windows Privilege Escalation184
- Employment Contract Templates183
- Spark Optimization182
- Linux Shell Scripting181
- Nx Workspace Patterns180
- Red Team Tools179
- Senior Frontend178
- Istio Traffic Management177
- React Flow Architect176
- Html Injection Testing174
- Code Simplifier173
- Postgresql Optimization173
- Wireshark Analysis173
- 007171
- Documentation171
- React Flow Node Ts167
- Agent Orchestrator166
- Ai Ml165
- Avoid Ai Writing165
- Android Jetpack Compose Expert163