AgentSkillsCN

noir-developer

Noir 电路开发的常用模式:数据类型、标准库、工作区搭建。除非另有说明,无论以何种形式参与 Noir 电路开发,均可使用此功能。

SKILL.md
--- frontmatter
name: noir-developer
description: "Patterns for Noir circuit development: data types, stdlib, workspace setup. Use when working with Noir circuits in any capacity unless otherwise specified"
allowed-tools: Read, Grep, Glob, Edit, Write, Bash

Noir Circuit Development Skills

Comprehensive patterns and best practices for Noir zero-knowledge circuit development.

Subskills

Navigate to the appropriate section based on your task:

Quick Reference

Writing Circuits

Start with Circuit Structure for the basic template, then explore:

Using the Standard Library

Setting Up a Project

Using Noir MCP Server

For detailed API documentation and code examples beyond what is covered here, use the Noir MCP tools.

Available MCP Tools

ToolPurpose
noir_sync_repos()Clone/update Noir repos locally. Run first to enable searching.
noir_status()Check which repos are synced and their commit hashes
noir_search_code({ query })Search Noir source code with regex patterns
noir_search_docs({ query })Search Noir documentation
noir_search_stdlib({ query })Search the Noir standard library
noir_list_examples()List available Noir example circuits
noir_read_example({ name })Read full source code of an example
noir_read_file({ path })Read any file from cloned repos by relative path
noir_list_libraries()List available Noir libraries

Workflow

code
User asks Noir question
         |
   noir_sync_repos() (if not done)
         |
   noir_search_code() / noir_search_docs() / noir_search_stdlib()
         |
   noir_read_example() if needed
         |
   Respond with VERIFIED current syntax

First, sync the repos (if not already done):

code
noir_sync_repos()

Search for code patterns:

code
noir_search_code({ query: "<pattern>", filePattern: "*.nr" })

Search the standard library:

code
noir_search_stdlib({ query: "poseidon" })

List and read examples:

code
noir_list_examples()
noir_read_example({ name: "<example-name>" })

Search documentation:

code
noir_search_docs({ query: "<question>" })