Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/originprotocol/origin-dollar/fork-testnpx skills add OriginProtocol/origin-dollar --skill fork-testgit clone --depth 1 https://github.com/OriginProtocol/origin-dollarWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/originprotocol/origin-dollar/fork-test)<a href="https://agentmods.dev/skills/originprotocol/origin-dollar/fork-test"><img src="https://agentmods.dev/badge/skills/originprotocol/origin-dollar/fork-test.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00016 | $0.04904 |
| Opus 5 | $0.00008 | $0.02452 |
| Sonnet 5 | $0.00003 | $0.00981 |
| Haiku 4.5 | $0.00002 | $0.00490 |
Grade A, and why
fork-test scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 411 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Fork Test Skill
Generate Foundry fork tests for a specific contract, validating behavior against real on-chain state. Fork tests complement unit tests for paths that mocks cannot faithfully reproduce — AMO pool interactions, real router swaps, oracle reads, gauge rewards, and cross-chain flows. Follow the guidelines below to ensure consistency and maintainability across our fork test suite.
1. Directory Layout
contracts/tests/fork/<category>/<ContractName>/
├── shared/
│ └── Shared.t.sol # Abstract base with setUp, fork creation, deploy, helpers
└── concrete/
├── Deposit.t.sol # One file per integration scenario
├── Withdraw.t.sol
└── Rebalance.t.sol
NEVER fuzz/ directory — fork tests are concrete only (RPC calls make fuzz runs prohibitively slow).
Fewer files than unit tests: Only create files for functions with meaningful integration behavior (pool interactions, swaps, bridge flows). Simple setters, view functions, and access control are covered by unit tests.
<category> matches the subdirectories already in contracts/tests/fork/ (strategies, vault, token, etc.).
One file per integration scenario
Each file tests one public/external function's interaction with real on-chain state. The file name uses PascalCase matching the function name (e.g. deposit() → Deposit.t.sol).
Do NOT create fork test files for:
- Functions already fully covered by unit tests with no external protocol dependency
- Simple setters, view functions, access control, constructor validation, pure math
2. Inheritance Chain
forge-std/Test
└─ Base (contracts/tests/Base.t.sol) — actors, constants, fork IDs, contract refs
└─ BaseFork (contracts/tests/fork/BaseFork.t.sol) — fork creation helpers
└─ Fork_<Contract>_Shared_Test (shared/Shared.t.sol) — abstract; setUp, deploy, helpers
└─ Fork_Concrete_<Contract>_<Feature>_Test (concrete/*.t.sol)
Basecreates actors (alice,bobby, …,governor,strategist, etc.) and declares constants, IERC20 external token refs, and fork IDs (forkIdMainnet,forkIdBase,forkIdSonic,forkIdArbitrum).Baseonly contains actors, constants, IERC20 external tokens, fork IDs, and setUp(). All typed contract/proxy/mock state variables are declared in eachShared.t.solfile.BaseForkprovides_createAndSelectFork<Chain>()helpers that read RPC URLs from environment variables and create Foundry forks.Fork_<Contract>_Shared_Testis abstract and owns all deployment + configuration logic on top of the fork.- Concrete test contracts inherit
Fork_<Contract>_Shared_Testdirectly — no extra layers.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today First seen · 411 lines · 16 tokens per session scan A f4fa64b4dc03
fork-test is a skill published in the GitHub repository OriginProtocol/origin-dollar (151 stars, last pushed yesterday), licensed MIT. It adds 16 tokens to every session and 4,904 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.
Other skills, from other repositories
analyzing-ethereum-smart-contract-vulnerabilities
Perform static and symbolic analysis of Solidity smart contracts using Slither and Mythril to detect reentrancy, integer overflow, access control, and other vulnerability classes before deployment to Ethereum mainnet.
analyzing-ethereum-smart-contract-vulnerabilities
Perform static and symbolic analysis of Solidity smart contracts using Slither and Mythril to detect reentrancy, integer overflow, access control, and other vulnerability classes before deployment to Ethereum mainnet.
web3-bug-classes
Complete reference for all 10 DeFi smart contract bug classes. Use this when hunting for specific vulnerability types, need attack patterns for accounting desync, access control, incomplete path, off-by-one, oracle manipulation, ERC4626 vaults, reentrancy, flash loans, signature replay, or proxy/upgrade bugs.
web3-methodology-research
External research synthesis from Trail of Bits, SlowMist, ConsenSys, Immunefi, and Cyfrin. Use this for advanced audit methodology, Echidna/Medusa fuzzing setup, Slither custom detector writing, attack pattern deep dives, or the 4-phase learning roadmap.
web3-poc-foundry
Complete Foundry PoC writing guide + all cheatcodes + DeFiHackLabs reproduction patterns. Use this when building a proof of concept exploit, setting up a fork test, using Foundry cheatcodes, or reproducing a known DeFi hack for learning.
web3-triage-report
Bug triage validation system, Immunefi report format, and 20 real paid bounty examples dissected. Use this when validating a finding before submitting, writing an Immunefi report, checking if a bug is actually valid, or studying real examples of paid vulnerabilities.