web3-testing
Master comprehensive testing strategies for smart contracts using Hardhat, Foundry, and advanced testing patterns.
npx skills add sickn33/agentic-awesome-skills --skill web3-testing --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Web3 Smart Contract Testing Master comprehensive testing strategies for smart contracts using Hardhat, Foundry, and advanced testing patterns. ## Do not use this skill when - The task is unrelated to web3 smart contract testing - You need a different domain or tool outside this scope ## Instructions - Clarify goals, constraints, and required inputs. - Apply relevant best practices and validate outcomes. - Provide actionable steps and verification. - If detailed examples are required, open `resources/implementation-playbook.md`. ## Use this skill when - Writing unit tests for smart contracts - Setting up integration test suites - Performing gas optimization testing - Fuzzing for edge cases - Forking mainnet for realistic testing - Automating test coverage reporting - Verifying contracts on Etherscan ## Hardhat Testing Setup ```javascript // hardhat.config.js require("@nomicfoundation/hardhat-toolbox"); require("@nomiclabs/hardhat-etherscan"); require("hardhat-gas-reporter"); require("solidity-coverage"); module.exports = { solidity: { version: "0.8.19", settings: { optimizer: { enabled: true, runs: 200, }, }, }, networks: { hardhat: { forking: { url: process.env.MAINNET_RPC_URL, b
- Do not use this skill when
- Instructions
- Use this skill when
- Hardhat Testing Setup
- Unit Testing Patterns
- Foundry Testing (Forge)
- Advanced Testing Patterns
- Snapshot and Revert
- Mainnet Forking
- Impersonating Accounts
- Gas Optimization Testing
- Coverage Reporting
- Contract Verification
- CI/CD Integration
Generate coverage report npx hardhat coverage Output shows: File | % Stmts | % Branch | % Funcs | % Lines | contracts/Token.sol | 100 | 90 | 100 | 95 | Or via CLI npx hardhat verify --network mainnet CONTRACT_ADDRESS "Constructor arg1" "arg2"
What does the web3-testing skill do?
Master comprehensive testing strategies for smart contracts using Hardhat, Foundry, and advanced testing patterns.
How do I install it?
Run `npx skills add sickn33/agentic-awesome-skills --skill web3-testing --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.