air-cryptographer

This skill should be used when the user asks about "AIR", "algebraic intermediate representation", "ZK constraints", "trace design", "constraint soundness", "polynomial commitments", "FRI", "STARK", "lookup arguments", "permutation arguments", "memory consistency", "transition constraints", "boundary constraints", "vanishing polynomial", "quotient polynomial", "Fiat-Shamir", or needs expert-level cryptographic review of constraint systems.

242 stars

Best use case

air-cryptographer is best used when you need a repeatable AI agent workflow instead of a one-off prompt. It is especially useful for teams working in multi. This skill should be used when the user asks about "AIR", "algebraic intermediate representation", "ZK constraints", "trace design", "constraint soundness", "polynomial commitments", "FRI", "STARK", "lookup arguments", "permutation arguments", "memory consistency", "transition constraints", "boundary constraints", "vanishing polynomial", "quotient polynomial", "Fiat-Shamir", or needs expert-level cryptographic review of constraint systems.

This skill should be used when the user asks about "AIR", "algebraic intermediate representation", "ZK constraints", "trace design", "constraint soundness", "polynomial commitments", "FRI", "STARK", "lookup arguments", "permutation arguments", "memory consistency", "transition constraints", "boundary constraints", "vanishing polynomial", "quotient polynomial", "Fiat-Shamir", or needs expert-level cryptographic review of constraint systems.

Users should expect a more consistent workflow output, faster repeated execution, and less time spent rewriting prompts from scratch.

Practical example

Example input

Use the "air-cryptographer" skill to help with this workflow task. Context: This skill should be used when the user asks about "AIR", "algebraic intermediate representation", "ZK constraints", "trace design", "constraint soundness", "polynomial commitments", "FRI", "STARK", "lookup arguments", "permutation arguments", "memory consistency", "transition constraints", "boundary constraints", "vanishing polynomial", "quotient polynomial", "Fiat-Shamir", or needs expert-level cryptographic review of constraint systems.

Example output

A structured workflow result with clearer steps, more consistent formatting, and an output that is easier to reuse in the next run.

When to use this skill

  • Use this skill when you want a reusable workflow rather than writing the same prompt again and again.

When not to use this skill

  • Do not use this when you only need a one-off answer and do not need a reusable workflow.
  • Do not use it if you cannot install or maintain the related files, repository context, or supporting tools.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/air-cryptographer/SKILL.md --create-dirs "https://raw.githubusercontent.com/aiskillstore/marketplace/main/skills/clementwalter/air-cryptographer/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/air-cryptographer/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How air-cryptographer Compares

Feature / Agentair-cryptographerStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

This skill should be used when the user asks about "AIR", "algebraic intermediate representation", "ZK constraints", "trace design", "constraint soundness", "polynomial commitments", "FRI", "STARK", "lookup arguments", "permutation arguments", "memory consistency", "transition constraints", "boundary constraints", "vanishing polynomial", "quotient polynomial", "Fiat-Shamir", or needs expert-level cryptographic review of constraint systems.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# AIR Cryptographer Expertise

Expert-level knowledge for designing, implementing, and auditing Algebraic Intermediate Representations (AIRs) in zero-knowledge proof systems.

## Core Mindset

**Soundness-first thinking**: Every constraint review starts with "how could a cheater slip through?" Think adversarially. Construct counterexample traces by hand. Exploit polynomial identity loopholes.

**Algebraic precision**: Constraints define solution spaces over finite fields. A missing constraint isn't just a bug—it's extra degrees of freedom for a malicious prover.

## Finite Field Foundations

Essential intuitions:

- **Characteristics and inverses**: Every non-zero element has a multiplicative inverse. No zero divisors.
- **Roots of unity**: Multiplicative subgroups of order 2^k enable FFT-friendly evaluation domains.
- **Extension fields**: When you need more algebraic structure (e.g., M31 → QM31 for Stwo).
- **Frobenius endomorphism**: The map x → x^p is field-linear; crucial for extension field arithmetic.

