foundry-solidity

Solid

Build and test Solidity smart contracts with Foundry toolkit. Use when developing Ethereum contracts, writing Forge tests, deploying with scripts, or debugging with Cast/Anvil. Triggers on Foundry commands (forge, cast, anvil), Solidity testing, smart contract development, or files like foundry.toml, *.t.sol, *.s.sol.

AI & Automation 31 stars 2 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 85/100

Stars 20%
50
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Foundry Solidity Development Complete guide for building secure, efficient smart contracts with **Foundry 1.5.0** and **Solidity 0.8.30**. ## When to Use This Skill - Developing Ethereum/EVM smart contracts - Writing Forge tests (unit, fuzz, invariant, fork) - Deploying contracts with scripts - Using Foundry tools (forge, cast, anvil, chisel) - Working with `foundry.toml`, `*.t.sol`, `*.s.sol` files - Debugging transactions and contract interactions ## Quick Start ```bash # Create new project forge init my-project && cd my-project # Build contracts forge build # Run tests forge test # Deploy (dry-run) forge script script/Deploy.s.sol --rpc-url sepolia # Deploy (broadcast) forge script script/Deploy.s.sol --rpc-url sepolia --broadcast --verify ``` ## Project Structure ``` my-project/ ├── foundry.toml # Configuration ├── src/ # Contracts │ └── Counter.sol ├── test/ # Tests (*.t.sol) │ └── Counter.t.sol ├── script/ # Deploy scripts (*.s.sol) │ └── Deploy.s.sol └── lib/ # Dependencies └── forge-std/ ``` ## Core Commands ### Build & Test ```bash forge build # Compile forge test # Run all tests forge test -vvvv # With traces forge test --match-test testDeposit # Filter by test name forge test --match-contract Vault # Filter by contract forge test --fork-url $RPC_URL # Fork testing forge test --gas-report ...

Details

Author
tenequm
Repository
tenequm/skills
Created
8 months ago
Last Updated
3 days ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

foundry-solidity

Build, test, secure, and automate Solidity 0.8.36 smart contracts with the Foundry toolkit (EVM target Osaka/Fusaka). Use when developing Ethereum/EVM contracts, writing Forge tests (unit/fuzz/invariant/fork), auditing/reviewing contracts for vulnerabilities, setting up CI/gas-regression/ABI-breaking-change gates, deploying (incl. signing/multisig/secrets hygiene), debugging with Cast/Anvil/Chisel, configuring foundry.toml, or checking 0.8.36 language semantics. Bundles the authoritative Solidity 0.8.36 + Foundry docs, a verified runnable starter project, a one-command quality gate (scripts/verify.sh), a security vulnerability→fix catalogue and audit workflow with a severity rubric, and a graded eval suite. Triggers on Foundry commands (forge, cast, anvil, chisel), Solidity testing/auditing/security-review requests, smart-contract development, gas optimization, deployment/signing questions, solc/EVM-version questions, or files like foundry.toml, *.t.sol, *.s.sol.

0 Updated 1 weeks ago
mrheyday
Testing & QA Listed

foundry-testing

ALWAYS load before writing or modifying Foundry test files (.t.sol). Covers fuzz testing, gas benchmarks, naming conventions, and test patterns.

0 Updated 1 weeks ago
mrheyday
DevOps & Infrastructure Listed

forge

Build, audit, deploy, and reason about the Forge + Loom + Crawler substrate. Token-efficient subcommand surface, structured JSON output; reach for these before bash/grep. Use in any tenant or substrate repo. Heavy ops defer to the `forge` MCP server.

0 Updated 5 days ago
thepictishbeast