new-invariant

Installation
SKILL.md

This skill handles all the boilerplate: creating the invariant struct + input type, implementing the Invariant trait, registering it in the JoltInvariants enum, creating a fuzz target (if applicable), and running sync_targets.sh.

<Execution_Policy>

  • The user must provide an invariant name (lowercase with underscores, e.g. sumcheck_binding).
  • Ask the user what property is being checked and what the input type should look like before writing code.
  • Follow existing patterns exactly — study the split_eq_bind and soundness invariants as models.
  • Always run clippy and the auto-generated tests before reporting success. </Execution_Policy>

Phase 1: Gather Requirements

  1. Validate the argument {{ARGUMENTS}}: must be a valid Rust identifier (lowercase alphanumeric + underscores). Reject otherwise.
  2. Ask the user:
Related skills
Installs
3
Repository
a16z/jolt
GitHub Stars
987
First Seen
Apr 27, 2026