npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

midnight-agent-skills

v1.1.0

Published

AI Agent Skills for Building Privacy-Preserving dApps on Midnight Network

Downloads

38

Readme

Midnight Agent Skills

AI Agent Skills for Building Privacy-Preserving dApps on Midnight Network

A comprehensive collection of skills that extend AI coding agents (Claude Code, Cursor, Copilot, etc.) to build, deploy, test, and interact with Midnight Network applications.

Skills follow the Agent Skills format for seamless integration.


Quick Install

npx (Recommended):

npx midnight-agent-skills init

Add specific skill:

npx midnight-agent-skills add midnight-compact-guide

List all skills:

npx midnight-agent-skills list

Alternative - Git clone:

git clone https://github.com/UvRoxx/midnight-agent-skills.git

Add as submodule:

git submodule add https://github.com/UvRoxx/midnight-agent-skills.git

Once installed, your AI agent will automatically use the skills when you ask:

  • "Write a Midnight contract for voting"
  • "Set up local Midnight infrastructure"
  • "Deploy my contract to testnet"

About

Night Skills is an open-source project by Webisoft Development Labs, created to help developers build privacy-preserving applications on Midnight Network using AI-powered development tools.

Maintainers


What is Midnight?

Midnight is a privacy-first blockchain platform using zero-knowledge proofs for:

  • Private Smart Contract State - Keep sensitive data encrypted
  • Selective Disclosure - Prove claims without revealing underlying data
  • Shielded Transactions - Private token transfers
  • Unshielded Transactions - Public when transparency is needed

Available Skills

| Skill | Description | Triggers | |-------|-------------|----------| | midnight-compact-guide | Complete Compact language reference (v0.19+) | "write contract", "Compact syntax", "ZK proof" | | midnight-sdk-guide | TypeScript SDK & wallet integration | "SDK", "wallet integration", "connect dApp" | | midnight-infra-setup | Local infrastructure setup | "setup node", "start indexer", "proof server" | | midnight-deploy | Contract deployment | "deploy contract", "deploy to testnet" | | midnight-test-runner | Test execution & debugging | "run tests", "debug test failure" |


Skill Details

midnight-compact-guide

Comprehensive guide to writing Compact smart contracts for Midnight (v0.19+).

Features:

  • Complete syntax reference (pragma, imports, circuits)
  • Type system (Counter, Uint, Bytes, Map, Vector, Set)
  • Privacy patterns (selective disclosure, commit-reveal, authentication)
  • Token patterns (shielded & unshielded tokens)
  • Common mistakes to avoid
  • Reference to working contracts

Rules included:

  • privacy-selective-disclosure.md - ZK disclosure patterns
  • tokens-shielded-unshielded.md - Token vault patterns
  • common-errors.md - Error messages and solutions
  • openzeppelin-patterns.md - Security patterns

Derived from: midnight-mcp syntax reference

midnight-sdk-guide

TypeScript SDK integration guide for Midnight dApps.

Features:

  • Contract deployment and interaction
  • Wallet integration (Lace)
  • State management
  • Error handling
  • React hooks and patterns

Rules included:

  • wallet-integration.md - Complete wallet integration patterns

midnight-infra-setup

Set up and run Midnight infrastructure locally using official dev tools.

Based on: midnight-infra-dev-tools

Components: | Component | Repository | Default Port | |-----------|------------|--------------| | Node | midnight-node | ws://127.0.0.1:9944 | | Indexer | midnight-indexer | http://127.0.0.1:8088 | | Proof Server | midnight-ledger | http://127.0.0.1:6300 |

Important: Version synchronization is critical:

  • Indexer metadata must match node version
  • Proof server must use same ledger version as node (check midnight-node/Cargo.toml lines 63-70)

midnight-deploy

Deploy Midnight contracts to local or preview network.

Features:

  • Compile Compact contracts
  • Deploy to local infrastructure
  • Deploy to preview testnet
  • Environment configuration
  • Contract address management

midnight-test-runner

Run and debug Midnight contract tests.

Features:

  • Vitest integration
  • Contract simulator pattern
  • Private state testing
  • Selective disclosure verification
  • Coverage reports

Quick Start

1. Install Prerequisites

# Install Compact compiler
curl --proto '=https' --tlsv1.2 -LsSf \
  https://github.com/midnightntwrk/compact/releases/latest/download/compact-installer.sh | sh
compact update +0.27.0

# Verify
compact check
node -v  # v23+
docker -v

2. Install Skills

Claude Code:

