Skills for Real Engineers. Straight from my .agents directory.
web3-testing
Agent skill fromwshobson/agents
Test smart contracts comprehensively using Hardhat and Foundry with unit tests, integration tests, and mainnet forking. Use when testing Solidity contracts, setting up blockchain test suites, or validating DeFi protocols.
How to install web3-testing
npx skills add wshobson/agents# or add only this skill to Claude Code: copy the folder
plugins/blockchain-web3/skills/web3-testing/
# into
~/.claude/skills/web3-testing/ (all projects)
.claude/skills/web3-testing/ (one project)
1# Web3 Smart Contract Testing23Master comprehensive testing strategies for smart contracts using Hardhat, Foundry, and advanced testing patterns.45## When to Use This Skill67- Writing unit tests for smart contracts8- Setting up integration test suites9- Performing gas optimization testing10- Fuzzing for edge cases11- Forking mainnet for realistic testing12- Automating test coverage reporting13- Verifying contracts on Etherscan1415## Hardhat Testing Setup1617```javascript18// hardhat.config.js19require("@nomicfoundation/hardhat-toolbox");20require("@nomiclabs/hardhat-etherscan");21require("hardhat-gas-reporter");22require("solidity-coverage");2324module.exports = {25 solidity: {26 version: "0.8.19",27 settings: {28 optimizer: {29 enabled: true,30 runs: 200,31 },32 },33 },34 networks: {35 hardhat: {36 forking: {37 url: process.env.MAINNET_RPC_URL,38 blockNumber: 15000000,39 },40 },41 goerli: {42 url: process.env.GOERLI_RPC_URL,43 accounts: [process.env.PRIVATE_KEY],44 },45 },46 gasReporter: {47 enabled: true,48 currency: "USD",49 coinmarketcap: process.env.COINMARKETCAP_API_KEY,50 },51 etherscan: {52 apiKey: process.env.ETHERSCAN_API_KEY,53 },54};55```5657## Unit Testing Patterns5859```javascript60const { expect } = require("chai");61const { ethers } = require("hardhat");62const {63 loadFixture,64 time,65} = require("@nomicfoundation/hardhat-network-helpers");6667describe("Token Contract", function () {68 // Fixture for test setup69…
Excerpt shown under the repository's MIT license.
More skills in agents
Similar skill repositories
An agentic skills framework & software development methodology that works.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Production-grade engineering skills for AI coding agents.
The open-source app everyone uses to manage agents at work
