AI Tools Guide

Guidance to AI tools when working with ZK Compression. Includes MCP server, DeepWiki, and AI Search guides.

For Docs

  • Docs AI Search - Search documentation with AI in the search bar.

  • llms.txt - Site index for LLM navigation: https://zkcompression.com/llms.txt.

  • Markdown Export - Append .md to any page URL for raw markdown.

For Development

DeepWiki Ask DeepWiki

Use DeepWiki and its search capabilities (AskDevin) to query the Light Protocol repository in natural language.

  • DeepWiki generates systematic documentation.

  • Use AskDevin for help with debugging and technical questions:

You can index and query any public GitHub repository with DeepWiki to produce wikis with architecture diagrams, source links, and codebase summaries.

MCP

The Model Context Protocol (MCP) is an open standard to connect AI apps to data sources and tools. The DeepWiki MCP server provides access to the Light Protocol repository with its search capabilities (AskDevin).

Installation

claude mcp add -s user -t http deepwiki https://mcp.deepwiki.com/mcp
---
argument-hint: <question>
description: Query Light Protocol repository and Solana resources via DeepWiki MCP for precise technical answers and help with debugging
allowed-tools: mcp__deepwiki__*
---

# /ask-deepwiki Command

## Command Process

When invoked 
1. read the entire file, and
2. perform these steps:

### Step 1: Identify Question Scope and Type

- **ZK Compression**
- **Solana fundamentals**
- **Anchor framework**

Note any specific key words like debugging, error, or components mentioned (e.g., LightAccount, ValidityProof, CPI contexts).

### Step 2: Fetch Repository Context

**For ZK Compression / Light Protocol questions:**

`mcp__deepwiki__read_wiki_structure("Lightprotocol/light-protocol")`
`mcp__deepwiki__read_wiki_contents("Lightprotocol/light-protocol")`
`mcp__deepwiki__ask_question("Lightprotocol/light-protocol", "your question")`

**For general Solana questions:**

`mcp__deepwiki__read_wiki_structure("solana-labs/solana")`
`mcp__deepwiki__read_wiki_contents("solana-labs/solana")`
`mcp__deepwiki__ask_question("solana-labs/solana", "your question")`

**For Anchor framework questions:**
`mcp__deepwiki__read_wiki_structure("solana-foundation/anchor")`
`mcp__deepwiki__read_wiki_contents("solana-foundation/anchor")`
`mcp__deepwiki__ask_question("solana-foundation/anchor", "your question")`

**For complex questions:** Query multiple repositories if needed to provide complete context.

### Step 3: Apply Precision Rules

Use technical precision in responses:

**AVOID:**
- Vague verbs: "handles", "manages", "processes", "enables", "provides"
- Abstract terms: "operations", "management", "coordination"
- Marketing language: "powerful", "seamless", "easy"
- Generic descriptions: "account metadata" instead of "CompressedAccountMeta"

**USE:**
- Exact function/method names: `LightAccount::new_init()`, `derive_address()`
- Concrete data structures: `CompressedAccountMeta`, `ValidityProof`, `PackedAddressTreeInfo`
- Specific operations: "nullifies hash", "appends to state tree", "verifies proof"
- Precise field names: `tree_info`, `address`, `output_state_tree_index`
- File:line references when available from DeepWiki responses

### Step 4: Verify with Public Documentation

Cross-reference findings with public documentation:
- **ZK Compression docs**: https://www.zkcompression.com/
- **Markdown export**: Append `.md` to any docs page URL
- **LLM index**: https://www.zkcompression.com/llms.txt
- **Complete docs**: https://www.zkcompression.com/llms-full.txt
- **GitHub source**: https://github.com/Lightprotocol/light-protocol

### Step 5: Format Response

Structure the response with:
1. **Direct answer** - Immediate technical explanation
2. **Technical details** - Specific implementations, data structures
3. **Code examples** - With inline comments explaining key points
4. **Source references** - File:line from DeepWiki or documentation URLs
5. **Related concepts** - Connections to other components (if relevant)

## Notes

- DeepWiki responses include source file references - always include these
- For implementation questions, provide runnable code examples
- Cross-reference multiple sources when accuracy is critical
- Ask follow-up questions to DeepWiki for clarification when needed

Tools

The MCP server offers three main tools:

  • read_wiki_structure - Get a list of documentation topics for a GitHub repository

mcp__deepwiki__read_wiki_structure("Lightprotocol/light-protocol")
  • read_wiki_contents - View documentation about a GitHub repository

mcp__deepwiki__read_wiki_contents("Lightprotocol/light-protocol")
  • ask_question - Ask any question about the GitHub repository and get a context-grounded response

mcp__deepwiki__ask_question("Lightprotocol/light-protocol", "your question")

Next Steps

Start testing your AI tools with compressed tokens or PDAs.

Last updated

Was this helpful?