new-contract

Generate Solidity smart contracts, test files, Ignition modules, and Hardhat tasks.

48|23|Updated Aug 3, 2021
One-click install
npx skills add https://github.com/protokol/solidity-typescript-hardhat-template --skill new-contract
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-contract
Source: https://github.com/protokol/solidity-typescript-hardhat-template/tree/main/.claude/skills/new-contract
Command: npx skills add https://github.com/protokol/solidity-typescript-hardhat-template --skill new-contract

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the process of creating new Solidity smart contracts by generating all necessary files with best practices and project conventions.

Core Features & Use Cases

  • Contract Generation: Automates creating Solidity contracts with proper imports, constructors, and licensing.
  • Testing Setup: Produces corresponding test files to verify core functionalities.
  • Deployment Modules: Builds Ignition modules for deployment workflows.
  • Task Automation: Adds predefined Hardhat tasks for contract interaction.
  • Use Case: A developer wants to rapidly create a new ERC20 token with test cases and deployment scripts to start a blockchain project efficiently.

Quick Start

Ask the AI to generate a new Solidity contract named MyToken, specify its token standard and features, then verify generated files.

Frequently Asked Questions about new-contract

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

FAQPage Schema
How do I scaffold a new Solidity smart contract with tests and deployment scripts?

To scaffold a new Solidity smart contract, this tool automatically generates the contract file with proper imports and licensing, alongside corresponding test files and Hardhat Ignition deployment modules.

What is the best way to automate Hardhat task creation for smart contract interaction?

Automating Hardhat task creation is handled by generating predefined task scripts that integrate seamlessly into your project, allowing you to interact with your newly scaffolded smart contracts efficiently.

Does this scaffolding tool generate test files for Solidity contracts automatically?

Yes, the Solidity contract scaffolding process automatically produces corresponding test files designed to verify the core functionalities of the generated smart contracts using best practices.

Can I use this to generate Hardhat Ignition modules for blockchain project deployment?

Yes, you can generate Hardhat Ignition modules for blockchain project deployment. The tool builds these deployment modules to streamline your workflow when creating new smart contracts.

What do I need to set up before generating smart contracts and project template files?

You need a Node.js environment with project template files available. The scaffolding process requires node scripts to run and generate the smart contract structure seamlessly.

Why use automated scaffolding for Solidity contracts instead of manual file creation?

Automated scaffolding ensures rapid project setup and standardization by instantly applying best practices, proper imports, and constructors, eliminating the manual effort of creating individual contract and test files.