defi-protocol-templates
Build DeFi Protocol Templates
DeFi teams need clear starting points for common protocol patterns. This skill provides Solidity-oriented templates and review prompts for staking, AMMs, governance, and flash loans.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "defi-protocol-templates" from https://skillstore.io/skills/wshobson-defi-protocol-templates.md and its manifest at https://skillstore.io/api/skills/wshobson-defi-protocol-templates/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "defi-protocol-templates". Create a staking rewards plan for an LP token.
Expected outcome:
A structured plan covering token inputs, reward accounting, stake and withdraw actions, events, and audit checks.
Using "defi-protocol-templates". Review the AMM example before adapting it.
Expected outcome:
A review that explains reserves, share minting, swap pricing, fee assumptions, and missing slippage protections.
Using "defi-protocol-templates". Assess the flash loan flow for safety gaps.
Expected outcome:
A checklist covering receiver trust, callback behavior, repayment verification, reentrancy, fee handling, and integration tests.
Security Audit
Medium RiskAll static findings are false positives caused by Solidity require statements and Markdown code fences. No prompt injection, host command execution, or system reconnaissance was found. One medium semantic concern remains because the skill markets simplified value-bearing contract examples as production-ready.
Confirmed security concerns (1)
Risk Factors
⚡ Contains scripts (16)
⚙️ External commands (7)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/wshobson-defi-protocol-templates/audits/7?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/wshobson-defi-protocol-templates?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/wshobson-defi-protocol-templates?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/wshobson-defi-protocol-templates/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/wshobson-defi-protocol-templates.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA · BibTeX · CFF)
APA citation
wshobson. (2026). defi-protocol-templates security audit report (audit version 7) [Author version unspecified]. Skillstore. https://skillstore.io/skills/wshobson-defi-protocol-templates/audits/7BibTeX citation
@techreport{wshobson-wshobson-defi-protocol-templates-2026,
author = {wshobson},
title = {defi-protocol-templates security audit report (audit version 7)},
institution = {Skillstore},
year = {2026},
number = {7},
url = {https://skillstore.io/skills/wshobson-defi-protocol-templates/audits/7},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "defi-protocol-templates security audit report (audit version 7)"
version: "unspecified"
type: report
authors:
- name: "wshobson"
date-released: "2026-07-07"
url: "https://skillstore.io/skills/wshobson-defi-protocol-templates/audits/7"
identifiers:
- type: other
value: "skillstore:wshobson-defi-protocol-templates:audit:7"
description: "Skillstore immutable audit report identifier"
Compare variants
2 installable variantsEach author remains a separate installable skill. The recommended variant is ranked by Skillstore evidence.
Why this variant is first
wshobson-defi-protocol-templates
2026-08-21
sickn33-defi-protocol-templates
2026-08-21
Skillstore Score
Why this score Evidence Confidence: HighWhat You Can Build
Prototype A Staking Product
Create a staking rewards outline with deposit, withdrawal, reward accounting, and exit flows.
Plan Liquidity Pool Mechanics
Use the AMM example to discuss reserves, shares, swap fees, and liquidity removal behavior.
Review Governance And Flash Loans
Map voting periods, proposal thresholds, receiver callbacks, fees, and repayment checks before implementation.
Try These Prompts
Create a staking rewards outline for an ERC-20 token. Include state, user actions, events, and audit questions.
Adapt the AMM template for two ERC-20 tokens. Explain reserve updates, LP shares, fees, and slippage controls.
Design a governance flow using token voting. Include proposal thresholds, voting windows, execution checks, and timelock needs.
Review the flash loan template for production risks. Identify missing controls, repayment assumptions, and test cases.
Best Practices
- Treat every template as a starting point, not a deployable contract.
- Add unit tests, fuzz tests, integration tests, and invariant checks before deployment.
- Use independent security review for any contract that can hold user funds.
Avoid
- Do not deploy the snippets directly to mainnet.
- Do not assume referenced resource files exist in the installed package.
- Do not add flash loan or AMM logic without slippage, access, and reentrancy review.
Frequently Asked Questions
Can I deploy these contracts as written?
Which protocol patterns are included?
Does the skill include a lending contract?
Does it work with Claude, Codex, and Claude Code?
Are tests or deployment scripts included?
What should I review first?
Developer Details
Author
wshobsonLicense
MIT
Skillstore revision
r1
Version notice
The author did not declare a version.
Repository
https://github.com/wshobson/agents/tree/main/plugins/blockchain-web3/skills/defi-protocol-templatesRef
36e07d5e13068e5be64447e8f20b427cf2cbd21a
Maintenance freshness
7/18/2026
Usage
10 downloads · 229 views
File structure
📄 SKILL.md