openzeppelin

Generate EVM smart contracts using OpenZeppelin v5 libraries.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/0xinit/cryptoskills --skill openzeppelin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openzeppelin
Source: https://github.com/0xinit/cryptoskills/tree/main/skills/openzeppelin
Command: npx skills add https://github.com/0xinit/cryptoskills --skill openzeppelin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides access to the OpenZeppelin Contracts v5 library, enabling developers to build secure, audited, and feature-rich smart contracts on EVM-compatible blockchains without reinventing the wheel.

Core Features & Use Cases

  • Standard Token Implementations: Easily deploy ERC-20, ERC-721, and ERC-1155 tokens with various extensions (burnable, pausable, permit, votes).
  • Access Control: Implement robust permission systems using Ownable, AccessControl, or the new AccessManager.
  • Security Utilities: Leverage battle-tested ReentrancyGuard, SafeERC20, and Pausable for enhanced contract safety.
  • Upgradeable Contracts: Utilize the UUPS pattern for secure and gas-efficient contract upgrades.
  • Use Case: When developing a new DeFi protocol, use OpenZeppelin's ERC20Votes contract to create a governance token that integrates seamlessly with on-chain governance mechanisms.

Quick Start

Use the openzeppelin skill to generate a basic ERC20 token contract.

Frequently Asked Questions about openzeppelin

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

FAQPage Schema
How do I build secure smart contracts in Solidity without reinventing the wheel?

Build secure smart contracts by leveraging the OpenZeppelin Contracts v5 library, which provides audited standard implementations like ERC20, ERC721, and access control patterns to ensure robust infrastructure on EVM-compatible blockchains.

How do I implement an upgradeable smart contract using the UUPS pattern?

Implement an upgradeable smart contract using the UUPS pattern provided by the OpenZeppelin library, enabling secure and gas-efficient contract upgrades on EVM-compatible blockchains without losing stored state data.

What is the best way to add access control to an ERC20 token?

Add access control to an ERC20 token by integrating OpenZeppelin's Ownable, AccessControl, or AccessManager patterns, allowing you to define robust permission systems for administrative functions on EVM blockchains.

How do I prevent reentrancy attacks in my Solidity smart contract?

Prevent reentrancy attacks by applying OpenZeppelin's ReentrancyGuard utility to your smart contract, a battle-tested security mechanism that blocks recursive external calls during state-changing operations.

Does OpenZeppelin v5 support ERC1155 multi-token standard implementations?

Yes, OpenZeppelin v5 supports the ERC1155 multi-token standard, allowing you to deploy batch-transferable tokens with various extensions like burnable or pausable features on EVM-compatible blockchains.

What security utilities are available for protecting DeFi protocol smart contracts?

Protect DeFi protocol smart contracts with OpenZeppelin's security utilities including ReentrancyGuard for reentrancy protection, SafeERC20 for safe token transfers, and Pausable for emergency circuit-breaking functionality.