smart-contract-generator

Generate OpenZeppelin-based Solidity smart contracts for ERC-20, ERC-721, ERC-1155, and ERC-4626.

6|2|Updated Oct 31, 2025
One-click install
npx skills add https://github.com/Dexploarer/claudius-skills --skill smart-contract-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: smart-contract-generator
Source: https://github.com/Dexploarer/claudius-skills/tree/main/examples/advanced/web3-skills/smart-contract-generator
Command: npx skills add https://github.com/Dexploarer/claudius-skills --skill smart-contract-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @openzeppelin/contracts, hardhat, @nomicfoundation/hardhat-toolbox, dotenv.

What problem does it solve?

Writing secure and standard-compliant Solidity smart contracts is challenging, requiring deep knowledge of best practices and common vulnerabilities. This Skill automates the generation of various contract types, leveraging OpenZeppelin for security and reliability.

Core Features & Use Cases

  • Standard-Compliant Contracts: Generates ERC-20, ERC-721, and ERC-1155 tokens, along with custom contracts, all built on OpenZeppelin's audited libraries.
  • Built-in Security & Best Practices: Includes patterns for reentrancy protection, access control, pull-over-push, gas optimization, and a comprehensive audit checklist.
  • Use Case: "Create an ERC-721 NFT contract with a max supply of 10,000, a mint price of 0.05 ETH, and an owner-controlled pause function."

Quick Start

Generate an ERC-20 token contract named 'MyCoin' with symbol 'MC' and an initial supply of 1,000,000 tokens, owned by the deployer.

Frequently Asked Questions about smart-contract-generator

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

FAQPage Schema
How do I generate a secure ERC-20 token contract?

Generate ERC-20 token contracts using OpenZeppelin's audited libraries, which automatically implement access control, safe transfer logic, and best practices. Specify token name, symbol, and initial supply to create a secure, standard-compliant contract in seconds.

Can I create an NFT contract with custom minting rules and supply limits?

Yes, generate ERC-721 NFT contracts with owner-controlled pause functions, max supply caps, and custom mint pricing. The Skill implements OpenZeppelin patterns ensuring secure minting, proper access control, and dependable transfer logic for your specifications.

What security features are included in generated Solidity contracts?

Generated contracts include reentrancy protection, access control via Ownable, pausable functionality, burnable tokens, permit extensions, and gas optimization patterns. All patterns are built on OpenZeppelin's audited libraries with a comprehensive audit checklist.

Do I need Hardhat and OpenZeppelin to use generated smart contracts?

Generated contracts depend on @openzeppelin/contracts for security patterns and Hardhat for deployment and testing. These dependencies are included in the contract output, simplifying setup and ensuring compatibility with standard Web3 development workflows.

Can I generate custom smart contracts beyond ERC-20 and ERC-721?

Yes, beyond standard tokens and NFTs, generate ERC-1155 multi-token contracts, ERC-4626 vault contracts, and fully custom contracts. All use OpenZeppelin patterns to ensure secure access control, proper overrides, and reliable transfer logic tailored to your requirements.

What's the best way to ensure generated contracts follow security best practices?

Generated contracts implement OpenZeppelin-based patterns including pull-over-push mechanics, proper access control separation, and comprehensive audit checklists. The Skill automates adherence to proven security patterns, reducing manual vulnerability risks in contract development.