Technical Analyst
tradermonty/claude-trading-skills
This skill should be used when analyzing weekly price charts for stocks, stock indices, cryptocurrencies, or forex pairs.
A skill your agent uses when writing Foundry invariant (stateful fuzz) tests.
$ npx skills add ccashwell/evm-cortex --skill invariant-testing -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ccashwell/evm-cortex invariant-testing --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/invariant-testing .claude/skills/invariant-testing && 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 "invariant-testing" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/invariant-testing into .claude/skills/invariant-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "invariant-testing", 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/invariant-testingType 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 invariant-testing -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ccashwell/evm-cortex invariant-testing --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/invariant-testing .agents/skills/invariant-testing && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "invariant-testing" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/invariant-testing into .agents/skills/invariant-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "invariant-testing", 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 invariant-testing -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ccashwell/evm-cortex invariant-testing --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/invariant-testing .cursor/skills/invariant-testing && 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 "invariant-testing" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/invariant-testing into .cursor/skills/invariant-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "invariant-testing", 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/invariant-testing--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 invariant-testing -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ccashwell/evm-cortex invariant-testing --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/invariant-testing .gemini/skills/invariant-testing && 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 "invariant-testing" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/invariant-testing into .gemini/skills/invariant-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "invariant-testing", 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 invariant-testingInstalls 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 invariant-testing -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/invariant-testing .github/skills/invariant-testing && 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 "invariant-testing" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/invariant-testing into .github/skills/invariant-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "invariant-testing", 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 invariant-testing -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 invariant-testing --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/invariant-testing .opencode/skills/invariant-testing && 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 "invariant-testing" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/invariant-testing into .opencode/skills/invariant-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "invariant-testing", 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.
invariant-testingA skill your agent uses when writing Foundry invariant (stateful fuzz) tests.
Invariant Testing is an agent skill from ccashwell/evm-cortex. Use when writing Foundry invariant (stateful fuzz) tests. Covers handler contracts, ghost variables, target configuration, common invariant patterns, and handler design for DeFi protocols.
Its SKILL.md is about 1.9k 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 Crypto and DeFi analysis. 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 and toml).
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.
Invariant Testing loads about 1.9k tokens when it runs. Until then it costs about 52 tokens; SKILL.md has 129 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). 129 words, ~1,877 tokens.
.claude/skills/invariant-testing/SKILL.md (or your agent's skills folder).Invariant tests execute random sequences of function calls against handler contracts and assert that system invariants hold after every call. Unlike stateless fuzz tests, invariant tests maintain state across calls, exploring complex state transitions.
In foundry.toml:
[invariant]
runs = 256 # number of random sequences
depth = 64 # calls per sequence
fail_on_revert = false # don't fail on handler reverts (expected)// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import {Test} from "forge-std/Test.sol";
import {CommonBase} from "forge-std/Base.sol";
import {StdCheats} from "forge-std/StdCheats.sol";
import {StdUtils} from "forge-std/StdUtils.sol";
import {Vault} from "../../src/Vault.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
contract VaultHandler is CommonBase, StdCheats, StdUtils {
Vault public vault;
IERC20 public token;
// Ghost variables track expected state
uint256 public ghost_totalDeposited;
uint256 public ghost_totalWithdrawn;
mapping(address => uint256) public ghost_userDeposits;
// Actors for randomized msg.sender
address[] public actors;
address internal currentActor;
modifier useActor(uint256 actorIndexSeed) {
currentActor = actors[bound(actorIndexSeed, 0, actors.length - 1)];
vm.startPrank(currentActor);
_;
vm.stopPrank();
}
constructor(Vault _vault, IERC20 _token) {
vault = _vault;
token = _token;
// Create actor pool
for (uint256 i = 0; i < 5; i++) {
address actor = address(uint160(0x1000 + i));
actors.push(actor);
deal(address(token), actor, 1_000_000e18);
vm.prank(actor);
token.approve(address(vault), type(uint256).max);
}
}
function deposit(uint256 actorSeed, uint256 amount) external useActor(actorSeed) {
amount = bound(amount, 1e18, 100_000e18);
uint256 balance = token.balanceOf(currentActor);
if (balance < amount) return; // skip if insufficient
vault.deposit(amount);
ghost_totalDeposited += amount;
ghost_userDeposits[currentActor] += amount;
}
function withdraw(uint256 actorSeed, uint256 amount) external useActor(actorSeed) {
uint256 staked = vault.balanceOf(currentActor);
if (staked == 0) return; // skip if nothing to withdraw
amount = bound(amount, 1, staked);
vault.withdraw(amount);
ghost_totalWithdrawn += amount;
ghost_userDeposits[currentActor] -= amount;
}
function warpTime(uint256 seconds_) external {
seconds_ = bound(seconds_, 1, 7 days);
skip(seconds_);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import {Test} from "forge-std/Test.sol";
import {Vault} from "../src/Vault.sol";
import {MockERC20} from "./mocks/MockERC20.sol";
import {VaultHandler} from "./handlers/VaultHandler.sol";
contract VaultInvariantTest is Test {
Vault public vault;
MockERC20 public token;
VaultHandler public handler;
function setUp() public {
token = new MockERC20("Token", "TKN", 18);
vault = new Vault(address(token));
handler = new VaultHandler(vault, token);
// Only target the handler — never call vault directly
targetContract(address(handler));
}
/// @dev Total shares == total deposits - total withdrawals
function invariant_solvency() public view {
assertGe(
token.balanceOf(address(vault)),
handler.ghost_totalDeposited() - handler.ghost_totalWithdrawn(),
"vault is insolvent"
);
}
/// @dev Vault token balance >= total supply of shares
function invariant_sharesBacked() public view {
uint256 totalShares = vault.totalSupply();
uint256 totalAssets = token.balanceOf(address(vault));
if (totalShares > 0) {
assertGt(totalAssets, 0, "shares exist but no assets");
}
}
/// @dev No individual user has more shares than total supply
function invariant_noShareInflation() public view {
address[] memory actors = _getActors();
uint256 totalSupply = vault.totalSupply();
for (uint256 i = 0; i < actors.length; i++) {
assertLe(vault.balanceOf(actors[i]), totalSupply);
}
}
/// @dev Ghost tracking matches actual state
function invariant_ghostAccuracy() public view {
uint256 expectedVaultBalance =
handler.ghost_totalDeposited() - handler.ghost_totalWithdrawn();
assertEq(
token.balanceOf(address(vault)),
expectedVaultBalance,
"ghost tracking diverged"
);
}
function _getActors() internal view returns (address[] memory) {
address[] memory actors = new address[](5);
for (uint256 i = 0; i < 5; i++) {
actors[i] = handler.actors(i);
}
return actors;
}
}function invariant_totalDebtLeTotalSupply() public view {
assertLe(pool.totalDebt(), pool.totalSupply());
}
function invariant_allPositionsCollateralized() public view {
// For each borrower, collateral * LTV >= debt
}function invariant_constantProduct() public view {
uint256 k = pool.reserve0() * pool.reserve1();
assertGe(k, initialK, "k decreased"); // k should only increase (fees)
}
function invariant_lpTokensBacked() public view {
// LP tokens redeemable for proportional reserves
}function invariant_rewardsSolvent() public view {
assertGe(rewardToken.balanceOf(address(staking)), staking.totalPendingRewards());
}
function invariant_totalStakedMatchesSum() public view {
uint256 sum = 0;
for (uint256 i = 0; i < actors.length; i++) {
sum += staking.balanceOf(actors[i]);
}
assertEq(sum, staking.totalSupply());
}// Target specific contract
targetContract(address(handler));
// Target specific functions (exclude admin/setup)
bytes4[] memory selectors = new bytes4[](3);
selectors[0] = VaultHandler.deposit.selector;
selectors[1] = VaultHandler.withdraw.selector;
selectors[2] = VaultHandler.warpTime.selector;
targetSelector(FuzzSelector({addr: address(handler), selectors: selectors}));
// Exclude senders
excludeSender(address(vault)); // don't call as the vault itselfbound() constrains all numeric inputs to valid rangestargetContract() points to handler, not the system under testinvariant_ prefix© 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/invariant-testing of ccashwell/evm-cortex.
Open the folder on GitHubat commit f8f3301
Invariant Testing 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 |
|---|---|---|---|---|---|---|
| Invariant Testing this skillccashwell/evm-cortex | 131 | — | ~1.9k | Automated safety check: Pass | MIT | |
| Technical Analysttradermonty/claude-trading-skills | 3k | 5 repos | ~4.6k | Automated safety check: Pass | MIT | |
| Polyclawchainstacklabs/polyclaw | 360 | 1 repos | ~2k | Automated safety check: Pass | Apache-2.0 | |
| Longbridge Researchhelsome/folio | 269 | 3 repos | ~2.1k | Automated safety check: Pass | MIT | |
| Stock Analysis24mlight/StockClaw | 101 | 2 repos | ~2k | Automated safety check: Notes | MIT | |
| Swapper Depositswapperfinance/swapper-toolkit | 852 | — | ~1.8k | Automated safety check: Pass | MIT |
tradermonty/claude-trading-skills
This skill should be used when analyzing weekly price charts for stocks, stock indices, cryptocurrencies, or forex pairs.
chainstacklabs/polyclaw
Trade on Polymarket via split + CLOB execution. An agent skill from chainstacklabs/polyclaw.
helsome/folio
Institution ratings, consensus price targets, EPS/revenue forecasts, finance calendar, shareholder data, fund holders, insider trades (SEC Form 4), short interest, industry rankings, peer group…
24mlight/StockClaw
Analyze stocks and cryptocurrencies using Yahoo Finance data.
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.
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 writing Foundry invariant (stateful fuzz) tests. Invariant Testing is an agent skill from ccashwell/evm-cortex. Use when writing Foundry invariant (stateful fuzz) tests.
Invariant Testing fits situations like: writing Foundry invariant (stateful fuzz) tests; tasks that involve Crypto and DeFi analysis.
Run `npx skills add ccashwell/evm-cortex --skill invariant-testing -a claude-code`. Or copy the skill folder (skills/invariant-testing in ccashwell/evm-cortex) into .claude/skills/invariant-testing in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ccashwell/evm-cortex --skill invariant-testing -a codex`. Or copy the skill folder (skills/invariant-testing in ccashwell/evm-cortex) into .agents/skills/invariant-testing 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 invariant-testing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/invariant-testing, .gemini/skills/invariant-testing, .github/skills/invariant-testing and .opencode/skills/invariant-testing in your project.
SKILL.md names no scripts, command-line tools or credentials: Invariant Testing 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.
Invariant Testing 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.9k tokens (SKILL.md is roughly 7.5k 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 Invariant Testing: Technical Analyst (tradermonty/claude-trading-skills, 3k stars), Polyclaw (chainstacklabs/polyclaw, 360 stars), Longbridge Research (helsome/folio, 269 stars) and Stock Analysis (24mlight/StockClaw, 101 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.