Skip to content

a5c-ai/babysitter / library/specializations/cryptography-blockchain/skills/foundry-framework

foundry-framework

Flagged

Expert usage of Foundry (Forge, Cast, Anvil, Chisel) for smart contract development, testing, and deployment. Includes fuzzing, gas reporting, local development, and deployment scripting capabilities.

FileKindSize
README.mdmarkdown1.3 KB
SKILL.mdskill md7.4 KB
# 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`
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall