CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

defi-protocol-templates

Implement DeFi protocols with production-ready templates for staking, AMMs, governance, and flash loans. Use when building decentralized finance applications or smart contract protocols.

62

Quality

78%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Medium

Suggest reviewing before use

Fix and improve this skill with Tessl

tessl review fix ./plugins/blockchain-web3/skills/defi-protocol-templates/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

70%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body delivers strong, complete code and a clean one-level-deep reference split, but it behaves as a code library rather than a guided skill: there is no workflow for adapting, testing, or deploying the templates, which is the weakest area. Minor duplication of the frontmatter description also costs some token efficiency.

Suggestions

Add a short workflow section for using the templates: choose the protocol type, adapt constructor/parameters (e.g., make rewardRate configurable instead of hard-coded), run tests, then deploy — with an explicit validation checkpoint before deployment.

Include a testing/validation step (e.g., a Foundry/Hardhat test command or checklist) since deploying smart contracts is destructive and currently has no verification guidance.

Trim the duplicated frontmatter content: the intro line and the 'When to Use This Skill' bullets restate the description, so replace them with content that adds new information, and map each deferred topic (governance, flash loans) to its section in references/details.md.

DimensionReasoningScore

Conciseness

The body contains essentially no concept over-explanation and the code is dense, but the opening line ("Production-ready templates for common DeFi protocols including staking, AMMs, governance, and flash loans") and the "When to Use This Skill" bullets fully restate the frontmatter description, which is duplicated tokens that could be trimmed.

4 / 5

Actionability

Two complete, executable Solidity contracts (StakingRewards and SimpleAMM) with imports, events, and modifiers are provided inline, and references/details.md supplies two more (GovernanceToken/Governor and FlashLoanProvider); the code is copy-paste ready and covers the four common DeFi cases.

5 / 5

Workflow Clarity

No sequence is described at all: there is no guidance on selecting or adapting a template, customizing parameters (e.g., the hard-coded rewardRate), testing, or deploying, and no validation steps for what is a high-stakes, effectively irreversible operation (deploying contracts). The 3-anchor requires steps to be listed, which they are not, while the rough implicit flow (pick a protocol type, copy the code) keeps it above the 1-anchor.

2 / 5

Progressive Disclosure

Content is reasonably split: staking and AMM inline, governance and flash loans in a real, one-level-deep, clearly signaled references/details.md ("More detailed templates and worked examples live in `references/details.md`"), matching the 4-anchor's good structure. It falls short of the 5-anchor because the single trailing pointer gives no per-topic mapping (e.g., which section covers governance vs flash loans).

4 / 5

Total

15

/

20

Passed

Description

75%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A solid description that clearly states what the skill provides (templates for four named DeFi protocol types) and gives an explicit 'Use when' clause. Its main weaknesses are a broad when-clause without concrete trigger phrases and missing natural synonyms like liquidity pool or yield farming.

DimensionReasoningScore

Specificity

"Implement DeFi protocols with production-ready templates for staking, AMMs, governance, and flash loans" names four concrete protocol areas, going beyond the 1-2 actions of the 3-anchor, but uses a single generic verb rather than the multiple distinct concrete actions of the 5-anchor and omits supporting actions like testing or deployment.

4 / 5

Completeness

Both what ("production-ready templates for staking, AMMs, governance, and flash loans") and when ("Use when building decentralized finance applications or smart contract protocols") are explicitly present, but the when-clause is broad and lacks the concrete trigger phrases of the 5-anchor.

4 / 5

Trigger Term Quality

Includes natural terms users would say ("DeFi", "staking", "AMM", "governance", "flash loans", "decentralized finance", "smart contract"), giving good keyword coverage, but misses common variations such as "liquidity pool", "yield farming", "DEX", or "Solidity".

4 / 5

Distinctiveness Conflict Risk

The DeFi template niche is clear and mostly distinct, but the trigger "smart contract protocols" is broad enough to overlap with generic Solidity development or smart-contract security skills.

4 / 5

Total

16

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

wshobson/agents

Path

plugins/blockchain-web3/skills/defi-protocol-templates/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.