midnight-dapp-dev

midnight-dapp-dev is a skill for Claude Code, Codex from mzf11125/midnight_agent_skills. It costs 374 tokens per session (6,877 once invoked), scanned A, original, MIT.

A development guide for building web applications on Midnight Network, a blockchain with privacy-preserving features. It focuses on TypeScript, React, wallet connections, contract interactions, state management, and zero-knowledge proof generation.

In plain words
What is it for?
Use it when scaffolding a Vite or Next.js React application, connecting a Midnight wallet, composing providers, interacting with contracts, or generating proofs in a browser or Node.js app.
Why use it?
It brings the main frontend setup and integration patterns together for developers who need to connect a web interface to Midnight.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when scaffolding a Vite or Next.js React application, connecting a Midnight wallet, composing providers, interacting with contracts, or generating proofs in a browser or Node.js app.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mzf11125/midnight_agent_skills/midnight-dapp-dev
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mzf11125/midnight_agent_skills --skill midnight-dapp-dev
Clone the repo
git clone --depth 1 https://github.com/mzf11125/midnight_agent_skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for midnight-dapp-dev

README.md
[![agentmods](https://agentmods.dev/badge/skills/mzf11125/midnight_agent_skills/midnight-dapp-dev/github.svg)](https://agentmods.dev/skills/mzf11125/midnight_agent_skills/midnight-dapp-dev)
Your own site
<a href="https://agentmods.dev/skills/mzf11125/midnight_agent_skills/midnight-dapp-dev"><img src="https://agentmods.dev/badge/skills/mzf11125/midnight_agent_skills/midnight-dapp-dev/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for midnight-dapp-dev

Your own site · 80×15
<a href="https://agentmods.dev/skills/mzf11125/midnight_agent_skills/midnight-dapp-dev"><img src="https://agentmods.dev/badge/skills/mzf11125/midnight_agent_skills/midnight-dapp-dev.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 374 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,877 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00374 $0.06877
Opus 5 $0.00187 $0.03438
Sonnet 5 $0.00075 $0.01375
Haiku 4.5 $0.00037 $0.00688

Measured 9d ago against content hash 157e8ded1664, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

midnight-dapp-dev scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

midnight-dapp-dev/SKILL.md · 874 lines

How it starts

The opening of the file, as written. The whole thing — 874 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Midnight DApp Development

Overview

Midnight DApp frontend development involves building web applications that interact with the Midnight Network blockchain using TypeScript and React. This guide covers the complete workflow from project scaffolding to production deployment. The Midnight ecosystem provides several TypeScript packages that enable wallet connections, contract interactions, state management, and ZK proof generation all from within a browser or Node.js application.

The core development pattern follows a provider based architecture where each concern such as wallet connectivity, proof generation, or state management is handled by a dedicated provider. These providers are composed together using the MidnightProviders abstraction which serves as the backbone of any Midnight DApp.

Developers typically use either Vite with React 19 for single page applications or Next.js with the App Router for server rendered applications. Both approaches support the full Midnight DApp Connector API for wallet integration.

Project Scaffolding Patterns

Vite Plus React 19 Plus shadcn/ui

The recommended Vite scaffolding pattern combines React 19 with TypeScript and shadcn/ui for building Midnight DApps. Start by creating a Vite project with React and TypeScript support.

npm create vite@latest my-midnight-dapp -- --template react-ts
cd my-midnight-dapp
npm install

Add the Midnight dependencies needed for a standard DApp frontend. The core packages include the DApp Connector for wallet integration and the various providers for state management and contract interaction.

npm install @midnight-ntwrk/dapp-connector-api
npm install @midnight-ntwrk/onchain-rpc-provider
npm install @midnight-ntwrk/midnight-js-types
npm install @midnight-ntwrk/midnight-js-contracts
npm install @midnight-ntwrk/midnight-js-level-private-state-provider
npm install @midnight-ntwrk/midnight-js-network-id
npm install @midnight-ntwrk/midnight-js-fetch-zk-config-provider
npm install @midnight-ntwrk/midnight-js-http-client-proof-provider

Read the full file on GitHub · 874 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 874 lines · 374 tokens per session scan A 157e8ded1664

Subscribe to this mod's changes

midnight-dapp-dev is a skill published in the GitHub repository mzf11125/midnight_agent_skills (6 stars, last pushed 2mo ago), licensed MIT. It adds 374 tokens to every session and 6,877 once invoked, about $0.0019 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

crypto-market-dashboard-guide

Guide to building a real-time crypto market dashboard with Next.js, React, and TradingView charts. Features multi-chain portfolio tracking, DeFi position monitoring, price alerts, and social sentiment integration. Production-ready dashboard template.

nirholas/three.ws · 49 tokens

frontend-design

Create distinctive, production-grade Stellar dApp UI. Combines bold aesthetic direction with smart contract integration patterns — wallet connection flows, transaction UX, contract data displays, and agentic kit hook wiring. No generic "AI slop" aesthetics.

rylsherdamz-rgb/stellar-forge · 51 tokens

ts-sdk-wallet-adapter

How to integrate wallet connection in React frontends using @aptos-labs/wallet-adapter-react. Covers AptosWalletAdapterProvider setup, useWallet() hook, frontend transaction submission, and wallet connection UI. Triggers on: 'wallet adapter', 'connect wallet', 'useWallet', 'AptosWalletAdapterProvider'…

aptos-labs/aptos-agent-skills · 83 tokens

emblem-ai-react

React integration skill for EmblemAI's one-shot user management. Use when the user wants to add website authentication plus wallet-enabled users to a React app with EmblemAuthProvider, ConnectButton, social/email/wallet login, chat components, React auth hooks, React composition patterns, or Migrate.fun React hooks.

EmblemCompany/Agent-skills · 68 tokens

flow-react-sdk

Guide for building React applications on the Flow blockchain using @onflow/react-sdk. Covers FlowProvider setup, Cadence hooks (useFlowQuery, useFlowMutate, useFlowCurrentUser, useFlowEvents), Cross-VM hooks for EVM bridging and batch transactions, and UI components (Connect, TransactionButton, TransactionDialog…

onflow/flow-ai-tools · 237 tokens

onchainkit

Build onchain apps with Coinbase's OnchainKit React components - wallets, swaps, NFTs, payments.

alsk1992/CloddsBot · 24 tokens