Setup Solidity Contracts

Set up a Solidity smart contract project with OpenZeppelin Contracts. Use when users need to: (1) create a new Hardhat or Foundry project, (2) install OpenZeppelin Contracts dependencies for Solidity, (3) configure remappings for Foundry, or (4) understand Solidity import conventions for OpenZeppelin.

223 stars 38 forksFinance & Crypto Plugin marketplace

Install

Claude Code plugin
/plugin marketplace add OpenZeppelin/openzeppelin-skills

The repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add OpenZeppelin/openzeppelin-skills --skill setup-solidity-contracts
Manual install
git clone --depth 1 https://github.com/OpenZeppelin/openzeppelin-skills.git /tmp/openzeppelin-skills
mkdir -p ~/.claude/skills
cp -r /tmp/openzeppelin-skills/skills/setup-solidity-contracts ~/.claude/skills/setup-solidity-contracts

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# 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)

```bash
npx hardhat init        # Hardhat v2
npx hardhat --init      # Hardhat v3
```

- Install OpenZeppelin Contracts:

```bash
npm install @openzeppelin/contracts
```

- If using upgradeable contracts, also install the upgradeable variant:

```bash
npm install @openzeppelin/contracts-upgradeable
```

## Foundry Setup

- Install Foundry

```bash
curl -L https://foundry.paradigm.xyz | bash
foundryup
```

- Initialize project (only if starting a new project)

```bash
forge init my-project
cd my-project
```

- Add OpenZeppelin Contracts:

```bash
forge install OpenZeppelin/openzeppelin-contracts@v<VERSION>
```

- If using upgradeable contracts, also add the upgradeable variant:

```bash
forge install OpenZeppelin/openzeppelin-contracts-upgradeable@v<VERSION>
```

> Look up the current version from https://github.com/OpenZeppelin/openzeppelin-contracts/releases. Pin to a release tag — without one, `forge install` pulls the default branch, which may be unstable.

- `remappings.txt` (if not using upgradeable contracts)

```text
@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/
```

- `remappings.txt` (if using upgradeable contracts)
Read the full skill on GitHub

Details

Skill name
setup-solidity-contracts
Path
skills/setup-solidity-contracts/SKILL.md
License
AGPL-3.0
Repo updated
11 November 2026

FAQ

What does the Setup Solidity Contracts skill do?

Set up a Solidity smart contract project with OpenZeppelin Contracts. Use when users need to: (1) create a new Hardhat or Foundry project, (2) install OpenZeppelin Contracts dependencies for Solidity, (3) configure remappings for Foundry, or (4) understand Solidity import conventions for OpenZeppelin.

How do I install the Setup Solidity Contracts skill?

Claude Code plugin: /plugin marketplace add OpenZeppelin/openzeppelin-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Setup Solidity Contracts popular?

It lives in OpenZeppelin/openzeppelin-skills, which has 223 GitHub stars and 38 forks.

Related skills

Develop Secure Contracts

223

OpenZeppelin/openzeppelin-skills

Develop secure smart contracts using OpenZeppelin Contracts libraries. Use when users need to integrate OpenZeppelin library components — including token standards (ERC20, ERC721, ERC1155), access control (Ownable, AccessControl, AccessManager), security primitives (Pausable, ReentrancyGuard), governance (Governor, timelocks), or accounts (multisig, account abstraction) — into existing or new contracts. Covers pattern discovery from library source, CLI contract generators, and library-first integration. Supports Solidity, Cairo, Stylus, Stellar, and Sui Move.

Marketing, Sales & Business38

Migrate Defender to Cre

223

OpenZeppelin/openzeppelin-skills

Migrate OpenZeppelin Defender Actions, Autotasks, Monitors and scheduled or Relayer-backed workflows to Chainlink CRE. Use when assessing CRE migration feasibility, adapting an existing Defender workflow, or validating its event delivery and onchain permissions. Does not cover migration to the self-hosted OpenZeppelin Relayer when CRE is not requested.

Productivity & Notes38

Review Sui Contracts

223

OpenZeppelin/openzeppelin-skills

Review Sui Move code that integrates OpenZeppelin Contracts for Sui against the library's own patterns and conventions. Use this when a developer wants their integration checked before shipping. Triggers: "review my Sui Move code", "am I using OpenZeppelin correctly", "check this integration", "is this idiomatic", "review before audit". Checks correct use of OZ primitives, deviations from examples/doc-comments, upheld invariants, test coverage, and code-quality/style. This is an AI code review, not a formal security audit.

Marketing, Sales & Business38

Polymarket Trading

271

machina-sports/sports-skills

High-risk Polymarket trading operations — configure wallet-backed CLOB access, place limit/market orders, cancel orders, and view account-specific orders/trades. Requires py-clob-client-v2 and a user-controlled wallet. Use only when the user explicitly asks to trade or manage orders in the current session. Do not use for read-only odds, probabilities, market search, or event discovery — use the `polymarket` skill instead. Do not ask the user to paste private keys into chat. Do not place or cancel orders without explicit confirmation of token_id, side, price/amount, and size.

Finance & Crypto39

Using Entire

240

entireio/skills

Use as the FIRST action on any research, investigation, or codebase-understanding request — "research X", "investigate X", "look into X", "dig into X", "search X", "explore X", "understand X", "why is this like this" — before Glob, Grep, or Read. Recorded intent lives in Entire checkpoints on the server, not in local files, so an empty or unfamiliar working copy is not a reason to skip it. Routes to the right Entire sub-skill (search, recall, explain, what-happened, replay, teach, review, session-handoff).

Finance & Crypto28

Decision Tripwires

190

apple-ouyang/book-to-skill

Use when committing resources to a project, investment, or relationship. When feeling the pull of sunk cost. When a plan has no defined exit criteria. When you catch yourself thinking "let's wait and see what happens.

Finance & Crypto25

Browse the most popular Claude skills, all finance & crypto skills, or write your own with the skills generator.