## Polynomial Mechanics

**Interpolation**: Given n points, unique polynomial of degree < n passes through them. Lagrange basis makes this explicit.

**Vanishing polynomials**: Z_H(x) = ∏(x - h) for h ∈ H vanishes exactly on domain H. This is the foundation of constraint enforcement.

**Degree behavior**:

- Multiplication: deg(f·g) = deg(f) + deg(g)
- Composition: deg(f∘g) = deg(f) · deg(g)
- Low-degree testing verifies a function is "close to" a low-degree polynomial

**Evaluation domains**: Multiplicative cosets for separation. Blowup factor determines security margin between trace degree and domain size.

## Trace Design Principles

### Column Classification

| Type                | Definition                   | Example                      |
| ------------------- | ---------------------------- | ---------------------------- |
| **Source of truth** | Canonical witness data       | PC, registers, memory values |
| **Derived**         | Computed from source columns | Flags, decompositions        |
| **Auxiliary**       | Added to reduce degree       | Intermediate products        |

**Critical rule**: Every column must be constrained. An unconstrained column is a free variable for the prover.

### Row Semantics

Define precisely what each row represents:

- CPU cycle / instruction
- Memory operation
- Padding (must be distinguishable!)

Row types require selectors. Selectors must be:

- Boolean: `s(s-1) = 0`
- Mutually exclusive: `Σ s_i = 1` (or coverage proof)
- Actually constrained (not just documented)

### Minimal vs Redundant Columns

Start minimal. Add auxiliary columns only when:

- Degree reduction is necessary
- Soundness requires explicit intermediate values
- Verification cost dominates

## Constraint Categories

### Transition Constraints (Local)

Express correct step relation between row i and row i+1:

```text
next_pc = pc + instruction_size  (when not branching)
next_register[k] = f(current_state, opcode)
```

**Danger**: Writing a relation instead of a function. Multiple valid next-states = unsound.

### Boundary Constraints

Pin specific rows to specific values:

- **Initial**: Row 0 state matches expected start
- **Final**: Last row satisfies termination condition
- **I/O**: Public inputs/outputs bound at known positions

**Danger**: "Final row" must be uniquely defined. Variable-length traces need explicit halt handling.

### Booleanity and Range Constraints

For boolean b: `b(b-1) = 0`

For k-bit value x with bits b*0...b*{k-1}:

```text
x = Σ b_i · 2^i
b_i(b_i - 1) = 0  for all i
```

**Danger**: Forgetting booleanity constraints on decomposition bits.

### Selector Discipline

Selectors gate which constraints apply to which rows.

**Checklist**:

- [ ] Each selector is boolean
- [ ] Exactly one selector active per row (or explicit coverage)
- [ ] No "ghost mode" where all selectors = 0
- [ ] Selector itself is constrained (not free)

**Classic bug**: All selectors zero makes all gated constraints vacuously true.

## Global Consistency Arguments

### Permutation / Multiset Equality

Prove two multisets are equal via grand product:

```text
∏(α - a_i) = ∏(α - b_i)
```

**Checklist**:

- Initial product = 1 (boundary constraint)
- Final products equal (boundary constraint)
- Challenge α bound to transcript after commitments
- Duplicates handled correctly

**Danger**: Product hitting zero, missing boundary constraints, challenge reuse.

### Lookup Arguments

Prove all values in column A appear in table T.

**Checklist**:

- Table is committed/fixed
- Compression is collision-resistant (sufficient randomness)
- Repeated lookups soundly counted

**Danger**: Weak compression allows out-of-table values.

### Memory Consistency

Memory operations form a log: (address, timestamp, value, is_write)

**Patterns**:

- Sort by address, then by timestamp
- Consecutive same-address ops: read sees last write
- Permutation links memory log to CPU trace

**Danger**:

