Foundry Deploy Fixtures
aviggiano/security
Create or refactor Foundry deployment fixtures for Solidity tests.
A skill your agent uses when setting up test environments for Solidity protocols.
$ npx skills add ccashwell/evm-cortex --skill test-fixtures -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ccashwell/evm-cortex test-fixtures --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/test-fixtures .claude/skills/test-fixtures && 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 "test-fixtures" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/test-fixtures into .claude/skills/test-fixtures/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-fixtures", 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/test-fixturesType 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 test-fixtures -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ccashwell/evm-cortex test-fixtures --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/test-fixtures .agents/skills/test-fixtures && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "test-fixtures" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/test-fixtures into .agents/skills/test-fixtures/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-fixtures", 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 test-fixtures -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ccashwell/evm-cortex test-fixtures --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/test-fixtures .cursor/skills/test-fixtures && 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 "test-fixtures" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/test-fixtures into .cursor/skills/test-fixtures/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-fixtures", 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/test-fixtures--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 test-fixtures -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ccashwell/evm-cortex test-fixtures --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/test-fixtures .gemini/skills/test-fixtures && 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 "test-fixtures" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/test-fixtures into .gemini/skills/test-fixtures/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-fixtures", 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 test-fixturesInstalls 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 test-fixtures -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/test-fixtures .github/skills/test-fixtures && 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 "test-fixtures" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/test-fixtures into .github/skills/test-fixtures/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-fixtures", 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 test-fixtures -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 test-fixtures --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/test-fixtures .opencode/skills/test-fixtures && 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 "test-fixtures" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/test-fixtures into .opencode/skills/test-fixtures/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-fixtures", 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.
test-fixturesA skill your agent uses when setting up test environments for Solidity protocols.
Test Fixtures is an agent skill from ccashwell/evm-cortex. Use when setting up test environments for Solidity protocols. Covers mock contracts, fork-based fixtures, shared setUp, factory patterns, token deployments, and reusable test helpers.
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 Backend & APIs, covering Test data and fixtures, Deployment and Smart contracts. It works with Solidity. 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.
Test Fixtures loads about 1.9k tokens when it runs. Until then it costs about 49 tokens; SKILL.md has 95 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). 95 words, ~1,886 tokens.
.claude/skills/test-fixtures/SKILL.md (or your agent's skills folder).Shared setUp that all test files inherit:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import {Test} from "forge-std/Test.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
abstract contract BaseTest is Test {
address public alice;
address public bob;
address public carol;
address public deployer;
address public treasury;
function setUp() public virtual {
alice = makeAddr("alice");
bob = makeAddr("bob");
carol = makeAddr("carol");
deployer = makeAddr("deployer");
treasury = makeAddr("treasury");
vm.deal(alice, 100 ether);
vm.deal(bob, 100 ether);
vm.deal(carol, 100 ether);
}
function _labelAll() internal {
vm.label(alice, "Alice");
vm.label(bob, "Bob");
vm.label(carol, "Carol");
vm.label(deployer, "Deployer");
vm.label(treasury, "Treasury");
}
function _fundToken(address token, address to, uint256 amount) internal {
deal(token, to, amount);
}
function _approveToken(address token, address owner, address spender, uint256 amount) internal {
vm.prank(owner);
IERC20(token).approve(spender, amount);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract MockERC20 is ERC20 {
uint8 private _decimals;
constructor(string memory name, string memory symbol, uint8 decimals_)
ERC20(name, symbol)
{
_decimals = decimals_;
}
function decimals() public view override returns (uint8) {
return _decimals;
}
function mint(address to, uint256 amount) external {
_mint(to, amount);
}
function burn(address from, uint256 amount) external {
_burn(from, amount);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import {MockERC20} from "./MockERC20.sol";
library TokenFixtures {
function deployUSDC() internal returns (MockERC20) {
return new MockERC20("USD Coin", "USDC", 6);
}
function deployWETH() internal returns (MockERC20) {
return new MockERC20("Wrapped Ether", "WETH", 18);
}
function deployDAI() internal returns (MockERC20) {
return new MockERC20("Dai Stablecoin", "DAI", 18);
}
function deployWithDecimals(uint8 decimals) internal returns (MockERC20) {
return new MockERC20("Test Token", "TEST", decimals);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
contract MockChainlinkFeed {
int256 private _price;
uint8 private _decimals;
uint256 private _updatedAt;
uint80 private _roundId;
constructor(int256 price, uint8 decimals_) {
_price = price;
_decimals = decimals_;
_updatedAt = block.timestamp;
_roundId = 1;
}
function latestRoundData() external view returns (
uint80 roundId,
int256 answer,
uint256 startedAt,
uint256 updatedAt,
uint80 answeredInRound
) {
return (_roundId, _price, _updatedAt, _updatedAt, _roundId);
}
function decimals() external view returns (uint8) {
return _decimals;
}
function setPrice(int256 newPrice) external {
_price = newPrice;
_updatedAt = block.timestamp;
_roundId++;
}
function setStale() external {
_updatedAt = block.timestamp - 2 days;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import {BaseTest} from "./BaseTest.sol";
import {Vault} from "../../src/Vault.sol";
import {StakingRewards} from "../../src/StakingRewards.sol";
import {MockERC20} from "./MockERC20.sol";
import {MockChainlinkFeed} from "./MockChainlinkFeed.sol";
abstract contract ProtocolFixture is BaseTest {
MockERC20 public usdc;
MockERC20 public weth;
MockChainlinkFeed public ethUsdFeed;
Vault public vault;
StakingRewards public staking;
function setUp() public virtual override {
super.setUp();
vm.startPrank(deployer);
usdc = new MockERC20("USDC", "USDC", 6);
weth = new MockERC20("WETH", "WETH", 18);
ethUsdFeed = new MockChainlinkFeed(3500e8, 8);
vault = new Vault(address(usdc));
staking = new StakingRewards(
address(vault),
address(usdc),
deployer
);
vm.stopPrank();
_fundUsers();
_labelAll();
vm.label(address(usdc), "USDC");
vm.label(address(weth), "WETH");
vm.label(address(vault), "Vault");
vm.label(address(staking), "Staking");
}
function _fundUsers() internal {
for (uint256 i = 0; i < _users().length; i++) {
address user = _users()[i];
usdc.mint(user, 1_000_000e6);
weth.mint(user, 1_000e18);
vm.startPrank(user);
usdc.approve(address(vault), type(uint256).max);
usdc.approve(address(staking), type(uint256).max);
weth.approve(address(vault), type(uint256).max);
vm.stopPrank();
}
}
function _users() internal view returns (address[] memory) {
address[] memory users = new address[](3);
users[0] = alice;
users[1] = bob;
users[2] = carol;
return users;
}
}import {ProtocolFixture} from "./helpers/ProtocolFixture.sol";
contract VaultTest is ProtocolFixture {
function test_deposit() public {
vm.prank(alice);
vault.deposit(1000e6, alice);
assertEq(vault.balanceOf(alice), 1000e6);
}
function test_priceDropLiquidation() public {
vm.prank(alice);
vault.deposit(1000e6, alice);
ethUsdFeed.setPrice(1000e8); // crash ETH price
assertTrue(vault.isLiquidatable(alice));
}
}abstract contract MainnetFixture is BaseTest {
IERC20 constant USDC = IERC20(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48);
IERC20 constant WETH = IERC20(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);
IPool constant AAVE = IPool(0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2);
function setUp() public virtual override {
super.setUp();
vm.createSelectFork("mainnet", 19_500_000);
_labelMainnet();
}
function _labelMainnet() internal {
vm.label(address(USDC), "USDC");
vm.label(address(WETH), "WETH");
vm.label(address(AAVE), "Aave Pool");
}
}abstract — tests inherit and extendtest/mocks/test/helpers/© 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/test-fixtures of ccashwell/evm-cortex.
Open the folder on GitHubat commit f8f3301
Test Fixtures 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 |
|---|---|---|---|---|---|---|
| Test Fixtures this skillccashwell/evm-cortex | 131 | — | ~1.9k | Automated safety check: Pass | MIT | |
| Foundry Deploy Fixturesaviggiano/security | 144 | — | ~634 | Automated safety check: Pass | MIT | |
| New Configlidofinance/diffyscan | 142 | — | ~1k | Automated safety check: Pass | MIT | |
| Validate Configlidofinance/diffyscan | 142 | — | ~1.1k | Automated safety check: Pass | MIT | |
| Foundry Differential Testsaviggiano/security | 144 | — | ~613 | Automated safety check: Pass | MIT | |
| Add Explorerlidofinance/diffyscan | 142 | — | ~1k | Automated safety check: Pass | MIT |
aviggiano/security
Create or refactor Foundry deployment fixtures for Solidity tests.
lidofinance/diffyscan
Creates or extends a Diffyscan verification config for a deployed contract or deployment.
lidofinance/diffyscan
Reviews an existing Diffyscan YAML or JSON config for load errors, runtime prerequisites, pinned sources, address mappings and broad exceptions.
aviggiano/security
Create Foundry differential tests comparing production Solidity contracts against an independent reference model.
lidofinance/diffyscan
Adds or repairs Diffyscan explorer API routing and response adapters for a new host, chain or payload format.
OriginProtocol/origin-dollar
Verifies a POST-EXECUTION mainnet (or other network) smart-contract deployment PR for this repo: confirms every deployed contract is listed in the PR description, that the on-chain verified source…
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 setting up test environments for Solidity protocols. Test Fixtures is an agent skill from ccashwell/evm-cortex. Use when setting up test environments for Solidity protocols.
Test Fixtures fits situations like: setting up test environments for Solidity protocols; tasks that involve Test data and fixtures; tasks that involve Deployment.
Run `npx skills add ccashwell/evm-cortex --skill test-fixtures -a claude-code`. Or copy the skill folder (skills/test-fixtures in ccashwell/evm-cortex) into .claude/skills/test-fixtures in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ccashwell/evm-cortex --skill test-fixtures -a codex`. Or copy the skill folder (skills/test-fixtures in ccashwell/evm-cortex) into .agents/skills/test-fixtures 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 test-fixtures -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/test-fixtures, .gemini/skills/test-fixtures, .github/skills/test-fixtures and .opencode/skills/test-fixtures in your project.
SKILL.md names no scripts, command-line tools or credentials: Test Fixtures 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.
Test Fixtures 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 Test Fixtures: Foundry Deploy Fixtures (aviggiano/security, 144 stars), New Config (lidofinance/diffyscan, 142 stars), Validate Config (lidofinance/diffyscan, 142 stars) and Foundry Differential Tests (aviggiano/security, 144 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.