scaffold-project

Scaffold new 0G dApp projects with TypeScript boilerplate and environment setup.

Updated Apr 26, 2026
One-click install
npx skills add https://github.com/gabrielfior/ai-village-open-agents --skill scaffold-project-gabrielfior
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scaffold-project
Source: https://github.com/gabrielfior/ai-village-open-agents/tree/main/.opencode/skills/scaffold-project
Command: npx skills add https://github.com/gabrielfior/ai-village-open-agents --skill scaffold-project-gabrielfior

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Initialize a new 0G dApp project with the correct SDK versions, TypeScript configuration, environment setup, and boilerplate code for storage, compute, and/or chain interactions.

Core Features & Use Cases

  • Auto-generates a project skeleton with the recommended 0G SDKs (ethers v6, @0glabs/0g-ts-sdk, @0glabs/0g-serving-broker)
  • Creates environment templates (.env) and .gitignore, and sets up TypeScript configuration
  • Supports multiple project templates (storage-only, compute-only, full-stack, and Hardhat-based contracts)

Quick Start

Create a new directory for your 0G app and run the scaffold-project activation to generate the standard project skeleton.

Frequently Asked Questions about scaffold-project

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

FAQPage Schema
How do I scaffold a 0G dApp project with the correct SDK versions?

Scaffolding a 0G dApp project automatically generates a skeleton with recommended SDKs like ethers v6 and @0glabs/0g-ts-sdk. It configures TypeScript, creates .env and .gitignore files, and sets up boilerplate for storage, compute, and chain interactions.

What templates are available when bootstrapping a 0G dApp?

Bootstrapping a 0G dApp supports multiple templates including storage-only, compute-only, full-stack, and Hardhat-based contracts. Each template provides the appropriate boilerplate and environment setup tailored to specific 0G network interactions.

Does 0G project scaffolding enforce specific TypeScript and EVM configurations?

Yes, 0G project scaffolding enforces TypeScript boilerplate, ethers v6, and evmVersion "cancun". This ensures a consistent starting point and compatibility across all newly initialized storage, compute, and chain project directories.

How do I set up a 0G compute project environment?

Setting up a 0G compute project environment involves running the scaffold activation in a new directory. It automatically generates the .env template, installs the @0glabs/0g-serving-broker SDK, and creates the TypeScript configuration required for compute interactions.

Can I use Hardhat for 0G contract development?

Yes, you can use Hardhat for 0G contract development by selecting the Hardhat-based contracts template during project bootstrapping. This generates the necessary configuration and boilerplate to deploy and interact with contracts on the 0G chain.

Why does my 0G dApp require ethers v6 and the cancun evmVersion?

Your 0G dApp requires ethers v6 and the cancun evmVersion to ensure compatibility with the 0G SDKs. Enforcing these specific versions during project scaffolding prevents version conflicts and establishes a consistent, stable starting point for storage and chain interactions.