defi-protocols

Scaffold DeFi protocols for AMMs, lending, yield, and oracles.

1|Updated Nov 18, 2025
One-click install
npx skills add https://github.com/pluginagentmarketplace/custom-plugin-blockchain --skill defi-protocols
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: defi-protocols
Source: https://github.com/pluginagentmarketplace/custom-plugin-blockchain/tree/main/skills/defi-protocols
Command: npx skills add https://github.com/pluginagentmarketplace/custom-plugin-blockchain --skill defi-protocols

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pyyaml, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

DeFi protocol development is complex and error-prone, especially when coordinating AMMs, lending, yield strategies, and oracle integration. This skill provides a standardized approach, reusable patterns, and validated configuration to streamline end-to-end protocol design.

Core Features & Use Cases

  • End-to-end DeFi protocol scaffolding for AMMs, lending, yield optimization, and price oracles.
  • Parameter-driven configuration with validation rules, retry policies, and logging to ensure reliable deployments.
  • Reusable references and patterns: a library of best practices, architecture diagrams, and code templates.

Quick Start

Invoke the defi-protocols skill with a protocol_type (amm, lending, yield, oracle, or flash_loan) and a blockchain chain to initialize a guided DeFi protocol development session.

Frequently Asked Questions about defi-protocols

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

FAQPage Schema
How do I build DeFi protocols for AMMs and lending markets?

To build DeFi protocols for AMMs and lending markets, use a standardized approach with reusable patterns and validated configuration to streamline end-to-end design. Parameter-driven configuration with validation rules ensures reliable deployments.

How do I integrate price oracles into smart contracts?

Integrate price oracles into smart contracts using guided development sessions that provide architecture diagrams and code templates. This ensures proper oracle integration alongside yield strategies within your DeFi protocol design.

What's the best way to scaffold a yield optimization strategy on a blockchain?

The best way to scaffold a yield optimization strategy on a blockchain is invoking a guided session with a specified protocol_type and chain. This initializes parameter-driven configuration with validation rules, retry policies, and logging to ensure reliable deployments.

Can I use this approach for flash loan protocol development?

Yes, you can use this approach for flash loan protocol development. It supports multiple protocol types including flash loans, providing reusable references, best practices, and code templates for deterministic task execution and validation.

Does this DeFi development approach support custom validation rules and logging?

Yes, this DeFi development approach supports custom validation rules and logging via YAML frontmatter. It defines a formal skill interface including parameters, retry_config, and logging to support deterministic task execution and integration.

What are the limitations of using predefined patterns for DeFi protocol design?

Predefined patterns for DeFi protocol design limit flexibility when unconventional architectures are needed. While they provide best practices and validated configurations for AMMs and oracles, highly customized protocol logic may require manual implementation outside the reusable templates.