setup-solidity-contracts

Initialize and configure Solidity projects with Hardhat or Foundry and OpenZeppelin Contracts.

2|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/mochi-minds/mochiminds --skill setup-solidity-contracts-mochi-minds
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-solidity-contracts
Source: https://github.com/mochi-minds/mochiminds/tree/main/.claude/skills/setup-solidity-contracts
Command: npx skills add https://github.com/mochi-minds/mochiminds --skill setup-solidity-contracts-mochi-minds

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Set up Solidity projects quickly by selecting a framework (Hardhat or Foundry), installing OpenZeppelin Contracts, and configuring remappings and import conventions.

Core Features & Use Cases

  • Automatically detect the project framework (Hardhat or Foundry) and guide setup steps.
  • Install and configure OpenZeppelin Contracts, including upgradeable variants when needed.
  • Configure remappings for Foundry and standard imports for Hardhat/OpenZeppelin.
  • Use case: you start a new Solidity project and want a clean, standards-compliant setup ready for development and testing.

Quick Start

Ask me to set up a Solidity project with Hardhat or Foundry, and I will initialize the project, install OpenZeppelin contracts, and configure remappings accordingly.

Frequently Asked Questions about setup-solidity-contracts

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

FAQPage Schema
How do I set up a Solidity project with OpenZeppelin contracts?

Setting up a Solidity project involves initializing it with Hardhat or Foundry, installing OpenZeppelin contracts, and configuring remappings for standard imports. This creates a clean, standards-compliant environment ready for development and testing.

What is the best way to configure Solidity remappings for Foundry?

Configuring Solidity remappings for Foundry requires mapping import paths to installed dependencies like OpenZeppelin contracts. This setup ensures the compiler resolves library imports correctly, preventing path resolution errors during compilation and testing.

How do I add OpenZeppelin upgradeable contracts to an existing Hardhat project?

Adding OpenZeppelin upgradeable contracts to an existing Hardhat project involves installing the specific upgradeable variants and adjusting import conventions. This allows you to build secure, proxy-pattern smart contracts that can be updated after deployment.

Do I need Node or Foundry installed to bootstrap a Solidity project?

Yes, you need a functioning Node or Foundry toolchain installed to bootstrap a Solidity project. The setup process detects the available framework and uses the corresponding toolchain to install dependencies, apply configurations, and manage OpenZeppelin versions.

Can I initialize a Solidity project using Hardhat and OpenZeppelin together?

Yes, you can initialize a Solidity project using Hardhat and OpenZeppelin together. The setup process automatically detects Hardhat, installs OpenZeppelin contracts, and applies the appropriate standard import conventions for the framework.

Why are my Solidity OpenZeppelin imports not resolving after project setup?

Solidity OpenZeppelin imports may not resolve due to incorrect remappings or missing version pinning. Configuring remappings correctly for Foundry or standard imports for Hardhat ensures the compiler locates the installed OpenZeppelin contracts during compilation.