git clone https://github.com/UvRoxx/night-skills.git
cp -r night-skills/skills/* ~/.claude/skills/

claude.ai: Add SKILL.md contents to project knowledge.

3. Set Up Infrastructure

Option A: Using Starter Template (Recommended)

git clone https://github.com/MeshJS/midnight-starter-template.git
cd midnight-starter-template
npm install
npm run setup-standalone  # Starts node, indexer, proof server

Option B: Using Dev Tools

git clone https://github.com/midnightntwrk/midnight-infra-dev-tools.git
cd midnight-infra-dev-tools
./scripts/start-all.sh

4. Use Skills

Once installed, skills activate automatically:

Write a Midnight contract for a token vault with shielded transfers
Set up local Midnight infrastructure
Deploy my contract and run tests

Project Structure

night-skills/
├── README.md                          # This file
├── AGENTS.md                          # Agent guidance
├── CLAUDE.md                          # Claude-specific guidance
├── CONTRIBUTING.md                    # Contribution guide
├── LICENSE                            # MIT License
├── .gitignore
│
└── skills/
    │
    ├── midnight-compact-guide/        # Compact language reference
    │   ├── SKILL.md
    │   └── rules/
    │       ├── privacy-selective-disclosure.md
    │       ├── tokens-shielded-unshielded.md
    │       ├── common-errors.md
    │       └── openzeppelin-patterns.md
    │
    ├── midnight-sdk-guide/            # TypeScript SDK guide
    │   ├── SKILL.md
    │   └── rules/
    │       └── wallet-integration.md
    │
    ├── midnight-infra-setup/          # Infrastructure setup
    │   ├── SKILL.md
    │   └── scripts/
    │       └── setup.sh
    │
    ├── midnight-deploy/               # Contract deployment
    │   ├── SKILL.md
    │   └── scripts/
    │       └── deploy.sh
    │
    └── midnight-test-runner/          # Test runner
        ├── SKILL.md
        └── scripts/
            └── test.sh

Creating New Skills

Skill Structure

skills/midnight-{name}/
├── SKILL.md           # Required: Skill definition
├── scripts/           # Optional: Bash scripts
│   └── {script}.sh
├── rules/             # Optional: Detailed rules
│   └── {rule}.md
└── references/        # Optional: Reference docs
    └── {doc}.md

SKILL.md Template

---
name: midnight-{name}
description: One sentence with trigger phrases.
license: MIT
metadata:
  author: webisoft
  version: "1.0.0"
  midnight-version: "0.27.0"
---

# Skill Title

Brief description.

## When to Use
- Scenario 1
- Scenario 2

## How It Works
1. Step 1
2. Step 2

## Usage
\`\`\`bash
bash scripts/{script}.sh [args]
\`\`\`

## Troubleshooting
Common issues and solutions.

## References
- [Link](url)

Package for Distribution

cd skills
zip -r midnight-{name}.zip midnight-{name}/

Midnight Resources

Official Repositories

| Resource | URL | |----------|-----| | Dev Tools | https://github.com/midnightntwrk/midnight-infra-dev-tools | | Node | https://github.com/midnightntwrk/midnight-node | | Indexer | https://github.com/midnightntwrk/midnight-indexer | | Ledger/Proof Server | https://github.com/midnightntwrk/midnight-ledger | | Token Vault Example | https://github.com/midnightntwrk/midnight-ledger/pull/142 | | OpenZeppelin Compact | https://github.com/OpenZeppelin/compact-contracts |

Documentation

| Resource | URL | |----------|-----| | Documentation | https://docs.midnight.network | | Compact Guide | https://docs.midnight.network/develop/reference/compact/lang-ref | | Lace Wallet | https://www.lace.io | | Faucet (tSTAR) | https://faucet.preview.midnight.network | | Starter Template | https://github.com/MeshJS/midnight-starter-template | | midnight-mcp | https://github.com/Olanetsoft/midnight-mcp |


Version Compatibility

When running local infrastructure, ensure version compatibility:

# Check node's ledger dependency
grep "midnight-ledger" midnight-node/Cargo.toml

# Verify proof server matches
# midnight-node/Cargo.toml lines 63-70 specify the ledger version

# Update indexer metadata when changing node version
cd midnight-indexer
./scripts/update-metadata.sh

Contributing

We welcome contributions! Please see CONTRIBUTING.md for detailed guidelines.

Quick Contribution Guide

  1. Fork this repository
  2. Create a feature branch: git checkout -b feature/my-skill
  3. Create skill following the structure above
  4. Test with real Midnight projects
  5. Commit with clear messages: git commit -m "Add midnight-{name} skill"
  6. Push to your fork: git push origin feature/my-skill
  7. Submit a Pull Request

Skill Guidelines

  • Prefix skill names with midnight-
  • Include comprehensive examples
  • Test scripts on macOS and Linux
  • Keep SKILL.md under 500 lines
  • Reference official Midnight repos
  • Include correct Compact syntax (v0.19+)

Code of Conduct

  • Be respectful and inclusive
  • Provide constructive feedback
  • Help newcomers learn
  • Focus on improving the project

Acknowledgments

This project builds upon work from:


License

MIT License - see LICENSE for details.


Support


Built for Midnight Network

An open-source project by Webisoft Development Labs

Maintained by Utkarsh Varma (@UvRoxx)