web3-testing

Validate Solidity smart contracts with Hardhat and Foundry test suites.

Updated Jul 8, 2026
One-click install
npx skills add https://github.com/PriyanshKuniyal/gemini-cli-resources --skill web3-testing-priyanshkuniyal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: web3-testing
Source: https://github.com/PriyanshKuniyal/gemini-cli-resources/tree/main/extensions/claude-code-workflows/plugins/blockchain-web3/skills/web3-testing
Command: npx skills add https://github.com/PriyanshKuniyal/gemini-cli-resources --skill web3-testing-priyanshkuniyal

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires hardhat, foundry, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill unit addresses the challenge of comprehensively testing smart contracts for security vulnerabilities and performance issues. It ensures that your contracts are robust and reliable, crucial for blockchain and DeFi applications.

Core Features & Use Cases

  • Smart Contract Testing: Offers a suite of testing tools using Hardhat and Foundry to create and run tests for smart contracts.
  • Test Types: Includes unit tests, integration tests, and mainnet forking for comprehensive testing.
  • Use Case: Ideal for developers looking to validate Solidity contracts, set up blockchain test suites, and test DeFi protocols.

Quick Start

Deploy a contract and then use this skill to execute 'npx hardhat test' to run all tests.

Frequently Asked Questions about web3-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test Solidity smart contracts for security and performance?

You test Solidity smart contracts by running unit and integration tests with Hardhat and Foundry. This validates functionality, security, and efficiency, and supports mainnet forking to ensure contracts are robust for DeFi applications.

Can I fork mainnet for realistic smart contract testing scenarios?

Yes, you can fork mainnet to create realistic smart contract testing scenarios. This skill leverages Hardhat and Foundry to simulate live network states, allowing you to validate DeFi protocols against actual blockchain conditions.

Do I need both Hardhat and Foundry installed to run smart contract tests?

Yes, you need both Hardhat and Foundry toolchains installed to execute the scripts and simulations. These dependencies are required to validate the functionality and security of your Solidity-based smart contracts.

What is the best way to set up a blockchain test suite for DeFi protocols?

The best way to set up a blockchain test suite for DeFi protocols is using Hardhat and Foundry. This skill creates unit and integration tests and forks mainnet to comprehensively validate contract functionality, security, and efficiency.

How do I execute Hardhat tests after deploying a contract?

You execute Hardhat tests after deploying a contract by running the 'npx hardhat test' command. This launches the test suite to validate the functionality and security of your Solidity smart contracts.