Foundry lifecycle
Skill dor-rondel/agent-skills-mcp/resources/solidity/foundry-lifecycle
Use this skill when the user asks to compile contracts, run tests, analyze gas usage, format code, or deploy to a local/remote EVM network using Forge.From its SKILL.md
npx -y skills add dor-rondel/agent-skills-mcp --skill foundry-lifecycleAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
3 things to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
- runs commandsInstructs the agent to run 6 commands, including `forge build` and 5 more.
- fetches URLsInstructs the agent to fetch 1 URL, including http://127.0.0.1:8545.
SKILL.md
1.6 KB, 339 tokens by cl100k_base, as published. Nobody here has run it
Foundry Smart Contract Workflow
This skill hooks into the repository's Foundry toolchain (forge) to manage the compilation, testing, and deployment lifecycle of the EVM smart contracts.
🛠️ Environment Constraints
- Toolchain Required:
foundryup(forge,anvil) - Project Root: Execute all commands from the directory containing
foundry.toml.
🏃♂️ Core Development Commands
1. Code Compilation & Artifacts
Compile the Solidity source files and generate the necessary ABIs and bytecodes:
forge build
2. Testing Suite Execution
Run the contract test suite to verify correctness and safety:
forge test
3. Gas Metrics & Analysis
Run tests while generating an inline breakdown of gas consumption per function and deployment:
forge test --gas-report
4. Code Formatting
Format all local Solidity source files (*.sol) to maintain style guide standards:
forge fmt
🚀 Local Network & Deployment Workflow
1. Spin Up Local Ledger (Anvil)
When debugging or deploying locally, boot a native local EVM node in an isolated terminal or background process:
anvil
2. Broadcast Local Deployment Script
Run the deployment script, sign transactions with local test keys, and broadcast them directly to the active Anvil instance:
forge script script/Deploy.s.sol --rpc-url http://127.0.0.1:8545 --broadcast
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.