solidity-testing

solidity-testing is a skill for Claude Code, Codex from 0xlayerghost/solidity-agent-kit. It costs 54 tokens per session (1,329 once invoked), scanned A, a copy of solidity-testing, MIT.

A set of testing rules for Solidity smart contracts, including where tests go, how they are named, and which situations they must cover. Tests are checks that confirm code behaves correctly and rejects invalid actions.

In plain words
What is it for?
Use it when building Solidity tests for successful operations, permission checks, boundary values, failed transactions, and targeted test runs.
Why use it?
It reduces the chance that core contract functions fail for normal inputs, unauthorized users, edge cases, or expected error conditions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when building Solidity tests for successful operations, permission checks, boundary values, failed transactions, and targeted test runs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/0xlayerghost/solidity-agent-kit/solidity-testing
Install

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.

Any agent
npx skills add 0xlayerghost/solidity-agent-kit --skill solidity-testing
Clone the repo
git clone --depth 1 https://github.com/0xlayerghost/solidity-agent-kit

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for solidity-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/0xlayerghost/solidity-agent-kit/solidity-testing/github.svg)](https://agentmods.dev/skills/0xlayerghost/solidity-agent-kit/solidity-testing)
Your own site
<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.

agentmods 80×15 button for solidity-testing

Your own site · 80×15
<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>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,329 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash 4fc1c18a0d9e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

Origin

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.

skills/solidity-testing/SKILL.md · 130 lines

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 Contracts 5.0.2, and the Foundry version installed by the repository.
  • Read foundry.toml before 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 tests testFuzz_<behavior>.
  • Do not use testFail_*. Assert the intended failure with vm.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

Read the full file on GitHub · 130 lines

Files

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.

Changes

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.

  1. 1mo ago Changed · +47 lines · -3 tokens per session 4fc1c18a0d9e
  2. 3mo ago First seen · 83 lines · 57 tokens per session scan A a9371413712f

Subscribe to this mod's changes

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.

Related

solidity-testing compared with skills from other repositories

solidity-testing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
solidity-testing0xlayerghost/solidity-agent-kitSkill41mo agoMITA54Claude Code, Codex
web3-bug-classesAwarexone/web3-bug-bounty-hunting-ai-skillsSkill1443mo agoMITA72Claude Code, Codex
web3-methodology-researchAwarexone/web3-bug-bounty-hunting-ai-skillsSkill1443mo agoMITA66Claude Code, Codex
web3-poc-foundryAwarexone/web3-bug-bounty-hunting-ai-skillsSkill1443mo agoMITA59Claude Code, Codex
web3-triage-reportAwarexone/web3-bug-bounty-hunting-ai-skillsSkill1443mo agoMITA59Claude Code, Codex
web3-case-study-role-misconfigAwarexone/web3-bug-bounty-hunting-ai-skillsSkill1443mo agoMITA40Claude Code, Codex
web3-grep-arsenalAwarexone/web3-bug-bounty-hunting-ai-skillsSkill1443mo agoMITA39Claude Code, Codex