# Agent skills Source: https://www.zkcompression.com/ai-tools/agent-skills Install structured agent skill files for Token APIs and PDA accounts. Skills tell AI coding agents what they can do with ZK Compression. ## Agent Skill for Orchestration View or install [`/skill.md`](https://zkcompression.com/skill.md). If you're building with agents, start here. ```bash theme={null} npx skills add https://zkcompression.com ``` ## Dedicated Agent Skills Install dedicated agent skills with this command: ``` npx skills add Lightprotocol/skills ``` Add the marketplace and install: ``` /plugin marketplace add Lightprotocol/skills /plugin install solana-rent-free-dev ``` 1. Open Settings (**Cmd+Shift+J** / **Ctrl+Shift+J**) 2. Navigate to **Rules & Commands** → **Project Rules** → **Add Rule** → **Remote Rule (GitHub)** 3. Enter: `https://github.com/Lightprotocol/skills.git` | Use case | Skill | | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | | For token use cases on Solana, such as token distribution, stablecoin payments and more. Works with Token-2022, Privy, Wallet Adapter similarly to SPL. | [compressed-token](https://github.com/Lightprotocol/skills/tree/main/skills/compressed-token) | | For program development on Solana with infrequently accessed state, such as per-user state, DePIN registrations, nullifiers, or custom compressed accounts | [compressed-pda](https://github.com/Lightprotocol/skills/tree/main/skills/compressed-pda) | | For custom ZK Solana programs and privacy-preserving applications to prevent double spending | [zk](https://github.com/Lightprotocol/skills/tree/main/skills/zk) | | For testing with Light Protocol programs and clients on localnet, devnet, and mainnet validation | [testing](https://github.com/Lightprotocol/skills/tree/main/skills/testing) | | For questions about compressed accounts, Light SDK, Solana development, Claude Code features, or agent skills | [ask-mcp](https://github.com/Lightprotocol/skills/tree/main/skills/ask-mcp) | > View all skills here: [https://github.com/Lightprotocol/skills](https://github.com/Lightprotocol/skills). All skills are included and are auto-discovered based on context. Ask about compressed tokens, compressed PDAs, ZK programs, or testing and the agent uses the relevant skill automatically. # MCP Source: https://www.zkcompression.com/ai-tools/mcp Connect AI apps to Light Protocol data sources and tools via the Model Context Protocol (MCP). Includes installation for Claude Code, Codex, Cursor, and more. 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 ```bash theme={null} claude mcp add -s user -t http deepwiki https://mcp.deepwiki.com/mcp claude mcp add -s user -t http zkcompression https://www.zkcompression.com/mcp ``` **We recommend to create a command** that includes the tools listed below.
Simply **copy paste this snippet**.
```markdown expandable theme={null} --- argument-hint: 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 Answer: $ARGUMENTS Use DeepWiki MCP to provide precise technical answers. ## Step 1: Identify Repository Scope 1. **State understanding and plan** 2. **If question is vague, ask for clarification:** - What specific component or feature? - What problem are you solving? - What level of detail needed (overview vs implementation)? 3. **Repository mapping:** - ZK Compression/Light Protocol: `Lightprotocol/light-protocol` - Solana fundamentals: `solana-labs/solana` - Anchor framework: `solana-foundation/anchor` - Complex questions: Query multiple repositories 4. **Refine question to use:** - Exact component names: `CompressedAccountMeta` not "account metadata" - Specific operations: "verifies proof" not "handles proof" - Concrete function names or error messages when available ## Step 2: Query DeepWiki For the identified repository, call in sequence: 1. `mcp__deepwiki__read_wiki_structure("repo-owner/repo-name")` 2. `mcp__deepwiki__read_wiki_contents("repo-owner/repo-name")` 3. `mcp__deepwiki__ask_question("repo-owner/repo-name", refined_question)` Query multiple repositories if question spans different systems. ## Step 3: Format Response **Structure:** 1. Direct answer with technical explanation 2. Specific implementations and data structures 3. Code examples with inline comments 4. Source references (`file:line` from DeepWiki) 5. Related concepts if relevant **Language precision:** NEVER use vague verbs: - "handles", "manages", "processes", "enables", "provides" ALWAYS use exact names: - Functions: `LightAccount::new_init()`, `derive_address()` - Types: `CompressedAccountMeta`, `ValidityProof`, `PackedAddressTreeInfo` - Operations: "nullifies hash", "appends to state tree", "verifies proof" - Fields: `tree_info`, `address`, `output_state_tree_index` Include `file:line` references from DeepWiki responses. ## Notes - Always include source file references from DeepWiki responses - Provide runnable code examples for implementation questions - Ask follow-up questions to DeepWiki for clarification when needed ```
```bash theme={null} codex mcp add zkcompression -- npx -y mcp-remote@latest https://www.zkcompression.com/mcp codex mcp add deepwiki -- npx -y mcp-remote@latest https://mcp.deepwiki.com/mcp ``` ```json theme={null} { "mcpServers": { "deepwiki": { "serverUrl": "https://mcp.deepwiki.com/sse" }, "zkcompression": { "command": "npx", "args": ["-y", "mcp-remote@latest", "https://www.zkcompression.com/mcp"] } } } ```
## DeepWiki MCP-Tools * **read\_wiki\_structure** - Get a list of documentation topics for a GitHub repository ```bash theme={null} mcp__deepwiki__read_wiki_structure("Lightprotocol/light-protocol") ``` * **read\_wiki\_contents** - View documentation about a GitHub repository ```bash theme={null} mcp__deepwiki__read_wiki_contents("Lightprotocol/light-protocol") ``` * **ask\_question** - Ask any question about the GitHub repository and get a context-grounded response ```bash theme={null} mcp__deepwiki__ask_question("Lightprotocol/light-protocol", "your question") ``` You can specify any public GitHub repo that is indexed with DeepWiki. When you connect to the MCP, you specify the repository when calling the tools. Learn more [here](https://docs.devin.ai/work-with-devin/deepwiki-mcp). If you don't have the MCP installed we recommend to use [AskDevin](https://deepwiki.com/Lightprotocol/light-protocol) in your browser.