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.

72

1.26x
Quality

57%

Does it follow best practices?

Impact

100%

1.26x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./tests/ext_conformance/artifacts/agents-wshobson/blockchain-web3/skills/defi-protocol-templates/SKILL.md

The canonical home for this skill is defi-protocol-templates in wshobson/agents

SKILL.md
Quality
Evals
Security

Quality

Content

40%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 content is a well-organized catalog of four genuinely complete Solidity templates, but it fails progressive disclosure twice over: ~330 lines of contract code are inlined in SKILL.md despite the body claiming the same templates exist as asset files, and none of the nine referenced bundle files actually exist in the skill directory. There is also no workflow or validation guidance for adapting and deploying these financially risky contracts.

Suggestions

Move the four full contracts out of SKILL.md into the assets/*.sol files the Resources section already names, keeping only a template-selection summary (capabilities, key functions, trade-offs) plus pointers in the body.

Create the referenced reference and asset files (references/staking.md, assets/staking-contract.sol, etc.) or remove them from the Resources section — currently all nine listed paths are dangling.

Add a build workflow with validation checkpoints (choose template → adapt parameters → write/run unit and fuzz tests → audit → deploy), since these are batch/financial contracts the rubric requires validation steps for.

Trim the Governance section (the ERC20Votes hook overrides are boilerplate) and consolidate the 'Best Practices' and 'Common DeFi Patterns' lists, which repeat generic knowledge Claude already has.

DimensionReasoningScore

Conciseness

The body inlines four complete Solidity contracts (~330 lines of code: StakingRewards, SimpleAMM, GovernanceToken/Governor, FlashLoanProvider) that the Resources section itself says exist as separate asset files — duplicating bundle content in SKILL.md is padded and token-inefficient. It sits at the score-2 anchor ('noticeably verbose; several unnecessary explanations or padded sections') rather than 1 because there is no explanatory filler or re-teaching of concepts Claude already knows.

2 / 5

Actionability

The four inline contracts are complete, compilable Solidity (real imports, full function bodies, OpenZeppelin integration), matching the score-4 anchor 'mostly executable guidance; concrete code or commands with minor gaps'. It falls short of 5 because there is no guidance for adapting the templates — no parameterization notes, test commands, or deployment examples, and the flash-loan receiver and Governor.execute are stubs ('// Execute proposal logic here', '// ...').

4 / 5

Workflow Clarity

There is no build/usage workflow at all — the body is a template catalog with a 'When to Use' bullet list and a generic 'Best Practices' list, but no sequence for selecting, adapting, testing, or deploying a protocol. This matches the score-2 anchor ('rough sequence present but many gaps; steps poorly defined; validation absent') — the ordered section structure gives a rough progression, but there are no defined steps and no validation checkpoints, which the scoring notes require for financial contracts handling real funds.

2 / 5

Progressive Disclosure

The Resources section references nine bundle paths (references/staking.md, assets/staking-contract.sol, etc.), but none of the references/, scripts/, or assets/ directories exist — every referenced path is dangling, and the full contract content that belongs in those files is instead inlined in the body. This matches the score-2 anchor ('minimal structure; content that clearly belongs in separate files is inlined') rather than 1 because the body does have clear section headers and a consolidated, well-labeled Resources list.

2 / 5

Total

10

/

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 well-constructed description: third-person voice, concrete capability list, and an explicit 'Use when...' clause covering both what the skill does and when to use it. Its main weakness is modest breadth in triggers — body-covered capabilities like flash loans and yield farming are absent from the trigger list, and 'smart contract protocols' is a slightly broad trigger.

DimensionReasoningScore

Specificity

The description lists several concrete capabilities — 'templates for staking, AMMs, governance, and lending systems' — which matches the anchor 'lists several specific actions; minor gaps in coverage'. It is not a 5 because two capabilities covered in the body (flash loans, yield farming) are omitted and 'production-ready templates' is a mild claim rather than a concrete action.

4 / 5

Completeness

Both parts are explicit: 'what' ('Implement DeFi protocols with production-ready templates for staking, AMMs, governance, and lending systems') and 'when' ('Use when building decentralized finance applications or smart contract protocols'). It matches the score-4 anchor — the 'when' clause is present but general and could name more concrete trigger phrases to reach score 5.

4 / 5

Trigger Term Quality

It includes natural terms users would say — 'staking', 'AMMs', 'governance', 'lending', 'DeFi', 'decentralized finance applications', 'smart contract protocols' — giving good keyword coverage with only a few natural terms missing (e.g., 'yield farming', 'liquidity pools', 'DEX'). This fits the score-4 anchor and falls short of the score-5 anchor's 'comprehensive coverage including synonyms'.

4 / 5

Distinctiveness Conflict Risk

The DeFi protocol-template niche with triggers like 'staking' and 'AMMs' is mostly distinct, matching the score-4 anchor 'mostly distinct; minor overlap risk'. It is not a 5 because the trigger phrase 'smart contract protocols' is broad enough to overlap with generic Solidity/smart-contract development skills.

4 / 5

Total

16

/

20

Passed

Validation

93%

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

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

referenced_paths_exist

Referenced path issues: 9 missing

Warning

Total

15

/

16

Passed

Repository
Dicklesworthstone/pi_agent_rust
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.