Test Writing
shopsys/shopsys
This skill MUST be used when the user asks to write tests, add tests, create test cases, run/execute/re-run/debug tests, test a specific class or method, or when working on any Test.php file in this…
Generate Foundry smoke tests that validate deployment health using DeployManager/Resolver against real on-chain state with pending governance applied.
$ npx skills add OriginProtocol/origin-dollar --skill smoke-test -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install OriginProtocol/origin-dollar smoke-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/smoke-test .claude/skills/smoke-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 "smoke-test" agent skill from https://github.com/OriginProtocol/origin-dollar/tree/master/.codex/skills/smoke-test into .claude/skills/smoke-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "smoke-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/smoke-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 smoke-test -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install OriginProtocol/origin-dollar smoke-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/smoke-test .agents/skills/smoke-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 "smoke-test" agent skill from https://github.com/OriginProtocol/origin-dollar/tree/master/.codex/skills/smoke-test into .agents/skills/smoke-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "smoke-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 smoke-test -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install OriginProtocol/origin-dollar smoke-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/smoke-test .cursor/skills/smoke-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 "smoke-test" agent skill from https://github.com/OriginProtocol/origin-dollar/tree/master/.codex/skills/smoke-test into .cursor/skills/smoke-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "smoke-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/smoke-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 smoke-test -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install OriginProtocol/origin-dollar smoke-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/smoke-test .gemini/skills/smoke-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 "smoke-test" agent skill from https://github.com/OriginProtocol/origin-dollar/tree/master/.codex/skills/smoke-test into .gemini/skills/smoke-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "smoke-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 smoke-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 smoke-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/smoke-test .github/skills/smoke-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 "smoke-test" agent skill from https://github.com/OriginProtocol/origin-dollar/tree/master/.codex/skills/smoke-test into .github/skills/smoke-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "smoke-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 smoke-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 smoke-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/smoke-test .opencode/skills/smoke-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 "smoke-test" agent skill from https://github.com/OriginProtocol/origin-dollar/tree/master/.codex/skills/smoke-test into .opencode/skills/smoke-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "smoke-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.
smoke-testGenerate Foundry smoke tests that validate deployment health using DeployManager/Resolver against real on-chain state with pending governance applied.
Smoke Test is an agent skill from OriginProtocol/origin-dollar. Generate Foundry smoke tests that validate deployment health using DeployManager/Resolver against real on-chain state with pending governance applied. Use when the user asks for smoke tests, deployment verification tests, or post-deploy health checks.
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 QA and bug reports and GraphQL. The repository describes itself as: OUSD and OETH are stablecoins that passively accrue yield while you are holding it. The licence is MIT.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 1be34f7. 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.
Smoke Test loads about 1.6k tokens when it runs. Until then it costs about 66 tokens; SKILL.md has 537 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 1be34f7, republished under its MIT licence (© OriginProtocol). 537 words, ~1,604 tokens.
.claude/skills/smoke-test/SKILL.md (or your agent's skills folder).Generate Foundry smoke tests that verify deployment health by bootstrapping the actual deployed state (including pending governance) via the DeployManager/Resolver pipeline.
| Aspect | Unit Tests | Fork Tests | Smoke Tests |
|---|---|---|---|
| State | Fresh deploys with mocks | Fresh deploys on fork | Actual deployed state via Resolver |
| Purpose | Full coverage, fuzz | Integration paths | Verify deployment health |
| Contracts | Deployed in setUp | Mix fresh + forked | All resolved from DeployManager |
| Actors | makeAddr("Governor") | makeAddr("Governor") | ousd.governor() (live) |
| Tokens | MockERC20.mint() | deal() | deal() |
| Fuzz | Yes | No | No |
Smoke tests answer "Is this deployment safe to execute?" — not "Does this code work?"
contracts/tests/smoke/<category>/<Product>/
├── shared/
│ └── Shared.t.sol
└── concrete/
├── ViewFunctions.t.sol
├── Mint.t.sol
├── Redeem.t.sol
└── Transfer.t.solRules:
fuzz/ directoryforge-std/Test
└─ Base
└─ BaseFork
└─ BaseSmoke
└─ Smoke_<Product>_Shared_Test
└─ Smoke_Concrete_<Product>_<Feature>_TestBase owns shared actors, constants, IERC20 external token refs, and fork IDs. All typed contract/proxy state variables are declared in each Shared.t.sol using interface types.
BaseSmoke provides:
resolver — deterministic address: Resolver(address(uint160(uint256(keccak256("Resolver")))))_igniteDeployManager() — runs the full deployment pipeline: parse JSON, etch Resolver, replay scripts, simulate governanceSame rules as unit and fork tests — use interfaces, not concrete contracts:
IVault internal ousdVault;ousd = IOToken(resolver.resolve("OUSD_PROXY"));emit IVault.YieldDistribution(...);IVault, IOToken, IWOToken, IProxy, plus strategy interfaces in contracts/interfaces/strategies/| Product | Token | Vault | Chain |
|---|---|---|---|
| OUSD | OUSD | OUSDVault | Mainnet |
| OETH | OETH | OETHVault | Mainnet |
| OSonic | OSonic | OSVault | Sonic |
| OETHBase | OETHBase | OETHBaseVault | Base |
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>();
_igniteDeployManager();
_fetchContracts();
_resolveActors();
_labelContracts();
}Critical rules:
ousd = IOToken(resolver.resolve("OUSD_PROXY"))governor = ousd.governor()require(address(resolver).code.length > 0, "Resolver not initialized")File and contract naming:
concrete/Mint.t.sol
Smoke_Concrete_<Product>_Mint_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 nameSmoke-test these:
rebasingSupply + nonRebasingSupply ≈ totalSupply)Do not smoke-test:
deal() for real tokensUse deal(), not mock minting. Tokens on fork are real.
Add to the existing balance; do not overwrite:
deal(address(usdc), address(vault), usdc.balanceOf(address(vault)) + yieldAmount);On mainnet fork, most tokens sit in strategies. Ensure vault liquidity before claiming withdrawals:
function _ensureVaultLiquidity(uint256 extra) internal {
(uint256 queued, uint256 claimable,,) = vault.withdrawalQueueMetadata();
uint256 shortfall = queued > claimable ? queued - claimable : 0;
uint256 needed = shortfall + extra;
if (needed > token.balanceOf(address(vault))) {
deal(address(token), address(vault), needed);
}
vault.addWithdrawalQueueLiquidity();
}Live state has rounding. Use approximate comparisons:
assertApproxEqRel(calculatedSupply, ousd.totalSupply(), 1e14); // 0.01%
assertApproxEqAbs(balanceAfter - balanceBefore, expected, 1e18);The vault may trigger rebase during mint. Use assertGe for total supply changes:
assertGe(totalSupplyAfter - totalSupplyBefore, mintedAmount - 1e18);When implementing smoke tests:
© 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/smoke-test of OriginProtocol/origin-dollar.
Open the folder on GitHubat commit 1be34f7
Smoke 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 |
|---|---|---|---|---|---|---|
| Smoke Test this skillOriginProtocol/origin-dollar | 153 | — | ~1.6k | Automated safety check: Pass | MIT | |
| Test Writingshopsys/shopsys | 350 | — | ~436 | Automated safety check: Pass | Custom licence | |
| Reproduce Chat Statesdifferent-ai/openwork | 24k | — | ~673 | Automated safety check: Pass | Custom licence | |
| Dynamo Jira TicketDynamoDS/Dynamo | 2k | — | ~1.1k | Automated safety check: Pass | Apache-2.0 | |
| Minimal Run And Auditlllllllama/RigorPilot-Skills | 497 | 2 repos | ~691 | Automated safety check: Pass | MIT | |
| Moav E2EMotherofallVPNs/MoaV | 448 | — | ~1.9k | Automated safety check: Notes | MIT |
shopsys/shopsys
This skill MUST be used when the user asks to write tests, add tests, create test cases, run/execute/re-run/debug tests, test a specific class or method, or when working on any Test.php file in this…
different-ai/openwork
Fires known chat states in the running OpenWork desktop app, such as provider errors, retries and tool steps, so you can check how each renders.
DynamoDS/Dynamo
Create structured Jira tickets for Dynamo from bug reports, failing tests, or feature requests.
lllllllama/RigorPilot-Skills
Rigor Run skill for README-first deep learning repo reproduction.
MotherofallVPNs/MoaV
Run and debug MoaV's end-to-end tests — real protocol connectivity (client-test.sh) and the moav CLI smoke test — against a LIVE server, via the self-hosted e2e workflow or a local test VPS.
lynxlangya/techne
Reproduce a behavioral bug before fixing it, record the failing probe, and verify the fix with the same probe.
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
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 smoke tests that validate deployment health using DeployManager/Resolver against real on-chain state with pending governance applied. Smoke Test is an agent skill from OriginProtocol/origin-dollar. Generate Foundry smoke tests that validate deployment health using DeployManager/Resolver against real on-chain state with pending governance applied.
Smoke Test fits situations like: the user asks for smoke tests; deployment verification tests; post-deploy health checks.
Run `npx skills add OriginProtocol/origin-dollar --skill smoke-test -a claude-code`. Or copy the skill folder (.codex/skills/smoke-test in OriginProtocol/origin-dollar) into .claude/skills/smoke-test in your project. Claude Code loads it when a task matches its description.
Run `npx skills add OriginProtocol/origin-dollar --skill smoke-test -a codex`. Or copy the skill folder (.codex/skills/smoke-test in OriginProtocol/origin-dollar) into .agents/skills/smoke-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 smoke-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/smoke-test, .gemini/skills/smoke-test, .github/skills/smoke-test and .opencode/skills/smoke-test in your project.
SKILL.md names no scripts, command-line tools or credentials: Smoke 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.
Smoke 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.4k 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 Smoke Test: Test Writing (shopsys/shopsys, 350 stars), Reproduce Chat States (different-ai/openwork, 24k stars), Dynamo Jira Ticket (DynamoDS/Dynamo, 2k stars) and Minimal Run And Audit (lllllllama/RigorPilot-Skills, 497 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 7, 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.