a5c-ai/babysitter / library/specializations/cryptography-blockchain/skills/foundry-framework
foundry-framework
FlaggedExpert usage of Foundry (Forge, Cast, Anvil, Chisel) for smart contract development, testing, and deployment. Includes fuzzing, gas reporting, local development, and deployment scripting capabilities.
README.md
View on GitHub# Foundry Framework Skill
Expert usage of Foundry (Forge, Cast, Anvil, Chisel) for smart contract development, testing, and deployment.
## Overview
This skill provides comprehensive capabilities for using Foundry, the blazing fast Ethereum development toolkit written in Rust.
## Key Capabilities
- **Forge**: Compile, test, and deploy smart contracts
- **Cast**: Interact with EVM chains from the command line
- **Anvil**: Spin up local development nodes
- **Chisel**: Solidity REPL for quick prototyping
## Quick Start
```bash
# Install Foundry
curl -L https://foundry.paradigm.xyz | bash
foundryup
# Create project
forge init my_project && cd my_project
# Build and test
forge build
forge test -vvv
```
## Key Commands
```bash
# Run tests with gas report
forge test --gas-report
# Fork mainnet
anvil --fork-url $RPC
# Call contract
cast call $CONTRACT "balanceOf(address)" $ADDR
# Deploy script
forge script script/Deploy.s.sol --broadcast
```
## Related Resources
- [SKILL.md](./SKILL.md) - Full skill specification
- [Foundry Book](https://book.getfoundry.sh/)
- [GitHub](https://github.com/foundry-rs/foundry)
## Process Integration
- `smart-contract-development-lifecycle.js`
- `smart-contract-fuzzing.js`
- `invariant-testing.js`
- `gas-optimization.js`
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |