CtrlK
BlogDocsLog inGet started
Tessl Logo

defi-protocol-templates

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

54

Quality

61%

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 ./skills/defi-protocol-templates/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

39%Scale 1-5

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

This skill provides substantial, executable Solidity code for common DeFi patterns, which is its primary strength. However, it suffers from severe structural problems: all contract code is inlined rather than placed in referenced asset files, there is no deployment/testing workflow, the generic instructions add no value, and the referenced resource files don't exist in the bundle. The skill reads more like a code dump than an actionable guide for building DeFi protocols.

Suggestions

Move full contract implementations to the referenced asset files (assets/staking-contract.sol, etc.) and replace inline code with brief usage summaries and key customization points.

Add a concrete workflow section with steps for compilation, testing, deployment, and verification (e.g., 'forge build', 'forge test', 'forge verify-contract') including validation checkpoints before mainnet deployment.

Replace the generic Instructions section ('Clarify goals, constraints, and required inputs') with DeFi-specific guidance such as security considerations, common pitfalls (reentrancy, oracle manipulation), and a decision tree for choosing which template to use.

Provide the referenced bundle files or remove dead references to non-existent resources.

DimensionReasoningScore

Conciseness

The skill is extremely long (~400 lines) with four full smart contract implementations inlined. Claude already knows Solidity patterns like staking rewards, AMMs, and flash loans. The generic instructions section ('Clarify goals, constraints, and required inputs') adds no value. Most of this content should be in referenced files, not the SKILL.md body.

2 / 5

Actionability

The code examples are concrete, complete, and executable Solidity contracts with proper imports, events, and modifiers. However, there are no deployment instructions, test commands, or integration steps showing how to actually use these templates in a project. The 'Instructions' section is entirely generic and non-actionable.

4 / 5

Workflow Clarity

There is no workflow or sequencing for how to use these templates. Smart contract development involves critical steps (compilation, testing, deployment, verification, auditing) that are entirely absent. The 'Best Practices' section lists items like 'Test Thoroughly' and 'Audit Before Launch' without any concrete validation steps. For smart contracts handling financial assets, missing validation/verification workflows is a significant gap.

2 / 5

Progressive Disclosure

The skill references multiple resource files (references/*.md, assets/*.sol) but no bundle files are provided, making these dead references. More critically, the SKILL.md inlines ~300 lines of contract code that should clearly live in the referenced asset files, while the body should contain concise overviews and usage guidance pointing to those files.

2 / 5

Total

10

/

20

Passed

Description

83%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.

This is a well-constructed skill description that clearly communicates both what the skill does and when to use it. It names specific DeFi sub-domains (staking, AMMs, governance, lending) and includes a clear 'Use when' clause with relevant trigger terms. It could be slightly improved by adding more trigger term synonyms and elaborating on additional capabilities beyond template provision.

DimensionReasoningScore

Specificity

Lists several specific actions/domains: staking, AMMs, governance, and lending systems, plus mentions 'production-ready templates'. Minor gaps — doesn't elaborate on what each template includes or additional capabilities like testing, deployment, or auditing.

4 / 5

Completeness

Clearly answers both 'what' (implement DeFi protocols with production-ready templates for staking, AMMs, governance, and lending) and 'when' (use when building decentralized finance applications or smart contract protocols) with explicit trigger phrases.

5 / 5

Trigger Term Quality

Includes strong natural keywords like 'DeFi', 'staking', 'AMMs', 'governance', 'lending', 'smart contract', and 'decentralized finance'. Missing some common synonyms or variations like 'liquidity pool', 'yield farming', 'token swap', 'Solidity', or 'EVM'.

4 / 5

Distinctiveness Conflict Risk

Fairly distinct niche targeting DeFi protocol development specifically. Minor overlap risk with general smart contract or blockchain development skills, but the specific mention of DeFi sub-domains (staking, AMMs, governance, lending) helps differentiate it.

4 / 5

Total

17

/

20

Passed

Validation

90%

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

Validation10 / 11 Passed

Validation for skill structure

CriteriaDescriptionResult

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

10

/

11

Passed

Repository
administrakt0r/AI-Agents-Safe-Coding-Skills
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.