Light Protocol testing
Workflow
- Clarify intent
- Recommend plan mode, if it's not activated
- Use
AskUserQuestion to resolve blind spots
- All questions must be resolved before execution
- Identify references and skills
- Match task to test references below
- Locate relevant documentation and examples
- Write plan file (YAML task format)
- Use
AskUserQuestion for anything unclear — never guess or assume
- Identify blockers: permissions, dependencies, unknowns
- Plan must be complete before execution begins
- Execute
- Use
Task tool with subagents for parallel research
- Subagents load skills via
Skill tool
- Track progress with
TodoWrite
- When stuck: ask to spawn a read-only subagent with
Read, Glob, Grep, and DeepWiki MCP access, loading skills/ask-mcp. Scope reads to skill references, example repos, and docs.
Routing
| Task |
Reference |
| Start local validator |
references/local.md |
| Test on devnet |
references/devnet.md |
| Test Pinocchio programs |
cargo test-sbf -p <program-name> (no Anchor required) |
Program addresses
These addresses are identical on devnet and mainnet.
| Program |
Address |
| Light System |
SySTEM1eSU2p4BGQfQpimFEWWSC1XDFeun3Nqzz3rT7 |
| Compressed Token |
cTokenmWW8bLPjZEBAUgYy3zKxQZW6VKi7bqNFEVv3m |
| Account Compression |
compr6CUsB5m2jS4Y3831ztGSTnDpnKJTKS95d64XVq |
| Light Registry |
Lighton6oQpVkeewmo2mcPTQQp7kYHr4fWpAgJyEmDX |
Pre-initialized accounts
See references/accounts.md for state trees, address trees, and protocol PDAs.
See references/addresses.md for devnet-specific addresses and lookup tables.
SDK references
Security
This skill provides test patterns and configuration references only.
- Declared dependencies. Devnet testing requires
HELIUS_API_KEY (RPC provider key). Localnet testing needs no credentials. In production, load from a secrets manager.
- Subagent scope. When stuck, the skill asks to spawn a read-only subagent with
Read, Glob, Grep scoped to skill references, example repos, and docs.
- Install source.
npx skills add Lightprotocol/skills from Lightprotocol/skills.
- Audited protocol. Light Protocol smart contracts are independently audited. Reports are published at github.com/Lightprotocol/light-protocol/tree/main/audits.
1---2name: testing3description: "For testing with Light Protocol programs and clients on localnet, devnet, and mainnet validation."4metadata:5 source: https://skillmd.com/skills/solizardking/testing6 upstream: https://github.com/Lightprotocol/skills7 documentation: https://www.zkcompression.com8 openclaw:9 requires:10 env: ["HELIUS_API_KEY"] # Only needed for devnet testing11 bins: ["node", "solana", "anchor", "cargo", "light"]12license: MIT13author: Light Protocol14version: 1.0.015---1617# Light Protocol testing1819## Workflow20211. **Clarify intent**22 - Recommend plan mode, if it's not activated23 - Use `AskUserQuestion` to resolve blind spots24 - All questions must be resolved before execution252. **Identify references and skills**26 - Match task to [test references](#routing) below27 - Locate relevant documentation and examples283. **Write plan file** (YAML task format)29 - Use `AskUserQuestion` for anything unclear — never guess or assume30 - Identify blockers: permissions, dependencies, unknowns31 - Plan must be complete before execution begins324. **Execute**33 - Use `Task` tool with subagents for parallel research34 - Subagents load skills via `Skill` tool35 - Track progress with `TodoWrite`365. **When stuck**: ask to spawn a read-only subagent with `Read`, `Glob`, `Grep`, and DeepWiki MCP access, loading `skills/ask-mcp`. Scope reads to skill references, example repos, and docs.3738## Routing3940| Task | Reference |41|------|-----------|42| Start local validator | [references/local.md](references/local.md) |43| Test on devnet | [references/devnet.md](references/devnet.md) |44| Test Pinocchio programs | `cargo test-sbf -p <program-name>` (no Anchor required) |4546## Program addresses4748These addresses are identical on devnet and mainnet.4950| Program | Address |51|---------|---------|52| Light System | `SySTEM1eSU2p4BGQfQpimFEWWSC1XDFeun3Nqzz3rT7` |53| Compressed Token | `cTokenmWW8bLPjZEBAUgYy3zKxQZW6VKi7bqNFEVv3m` |54| Account Compression | `compr6CUsB5m2jS4Y3831ztGSTnDpnKJTKS95d64XVq` |55| Light Registry | `Lighton6oQpVkeewmo2mcPTQQp7kYHr4fWpAgJyEmDX` |5657## Pre-initialized accounts5859See [references/accounts.md](references/accounts.md) for state trees, address trees, and protocol PDAs.6061See [references/addresses.md](references/addresses.md) for devnet-specific addresses and lookup tables.6263## SDK references6465| Package | Link |66|---------|------|67| `light-program-test` | [docs.rs](https://docs.rs/crate/light-program-test/latest) |68| `@lightprotocol/stateless.js` | [API docs](https://lightprotocol.github.io/light-protocol/stateless.js/index.html) |69| `light-client` | [docs.rs](https://docs.rs/light-client/latest/light_client/) |707172## Security7374This skill provides test patterns and configuration references only.7576- **Declared dependencies.** Devnet testing requires `HELIUS_API_KEY` (RPC provider key). Localnet testing needs no credentials. In production, load from a secrets manager.77- **Subagent scope.** When stuck, the skill asks to spawn a read-only subagent with `Read`, `Glob`, `Grep` scoped to skill references, example repos, and docs.78- **Install source.** `npx skills add Lightprotocol/skills` from [Lightprotocol/skills](https://github.com/Lightprotocol/skills).79- **Audited protocol.** Light Protocol smart contracts are independently audited. Reports are published at [github.com/Lightprotocol/light-protocol/tree/main/audits](https://github.com/Lightprotocol/light-protocol/tree/main/audits).