foundry-setup

Initialize and configure Foundry projects with forge init and foundry.toml settings.

120|12|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ccashwell/evm-cortex --skill foundry-setup-ccashwell
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: foundry-setup
Source: https://github.com/ccashwell/evm-cortex/tree/main/skills/foundry-setup
Command: npx skills add https://github.com/ccashwell/evm-cortex --skill foundry-setup-ccashwell

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamlines the creation and configuration of Foundry projects from scratch, ensuring a consistent starting point and reducing setup time.

Core Features & Use Cases

  • Project bootstrap: Initialize a new Foundry project with a standard directory layout and template files.
  • Configuration: Generate and customize foundry.toml settings (solc version, optimizer, via-ir, auto-detection).
  • Remappings & dependencies: Establish import remappings and manage dependencies for a reproducible environment.

Quick Start

Initialize a new Foundry project and customize its configuration with a single, clear command.

Frequently Asked Questions about foundry-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a Foundry project from scratch with the correct directory structure?

To set up a Foundry project from scratch, you initialize it with a standard directory layout and template files. This process establishes the baseline structure and generates a customizable foundry.toml configuration file.

What is the best way to configure solc version and optimizer settings in foundry.toml?

Configuring solc version and optimizer settings in foundry.toml involves defining specific parameters within the configuration file. This ensures reproducible builds by standardizing compiler options, including via-ir and auto-detection settings.

How do I manage dependencies and import remappings in a Foundry project?

Managing dependencies and import remappings in a Foundry project requires establishing clear import paths within your configuration. This creates a reproducible environment by mapping dependency locations for the Solidity compiler.

Can I use forge init to add Foundry configuration to an existing repository?

You can use forge init to apply Foundry configuration to an existing repository. The setup process supports both new repositories and existing projects by integrating the standard foundry.toml template and baseline tooling options.

Why do I need to define standard remappings for reproducible Solidity builds?

Defining standard remappings is necessary for reproducible Solidity builds because it ensures consistent import resolution across different environments. This prevents compilation errors caused by mismatched dependency paths.