compound-patterns

Integrate Compound V3 (Comet) supply, borrow, collateral, and absorb flows.

120|12|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ccashwell/evm-cortex --skill compound-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compound-patterns
Source: https://github.com/ccashwell/evm-cortex/tree/main/skills/compound-patterns
Command: npx skills add https://github.com/ccashwell/evm-cortex --skill compound-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enables developers to integrate with Compound V3 (Comet) for lending, borrowing, and building liquidation bots by modeling single-asset markets and collateral management.

Core Features & Use Cases

  • Support for supplying base asset, managing collateral, and borrowing against collateral in Comet-based markets.
  • Liquidation flow via absorb, collateral buyback, and reward awareness within a single integration pattern.
  • Real-world use: build automated bots that lend, collateralize, borrow, and absorb underwater accounts in a DeFi workflow.

Quick Start

Start by configuring a basic Comet integration scaffold for your base asset and run a minimal test harness.

Frequently Asked Questions about compound-patterns

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

FAQPage Schema
How do I integrate with Compound V3 Comet for lending and borrowing?

Integrate with Compound V3 Comet by modeling single-asset markets to manage base asset supply, collateral, and borrowing flows. This provides modular integration for supply, collateral management, and borrow operations within DeFi applications.

How does the absorb function work for Compound V3 liquidations?

The absorb function handles liquidation in Compound V3 by absorbing underwater accounts and transferring collateral to the protocol. Developers can then execute collateral buyback and claim Comet Rewards within a single liquidation workflow.

Can I build an automated liquidation bot for Compound V3 single-asset markets?

Yes, you can build automated liquidation bots for Compound V3 single-asset markets. The integration pattern supports supply, collateral management, borrowing, and absorb-based liquidation to automate DeFi workflows.

What is required to manage base assets and collateral assets in a Comet protocol?

Managing base and collateral assets in Comet requires modeling single-asset markets with modular integration. You must implement supply actions, collateral management, borrow operations, and safety checks guided by rate modeling.

Does Compound V3 Comet integration support Comet Rewards interaction?

Yes, Compound V3 Comet integration supports Comet Rewards interaction. The integration pattern incorporates reward awareness alongside absorb-based liquidation and collateral buyback for comprehensive DeFi management.

What safety checks and rate modeling guidance are needed for Solidity DeFi borrowing on Comet?

Solidity DeFi borrowing on Comet requires safety checks and rate modeling guidance to prevent unexpected liquidations. The integration pattern provides modular support to validate supply, collateral, and borrow flows securely.