Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

crypto-docs

БесплатноБез исполняемых скриптовНе проверен

Principles for writing and reviewing cryptography/protocol documentation in barretenberg — PROTOCOL.md spec files, algorithm/implementation notes, and…

AztecProtocolот AztecProtocol★ 458 звёзд на GitHub

Об этом скилле

Writing crypto/protocol docs

Covers the prose, math, and structure of crypto documentation: PROTOCOL.md specs, algorithm/implementation notes, and math-heavy doc-comments on prover/verifier code. Not the Docusaurus developer-docs site (see docs/CLAUDE.md).

Structure and narrative

  • Lead with the why, then what, then how. Open with the fact the rest depends on — a cost model, an invariant, or the security property — then the construction, then the implementation. The implementation section is detail behind the concept, not a parallel restatement of it.
  • One canonical home per fact. A formula, table, or derivation appears once; elsewhere, reference it. Repetition is the usual cause of a doc that reads as fragmented.
  • Bridge concept to implementation with an explicit transition sentence; overview diagram, then prose.

Bind the doc to the code

  • Name the implementing symbol for each step as a plain code reference (`Type::method`), so a reader jumps from the math to the function and a rename surfaces as a stale reference.
  • Use the code's identifiers for named quantities — the exact source variable names — so every symbol is greppable. This is what keeps a doc consistent with the code as it changes.

When the detail lives elsewhere

A note can be a sketch or summary whose full detail — the heavy algebra, the exhaustive case analysis, the complete proof — is carried by an authoritative companion: a formalization (Lean/Coq), a paper, or a reference implementation. Then:

  • State the claim and the reduction path; delegate the detail. Give the statement, the chain of intermediate claims, and why each step holds — don't reproduce derivations the companion already carries. Point each step to where the companion proves it, and still give its mechanism (why it holds), not just an assertion. Present formulas when necessary, do not re-prove them.
  • Collect the external references in one correspondence map, not in the prose. Lemma names, theorem numbers, and file paths (foo_of_bar, "Thm 4.2") in running text break the mathematics. Keep the body free of them and gather body statement → source location in a single table (an instance of One canonical home per fact).
  • Source identifiers are not math prose. The greppability rule of Bind the doc to the code is served in the map and in references, not the prose. In prose use conventional terms — write "block-triangular reduction", not the source's triangularRows — and rename or explain a lifted identifier at first use.

Conventions for a protocol spec

  • State the claims up front as labelled identities, before the mechanism that establishes them.
  • Define all notation up front in a parameters table (symbol, meaning, bound); introduce each variable at first use.
  • Give the prover and verifier algorithms separately, one subsection per step in implementation order, each naming its method and indexing the loop explicitly.
  • Document the transcript schedule: the Fiat–Shamir order, the literal label strings, and the preconditions (what is already in the transcript and is not re-sent).
  • Write math as displayed equations, not prose paraphrases.
  • Quantify costs in a prover/verifier table (group ops, field ops, pairings, proof size).
  • Ground each abstraction with a small worked example.
  • Keep a numbered references list (title, authors, link), cited inline; flag a linked resource that predates the implementation.

Precision and word choice

  • Define a term before using it; don't lean on undefined words.
  • Dry, mathematical prose. Name the loop ("round $r$"), name the object (the challenge polynomial $h$), and write what is computed as an equation — not action-verb narration. Verbs that gesture instead of naming ("walks", "contracts", "discharges") are out; precise verbs (computes, evaluates, checks, equals) are fine.
  • One claim per sentence. Split a sentence that stacks clauses with semicolons, several em-dashes, or nested parentheticals; short sentences read.
  • Name the concrete thing, don't gesture — the actual object, not "nothing downstream sees it".
  • Keep the editor's intent out of the text. Write the fact, not your reasoning about how you chose to present it ("to keep this readable…", "for clarity…", "we now…"); that belongs in the PR thread.
  • Separate distinct rationales — if a thing holds for two reasons, give both, not one "because".
  • Cut what the reader can infer. State a failure-mode direction once (completeness vs soundness) without then spelling out the obvious version. Don't restate a displayed equation, set, or table in prose.
  • Quantify a performance claim with a count, not an analogy, and state its scope (local vs end-to-end).
  • Avoid the repo AI-isms (root CLAUDE.md <jargon>): "load bearing", "seam", "north star", "sharpening", effusive openers.

Prese

Полный SKILL.md на GitHub

Установить crypto-docs в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл crypto-docs?

Principles for writing and reviewing cryptography/protocol documentation in barretenberg — PROTOCOL.md spec files, algorithm/implementation notes, and doc-comments on prover/verifier code. Use when authoring or editing a protocol spec, a design/algorithm note, a substantial math-bearing doc-comment, or an optimization/cost-rationale comment in prover/verifier/relation code, or when asked to review such a doc or comment for clarity and consistency.

Как установить скилл crypto-docs?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл crypto-docs запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить crypto-docs с