ask-mcp
For questions about Light Protocol's SDK, smart contracts and Solana development, Claude Code features, or agent skills. AI-powered answers grounded in repository context via DeepWiki MCP.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- ask-mcp
- metadata
- { "source": "https://github.com/Lightprotocol/skills", "openclaw": { "requires": { "env": [], "bins": [] } }, "documentation": "https://www.zkcompression.com" }
- description
- For questions about Light Protocol's SDK, smart contracts and Solana development, Claude Code features, or agent skills. AI-powered answers grounded in repository context via DeepWiki MCP.
- allowed-tools
- [ "Read", "Glob", "Grep", "Task", "WebFetch(https://zkcompression.com/*)", "WebFetch(https://github.com/Lightprotocol/*)", "WebSearch", "mcp__deepwiki__read_wiki_structure", "mcp__deepwiki__read_wiki_contents", "mcp__deepwiki__ask_question", "mcp__zkcompression__SearchLightProtocol" ]
02 资源文件 2
- 参考文档metadata.json334 B
- 参考文档verification.json1004 B
03 SKILL.md 正文
DeepWiki Research
Query repositories via DeepWiki MCP to answer technical questions with precise, source-backed answers.
Workflow
- Understand the question
- Identify what the user is asking and which domain it falls into
- If the question is ambiguous, state your understanding and ask for clarification
- Gather context
- Match question to the execution steps below
- Use
Glob,Grep, andReadto find relevant local files - Query DeepWiki MCP (
mcp__deepwiki__ask_question) andmcp__zkcompression__SearchLightProtocolfor repository-level context - Use
Tasksubagents for parallel research across multiple repos when needed
- Synthesize and respond
- Apply precision rules to the answer
- Format per format response
Execution Steps
1. Read required context in local repo
Use Glob and Grep to locate relevant files in the current repository. Use Read to pull in specific content needed to answer the question.
2. Identify question scope
Determine the domain:
- Programs, client SDKs, architecture, implementation details
- Specific components (LightAccount, ValidityProof, CPI, etc.)
3. Fetch repository context
Select the appropriate repository based on question scope:
Light Protocol (compressed accounts, state trees, ZK compression, Light SDK)
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")
Solana Development (programs, accounts, general Solana)
mcp__deepwiki__read_wiki_structure("blueshift-gg/blueshift-dashboard")
mcp__deepwiki__read_wiki_contents("blueshift-gg/blueshift-dashboard")
mcp__deepwiki__ask_question("blueshift-gg/blueshift-dashboard", "your question")
Claude Code (CLI features, commands, configuration)
mcp__deepwiki__read_wiki_structure("anthropics/claude-code")
mcp__deepwiki__read_wiki_contents("anthropics/claude-code")
mcp__deepwiki__ask_question("anthropics/claude-code", "your question")
Agent Skills (skills, subagents, patterns)
mcp__deepwiki__read_wiki_structure("anthropics/skills")
mcp__deepwiki__read_wiki_contents("anthropics/skills")
mcp__deepwiki__ask_question("anthropics/skills", "your question")
4. Apply precision rules
AVOID:
- Vague verbs: "handles", "manages", "processes", "enables", "provides"
- Abstract nouns: "operations", "management", "coordination"
- -ing endings when a precise verb exists
- Marketing language: "comprehensive", "rich", "seamless", "enables", "provides capability"
- ZK terminology in user-facing docs: "inclusion proof", "non-inclusion proof" → Instead describe what it does: "prove the address doesn't exist", "prove the account hash exists"
- Generic descriptions: "account metadata" instead of "CompressedAccountMeta"
USE:
- Exact function/method names
- Concrete data structures
- Specific operations: "sets discriminator", "creates hash", "nullifies account"
- File:line references
- "reference" when describing u8 indices that reference accounts in the accounts array (standard Solana terminology)
- "CPI" as a verb (e.g., "CPIs the Account Compression Program")
- Technical method/function names used as verbs when contextually clear
Describe exactly what happens.
5. Format response
Structure answers with:
- Technical precision
- Code examples with inline comments
- Source references (file paths, line numbers)
Example Output
Question: What do you include in instruction data for compressed account creation?
Answer:
Compressed Account Creation Instruction Data
Instruction data contains three components for proof verification and tree coordination.
Components:
pub struct InstructionData {
proof: ValidityProof,
address_tree_info: PackedAddressTreeInfo,
output_state_tree_index: u8,
// + custom account data
}
1. Non-inclusion proof
ValidityProofproves the derived address does not exist in the specified address tree- Client generates via
getValidityProof()RPC call
2. Tree location parameters
PackedAddressTreeInfo: Specifies which address tree registers the address (u8 index, not pubkey)output_state_tree_index: Specifies which state tree stores the compressed account hash
3. Custom account data
- Program-specific fields (e.g.,
message: String, user data)
Execution flow:
- Address tree proves uniqueness, stores address
- State tree stores account hash
- ValidityProof cryptographically guarantees address is unused
Why separate trees:
Compressed accounts require client-generated cryptographic proof that address doesn't exist (unlike regular Solana where runtime checks PDA existence). Address trees enforce uniqueness; state trees store account hashes.
Packed structs use u8 indices to reference accounts in remaining_accounts, reducing transaction size.
Security
This skill does not pull, store, or transmit external secrets. It provides code patterns, documentation references, and development guidance only.
- No credentials consumed. The skill requires no API keys, private keys, or signing secrets.
env: []is declared explicitly. - DeepWiki MCP accesses public repositories only. All
mcp__deepwiki__*calls query public GitHub repositories (Lightprotocol/light-protocol, anthropics/claude-code, anthropics/skills). No authentication tokens are required or transmitted. DeepWiki does not access private repositories unless explicitly configured with a token — this skill does not configure one. - User-provided configuration. RPC endpoints, wallet keypairs, and authentication tokens (Privy, wallet adapters) are configured in the user's own application code — the skill only demonstrates how to use them.
- Tool boundary enforced. The
allowed-toolslist restricts this skill to read-only operations (Read,Glob,Grep), research subagents (Task), web fetches to Light Protocol domains, and MCP queries. It cannot load other skills, write files, or execute shell commands. Verify theallowed-toolslist in the frontmatter above matches these constraints. - Install source.
npx skills add Lightprotocol/skillsinstalls from the public GitHub repository (Lightprotocol/skills). Verify the source before running. - Audited protocol. Light Protocol smart contracts are independently audited. Reports are published at github.com/Lightprotocol/light-protocol/tree/main/audits.
04 同仓库更多 Skills
zkrouter
Self-hosted OpenAI-compatible LLM router — smart tier-based routing, ZK-stamped routing decisions, mode overrides, free OpenRouter at install via the Birth bot. Save 60-80% on inference costs by routing to the cheapest capable model across 12+ OpenRouter models.
zk
For custom ZK Solana programs and privacy-preserving applications to prevent double spending. Guide to integrate rent-free nullifier PDAs for double-spend prevention.
zk-omni-messaging
Zero-knowledge omnichain messaging between Robinhood Chain and Solana using CheshireZkOmniMessenger (msgType 4) with nullifier anti-replay and the zk-omni-relayer service.
zerion-wallet-data
Use when the user asks to check a wallet's portfolio, token balances, DeFi positions, PnL, transaction history, or NFTs. Provides interpreted on-chain data across 40+ EVM chains and Solana via x402 pay-per-request or API key — no raw RPC decoding needed.
youtube-clipper
YouTube 视频智能剪辑工具。下载视频和字幕,AI 分析生成精细章节(几分钟级别), 用户选择片段后自动剪辑、翻译字幕为中英双语、烧录字幕到视频,并生成总结文案。 使用场景:当用户需要剪辑 YouTube 视频、生成短视频片段、制作双语字幕版本时。 关键词:视频剪辑、YouTube、字幕翻译、双语字幕、视频下载、clip video
yield-optimization
Multi-chain yield optimization via yield.xyz (StakeKit). Discover 2,988+ yield opportunities across 75+ blockchains, build deposit/withdrawal transactions with shell scripts, and sign them with a MoonPay wallet. Use when the user wants to earn yield, find the best lending or staking rate, enter/exit a position, or check portfolio balances.