- Address aliasing across different trace sections
- Timestamp not proven monotonic
- Read-before-write not enforced

## Quotient and Composition

Constraint polynomial C(x) should vanish on trace domain H.

Quotient: `Q(x) = C(x) / Z_H(x)`

If C doesn't vanish on H, Q has poles → not low-degree → FRI rejects.

### Row-Set Control

Constraints apply to different row sets:

- All rows: divide by Z_H(x)
- All but last: divide by Z_H(x) / (x - ω^{n-1})
- First only: multiply by Lagrange selector for row 0
- Last only: multiply by Lagrange selector for row n-1

**Danger**: Constraint meant for "all rows" accidentally only enforced on subset due to incorrect vanishing factor.

### Degree Accounting

Track degree of every constraint:

```text
Base constraint degree: d
After selector multiplication: d + deg(selector)
After boundary polynomial: d + deg(boundary)
```

Composition polynomial degree must stay below domain size with sufficient margin (blowup factor).

## Fiat-Shamir Hygiene

**Transcript must bind**:

- All commitments (trace, lookup tables, etc.)
- Public inputs
- Trace length / domain parameters
- Any prover messages

**Challenge separation**: Different arguments need independent challenges. Reusing challenges creates algebraic vulnerabilities.

**Danger**: Challenge derived before commitment → prover can adapt witness.

## Adversarial Witness Exercises

Before declaring an AIR sound, try to break it:

1. **All selectors = 0**: Do constraints still enforce anything?
2. **Corrupt one column**: Can it drift without detection?
3. **Attack last row**: Dump inconsistency into wrap-around?
4. **Duplicate/omit memory events**: Does global check catch it?
5. **Force product to zero**: Exploit grand product boundary?
6. **Exploit gating**: Make "if flag then X" vacuous by leaving flag unconstrained?

If you find a counterexample trace, you found a bug.

## Common Vulnerability Patterns

| Pattern              | Symptom                    | Fix                                |
| -------------------- | -------------------------- | ---------------------------------- |
| Unconstrained column | Prover sets arbitrarily    | Add constraint                     |
| Missing booleanity   | Non-binary "boolean"       | Add b(b-1)=0                       |
| Selector leakage     | Constraint bypassed        | Enforce exclusivity                |
| Last row escape      | Inconsistency hidden       | Proper terminal constraints        |
| Product zero         | Permutation argument fails | Boundary checks, domain separation |
| Challenge reuse      | Algebraic cancellation     | Separate challenges per argument   |
| Weak compression     | Lookup collision           | Increase randomness                |

## Performance-Aware Design

Understand tradeoffs without being an engineer:

| Choice            | Prover Cost          | Verifier Cost | Soundness    |
| ----------------- | -------------------- | ------------- | ------------ |
| More columns      | Higher memory        | Unchanged     | Neutral      |
| Higher degree     | More FRI rounds      | More queries  | Watch blowup |
| More rows         | Linear scaling       | Log scaling   | Neutral      |
| Auxiliary columns | Memory + constraints | Unchanged     | Can improve  |

**Rules of thumb**:

- Auxiliary columns to reduce degree often worth it
- Local constraints cheaper than global arguments
- Precomputation tables vs dynamic checks: depends on table size

## Review Deliverables

When reviewing an AIR, produce:

1. **Column inventory**: Name, meaning, range, where constrained
2. **Constraint map**: Each semantic claim → which constraint enforces it
3. **Degree table**: Every constraint's degree contribution
4. **Adversarial tests**: Attempted counterexamples
5. **Risk ranking**: Critical / High / Medium findings
6. **Proposed fixes**: Concrete constraint additions/modifications

See `references/review-checklist.md` for the complete systematic review sheet.

Related Skills

azure-quotas

242
from aiskillstore/marketplace

Check/manage Azure quotas and usage across providers. For deployment planning, capacity validation, region selection. WHEN: "check quotas", "service limits", "current usage", "request quota increase", "quota exceeded", "validate capacity", "regional availability", "provisioning limits", "vCPU limit", "how many vCPUs available in my subscription".

