midnight-concepts

midnight-concepts is a skill for Claude Code, Codex from mzf11125/midnight_agent_skills. It costs 76 tokens per session (3,272 once invoked), scanned A, original, MIT.

A reference guide to Midnight Network, a blockchain designed for applications that keep selected information private while still proving it is valid. It explains zero-knowledge proofs, private transfers, and how Midnight connects with Cardano.

In plain words
What is it for?
Use it to learn about private blockchain applications, selective disclosure, smart contracts, voting, and private financial applications on Midnight.
Why use it?
It gives developers unfamiliar with Midnight the concepts needed to understand its privacy model and system structure before building on it.

Skill for Claude CodeCodex

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

Good fit Use it to learn about private blockchain applications, selective disclosure, smart contracts, voting, and private financial applications on Midnight.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mzf11125/midnight_agent_skills/midnight-concepts
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-concepts
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-concepts

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mzf11125/midnight_agent_skills/midnight-concepts"><img src="https://agentmods.dev/badge/skills/mzf11125/midnight_agent_skills/midnight-concepts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,272 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.00076 $0.03272
Opus 5 $0.00038 $0.01636
Sonnet 5 $0.00015 $0.00654
Haiku 4.5 $0.00008 $0.00327

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

Security

Grade A, and why

midnight-concepts 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 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/concept-explainer.py), 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.

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-concepts/SKILL.md · 484 lines

How it starts

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

Midnight Concepts

Comprehensive guide to Midnight Network's foundational concepts, privacy technology, and architecture.

What is Midnight?

Midnight is a zero-knowledge partner chain to Cardano that enables privacy-preserving blockchain applications. It solves the fundamental tension between transparency and privacy in blockchain technology through advanced zero-knowledge cryptography.

Key Innovation: Selective disclosure - applications can choose exactly what information to make public and what to keep private, while maintaining verifiability.

Core Features:

  • Privacy-preserving smart contracts
  • Selective disclosure
  • UTXO + Account hybrid model
  • Zswap for private token transfers
  • Integration with Cardano security

Architecture Overview

Three-Part Contract Structure

Each Compact smart contract has three components:

  1. Replicated Component (Public Ledger)

    • Stored on-chain
    • Verifiable by anyone
    • Contains public state
  2. Zero-Knowledge Circuit

    • Proves correct execution
    • Keeps inputs private
    • Generates proofs
  3. Local Component (Off-chain)

    • Runs in DApp
    • Arbitrary computation
    • Witness functions

Core Concepts

1. Kachina Protocol

THE foundational smart contract architecture that enables private state management.

How It Works:

  1. User has private state (witness)
  2. Circuit proves valid transition
  3. Public state updates on-chain
  4. Both states stay consistent

Key Properties:

  • Public state + Private state model
  • Zero-knowledge proof bridge
  • Transcript-based concurrency
  • Universally Composable (UC) security

From the whitepaper: Kachina uses a novel combination of a public ledger and private witnesses, with circuits proving correct state transitions.

2. Privacy Mechanisms

Zswap Protocol

Privacy-preserving token system hiding:

  • Transaction amounts
  • Sender/recipient identities
  • Token types

Features:

  • Shielded tokens (hidden)
  • Unshielded tokens (public)
  • Conversion between both
  • Zero-knowledge proofs for validity

Read the full file on GitHub · 484 lines

Files

What ships with it

9 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. 11d ago First seen · 484 lines · 76 tokens per session scan A b85d96eb9382

Subscribe to this mod's changes

midnight-concepts is a skill published in the GitHub repository mzf11125/midnight_agent_skills (6 stars, last pushed 2mo ago), licensed MIT. It adds 76 tokens to every session and 3,272 once invoked, about $0.0004 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

smart-contract-reading-guide

How to read and understand smart contracts — navigating Etherscan, reading Solidity code, understanding ABIs, decoding transactions, and spotting common patterns. Use when helping users verify contracts, understand DeFi protocol mechanics, or decode on-chain activity.

nirholas/three.ws · 53 tokens

web3-glossary

Comprehensive Web3 and DeFi glossary — definitions for 150+ terms covering blockchain, DeFi, NFTs, DAOs, L2s, and crypto culture. Use when a user asks what a term means or needs jargon explained in plain language.

nirholas/three.ws · 57 tokens

official-sui-skills

Pointer to the official Mysten Labs skills for building on Sui — language fundamentals, object model, PTBs, SDKs, publishing, upgrades, frontend integration, accessing on-chain data. Maintained upstream at github.com/MystenLabs/skills; pinned to the same ref the audit catalog derives from (see…

MystenLabs/sui · 116 tokens

sui-and-move-tools

Use to get bytecode for a deployed Sui package and produce a disassembled working view. One GraphQL call fetches every module's raw bytecode bytes; sui move disassemble (already on the system, running sui prompt) produces .asm files for analysis. Trigger on "fetch this package's bytecode", "get me the .mv for package…

MystenLabs/sui · 105 tokens

web3-audit

Smart contract security audit — 10 DeFi bug classes (accounting desync, access control, incomplete path, off-by-one, oracle, ERC4626, reentrancy, flash loan, signature replay, proxy), pre-dive kill signals (TVL < $500K etc), Foundry PoC template, grep patterns for each class, and real Immunefi paid examples. Use for…

uphiago/recon-skills · 103 tokens

sora-taira-testnet

Work against the SORA Taira testnet through its deployed Torii MCP endpoint for live account, asset, alias, contract, governance, Musubi package-registry, and transaction workflows. Use when Codex needs to inspect or mutate the Taira testnet, verify or add https://taira.sora.org/v1/mcp, prefer the curated iroha. tool…

hyperledger-iroha/iroha · 113 tokens