midnightntwrk/midnight-expert/basic-start
Claude Code and agent skill by midnightntwrk/midnight-expert
- community
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-startSKILL.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 infoshould 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.
Steps
Work through each step in order. Each step's reference file contains the full procedure.
| Step | Title | What It Verifies | Reference | |
|---|---|---|---|---|
| 1 | Devnet Setup | Docker, node, indexer, proof server all running | references/step-1-devnet-setup.md | |
| 2 | Compact CLI | Compiler and CLI installed and up to date | references/step-2-compact-cli.md | |
| 3 | Wallet Setup | Wallet creation, NIGHT airdrop, DUST registration | references/step-3-wallet-setup.md | |
| 4 | Hello World Contract | Write, compile, deploy, and call a smart contract | references/step-4-hello-world-contract.md | |
| 5 | Token Transfer | Programmatic NIGHT transfer between wallets | references/step-5-token-transfer.md | |
| 6 | Ticket Contract | Privacy-preserving contract with commitments and nullifiers | references/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.
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:
Stop the devnet if you no longer need it:
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
- SKILL.md in the repositoryCheckingplugins/compact-core/skills/basic-start/SKILL.md
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
[](https://verified-skill.com/skills/midnightntwrk/midnight-expert/basic-start)