setup-solidity-contracts

Automate Solidity project setup with OpenZeppelin contracts for Hardhat or Foundry.

Updated Oct 17, 2025
One-click install
npx skills add https://github.com/iamcapote/emptyrepo --skill setup-solidity-contracts-iamcapote
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-solidity-contracts
Source: https://github.com/iamcapote/emptyrepo/tree/main/skills/allied/openzeppelin-skills/skills/setup-solidity-contracts
Command: npx skills add https://github.com/iamcapote/emptyrepo --skill setup-solidity-contracts-iamcapote

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers bootstrap Solidity projects using OpenZeppelin Contracts, accelerating setup of Hardhat or Foundry environments and ensuring correct dependency installation and import conventions.

Core Features & Use Cases

  • Detect framework: Hardhat or Foundry, and tailor setup steps accordingly.
  • Install dependencies: OpenZeppelin Contracts and upgradeable variants as needed.
  • Configure remappings and imports for standard and upgradeable contracts; guidance for new projects and upgrades.
  • Use case: starting a new Solidity project or adding OZ contracts to an existing repo with correct tooling.

Quick Start

Create a new Solidity project using Hardhat or Foundry and install OpenZeppelin Contracts.

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 OpenZeppelin contracts involves detecting your framework, installing the correct dependencies, and configuring import remappings for both standard and upgradeable variants within your Hardhat or Foundry project.

Can I add OpenZeppelin contracts to an existing Hardhat or Foundry repository?

Yes, adding OpenZeppelin contracts to an existing repository is supported. The Skill detects your current framework and applies the correct dependency installation and import remappings without requiring a new project initialization.

What is the difference between importing standard and upgradeable OpenZeppelin contracts?

Standard and upgradeable OpenZeppelin contracts require distinct import conventions and dependency installations. The Skill guides these specific remappings to ensure your Solidity files reference the correct upgradeable variants when needed.

Does this setup guide work for both Hardhat and Foundry?

Yes, the setup works for both Hardhat and Foundry. It automatically detects which framework your project uses and tailors the OpenZeppelin contract installation and remapping steps to fit your specific environment.

Why are my OpenZeppelin import paths not resolving in my Solidity project?

Import paths fail to resolve when remappings are not configured correctly. The Skill addresses this by applying the proper import conventions and remappings for standard and upgradeable OpenZeppelin contracts based on your detected framework.