TDD Workflow
hellangleZ/burn-in-cceverywhere-ralph
A skill your agent uses when writing new features, fixing bugs, or refactoring code.
Generate Foundry unit tests for a contract using this repository's conventions, structure, and naming.
$ npx skills add OriginProtocol/origin-dollar --skill unit-test -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install OriginProtocol/origin-dollar unit-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/unit-test .claude/skills/unit-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 "unit-test" agent skill from https://github.com/OriginProtocol/origin-dollar/tree/master/.codex/skills/unit-test into .claude/skills/unit-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "unit-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/unit-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 unit-test -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install OriginProtocol/origin-dollar unit-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/unit-test .agents/skills/unit-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 "unit-test" agent skill from https://github.com/OriginProtocol/origin-dollar/tree/master/.codex/skills/unit-test into .agents/skills/unit-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "unit-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 unit-test -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install OriginProtocol/origin-dollar unit-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/unit-test .cursor/skills/unit-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 "unit-test" agent skill from https://github.com/OriginProtocol/origin-dollar/tree/master/.codex/skills/unit-test into .cursor/skills/unit-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "unit-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/unit-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 unit-test -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install OriginProtocol/origin-dollar unit-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/unit-test .gemini/skills/unit-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 "unit-test" agent skill from https://github.com/OriginProtocol/origin-dollar/tree/master/.codex/skills/unit-test into .gemini/skills/unit-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "unit-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 unit-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 unit-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/unit-test .github/skills/unit-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 "unit-test" agent skill from https://github.com/OriginProtocol/origin-dollar/tree/master/.codex/skills/unit-test into .github/skills/unit-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "unit-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 unit-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 unit-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/unit-test .opencode/skills/unit-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 "unit-test" agent skill from https://github.com/OriginProtocol/origin-dollar/tree/master/.codex/skills/unit-test into .opencode/skills/unit-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "unit-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.
unit-testGenerate Foundry unit tests for a contract using this repository's conventions, structure, and naming.
Unit Test is an agent skill from OriginProtocol/origin-dollar. Generate Foundry unit tests for a contract using this repository's conventions, structure, and naming. Use when the user asks for unit tests, Foundry tests, concrete tests, or fuzz tests.
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 Testing & QA, covering Unit 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.
Unit Test loads about 1.6k tokens when it runs. Until then it costs about 49 tokens; SKILL.md has 561 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). 561 words, ~1,566 tokens.
.claude/skills/unit-test/SKILL.md (or your agent's skills folder).Generate Foundry unit tests for a specific contract following this repository's established directory layout, inheritance chain, setup order, and test naming rules.
contracts/tests/unit/<category>/<ContractName>/
├── shared/
│ └── Shared.sol
├── concrete/
│ ├── FunctionA.t.sol
│ ├── FunctionB.t.sol
│ └── ViewFunctions.t.sol
└── fuzz/
├── FunctionA.fuzz.t.sol
└── FunctionB.fuzz.t.solRules:
ViewFunctions.t.solAdmin.t.sol or Config.t.solforge-std/Test
└─ Base
└─ Unit_Shared_Test
├─ Unit_Concrete_<Contract>_<Feature>_Test
└─ Unit_Fuzz_<Contract>_<Feature>_TestBase owns shared actors, constants, and IERC20 external token refs. All typed contract/proxy/mock state variables are declared in each Shared.t.sol file (not in Base). This keeps Base lightweight so changes don't invalidate the entire Forge cache.
Tests must interact with contracts through interfaces, not concrete implementations. See contracts/tests/README.md for full details.
Available interfaces:
| Interface | File | Used for |
|---|---|---|
IVault | contracts/interfaces/IVault.sol | All vault contracts |
IOToken | contracts/interfaces/IOToken.sol | All rebasing tokens (OUSD, OETH, OETHBase, OSonic) |
IWOToken | contracts/interfaces/IWOToken.sol | All wrapped tokens (WOETH, WOETHBase, WOETHPlume, WOSonic, WrappedOusd) |
IProxy | contracts/interfaces/IProxy.sol | All proxy instances |
| Strategy interfaces | contracts/interfaces/strategies/ | Per-strategy interfaces (ICurveAMOStrategy, ISonicStakingStrategy, etc.) |
Key rules:
vm.deployCode instead of new (except mocks), and always reference artifact paths through tests/utils/Artifacts.sol (e.g. vm.deployCode(Vaults.OUSD, abi.encode(address(usdc)))); add the entry to the relevant sub-library if it does not exist yetemit IVault.CapitalPaused();vault.withdrawalQueueMetadata().claimable| Product | Token | Vault | Artifacts reference |
|---|---|---|---|
| OUSD | OUSD | OUSDVault | Vaults.OUSD |
| OETH | OETH | OETHVault | Vaults.OETH |
| OSonic | OSonic | OSVault | Vaults.OS |
| OETHBase | OETHBase | OETHBaseVault | 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.sol should keep setup in this order:
function setUp() public virtual override {
super.setUp();
vm.warp(7 days);
_deployMockContracts();
_deployContracts();
_configureContracts();
_fundInitialUsers();
label();
}Key rules:
vm.deployCode, then proxies with vm.deployCode(Proxies.IG_PROXY); all artifact paths (including the proxy) come from tests/utils/Artifacts.sol — never inline a "contracts/...sol:Name" string in a test fileproxy.initialize(impl, governor, initData)ousd = IOToken(address(ousdProxy))vm.startPrank(governor) for config blocksvm.deployCode loads from compiled artifacts; always run forge build contracts/ before forge test after modifying contract sourceMocks:
tests/mocks/contracts/mocks/ should usually be extended in placeFile and contract naming:
concrete/RebaseOptIn.t.sol
Unit_Concrete_<ContractName>_RebaseOptIn_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 nameUse exact revert strings with vm.expectRevert("...").
Emit events from interfaces, not concrete contracts:
vm.expectEmit(true, true, true, true);
emit IVault.EventName(arg1, arg2);Contract name pattern:
Unit_Fuzz_<ContractName>_<Feature>_TestFunction pattern:
/// @notice Plain-English property description
function testFuzz_<function>_<property>(...) public { ... }Rules:
bound() over vm.assume()assertEq for exact mathassertApproxEqAbs where rounding is expectedTypical ranges in this repo:
bound(amount, 1, 1e12)bound(amount, 1e12, 100e18)bound(bps, 1, 5000)bound(yield_, 1, 3e5)Match the repository's fuzz configuration in contracts/foundry.toml when relevant. Keep tests deterministic and consistent with existing suite conventions.
When implementing 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" stringsShared.sol rather than duplicating setup across test files© 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/unit-test of OriginProtocol/origin-dollar.
Open the folder on GitHubat commit ae82163
Unit 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 |
|---|---|---|---|---|---|---|
| Unit Test this skillOriginProtocol/origin-dollar | 153 | — | ~1.6k | Automated safety check: Pass | MIT | |
| TDD WorkflowhellangleZ/burn-in-cceverywhere-ralph | 112 | 11 repos | ~2.4k | Automated safety check: Pass | None | |
| Testing OpenLogi UIAprilNEA/OpenLogi | 23k | — | ~1.1k | Automated safety check: Pass | Apache-2.0 | |
| Go Testingcxuu/golang-skills | 170 | 1 repos | ~1.3k | Automated safety check: Pass | Apache-2.0 | |
| Contractssamchon/nestia | 2.2k | — | ~1.3k | Automated safety check: Pass | MIT | |
| Cohesion Over TestabilityEpicenterHQ/epicenter | 4.8k | — | ~2k | Automated safety check: Pass | Custom licence |
hellangleZ/burn-in-cceverywhere-ralph
A skill your agent uses when writing new features, fixing bugs, or refactoring code.
AprilNEA/OpenLogi
Verifies OpenLogi's native GPUI interface with focused tests, the component gallery and a mock agent, choosing the evidence that fits each change.
cxuu/golang-skills
A skill your agent uses when writing, reviewing, or improving Go test code — including table-driven tests, subtests, parallel tests, test helpers, test doubles, and assertions with cmp.Diff.
samchon/nestia
Defines self-acknowledgments for production declarations and tests.
EpicenterHQ/epicenter
Collapse test-shaped production boundaries while preserving behavior and coverage.
liaohch3/claude-tap
Tests JavaScript embedded in an HTML file in two layers: pytest checks of the logic ported to Python, and Playwright runs in a real browser for the DOM.
OriginProtocol/origin-dollar
Generate Foundry fork tests for contracts that need real on-chain integration coverage.
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
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 unit tests for a contract using this repository's conventions, structure, and naming. Unit Test is an agent skill from OriginProtocol/origin-dollar. Generate Foundry unit tests for a contract using this repository's conventions, structure, and naming.
Unit Test fits situations like: the user asks for unit tests; tasks that involve Unit testing.
Run `npx skills add OriginProtocol/origin-dollar --skill unit-test -a claude-code`. Or copy the skill folder (.codex/skills/unit-test in OriginProtocol/origin-dollar) into .claude/skills/unit-test in your project. Claude Code loads it when a task matches its description.
Run `npx skills add OriginProtocol/origin-dollar --skill unit-test -a codex`. Or copy the skill folder (.codex/skills/unit-test in OriginProtocol/origin-dollar) into .agents/skills/unit-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 unit-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/unit-test, .gemini/skills/unit-test, .github/skills/unit-test and .opencode/skills/unit-test in your project.
SKILL.md names no scripts, command-line tools or credentials: Unit 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.
Unit 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.6k tokens (SKILL.md is roughly 6.3k 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 Unit Test: TDD Workflow (hellangleZ/burn-in-cceverywhere-ralph, 112 stars), Testing OpenLogi UI (AprilNEA/OpenLogi, 23k stars), Go Testing (cxuu/golang-skills, 170 stars) and Contracts (samchon/nestia, 2.2k 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.