Foundry Solidity
This Foundry Solidity skill enables developers to write, compile, and deploy smart contracts directly within the Foundry environment for efficient blockchain development.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add foundry-solidity npx -- -y @trustedskills/foundry-solidity
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"foundry-solidity": {
"command": "npx",
"args": [
"-y",
"@trustedskills/foundry-solidity"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
The Foundry-Solidity skill enables AI agents to interact directly with the Foundry smart contract development environment. It allows for compiling Solidity code, running tests, and executing local deployments within a secure sandboxed context.
When to use it
- Automate the compilation of new Solidity contracts to verify syntax and dependency resolution before manual review.
- Trigger automated test suites against deployed smart contracts to ensure logic integrity after code changes.
- Execute local network deployments to simulate production environments without interacting with public mainnets.
- Debug contract behavior by running specific test cases or inspecting state variables in a controlled Foundry instance.
Key capabilities
- Compiles Solidity source files using the Foundry toolchain.
- Executes unit and integration tests defined in
test/directories. - Deploys contracts to local Ethereum networks (e.g., Sepolia, Anvil).
- Manages Foundry project configurations and environment variables.
Example prompts
- "Compile my Solidity contract located at
src/Token.soland report any compilation errors." - "Run all tests in the
test/ERC20.test.solfile and summarize the pass/fail results." - "Deploy the
SafeTransferProxyAdmincontract to a local Anvil network using the provided configuration."
Tips & gotchas
Ensure your AI agent has access to the necessary Foundry binaries and project structure before attempting compilation or deployment tasks. This skill operates locally within the Foundry environment, so it cannot interact with live mainnet transactions directly.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.