add-vault-abi-methods
Makes vault smart contract ABI methods available within the vault class definition.
Install
mkdir -p .claude/skills/add-vault-abi-methods && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3555" && unzip -o skill.zip -d .claude/skills/add-vault-abi-methods && rm skill.zipInstalls to .claude/skills/add-vault-abi-methods
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Expose vault smart contract ABI methods in the vault classKey capabilities
- →Identify vault proxy classes
- →Load ABI files for smart contracts
- →Create accessor methods for contract interaction
- →Write tests using Anvil mainnet forks
How it works
It guides the user through identifying the correct proxy class, loading the relevant ABI from the repository, and implementing accessor methods that wrap JSON-RPC calls.
Inputs & outputs
When to use add-vault-abi-methods
- →Exposing contract read methods
- →Adding support for new contract ABI actions
- →Mapping vault methods to ABI definitions
About this skill
Add vault ABI methods
This is a skill description to add smart contract
Inputs
- Vault protocol name
- Smart contract address and a blockchain as a blockchain explorer link
- What methods to cover
Vault classes
Vault protocol classes can be found in eth_defi/erc_4626/vault_protocol folder. Each vault protocol has its own class. There are 40+ protocols. Some protocol share classes and extend other protocols.
Smart contracts
Each vault class wraps a JSON-RPC calls to an Ethereum smart contract. These smart contracts are described by ABI files in eth_defi/abi folder.
Step 1) Identify the proxy class
Identify the proxy class used for the vault protocol.
- Identify the proxy class under
eth_defi/erc_4626/vault_protocolfolder. - The protocol might not have a proxy class. In this case report this and abort.
Step 2) Identify ABI file
Identify ABI file we should use for the task.
- Check folder
eth_defi/abifor already downloded ABI files - Check if the ABI files we are similar. If they are not, summarise the differences and ask the user how to proceed, then stop.
Step 3) Add a ABI file loading to the vault protocol proxy class
See YearnV3Vault.vault_contract property as an example.
Step 4) Find methods relevant for the task
- Read ABI file
- Read protocol documentation
- Identify relevant smart contract methods
Step 5) Create accessor methods
See IPORVault.get_performance_fee() method as an example.
- How to call the smart contract
- How to interpret the result
Step 6) Write test case
See test_ipor_fee test case as an example.
- Write the test using Anvil mainnet fork based method
- Use the latest block number for the named chain, use
get-block-numberskill if needed for the test case - Run it
- Fix potential issues
Step 7) Check regression
See we did not break anything by accident.
Run all vault tests with the command:
source .local-test.env && poetry run pytest -n auto -k vault_protocol
Step 8) Report results to back
- Findings on how the smart contract functions operate and how the results are translated
- Created files
- Created accessor methods
When not to use it
- →When the protocol lacks a proxy class
- →When ABI files are incompatible with existing definitions
Prerequisites
Limitations
- →Requires manual identification of relevant methods from documentation
How it compares
This automates the integration of new smart contract methods into existing vault classes using a standardized testing and validation workflow.
Compared to similar skills
add-vault-abi-methods side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| add-vault-abi-methods (this skill) | 1 | 7mo | Review | Advanced |
| fastapi-templates | 520 | 2mo | No flags | Intermediate |
| fastapi-pro | 79 | 4mo | No flags | Advanced |
| springboot-patterns | 11 | 5mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by tradingstrategy-ai
View all by tradingstrategy-ai →You might also like
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
fastapi-pro
sickn33
Build high-performance async APIs with FastAPI, SQLAlchemy 2.0, and Pydantic V2. Master microservices, WebSockets, and modern Python async patterns. Use PROACTIVELY for FastAPI development, async optimization, or API architecture.
springboot-patterns
affaan-m
Spring Boot 架构模式、REST API 设计、分层服务、数据访问、缓存、异步处理和日志记录。适用于 Java Spring Boot 后端工作。
backend-development
skillcreatorai
Backend API design, database architecture, microservices patterns, and test-driven development. Use for designing APIs, database schemas, or backend system architecture.
dotnet-backend-patterns
wshobson
Master C#/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications. Covers async/await, dependency injection, Entity Framework Core, Dapper, configuration, caching, and testing with xUnit. Use when developing .NET backends, reviewing C# code, or designing API architectures.
laravel-specialist
Jeffallan
Use when building Laravel 10+ applications requiring Eloquent ORM, API resources, or queue systems. Invoke for Laravel models, Livewire components, Sanctum authentication, Horizon queues.