agentleFS
mysteryon88mysteryon88/skills/groth16-systems/SKILL.md

groth16-systems

Skill0 starsChanged 17 days agoMITView on GitHub

Use when designing, explaining, debugging, testing, or reviewing Groth16 circuits and integrations, especially for R1CS/QAP derivations, underconstrained witnesses, setup provenance, artifact mismatches, public-input semantics, verifier boundaries, or replay/domain binding.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to:

    line 14
  2. Distinctive:

    Do not apply its R1CS/QAP model directly to PLONKish arithmetizations, Halo2, AIR, or STARK systems.

    line 22
  3. Distinctive:

    Read only the references needed for the request.

    line 36
  4. Distinctive:

    Treat witness generation and constraint generation as separate programs.

    line 44
  5. Distinctive:

    When artifacts exist, compare source, R1CS, symbols, witness, public signals, keys, and verifier behavior.

    line 45
  6. Distinctive:

    Follow the QAP and pairing layers only as far as the question requires.

    line 48
  7. Distinctive:

    Create examples independently, label pedagogical parameters, and verify version-sensitive claims against current official documentation.

    line 49

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Groth16 Systems

Core principle

Make the exact relation explicit, then trace the same claim through witness generation, constraints, compiled artifacts, and verification. A successful proof establishes only the constrained relation, not the developer's unstated intent.

Scope

Use this skill to:

  • design the relation, public inputs, private witness, and boundary cases before writing a circuit;
  • explain or derive the R1CS → QAP → Groth16 chain;
  • debug failed proofs, unexpected witnesses, or public-signal mismatches;
  • review circuit constraints, generated R1CS, verifier integration, and CRS assumptions;
  • bind verified public inputs to application policy, domain, freshness, and state transitions.

Do not apply its R1CS/QAP model directly to PLONKish arithmetizations, Halo2, AIR, or STARK systems. Use their native model unless the request is explicitly comparative.

Route the request

RequestRead
Design, debug, or review a relation/circuitreview-checklist.md
Recall fields, polynomials, groups, or pairingsalgebra-foundations.md
Explain or derive relation → R1CS → QAPrelation-r1cs-qap.md
Reason about circuit compilation or witness generationcircuit-compilers.md
Explain Groth16 setup, proving, verification, or zero knowledgegroth16-protocol.md
Bind public inputs to application semantics, domain, or replay stateapplication-binding.md
Inspect Circom/snarkjs artifacts or commandstooling.md plus the review checklist

Read only the references needed for the request.

Working method

  1. State the scalar field and relation R(public, witness).
  2. List public values in verifier order; list private and intermediate witness values separately.
  3. Define valid boundaries and at least one invalid assignment.
  4. Map every intended predicate to an actual constraint.
  5. Treat witness generation and constraint generation as separate programs.
  6. When artifacts exist, compare source, R1CS, symbols, witness, public signals, keys, and verifier behavior.
  7. Give every artifact set and flattened public-input layout one reproducible identity.
  8. Separate cryptographic verification from application authorization, replay protection, and state transition.
  9. Follow the QAP and pairing layers only as far as the question requires.
  10. Create examples independently, label pedagogical parameters, and verify version-sensitive claims against current official documentation.

Output contract

For design work, return the relation, ordered interface, required constraints, application bindings, edge cases, and a minimal verification plan.

For explanations, keep one notation from relation through verification. If an example helps, derive a fresh one and show at least one valid or invalid substitution.

For debugging or review, lead with the verdict. Support each finding with the intended property, actual constraint or artifact behavior, a concrete counterexample when possible, impact, and the smallest verifiable correction.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.