Web3 Testing
wshobson/agents
Test smart contracts comprehensively using Hardhat and Foundry with unit tests, integration tests, and mainnet forking.
Generate Foundry fork tests for contracts that need real on-chain integration coverage.
$ npx skills add OriginProtocol/origin-dollar --skill fork-test -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install OriginProtocol/origin-dollar fork-test --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/OriginProtocol/origin-dollar.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/fork-test .claude/skills/fork-test && 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 "fork-test" agent skill from https://github.com/OriginProtocol/origin-dollar/tree/master/.codex/skills/fork-test into .claude/skills/fork-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fork-test", 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/OriginProtocol/origin-dollar/tree/master/.codex/skills/fork-testType 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 OriginProtocol/origin-dollar --skill fork-test -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install OriginProtocol/origin-dollar fork-test --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OriginProtocol/origin-dollar.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.codex/skills/fork-test .agents/skills/fork-test && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "fork-test" agent skill from https://github.com/OriginProtocol/origin-dollar/tree/master/.codex/skills/fork-test into .agents/skills/fork-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fork-test", 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 OriginProtocol/origin-dollar --skill fork-test -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install OriginProtocol/origin-dollar fork-test --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OriginProtocol/origin-dollar.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.codex/skills/fork-test .cursor/skills/fork-test && 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 "fork-test" agent skill from https://github.com/OriginProtocol/origin-dollar/tree/master/.codex/skills/fork-test into .cursor/skills/fork-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fork-test", 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/OriginProtocol/origin-dollar.git --path .codex/skills/fork-test--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 OriginProtocol/origin-dollar --skill fork-test -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install OriginProtocol/origin-dollar fork-test --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OriginProtocol/origin-dollar.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.codex/skills/fork-test .gemini/skills/fork-test && 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 "fork-test" agent skill from https://github.com/OriginProtocol/origin-dollar/tree/master/.codex/skills/fork-test into .gemini/skills/fork-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fork-test", 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 OriginProtocol/origin-dollar fork-testInstalls 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 OriginProtocol/origin-dollar --skill fork-test -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/OriginProtocol/origin-dollar.git skills-src && mkdir -p .github/skills && cp -r skills-src/.codex/skills/fork-test .github/skills/fork-test && 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 "fork-test" agent skill from https://github.com/OriginProtocol/origin-dollar/tree/master/.codex/skills/fork-test into .github/skills/fork-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fork-test", 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 OriginProtocol/origin-dollar --skill fork-test -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install OriginProtocol/origin-dollar fork-test --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OriginProtocol/origin-dollar.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.codex/skills/fork-test .opencode/skills/fork-test && 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 "fork-test" agent skill from https://github.com/OriginProtocol/origin-dollar/tree/master/.codex/skills/fork-test into .opencode/skills/fork-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fork-test", 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.
fork-testGenerate Foundry fork tests for contracts that need real on-chain integration coverage.
Fork Test is an agent skill from OriginProtocol/origin-dollar. Generate Foundry fork tests for contracts that need real on-chain integration coverage. Use when the user asks for fork tests, mainnet or chain fork coverage, or integration tests against live protocol state.
Its SKILL.md is about 1.2k 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 Testing & QA, covering Smart contracts and Integration testing. The repository describes itself as: OUSD and OETH are stablecoins that passively accrue yield while you are holding it. The licence is MIT.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit ae82163. 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.
Fork Test loads about 1.2k tokens when it runs. Until then it costs about 55 tokens; SKILL.md has 455 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 OriginProtocol/origin-dollar at commit ae82163, republished under its MIT licence (© OriginProtocol). 455 words, ~1,192 tokens.
.claude/skills/fork-test/SKILL.md (or your agent's skills folder).Generate Foundry fork tests for contracts whose behavior depends on real on-chain state, live liquidity, routers, gauges, or oracle reads.
contracts/tests/fork/<category>/<ContractName>/
├── shared/
│ └── Shared.t.sol
└── concrete/
├── Deposit.t.sol
├── Withdraw.t.sol
└── Rebalance.t.solRules:
fuzz/ directoryforge-std/Test
└─ Base
└─ BaseFork
└─ Fork_<Contract>_Shared_Test
└─ Fork_Concrete_<Contract>_<Feature>_TestBase owns shared actors, constants, IERC20 external token refs, and fork IDs. All typed contract/proxy/mock state variables are declared in each Shared.t.sol using interface types. BaseFork owns chain fork helpers.
Same rules as unit tests — use interfaces, not concrete contracts:
IVault, IOToken, IProxy, strategy interfaces from contracts/interfaces/strategies/vm.deployCode instead of new (except mocks), and always reference artifact paths through tests/utils/Artifacts.sol (e.g. vm.deployCode(Vaults.OETH, abi.encode(address(weth)))); add the entry to the relevant sub-library if it does not exist yetoethVault = IVault(Mainnet.OETH_VAULT)emit IVault.EventName(...)| Product | Token | Vault | Chain | Artifacts reference |
|---|---|---|---|---|
| OUSD | OUSD | OUSDVault | Mainnet | Vaults.OUSD |
| OETH | OETH | OETHVault | Mainnet | Vaults.OETH |
| OSonic | OSonic | OSVault | Sonic | Vaults.OS |
| OETHBase | OETHBase | OETHBaseVault | Base | Vaults.OETH_BASE |
Add the entry to tests/utils/Artifacts.sol if it does not exist yet.
Never use OETHVault for Sonic tests.
shared/Shared.t.sol should keep setup in this order:
function setUp() public virtual override {
super.setUp();
_createAndSelectFork<Chain>();
_deployFreshContracts();
_configureContracts();
label();
}Decision rule:
Pull canonical addresses from tests/utils/Addresses.sol.
File and contract naming:
concrete/Deposit.t.sol
Fork_Concrete_<ContractName>_Deposit_TestFunction naming patterns:
test_<function>()test_<function>_<behavior>()test_<function>_RevertWhen_<condition>()test_<function>_emits<EventName>()Casing rules:
camelCaseRevertWhen is the only PascalCase token in the test nameFork-test these categories:
Do not fork-test:
Litmus test:
If a mock can faithfully reproduce the behavior, keep it in unit tests.
Use the repository's fork helpers and address libraries consistently:
_createAndSelectForkMainnet()_createAndSelectForkBase()_createAndSelectForkSonic()_createAndSelectForkArbitrum()When implementing fork tests:
vm.deployCode, not new (mocks are fine with new), and reference all artifact paths through tests/utils/Artifacts.sol — no inline "contracts/...sol:Name" strings© OriginProtocol, 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 .codex/skills/fork-test of OriginProtocol/origin-dollar.
Open the folder on GitHubat commit ae82163
Fork Test 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 |
|---|---|---|---|---|---|---|
| Fork Test this skillOriginProtocol/origin-dollar | 153 | — | ~1.2k | Automated safety check: Pass | MIT | |
| Web3 Testingwshobson/agents | 40k | 11 repos | ~2k | Automated safety check: Pass | MIT | |
| DevchainNethereum/Nethereum | 2.3k | — | ~1.7k | Automated safety check: Pass | MIT | |
| Contract Testscalus3/scalus | 105 | — | ~1.6k | Automated safety check: Pass | Apache-2.0 | |
| Plugin Testingpolyipseity/obsidian-terminal | 948 | — | ~828 | Automated safety check: Pass | AGPL-3.0 | |
| Create Modulecartography-cncf/cartography | 4.1k | — | ~2.5k | Automated safety check: Pass | Apache-2.0 |
wshobson/agents
Test smart contracts comprehensively using Hardhat and Foundry with unit tests, integration tests, and mainnet forking.
Nethereum/Nethereum
Help users run a local Ethereum dev chain, write integration tests, fork networks, debug transactions, or replace Hardhat/Anvil with Nethereum DevChain (.NET).
scalus3/scalus
Guide for testing Scalus smart contracts. An agent skill from scalus3/scalus.
polyipseity/obsidian-terminal
Skill for testing Obsidian plugin features in this repository.
cartography-cncf/cartography
Author a new Cartography intel module end-to-end (entry point, sync GET/TRANSFORM/LOAD/CLEANUP, declarative data model, integration test, schema docs).
marcus/td
Write integration tests for the td-sync admin API using the TestHarness in internal/api/testharnesstest.go.
OriginProtocol/origin-dollar
Reorganize Foundry test files (.t.sol) for readability and consistency without changing semantics.
OriginProtocol/origin-dollar
Generate Foundry smoke tests that validate deployment health using DeployManager/Resolver against real on-chain state with pending governance applied.
OriginProtocol/origin-dollar
Handle git commits with auto-staging, targeted pre-commit formatting, and Conventional Commit messages.
OriginProtocol/origin-dollar
Develop, modify, review, and maintain standalone Talos actions in contracts/tasks/actions, including chain guardrails, contract bindings, transaction safety, schedules, action catalogues, and Talos…
OriginProtocol/origin-dollar
Generate Foundry unit tests for a contract using this repository's conventions, structure, and naming.
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…
Categories
Generate Foundry fork tests for contracts that need real on-chain integration coverage. Fork Test is an agent skill from OriginProtocol/origin-dollar. Generate Foundry fork tests for contracts that need real on-chain integration coverage.
Fork Test fits situations like: the user asks for fork tests; chain fork coverage; integration tests against live protocol state.
Run `npx skills add OriginProtocol/origin-dollar --skill fork-test -a claude-code`. Or copy the skill folder (.codex/skills/fork-test in OriginProtocol/origin-dollar) into .claude/skills/fork-test in your project. Claude Code loads it when a task matches its description.
Run `npx skills add OriginProtocol/origin-dollar --skill fork-test -a codex`. Or copy the skill folder (.codex/skills/fork-test in OriginProtocol/origin-dollar) into .agents/skills/fork-test 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 OriginProtocol/origin-dollar --skill fork-test -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/fork-test, .gemini/skills/fork-test, .github/skills/fork-test and .opencode/skills/fork-test in your project.
SKILL.md names no scripts, command-line tools or credentials: Fork Test 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.
Fork Test 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.2k tokens (SKILL.md is roughly 4.8k 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 Fork Test: Web3 Testing (wshobson/agents, 40k stars), Devchain (Nethereum/Nethereum, 2.3k stars), Contract Test (scalus3/scalus, 105 stars) and Plugin Testing (polyipseity/obsidian-terminal, 948 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
OriginProtocol (a GitHub organization) maintains it in OriginProtocol/origin-dollar, which has 153 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 6, 2026.
Source: OriginProtocol/origin-dollar on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.