CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

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.

64

Quality

80%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

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

Quality

Content

58%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 skill's core value — four complete, executable Solidity templates — is strong, but it is undermined by generic filler sections ('Instructions', 'Do not use this skill when'), no workflow or validation guidance for security-critical contract deployment, and a monolithic single-file layout that inlines all contract source instead of splitting templates into reference files.

Suggestions

Replace the generic 'Instructions' section with a concrete, sequenced workflow (e.g., 1. select the matching template below, 2. adapt parameters, 3. run forge test / hardhat test, 4. verify with a checklist before deploy), since contract deployment is high-risk and currently has no validation checkpoints.

Move each full contract into its own reference file (e.g. references/staking.md, references/amm.md, references/governance.md, references/flash-loan.md) and keep SKILL.md as a lean overview that links to them one level deep.

Delete the zero-information sections ('Do not use this skill when' bullets and the description-duplicating intro) to free context tokens.

DimensionReasoningScore

Conciseness

The body includes filler that earns no tokens: 'Clarify goals, constraints, and required inputs. / Apply relevant best practices and validate outcomes' and the tautological 'Do not use this skill when the task is unrelated to defi protocol templates', plus an intro sentence duplicating the description. The code templates themselves are dense and appropriate, so this is mostly efficient with some removable padding rather than severely verbose.

3 / 5

Actionability

Four complete, executable Solidity contracts (StakingRewards, SimpleAMM, GovernanceToken/Governor, FlashLoanProvider) with SPDX pragmas, OpenZeppelin imports, and internal helpers are provided copy-paste ready. They cover the common DeFi cases named in the description, matching the fully-executable anchor.

5 / 5

Workflow Clarity

No sequenced process exists — the 'Instructions' section is generic filler with no steps, and for security-critical smart contract work there are no validation checkpoints (no testing commands, no deployment steps, no verify-checklist). 'Best Practices' says 'Test Thoroughly' and 'Audit Before Launch' but gives nothing executable, leaving many gaps with validation absent.

2 / 5

Progressive Disclosure

Sections are clearly headed ('## Staking Contract', '## AMM', etc.) making navigation reasonable, but ~370 lines of full contract source are inlined in SKILL.md where each template clearly belongs in a references/ file (e.g. references/staking.md), and no bundle files exist at all. This matches the 'some structure, but content that should be separate is inline' anchor.

3 / 5

Total

13

/

20

Passed

Description

92%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 strong description: concrete multi-domain capability list, explicit third-person 'Use when...' trigger clause, and a distinct DeFi niche. Only minor gap is the omission of a few natural synonyms (flash loans, yield farming, Solidity) that appear in the body but not the description.

DimensionReasoningScore

Specificity

The description lists multiple concrete capabilities — 'templates for staking, AMMs, governance, and lending systems' — naming four distinct protocol domains, matching the comprehensive-coverage anchor. It is not merely naming a domain; the enumerated protocol types are specific concrete deliverables.

5 / 5

Completeness

It explicitly answers both questions: 'what' is 'Implement DeFi protocols with production-ready templates for staking, AMMs, governance, and lending systems' and 'when' is 'Use when building decentralized finance applications or smart contract protocols', with concrete trigger phrasing and third-person voice.

5 / 5

Trigger Term Quality

Good natural keyword coverage: 'staking', 'AMMs', 'governance', 'lending', 'decentralized finance applications', 'smart contract protocols'. However, common variations the body covers ('flash loans', 'yield farming', 'liquidity pools', 'Solidity') are missing from the description, so it falls just short of the comprehensive anchor.

4 / 5

Distinctiveness Conflict Risk

'DeFi protocol templates' is a clear niche with distinct trigger terms (staking, AMM, governance, lending) that are unlikely to fire for unrelated skills; minimal overlap risk with other skill descriptions.

5 / 5

Total

19

/

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

rmyndharis/antigravity-skills

Path

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.