/midnight-verify:verify-compactfrom midnight-verify
Routes Compact claim types to verification methods: compile+run, source inspection, or both. Provides a classification table for claim testing and negative testing guidance.
Ships in midnight-verify. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill classifies Compact-related claims and determines which verification method to use. The /midnight-verify:verify command loads this alongside the midnight-verify:verify-correctness hub skill.
When you receive a Compact-related claim, classify it using this table to determine which sub-agent(s) to dispatch:
| Claim Type | Example | Dispatch |
|---|---|---|
| Syntax validity | "You can cast with as" | @"midnight-verify:contract-writer (agent)" |
| Type behavior | "Uint arithmetic widens the result type" | @"midnight-verify:contract-writer (agent)" |
| Stdlib function exists | "persistentHash is in the standard library" | @"midnight-verify:contract-writer (agent)" |
| Stdlib function behavior | "persistentHash returns Bytes<32>" | @"midnight-verify:contract-writer (agent)" |
| Return value semantics | "Tuples are 0-indexed" | @"midnight-verify:contract-writer (agent)" |
| Disclosure rules | "Ledger writes require disclose()" | @"midnight-verify:contract-writer (agent)" |
| Compiler error behavior | "Assigning a Field value to Uint<8> is a type error" | @"midnight-verify:contract-writer (agent)" |
| Language feature count | "Compact exports 57 unique primitives" | @"midnight-verify:source-investigator (agent)" |
| Internal implementation | "The Compact compiler is written in Scheme" | @"midnight-verify:source-investigator (agent)" |
| Architecture/design rationale | "Compact uses Field as the base numeric type because..." | @"midnight-verify:source-investigator (agent)" |
| Cross-component behavior | "Compiled output is compatible with compact-runtime v0.X" | both @"midnight-verify:contract-writer (agent)" and @"midnight-verify:source-investigator (agent)" concurrently |
| Performance claims | "MerkleTree operations cost more gates than Map" | @"midnight-verify:contract-writer (agent)" (can measure circuit metrics at compile time) |
| Circuit constraint structure | "this contract produces N constraints" | @"midnight-verify:zkir-checker (agent)" (inspection) |
| Compiled ZKIR properties | "disclosure compiles to declare_pub_input" | @"midnight-verify:zkir-checker (agent)" (inspection) |
| Constraint correctness | "guard circuit correctly constrains authority hash" | @"midnight-verify:zkir-checker (agent)" (checker) + @"midnight-verify:contract-writer (agent)" (concurrent) |
When in doubt: If the claim involves observable runtime behavior, prefer @"midnight-verify:contract-writer (agent)". If it's about what exists in the codebase or how something is implemented internally, prefer @"midnight-verify:source-investigator (agent)". If it could benefit from both, dispatch both concurrently.
Some claims are best verified by testing what should not work. Guide @"midnight-verify:contract-writer (agent)" to consider negative tests:
A compilation error or runtime error in a negative test is evidence that confirms the claim, not a test failure.
Sub-agents may load these compact-core skills to inform what to test or where to look. These are hints only — never cite skill content as evidence in the verdict.
compact-core:compact-standard-library skill — expected function signatures, what functions existcompact-core:compact-structure skill — how to structure a test contract (pragma, imports, exports)compact-core:compact-language-ref skill — syntax reference, type system, operators, castingcompact-core:compact-privacy-disclosure skill — disclosure rules and patterns to testmidnight-tooling:compact-cli skill — expected compiler behavior, flags, output structureLoad only what's relevant to the specific claim. Do not load all skills for every verification.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
compact, claim-verification, method-routing, midnight-verify, testing
npx claudepluginhub midnightntwrk/midnight-expert --plugin midnight-verify19 skills in this plugin
/verify-by-cli-executionmidnight-verify:verify-by-cli-executionVerification by running Compact CLI commands and observing output. Checks CLI availability, runs commands, captures stdout/stderr/exit code, inspects filesystem changes, and interprets results. Covers flag existence, flag behavior, output structure, error messages, exit codes, version info, and CLI-vs-compactc comparisons. Loaded by the cli-tester agent./verify-by-devnetmidnight-verify:verify-by-devnetVerification by running E2E scripts against a local Midnight devnet. Writes SDK test scripts (raw or using testkit-js) that exercise the full transaction pipeline: deploy, call circuits, observe state. Checks devnet health before proceeding. Loaded by the sdk-tester agent. Loads the `midnight-tooling:devnet` skill for infrastructure management./verify-by-executionmidnight-verify:verify-by-executionVerification by compilation and execution. Translates a Compact claim into a minimal test contract, compiles it with the Compact CLI, runs the compiled output with @midnight-ntwrk/compact-runtime, and interprets the result. Loaded by the contract-writer agent. Covers workspace setup (lazy init), contract writing, compilation, runner script creation, execution, and result interpretation. References midnight-tooling:compact-cli for compilation details.Other plugins' skills for the same job