midnightntwrk/midnight-expert/basic-start

Claude Code and agent skill by midnightntwrk/midnight-expert

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

This skill should be used when the user asks to "build my first Midnight DApp", "getting started from scratch", "verify my environment", "basic DApp tutorial", "test my Midnight setup", "hello world walkthrough", "new to Midnight", "first contract", "walk me through building a contract", or wants a step-by-step guide to creating and deploying a simple Compact smart contract on a local devnet.

Install

npx vskill@latest install midnightntwrk/midnight-expert/basic-start

SKILL.md

EPHEMERAL — Everything produced by this skill is disposable. This walkthrough generates code solely to verify your environment works and to build familiarity with Midnight development. Do not commit, push, or retain any generated code. Delete the working directory when done.

Basic Start: Your First Midnight DApp

A step-by-step procedural guide that takes you from zero to a working Midnight DApp on a local devnet. Each step builds on the previous one, verifying your environment works correctly along the way.

Prerequisites

Before starting, ensure:

  • Docker is running (docker info should succeed)
  • Node.js 22+ is installed (node --version)
  • Compact CLI is installed (compact --version) — if not, use /midnight-tooling:install-cli

Run /midnight-tooling:doctor to check all prerequisites at once.

Working Directory

Create a temporary directory for this walkthrough. All generated files go here.

bash
mkdir -p /tmp/midnight-basic-start && cd /tmp/midnight-basic-start

Steps

Work through each step in order. Each step's reference file contains the full procedure.

StepTitleWhat It VerifiesReference
1Devnet SetupDocker, node, indexer, proof server all runningreferences/step-1-devnet-setup.md
2Compact CLICompiler and CLI installed and up to datereferences/step-2-compact-cli.md
3Wallet SetupWallet creation, NIGHT airdrop, DUST registrationreferences/step-3-wallet-setup.md
4Hello World ContractWrite, compile, deploy, and call a smart contractreferences/step-4-hello-world-contract.md
5Token TransferProgrammatic NIGHT transfer between walletsreferences/step-5-token-transfer.md
6Ticket ContractPrivacy-preserving contract with commitments and nullifiersreferences/step-6-ticket-contract.md

When something errors

Your first stop for any error code or message is `/midnight-status-codes:lookup`. It decodes node rejections (e.g. 1010: Custom error: 117), SDK/Effect errors, Compact compiler diagnostics, proof-server and indexer errors, and more — telling you what produced the error and how to fix it.

/midnight-status-codes:lookup 117 # a numeric node/ledger code
/midnight-status-codes:lookup NotNormalized # an error name

Common early ones on a fresh devnet: 117 (NotNormalized — set a small additionalFeeOverhead, see step 4/5) and 1010 (the Substrate envelope that wraps the real Custom(N) cause). For environment problems, run /midnight-tooling:doctor.

When You're Done

Delete the temporary working directory:

bash
rm -rf /tmp/midnight-basic-start

Stop the devnet if you no longer need it:

/midnight-tooling:devnet stop --remove-volumes

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/midnightntwrk/midnight-expert/basic-start/badge)](https://verified-skill.com/skills/midnightntwrk/midnight-expert/basic-start)

Something wrong with this skill or its page? Tell us.