Midnight Skill — Testing skill for Claude Code
Claude Code skill for writing and testing Compact smart contracts on Midnight.
How to install Midnight Skill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ADAvault/midnight-skill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Midnight Skill does
Claude Code skill for writing and testing Compact smart contracts on Midnight.
Alternatives in Testing
- Webapp Testing — Test local web applications using Playwright for UI verification and debugging 94.1k ★
- Fix Issue — by metabase - Addresses GitHub issues by taking issue number as parameter, analyzing context, implementing sol 46.5k ★
- Playwright — claude-plugins-official Browser automation, E2E testing, screenshots 29.4k ★
README
Midnight Compact Smart Contract Skill
An [Agent Skill](https://agentskills.io) for writing, testing, and deploying **Compact smart contracts** on the **Midnight blockchain**. Built from Discord community knowledge, compiler validation, and real-world gotchas. This project extends the [Midnight Network](https://midnight.network) with additional developer tooling.
Supports Claude Code, Cursor, Gemini CLI, VS Code Copilot, and 30+ other AI coding assistants.
**Important:** These examples are educational references. Any smart contract generated using this skill should be professionally audited before deployment to mainnet. AI-assisted code generation does not replace security review.
Compiler-Validated
All examples compiled and tested against **Compact 0.30.0** (`compact-runtime` 0.15.0, ledger v8). Also compatible with Compact 0.29.0 (ledger v7). See gotcha #74 for migration guide.
✅ Re-validated 2026-08-17 — all 29 examples compile on Compact 0.31.1
Every published example was recompiled from source against the current compiler.
set result 10 standalone validation contracts 10/10 PASS 19 remaining + new contracts 19/19 PASS vendored OpenZeppelin compact-contracts9/10 — see below **Toolchain:** `compact` CLI **0.5.1**, compiler **0.31.1**, `compact-runtime` **0.16.0**, Midnight.js **4.1.1**, Node 1.0.1, Ledger 8.1.0. ([support matrix](https://docs.midnight.network/relnotes/support-matrix))
⚠ `compact --version` reports the **CLI wrapper** (0.5.1), not the compiler (0.31.1). Easy to confuse when checking which you are on.
**🔴 Compact 0.31.0 has a soundness bug** that can silently drop a range constraint. Use **0.31.1**+. If you deployed anything built with 0.31.0, diff the verifier key — source review is explicitly *not* reliable for finding it. Details in `SKILL.md`.
**Breaking changes found, and what they mean for older code:**
CoinInfois now an **unbound
Related Skills
Skill Vision Control
Safe MCP Skill version manager - detect updates, A/B testing, smart merge
Cc Tools
by Josh Symonds - High-performance Go implementation of Claude Code hooks and utilities. Provides smart lintin
Housekeeping
Update all workspace dependencies to latest minor/patch versions with smart ordering and testing
Zod Schema Architect
A Zod-focused Agent Skill for architecting, designing, validating, testing, and evolving TypeScript/JavaScript
Smart Browser
Browser automation and API testing MCP server on Playwright + Chrome DevTools Protocol. Numbered element refs
Skill Context Diet
Claude Code may truncate CLAUDE.md past 40,000 chars. Compact rules first; test bounded context ablation with
Related Agents
Contracts Developer
ZKP2P contracts expert for EscrowV2/V2.2, payment verifiers, registry system, hook system, and Foundry testing
Delforge Solidity Engineer
Use for Solidity smart contract development tasks — designing, implementing, testing, analyzing, documenting,
Evaluator Substrate Agent
Substrate / ink! smart-contract vulnerability evaluator — spawned per smart_contract surface with chain_family