Swapper Deposit
swapperfinance/swapper-toolkit
Deposit and bridge funds into a wallet or protocol using Swapper Finance.
A skill your agent uses when integrating with Compound V3 (Comet) for lending, borrowing, or building liquidation bots.
$ npx skills add ccashwell/evm-cortex --skill compound-patterns -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ccashwell/evm-cortex compound-patterns --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/compound-patterns .claude/skills/compound-patterns && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "compound-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/compound-patterns into .claude/skills/compound-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "compound-patterns", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ccashwell/evm-cortex/tree/main/skills/compound-patternsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ccashwell/evm-cortex --skill compound-patterns -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ccashwell/evm-cortex compound-patterns --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/compound-patterns .agents/skills/compound-patterns && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "compound-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/compound-patterns into .agents/skills/compound-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "compound-patterns", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ccashwell/evm-cortex --skill compound-patterns -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ccashwell/evm-cortex compound-patterns --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/compound-patterns .cursor/skills/compound-patterns && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "compound-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/compound-patterns into .cursor/skills/compound-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "compound-patterns", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ccashwell/evm-cortex.git --path skills/compound-patterns--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ccashwell/evm-cortex --skill compound-patterns -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ccashwell/evm-cortex compound-patterns --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/compound-patterns .gemini/skills/compound-patterns && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "compound-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/compound-patterns into .gemini/skills/compound-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "compound-patterns", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ccashwell/evm-cortex compound-patternsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ccashwell/evm-cortex --skill compound-patterns -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/compound-patterns .github/skills/compound-patterns && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "compound-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/compound-patterns into .github/skills/compound-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "compound-patterns", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ccashwell/evm-cortex --skill compound-patterns -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ccashwell/evm-cortex compound-patterns --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/compound-patterns .opencode/skills/compound-patterns && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "compound-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/compound-patterns into .opencode/skills/compound-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "compound-patterns", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
compound-patternsA skill your agent uses when integrating with Compound V3 (Comet) for lending, borrowing, or building liquidation bots.
Compound Patterns is an agent skill from ccashwell/evm-cortex. Use when integrating with Compound V3 (Comet) for lending, borrowing, or building liquidation bots. Covers single-asset lending, collateral management, absorb mechanics, and interest rate models.
Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Business, Finance & HR, covering Banking and insurance. The repository describes itself as: Ethereum protocol engineering squad for AI coding assistants. The licence is MIT.
Read from SKILL.md and the folder at commit f8f3301. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are solidity).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Compound Patterns loads about 1.3k tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 152 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ccashwell/evm-cortex at commit f8f3301, republished under its MIT licence (© ccashwell). 152 words, ~1,279 tokens.
.claude/skills/compound-patterns/SKILL.md (or your agent's skills folder).Compound V3 (Comet) is a fundamentally different design from V2. Each Comet deployment is a single-asset market — one base asset (e.g., USDC) with multiple collateral assets. There are no cTokens; the Comet contract itself tracks balances.
| Component | Description |
|---|---|
Comet | Core market contract (one per base asset) |
CometRewards | Claims COMP rewards for suppliers/borrowers |
Configurator | Governance-controlled parameter updates |
BulkerV2 | Batch operations including native ETH wrapping |
import {IComet} from "./interfaces/IComet.sol";
IComet comet = IComet(COMET_USDC);
// Supply base asset (earn interest)
IERC20(usdc).approve(address(comet), amount);
comet.supply(usdc, amount);
// Withdraw base asset
comet.withdraw(usdc, amount);
// Use type(uint256).max for full withdrawal// Supply collateral (does NOT earn interest)
IERC20(weth).approve(address(comet), amount);
comet.supply(weth, amount);
// Withdraw collateral
comet.withdraw(weth, amount);
// Check collateral balance
uint256 collateral = comet.collateralBalanceOf(account, weth);// Borrow base asset against collateral
// Simply withdraw more base than you supplied
comet.withdraw(usdc, borrowAmount);
// Repay borrow — supply base asset
IERC20(usdc).approve(address(comet), repayAmount);
comet.supply(usdc, repayAmount);// Positive = supplying, negative = borrowing
int256 balance = comet.balanceOf(account);
// Check if account is liquidatable
bool isLiquidatable = comet.isLiquidatable(account);
// Get borrow balance (always positive)
uint256 borrowBalance = comet.borrowBalanceOf(account);
// Check if an action is allowed
bool canBorrow = comet.isBorrowCollateralized(account);// Compound V3 uses "absorb" instead of traditional liquidation
// Anyone can call absorb on an underwater account
address[] memory accounts = new address[](1);
accounts[0] = underwaterAccount;
comet.absorb(msg.sender, accounts);
// After absorb, protocol holds the collateral
// Buy collateral at a discount through the Comet contract
uint256 reserves = comet.getCollateralReserves(weth);
comet.buyCollateral(weth, minAmount, baseAmount, recipient);Compound V3 uses a kinked rate model:
if utilization <= kink:
borrowRate = baseBorrowRate + (utilization * borrowRateSlopeLow)
else:
borrowRate = baseBorrowRate + (kink * borrowRateSlopeLow)
+ ((utilization - kink) * borrowRateSlopeHigh)uint256 utilization = comet.getUtilization();
uint256 supplyRate = comet.getSupplyRate(utilization);
uint256 borrowRate = comet.getBorrowRate(utilization);
// Rates are per-second, scaled by 1e18
// APR = rate * SECONDS_PER_YEARimport {ICometRewards} from "./interfaces/ICometRewards.sol";
ICometRewards rewards = ICometRewards(COMET_REWARDS);
// Claim COMP rewards
rewards.claim(cometAddress, account, true); // true = accrue first
// Check pending rewards
ICometRewards.RewardOwed memory owed = rewards.getRewardOwed(cometAddress, account);
// owed.token = COMP address, owed.owed = claimable amountcontract CometIntegration {
IComet public immutable comet;
address public immutable baseToken;
constructor(address _comet) {
comet = IComet(_comet);
baseToken = IComet(_comet).baseToken();
}
function supplyBase(uint256 amount) external {
IERC20(baseToken).transferFrom(msg.sender, address(this), amount);
IERC20(baseToken).approve(address(comet), amount);
comet.supply(baseToken, amount);
}
function supplyCollateral(address asset, uint256 amount) external {
IERC20(asset).transferFrom(msg.sender, address(this), amount);
IERC20(asset).approve(address(comet), amount);
comet.supply(asset, amount);
}
function borrow(uint256 amount) external {
comet.withdraw(baseToken, amount);
IERC20(baseToken).transfer(msg.sender, amount);
}
function isHealthy() external view returns (bool) {
return !comet.isLiquidatable(address(this));
}
}isLiquidatable() to monitor health before withdrawalsBulkerV2 for batching operations and native ETH supportgetAssetInfo()© ccashwell, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/compound-patterns of ccashwell/evm-cortex.
Open the folder on GitHubat commit f8f3301
Compound Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Compound Patterns this skillccashwell/evm-cortex | 131 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Swapper Depositswapperfinance/swapper-toolkit | 852 | — | ~1.8k | Automated safety check: Pass | MIT | |
| Okx Cex Earnokx/agent-skills | 186 | 2 repos | ~3.3k | Automated safety check: Pass | MIT | |
| Buffettdigoal/blog | 8.6k | 1 repos | ~2.7k | Automated safety check: Pass | GPL-2.0 | |
| Solana Payments Wallets Tradingnpc-live/clawfirm | 156 | 1 repos | ~4.7k | Automated safety check: Pass | MIT | |
| Oracle Flashloan Analysisquillai-network/quillshield_skills | 129 | — | ~2.8k | Automated safety check: Pass | MIT |
swapperfinance/swapper-toolkit
Deposit and bridge funds into a wallet or protocol using Swapper Finance.
okx/agent-skills
Manages OKX Simple Earn (flexible savings/lending), Flash Earn, On-chain Earn (staking/DeFi), Dual Investment (DCD/双币赢), and AutoEarn (自动赚币) via the okx CLI.
digoal/blog
Activates Warren Buffett's complete investment thinking system.
npc-live/clawfirm
Pay people in SOL or USDC, buy and sell tokens, check prices, discover trending and new tokens, create and manage Solana wallets, stake SOL, earn yield through lending and managed vaults, borrow…
quillai-network/quillshield_skills
Detects price oracle manipulation and flash loan attack vectors in DeFi smart contracts.
ibuilder/massing
Reason like a master builder — one mind holding an entire built-asset project from raw land through design, construction, handover, operations, and disposition, anywhere in the world.
ccashwell/evm-cortex
A skill your agent uses when preparing for a security audit, performing reconnaissance on a new codebase, or creating a protocol overview.
ccashwell/evm-cortex
A skill your agent uses when integrating with Aave V3 for lending, borrowing, flash loans, or building on top of Aave markets.
ccashwell/evm-cortex
Access control design patterns for Solidity protocols. An agent skill from ccashwell/evm-cortex.
ccashwell/evm-cortex
A skill your agent uses when running a local Ethereum node with Anvil.
ccashwell/evm-cortex
A skill your agent uses when performing systematic breadth-first review of all contracts during a security audit.
ccashwell/evm-cortex
A skill your agent uses when performing deep analysis of specific findings or high-risk areas during a security audit.
Categories
A skill your agent uses when integrating with Compound V3 (Comet) for lending, borrowing, or building liquidation bots. Compound Patterns is an agent skill from ccashwell/evm-cortex. Use when integrating with Compound V3 (Comet) for lending, borrowing, or building liquidation bots.
Compound Patterns fits situations like: integrating with Compound V3 (Comet) for lending; building liquidation bots.
Run `npx skills add ccashwell/evm-cortex --skill compound-patterns -a claude-code`. Or copy the skill folder (skills/compound-patterns in ccashwell/evm-cortex) into .claude/skills/compound-patterns in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ccashwell/evm-cortex --skill compound-patterns -a codex`. Or copy the skill folder (skills/compound-patterns in ccashwell/evm-cortex) into .agents/skills/compound-patterns in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ccashwell/evm-cortex --skill compound-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/compound-patterns, .gemini/skills/compound-patterns, .github/skills/compound-patterns and .opencode/skills/compound-patterns in your project.
SKILL.md names no scripts, command-line tools or credentials: Compound Patterns is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Compound Patterns is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.3k tokens (SKILL.md is roughly 5.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Compound Patterns: Swapper Deposit (swapperfinance/swapper-toolkit, 852 stars), Okx Cex Earn (okx/agent-skills, 186 stars), Buffett (digoal/blog, 8.6k stars) and Solana Payments Wallets Trading (npc-live/clawfirm, 156 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ccashwell (a GitHub user) maintains it in ccashwell/evm-cortex, which has 131 GitHub stars. The repository holds 89 skills in this directory. The repository was last updated on September 30, 2026.
Source: ccashwell/evm-cortex on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.