add-vault-protocol

Add a new ERC-4626 vault protocol to eth_defi with ABIs, tests, and docs.

823|185|Updated Jan 30, 2022
One-click install
npx skills add https://github.com/tradingstrategy-ai/web3-ethereum-defi --skill add-vault-protocol
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-vault-protocol
Source: https://github.com/tradingstrategy-ai/web3-ethereum-defi/tree/main/.claude/skills/add-vault-protocol
Command: npx skills add https://github.com/tradingstrategy-ai/web3-ethereum-defi --skill add-vault-protocol

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables you to add support for a new ERC-4626 vault protocol into the eth_defi library, automating the end-to-end integration steps.

Core Features & Use Cases

  • Protocol onboarding: generate the vault protocol scaffold, ABIs, and tests for a new vault like IPOR, Plutus, or Morpho.
  • Automated wiring: update feature enums, classification probes, vault instantiation, risk and fee stubs, and metadata.
  • Documentation and testing: create docs stubs and test templates to validate detection and integration.

Quick Start

Run the add-vault-protocol workflow to scaffold and integrate a new vault protocol given the vault address, protocol name, slug, chain, and explorer; the AI will guide you through generating the necessary code, tests, and docs.

Frequently Asked Questions about add-vault-protocol

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a new ERC-4626 vault protocol to my DeFi library?

Adding a new ERC-4626 vault protocol requires generating a protocol-specific vault class, updating feature enums, implementing detection probes, and creating ABI metadata. This skill automates that end-to-end scaffolding, tests, and documentation.

What do I need to scaffold a vault protocol integration?

Scaffolding a vault protocol integration requires the vault address, protocol name, slug, chain, and explorer. The workflow uses these inputs to automatically generate ABI code, risk and fee stubs, and test templates.

How does automated vault detection work for ERC-4626 protocols?

Automated vault detection uses classification probes to identify specific ERC-4626 protocol features. The skill implements these probes alongside feature enum updates to correctly route and instantiate new vault classes.

Does this integration workflow support any DeFi chain and explorer?

Yes, the vault protocol integration workflow accepts chain and explorer parameters as inputs, allowing you to onboard ERC-4626 vaults across different networks like IPOR, Plutus, or Morpho into your library.

What is the best way to generate tests and docs for a new vault protocol?

The best way to generate tests and docs for a new vault protocol is using an automated workflow that creates documentation stubs and test templates to validate detection and integration directly from the provided vault address.