/vechain-ai:create-vechain-dappfrom vechain-ai
Scaffold a VeChain dApp with Next.js, VeChain Kit, Chakra UI, and GitHub Pages. Use for new VeChain projects, standalone or monorepo (Turborepo + Hardhat).
Ships in vechain-ai. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Scaffold a production-ready VeChain dApp with wallet connection, dark mode, and GitHub Pages deployment.
shared.md — it contains the source code templates used by both modes.| Layer | Technology |
|---|---|
| Framework | Next.js 14 (App Router, static export) |
| UI | Chakra UI v3, next-themes |
| Wallet | @vechain/vechain-kit (VeWorld + WalletConnect) |
| State | React Query |
| Contracts | Hardhat + @vechain/sdk-hardhat-plugin + OpenZeppelin UUPS (monorepo only) |
| Build | Turborepo (monorepo only) |
| Deploy | GitHub Pages via GitHub Actions |
| Node | 20 LTS |
Ask the user (use structured questions if available):
my-vechain-dapp)standalone (frontend only) or monorepo (Turbo + contracts)test or main (default: test)Read the appropriate reference files and create all files.
Standalone mode:
{{TARGET_DIR}}/{{PROJECT_NAME}}/Monorepo mode:
{{TARGET_DIR}}/{{PROJECT_NAME}}/apps/frontend/packages/Replace these placeholders in ALL templates:
| Placeholder | Value |
|---|---|
{{PROJECT_NAME}} | kebab-case project name |
{{PROJECT_TITLE}} | Title-case project name (for UI display) |
{{NETWORK_TYPE}} | test or main |
cd {{PROJECT_NAME}}
nvm use
yarn install
Standalone: yarn dev (localhost:3000), yarn build (static export → out/)
Monorepo: make solo-up (start Thor solo node, requires Docker), then yarn dev (auto-deploys contracts to solo), yarn build, yarn contracts:compile, yarn contracts:test. Stop with make solo-down, reset with make solo-clean.
git init && git add . && git commit -m "Initial scaffold: VeChain dApp"
yarn dev starts without errorsyarn build produces static output.github/workflows/deploy.yml is presentVeChain Kit cannot run server-side. The entire app shell (ClientApp) is loaded via dynamic(() => ..., { ssr: false }) in layout.tsx. All VeChain Kit imports inside ClientApp children work normally since the parent is already client-only.
next.config.js uses output: "export" with configurable basePath/assetPrefix via NEXT_PUBLIC_BASE_PATH env var. GitHub Actions defaults to /${{ github.event.repository.name }} for GitHub Pages. Set to empty string for custom domains. Important: metadata.icons and raw <img src> paths do NOT auto-prepend basePath — prefix them manually.
Pin @chakra-ui/react to an exact version (currently 3.30.0). VeChain Kit uses Chakra v2 internally, and newer v3 releases can break VeChain Kit's button/modal theming.
ChakraProvider → ColorModeProvider → QueryClientProvider → VeChainKitProvider → App
All contracts in the monorepo scaffold are UUPS upgradeable using OpenZeppelin's upgradeable contracts and a custom VeChainProxy.sol (ERC1967). Key files:
scripts/helpers/upgrades.ts — core deploy/upgrade proxy helpers. Copy as-is from the template. All deploy scripts, upgrade scripts, and tests depend on it.contracts/VeChainProxy.sol — ERC1967 proxy contract. Copy as-is.scripts/deploy/deploy.ts — production deployment using deployProxy from helpers.scripts/upgrade/ — interactive CLI upgrade system with versioned config registry.For contract architecture, upgrade patterns, storage safety, security, and testing — follow the smart-contract-development skill. It is the authoritative reference for all Solidity development patterns on VeChain.
The monorepo uses a packages/config package that centralizes contract addresses and network settings per environment. Key mechanics:
local.ts is git-ignored — each dev's solo deployment produces different addresses. A mock is auto-generated on first run.NEXT_PUBLIC_APP_ENV controls which config file is loaded (local, testnet, mainnet).yarn dev runs against solo, yarn dev:testnet against testnet, yarn dev:mainnet against mainnet.checkContractsDeployment.ts runs before dev for any environment — if contracts aren't deployed, it deploys them and writes addresses to the correct config file (local.ts, testnet.ts, or mainnet.ts).VeChainKitProvider wraps the app with network config and wallet optionsWalletButton from vechain-kit renders the connect/account buttonuseWallet, useSendTransaction, useCallClause for wallet/contract interactionvechain-kit skill for advanced patterns (hooks, theming, social login)vechain-core skill for SDK patterns (fee delegation, multi-clause)Read the matching files BEFORE creating any files. See Critical Rules above.
| Topic | File | Read when... |
|---|---|---|
| Shared source code | references/shared.md | Always — contains all component/provider templates |
| Standalone config | references/standalone.md | User chose standalone mode (frontend only) |
| Monorepo config | references/monorepo.md | User chose monorepo mode (Turbo + contracts) |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub vechain/vechain-ai-skills --plugin vechain-core17 skills in this plugin
/auto-voting-relayersComplete domain knowledge for VeBetterDAO's auto-voting and relayer system. Use when working on relayer dashboard, relayer node, auto-voting contracts (XAllocationVoting, VoterRewards, RelayerRewardsPool), or anything related to relayers, auto-voting, gasless voting, or relayer rewards. Triggers on: relayer, auto-voting, autovoting, gasless voting, relayer rewards, RelayerRewardsPool, castVoteOnBehalfOf, castNavigatorVote, relayer dashboard, relayer node, veDelegate comparison./frontendGeneric frontend development patterns for VeChain dApps — React Query, Turborepo architecture, state management, Chakra UI, i18n, loading states, and transaction UX./grill-meInterview me relentlessly about every aspect of this plan until we reach a shared understanding. Walk down each branch of the design tree, resolving dependencies between decisions one-by-one./indexer-coreVeChain indexer-core library — IndexerFactory, IndexerRunner, LogsIndexer vs BlockIndexer mode selection, ABI and business events, rollback semantics, and integration guidance./monkeyAutonomous "monkey" / chaos testing of a live web app. Drives a real browser through random, persona-driven actions, screenshots every step, and judges whether each result makes sense against the project's actual intent (read from its repo). Suspected defects are independently re-checked by an adversarial validator agent that tries to disprove them; only findings that survive get reported to the user's chosen channel (Slack / Telegram). Use whenever the user wants to monkey-test, chaos-test, fuzz, stress-test, smoke-test, or do exploratory / random UI testing of a website or web app — to find UX, visual, layout, or functional regressions by clicking around like real users, or to "let an agent loose" on a site and report only real bugs. Trigger even if the user never says the word "monkey"./secure-github-actionsSecure GitHub Actions workflows against supply-chain, privilege, and shell-injection risks. Use when creating, scaffolding, editing, or reviewing `.github/workflows/*.yml`, reusable workflows, `action.yml`, or Dependabot config for GitHub Actions. Also use for full repository security audits ("audit my workflows", "harden this repo", "security scan", "pin actions to SHA"), secrets scanning with gitleaks and trufflehog, and pre-public-release security reviews. Enforce full 40-character commit SHA pinning, avoid `pull_request_target` on untrusted code, pass GitHub context into `run:` steps via `env:`, and set least-privilege permissions.
Other plugins' skills for the same job