Notebook To Strategy
tradingstrategy-ai/trade-executor
Transfer code from a backtesting Jupyter notebook to a Trade Executor strategy module
A skill your agent uses when implementing flash loan strategies including arbitrage, liquidation bots, collateral swaps, or debt refinancing.
$ npx skills add ccashwell/evm-cortex --skill flash-loan-usage -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ccashwell/evm-cortex flash-loan-usage --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/flash-loan-usage .claude/skills/flash-loan-usage && 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 "flash-loan-usage" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/flash-loan-usage into .claude/skills/flash-loan-usage/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "flash-loan-usage", 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/flash-loan-usageType 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 flash-loan-usage -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ccashwell/evm-cortex flash-loan-usage --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/flash-loan-usage .agents/skills/flash-loan-usage && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "flash-loan-usage" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/flash-loan-usage into .agents/skills/flash-loan-usage/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "flash-loan-usage", 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 flash-loan-usage -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ccashwell/evm-cortex flash-loan-usage --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/flash-loan-usage .cursor/skills/flash-loan-usage && 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 "flash-loan-usage" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/flash-loan-usage into .cursor/skills/flash-loan-usage/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "flash-loan-usage", 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/flash-loan-usage--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 flash-loan-usage -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ccashwell/evm-cortex flash-loan-usage --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/flash-loan-usage .gemini/skills/flash-loan-usage && 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 "flash-loan-usage" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/flash-loan-usage into .gemini/skills/flash-loan-usage/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "flash-loan-usage", 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 flash-loan-usageInstalls 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 flash-loan-usage -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/flash-loan-usage .github/skills/flash-loan-usage && 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 "flash-loan-usage" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/flash-loan-usage into .github/skills/flash-loan-usage/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "flash-loan-usage", 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 flash-loan-usage -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 flash-loan-usage --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/flash-loan-usage .opencode/skills/flash-loan-usage && 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 "flash-loan-usage" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/flash-loan-usage into .opencode/skills/flash-loan-usage/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "flash-loan-usage", 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.
flash-loan-usageA skill your agent uses when implementing flash loan strategies including arbitrage, liquidation bots, collateral swaps, or debt refinancing.
Flash Loan Usage is an agent skill from ccashwell/evm-cortex. Use when implementing flash loan strategies including arbitrage, liquidation bots, collateral swaps, or debt refinancing. Covers Aave V3, Uniswap, and Balancer flash loan patterns with receiver templates.
Its SKILL.md is about 1.6k 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. It works with Uniswap. 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.
Flash Loan Usage loads about 1.6k tokens when it runs. Until then it costs about 55 tokens; SKILL.md has 186 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). 186 words, ~1,649 tokens.
.claude/skills/flash-loan-usage/SKILL.md (or your agent's skills folder).| Provider | Fee | Multi-Asset | Notes |
|---|---|---|---|
| Aave V3 | 0.05% | Yes (flashLoan) | Most popular, widest asset support |
| Uniswap V2/V3 | 0.3% / pool fee | Yes (flash swap) | Built into swap, repay with other token |
| Uniswap V4 | 0% | Yes (flash accounting) | Enabled by PoolManager's delta-tracking which will always settle cleanly as long as the full delta is repaid within the unlock context. |
| Balancer V2 | 0% | Yes | Free, limited to Balancer vault assets |
| dYdX | 0% | Limited | Solo margin flash loans |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import {FlashLoanSimpleReceiverBase} from
"@aave/v3-core/contracts/flashloan/base/FlashLoanSimpleReceiverBase.sol";
import {IPoolAddressesProvider} from
"@aave/v3-core/contracts/interfaces/IPoolAddressesProvider.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
contract AaveFlashLoan is FlashLoanSimpleReceiverBase {
address public immutable owner;
constructor(IPoolAddressesProvider provider)
FlashLoanSimpleReceiverBase(provider)
{
owner = msg.sender;
}
function executeOperation(
address asset,
uint256 amount,
uint256 premium,
address initiator,
bytes calldata params
) external override returns (bool) {
require(msg.sender == address(POOL), "caller must be pool");
require(initiator == address(this), "untrusted initiator");
(uint8 action) = abi.decode(params, (uint8));
if (action == 1) _arbitrage(asset, amount);
else if (action == 2) _liquidate(asset, amount, params);
else if (action == 3) _collateralSwap(asset, amount, params);
uint256 repayment = amount + premium;
IERC20(asset).approve(address(POOL), repayment);
return true;
}
function execute(address asset, uint256 amount, bytes calldata params) external {
require(msg.sender == owner, "only owner");
POOL.flashLoanSimple(address(this), asset, amount, params, 0);
}
function _arbitrage(address asset, uint256 amount) internal {
// Buy low on DEX A, sell high on DEX B
// Profit must exceed the 0.05% premium
}
function _liquidate(address asset, uint256 amount, bytes calldata params) internal {
// Use borrowed funds to liquidate an underwater position
// Receive collateral at a discount, swap back to repay
}
function _collateralSwap(address asset, uint256 amount, bytes calldata params) internal {
// Repay existing debt, withdraw old collateral
// Swap to new collateral, deposit, re-borrow
}
}function executeMultiFlash(
address[] calldata assets,
uint256[] calldata amounts
) external {
uint256[] memory modes = new uint256[](assets.length);
// mode 0 = full repay, 1 = stable debt, 2 = variable debt
POOL.flashLoan(
address(this),
assets,
amounts,
modes,
address(this), // onBehalfOf
"", // params
0 // referralCode
);
}import {IUniswapV3FlashCallback} from
"@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3FlashCallback.sol";
contract UniV3Flash is IUniswapV3FlashCallback {
IUniswapV3Pool public immutable pool;
function initFlash(uint256 amount0, uint256 amount1) external {
pool.flash(address(this), amount0, amount1, abi.encode(msg.sender));
}
function uniswapV3FlashCallback(
uint256 fee0,
uint256 fee1,
bytes calldata data
) external override {
require(msg.sender == address(pool), "unauthorized");
address caller = abi.decode(data, (address));
// Use amount0 + amount1 here
// Repay: principal + fee
if (fee0 > 0) IERC20(pool.token0()).transfer(address(pool), amount0 + fee0);
if (fee1 > 0) IERC20(pool.token1()).transfer(address(pool), amount1 + fee1);
}
}import {IFlashLoanRecipient} from
"@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol";
import {IVault} from "@balancer-labs/v2-interfaces/contracts/vault/IVault.sol";
contract BalancerFlash is IFlashLoanRecipient {
IVault public constant VAULT = IVault(0xBA12222222228d8Ba445958a75a0704d566BF2C8);
function receiveFlashLoan(
IERC20[] memory tokens,
uint256[] memory amounts,
uint256[] memory feeAmounts,
bytes memory userData
) external override {
require(msg.sender == address(VAULT), "unauthorized");
// feeAmounts are 0 for Balancer
// Your logic here
for (uint256 i = 0; i < tokens.length; i++) {
tokens[i].transfer(address(VAULT), amounts[i] + feeAmounts[i]);
}
}
function execute(IERC20[] calldata tokens, uint256[] calldata amounts) external {
VAULT.flashLoan(this, tokens, amounts, "");
}
}1. Flash borrow X tokens of asset A from Aave
2. Swap A -> B on DEX₁ (where A is cheap)
3. Swap B -> A on DEX₂ (where A is expensive)
4. Repay X + premium to Aave
5. Keep profit (A_out - X - premium)Profit condition: output - input - premium - gas > 0
1. Monitor health factors via events or polling
2. Flash borrow the debt asset
3. Call liquidationCall() on Aave / absorb() on Compound
4. Receive discounted collateral
5. Swap collateral back to debt asset
6. Repay flash loan + premium
7. Keep liquidation bonus minus feesmsg.sender is the lending pool in callbacksinitiator is your own contract (prevents griefing)© 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/flash-loan-usage of ccashwell/evm-cortex.
Open the folder on GitHubat commit f8f3301
Flash Loan Usage 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 |
|---|---|---|---|---|---|---|
| Flash Loan Usage this skillccashwell/evm-cortex | 131 | — | ~1.6k | Automated safety check: Pass | MIT | |
| Notebook To Strategytradingstrategy-ai/trade-executor | 160 | — | ~1.1k | Automated safety check: Pass | Custom licence | |
| Building Blocksaustintgriffith/ethskills | 294 | — | ~2.9k | Automated safety check: Pass | None | |
| Oracle Flashloan Analysisquillai-network/quillshield_skills | 129 | — | ~2.8k | Automated safety check: Pass | MIT | |
| Octav APIinternet-court/internet-court-skill | 6.4k | — | ~3.8k | Automated safety check: Pass | MIT | |
| Uniswap SwapNethereum/Nethereum | 2.3k | — | ~2.1k | Automated safety check: Pass | MIT |
tradingstrategy-ai/trade-executor
Transfer code from a backtesting Jupyter notebook to a Trade Executor strategy module
austintgriffith/ethskills
DeFi legos and protocol composability on Ethereum and L2s. An agent skill from austintgriffith/ethskills.
quillai-network/quillshield_skills
Detects price oracle manipulation and flash loan attack vectors in DeFi smart contracts.
internet-court/internet-court-skill
Integrate with Octav API for cryptocurrency portfolio tracking, transaction history, and DeFi analytics across 50+ blockchain networks.
Nethereum/Nethereum
Swap tokens on Uniswap V2/V3/V4 using Nethereum (.NET/C). An agent skill from Nethereum/Nethereum.
alsk1992/CloddsBot
Deploy ERC20 tokens with Uniswap V4 pools on Base, Ethereum, Arbitrum
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.
Works with
Categories
A skill your agent uses when implementing flash loan strategies including arbitrage, liquidation bots, collateral swaps, or debt refinancing. Flash Loan Usage is an agent skill from ccashwell/evm-cortex. Use when implementing flash loan strategies including arbitrage, liquidation bots, collateral swaps, or debt refinancing.
Flash Loan Usage fits situations like: implementing flash loan strategies including arbitrage; liquidation bots; collateral swaps; debt refinancing.
Run `npx skills add ccashwell/evm-cortex --skill flash-loan-usage -a claude-code`. Or copy the skill folder (skills/flash-loan-usage in ccashwell/evm-cortex) into .claude/skills/flash-loan-usage in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ccashwell/evm-cortex --skill flash-loan-usage -a codex`. Or copy the skill folder (skills/flash-loan-usage in ccashwell/evm-cortex) into .agents/skills/flash-loan-usage 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 flash-loan-usage -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/flash-loan-usage, .gemini/skills/flash-loan-usage, .github/skills/flash-loan-usage and .opencode/skills/flash-loan-usage in your project.
SKILL.md names no scripts, command-line tools or credentials: Flash Loan Usage 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.
Flash Loan Usage 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.6k tokens (SKILL.md is roughly 6.6k 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 Flash Loan Usage: Notebook To Strategy (tradingstrategy-ai/trade-executor, 160 stars), Building Blocks (austintgriffith/ethskills, 294 stars), Oracle Flashloan Analysis (quillai-network/quillshield_skills, 129 stars) and Octav API (internet-court/internet-court-skill, 6.4k 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.