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 skills add 0xlayerghost/solidity-agent-kit --skill solidity-testinggit clone --depth 1 https://github.com/0xlayerghost/solidity-agent-kitWrote 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/0xlayerghost/solidity-agent-kit/solidity-testing)<a href="https://agentmods.dev/skills/0xlayerghost/solidity-agent-kit/solidity-testing"><img src="https://agentmods.dev/badge/skills/0xlayerghost/solidity-agent-kit/solidity-testing/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/0xlayerghost/solidity-agent-kit/solidity-testing"><img src="https://agentmods.dev/badge/skills/0xlayerghost/solidity-agent-kit/solidity-testing.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00054 | $0.01329 |
| Opus 5.5 | $0.00022 | $0.00532 |
| Sonnet 5.5 | $0.00011 | $0.00266 |
| Haiku 4.5 | $0.00005 | $0.00133 |
Grade A, and why
solidity-testing 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 1mo ago.
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.
This is a copy
100% identical to solidity-testing — 88 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Solidity Testing Standards
Language Rule
- Always respond in the same language the user is using. If the user asks in Chinese, respond in Chinese. If in English, respond in English.
Toolchain Baseline
- Use
solc 0.8.24, OpenZeppelin Contracts5.0.2, and the Foundry version installed by the repository. - Read
foundry.tomlbefore changing test configuration. Preserve existing profiles and raise fuzz or invariant intensity according to risk instead of overwriting project settings. - Use OpenZeppelin 5.x APIs and import paths in test fixtures and mocks.
Test Organization
- Organize tests by behavior and boundary: unit, integration, fuzz, invariant, fork, and regression tests may use separate contracts or directories.
- Name ordinary tests
test_<behavior>_<scenario>and fuzz teststestFuzz_<behavior>. - Do not use
testFail_*. Assert the intended failure withvm.expectRevert, preferably matching a custom-error selector or fully encoded error. - Each test must run independently. Use
setUp()for fixtures and never depend on execution order. - Keep helpers and mocks minimal. A reference model must be independent from the production implementation it checks.
Behavioral Coverage
Every core function must have tests covering:
| Scenario | What to verify |
|---|---|
| Happy path | Standard input → expected output, correct state changes |
| Permission checks | Unauthorized caller → vm.expectRevert with correct error |
| Boundary conditions | Domain minimum/maximum, zero where valid, and off-by-one values |
| Failure scenarios | Security-relevant require, revert, and custom-error paths |
| State changes | Storage and balance deltas; events alone are not proof of correct state |
| Edge cases | Empty arrays, duplicate calls, self-transfers |
Select additional tests from the contract's behavior:
| Contract behavior | Additional tests |
|---|---|
| External callbacks | Reentrancy, rejecting receiver, malformed return data |
| ERC20 integration | No-return, fee-on-transfer, rebase, and approval-reset behavior |
| Signatures | Replay, wrong signer, chain, nonce, and expired deadline |
| Oracle consumption | Stale/invalid answers, decimals, deviation, and low-liquidity conditions |
| Proxy/initializer | Reinitialization, uninitialized implementation, authorization, storage compatibility |
| Accounting/vault math | Rounding direction, first deposit, donation, solvency, and conservation |
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 1mo ago Changed · +47 lines · -3 tokens per session 4fc1c18a0d9e
- 3mo ago First seen · 83 lines · 57 tokens per session scan A a9371413712f
solidity-testing is a skill published in the GitHub repository 0xlayerghost/solidity-agent-kit (4 stars, last pushed 1mo ago), licensed MIT. It adds 54 tokens to every session and 1,329 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to solidity-testing, differing in 88 lines, and is treated as a copy.
solidity-testing compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| solidity-testing0xlayerghost/solidity-agent-kit | Skill | 4 | 1mo ago | MIT | A | 54 | Claude Code, Codex |
| web3-bug-classesAwarexone/web3-bug-bounty-hunting-ai-skills | Skill | 144 | 3mo ago | MIT | A | 72 | Claude Code, Codex |
| web3-methodology-researchAwarexone/web3-bug-bounty-hunting-ai-skills | Skill | 144 | 3mo ago | MIT | A | 66 | Claude Code, Codex |
| web3-poc-foundryAwarexone/web3-bug-bounty-hunting-ai-skills | Skill | 144 | 3mo ago | MIT | A | 59 | Claude Code, Codex |
| web3-triage-reportAwarexone/web3-bug-bounty-hunting-ai-skills | Skill | 144 | 3mo ago | MIT | A | 59 | Claude Code, Codex |
| web3-case-study-role-misconfigAwarexone/web3-bug-bounty-hunting-ai-skills | Skill | 144 | 3mo ago | MIT | A | 40 | Claude Code, Codex |
| web3-grep-arsenalAwarexone/web3-bug-bounty-hunting-ai-skills | Skill | 144 | 3mo ago | MIT | A | 39 | Claude Code, Codex |