DevOps & Infrastructure

raindrop-io

242
from aiskillstore/marketplace

Manage Raindrop.io bookmarks with AI assistance. Save and organize bookmarks, search your collection, manage reading lists, and organize research materials. Use when working with bookmarks, web research, reading lists, or when user mentions Raindrop.io.

Data & Research

zlibrary-to-notebooklm

242
from aiskillstore/marketplace

自动从 Z-Library 下载书籍并上传到 Google NotebookLM。支持 PDF/EPUB 格式,自动转换,一键创建知识库。

discover-skills

242
from aiskillstore/marketplace

当你发现当前可用的技能都不够合适(或用户明确要求你寻找技能)时使用。本技能会基于任务目标和约束,给出一份精简的候选技能清单,帮助你选出最适配当前任务的技能。

web-performance-seo

242
from aiskillstore/marketplace

Fix PageSpeed Insights/Lighthouse accessibility "!" errors caused by contrast audit failures (CSS filters, OKLCH/OKLAB, low opacity, gradient text, image backgrounds). Use for accessibility-driven SEO/performance debugging and remediation.

project-to-obsidian

242
from aiskillstore/marketplace

将代码项目转换为 Obsidian 知识库。当用户提到 obsidian、项目文档、知识库、分析项目、转换项目 时激活。 【激活后必须执行】: 1. 先完整阅读本 SKILL.md 文件 2. 理解 AI 写入规则(默认到 00_Inbox/AI/、追加式、统一 Schema) 3. 执行 STEP 0: 使用 AskUserQuestion 询问用户确认 4. 用户确认后才开始 STEP 1 项目扫描 5. 严格按 STEP 0 → 1 → 2 → 3 → 4 顺序执行 【禁止行为】: - 禁止不读 SKILL.md 就开始分析项目 - 禁止跳过 STEP 0 用户确认 - 禁止直接在 30_Resources 创建(先到 00_Inbox/AI/) - 禁止自作主张决定输出位置

obsidian-helper

242
from aiskillstore/marketplace

Obsidian 智能笔记助手。当用户提到 obsidian、日记、笔记、知识库、capture、review 时激活。 【激活后必须执行】: 1. 先完整阅读本 SKILL.md 文件 2. 理解 AI 写入三条硬规矩(00_Inbox/AI/、追加式、白名单字段) 3. 按 STEP 0 → STEP 1 → ... 顺序执行 4. 不要跳过任何步骤,不要自作主张 【禁止行为】: - 禁止不读 SKILL.md 就开始工作 - 禁止跳过用户确认步骤 - 禁止在非 00_Inbox/AI/ 位置创建新笔记(除非用户明确指定)

internationalizing-websites

242
from aiskillstore/marketplace

Adds multi-language support to Next.js websites with proper SEO configuration including hreflang tags, localized sitemaps, and language-specific content. Use when adding new languages, setting up i18n, optimizing for international SEO, or when user mentions localization, translation, multi-language, or specific languages like Japanese, Korean, Chinese.

google-official-seo-guide

242
from aiskillstore/marketplace

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

github-release-assistant

242
from aiskillstore/marketplace

Generate bilingual GitHub release documentation (README.md + README.zh.md) from repo metadata and user input, and guide release prep with git add/commit/push. Use when the user asks to write or polish README files, create bilingual docs, prepare a GitHub release, or mentions release assistant/README generation.

doc-sync-tool

242
from aiskillstore/marketplace

自动同步项目中的 Agents.md、claude.md 和 gemini.md 文件,保持内容一致性。支持自动监听和手动触发。

deploying-to-production

242
from aiskillstore/marketplace

Automate creating a GitHub repository and deploying a web project to Vercel. Use when the user asks to deploy a website/app to production, publish a project, or set up GitHub + Vercel deployment.