midnight-deploy

midnight-deploy is a skill for Claude Code, Codex from UvRoxx/midnight-agent-skills. It costs 61 tokens per session (1,322 once invoked), scanned A, original, MIT.

A guide for deploying Midnight smart contracts to a local development network or the Midnight preview network, which is a test network. It also starts the local services required for deployment.

In plain words
What is it for?
Use it to build and deploy Compact contracts locally or to the preview network, start the node, indexer, and proof server, and troubleshoot deployment.
Why use it?
It brings together contract compilation, infrastructure startup, deployment, and connection settings in one workflow.

Skill for Claude CodeCodex

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is cd ../counter-cli.

Good fit Use it to build and deploy Compact contracts locally or to the preview network, start the node, indexer, and proof server, and troubleshoot deployment.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/UvRoxx/midnight-agent-skills
agentmods
npx agentmods add skills/uvroxx/midnight-agent-skills/midnight-deploy

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-deploy

README.md
[![agentmods](https://agentmods.dev/badge/skills/uvroxx/midnight-agent-skills/midnight-deploy/github.svg)](https://agentmods.dev/skills/uvroxx/midnight-agent-skills/midnight-deploy)
Your own site
<a href="https://agentmods.dev/skills/uvroxx/midnight-agent-skills/midnight-deploy"><img src="https://agentmods.dev/badge/skills/uvroxx/midnight-agent-skills/midnight-deploy/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-deploy

Your own site · 80×15
<a href="https://agentmods.dev/skills/uvroxx/midnight-agent-skills/midnight-deploy"><img src="https://agentmods.dev/badge/skills/uvroxx/midnight-agent-skills/midnight-deploy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,322 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00061 $0.01322
Opus 5 $0.00030 $0.00661
Sonnet 5 $0.00012 $0.00264
Haiku 4.5 $0.00006 $0.00132

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

Security

Grade A, and why

midnight-deploy scanned grade A with 1 finding 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 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/deploy.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl --proto '=https' --tlsv1.2 -LsSf \
skills/midnight-deploy/SKILL.md · 236 lines

How it starts

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

Midnight Deploy

Deploy Midnight smart contracts to local development environment or preview network (testnet).

When to Use

Use this skill when:

  • Deploying a new Compact contract
  • Starting local Midnight infrastructure
  • Connecting to preview network (testnet)
  • Troubleshooting deployment issues
  • Setting up development environment

How It Works

  1. Compiles Compact contract to WebAssembly + ZK circuits
  2. Starts required infrastructure (node, indexer, proof server)
  3. Deploys contract with initial state
  4. Returns contract address for frontend integration

Prerequisites

Before deploying, ensure you have:

# Check Compact compiler
compact check

# Check Node.js
node -v  # v23+

# Check Docker (for local infrastructure)
docker -v

Local Development (Standalone)

Start Local Infrastructure

# From project root
npm run setup-standalone

This starts:

  • Midnight Node: ws://127.0.0.1:9944
  • Indexer: http://127.0.0.1:8088
  • Proof Server: http://127.0.0.1:6300

Deploy to Local

# Build contract first
cd counter-contract
npm run build

# Deploy via CLI
cd ../counter-cli
npm run deploy:local

Preview Network (Testnet)

Configure Environment

Create counter-cli/.env:

MY_PREVIEW_MNEMONIC="your twelve word mnemonic phrase here"
MY_UNDEPLOYED_UNSHIELDED_ADDRESS=""

Get Test Tokens

  1. Visit Midnight Faucet
  2. Enter your wallet address
  3. Receive tSTAR tokens

Deploy to Preview

# Build contract
cd counter-contract
npm run build

# Deploy to testnet
cd ../counter-cli
npm run deploy:preview

Deployment Output

Successful deployment returns:

{
  "contractAddress": "0x1234567890abcdef...",
  "deploymentTxHash": "0xabcdef1234567890...",
  "network": "preview",
  "timestamp": "2024-01-15T10:30:00Z"
}

Configure Frontend

After deployment, update frontend environment:

# frontend-vite-react/.env
VITE_CONTRACT_ADDRESS="0x1234567890abcdef..."

Read the full file on GitHub · 236 lines

Files

What ships with it

1 file 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. 10d ago First seen · 236 lines · 61 tokens per session scan A fa5a65c18013

Subscribe to this mod's changes

midnight-deploy is a skill published in the GitHub repository UvRoxx/midnight-agent-skills (9 stars, last pushed 5mo ago), licensed MIT. It adds 61 tokens to every session and 1,322 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

midnight-network

Guide to Midnight Network infrastructure, validators, indexers, and network operations. Use when users need to run Midnight validators and participate in consensus, set up and configure Midnight indexers for blockchain data, configure network nodes and infrastructure, monitor validator performance and network health…

mzf11125/midnight_agent_skills · 80 tokens

cli-anything-eth2-quickstart

Use eth2-quickstart to autonomously deploy a hardened Ethereum node, install execution and consensus clients, configure validator metadata, expose RPC safely, and inspect node health with structured JSON output.

HKUDS/CLI-Anything · 48 tokens

devloop

Goal-driven development loop — define objective, write rules with key-results, verify visually, sync to issue tracker.

x-cmd/x-cmd · 25 tokens

skill0

Root index of x-cmd skill0 sub-skills. Defines the OKR-style agent workflow (goal → rule-verified results → execute), skill discovery, and agent tooling preferences. Style: principle-first, concise, delegate specifics to authoritative external sources.

x-cmd/x-cmd · 54 tokens

multichain-deployment

Use when deploying the same protocol to multiple chains at the same address. Covers CREATE2 for deterministic addresses, deployment registries, chain-specific configuration, multi-chain testing, and canonical deployment patterns.

ccashwell/evm-cortex · 44 tokens

l2-deployment

Use when deploying contracts to L2 networks (Base, Optimism, Arbitrum). Covers L2-specific considerations, PUSH0 compatibility, gas estimation, L1 data costs, bridge integration, and deployment scripts.

ccashwell/evm-cortex · 48 tokens