openzeppelin avatar

Setup Solidity Contracts

Handles the boilerplate of getting a Solidity project off the ground with OpenZeppelin contracts, whether you're using Hardhat or Foundry. It'll detect your framework if you've already started, or walk you through initialization if you haven't. The remappings guidance for Foundry is genuinely helpful since that's where most people mess up, especially the note about how upgradeable contract remappings need to point everything through the upgradeable submodule for Etherscan verification to work. Solid time saver if you're spinning up smart contract projects regularly and tired of looking up the same forge install commands and import paths every time.

skills.sh installs
600
GitHub stars
222
last updated
Aug 21, 2026

Install

$ npx -y skills add openzeppelin/openzeppelin-skills --skill setup-solidity-contracts --agent claude-code

Installs into .claude/skills of the current project.

Files

Solidity Setup

For existing projects, detect the framework by looking for hardhat.config.* (Hardhat) or foundry.toml (Foundry). For new projects, ask the user which framework they prefer.

Hardhat Setup

  • Initialize project (only if starting a new project)
npx hardhat init        # Hardhat v2
npx hardhat --init      # Hardhat v3
  • Install OpenZeppelin Contracts:
npm install @openzeppelin/contracts
  • If using upgradeable contracts, also install the upgradeable variant:
npm install @openzeppelin/contracts-upgradeable

Foundry Setup

  • Install Foundry
curl -L https://foundry.paradigm.xyz | bash
foundryup
  • Initialize project (only if starting a new project)
forge init my-project
cd my-project
  • Add OpenZeppelin Contracts:
forge install OpenZeppelin/openzeppelin-contracts@v<VERSION>
  • If using upgradeable contracts, also add the upgradeable variant:
forge install OpenZeppelin/openzeppelin-contracts-upgradeable@v<VERSION>

Sponsors

Details

Repository
github.com/openzeppelin/openzeppelin-skills
Category
Web3 & Blockchain
First seen
Jun 3, 2026

More from openzeppelin/openzeppelin-skills

All 5
1openzeppelin avatarupgrade-solidity-contractsopenzeppelin/openzeppelin-skillsUpgrade Solidity smart contracts using OpenZeppelin proxy patterns. Use when users need to: (1) make contracts upgradeable with UUPS, Transparent, or Beacon pro500skills.sh installs
2longbridge avatarlongbridge-onchainlongbridge/skillsOn-chain data analysis framework — covers active addresses, whale behaviour, TVL (total value locked), DEX liquidity, and on-chain valuation metrics: MVRV (mark495skills.sh installs
3cobosteven avatarcobo-agentic-wallet-sandboxcobosteven/cobo-agent-wallet-manualCreate and manage agentic wallets with Cobo. Use for autonomous onchain operations via the caw CLI: token transfers, contract calls, pact creation and approval,420skills.sh installs
4austintgriffith avatarethereum-wingmanaustintgriffith/ethereum-wingmanEthereum development tutor and builder for Scaffold-ETH 2 projects. Triggers on "build", "create", "dApp", "smart contract", "Solidity", "DeFi", "Ethereum", "we401skills.sh installs
5coboglobal avatarcobo-agentic-walletcoboglobal/cobo-agentic-walletCreate and manage agentic wallets with Cobo. Use for autonomous onchain operations via the caw CLI: token transfers, contract calls, pact creation and approval,344skills.sh installs
6aicoincom avataraicoin-onchainaicoincom/coinos-skillsUse this skill for **on-chain DEX trading and wallet operations on EVM/Solana chains**: token swap quotes, swap execution, wallet portfolio/balance queries, gas306skills.sh installs