# Send solana-compression-dev to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "solana-compression-dev",
    "name": "solana-compression-dev",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/tilo-14/solana-compression-dev",
    "canonicalUrl": "https://clawhub.ai/tilo-14/solana-compression-dev",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/solana-compression-dev",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=solana-compression-dev",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/error-codes.md",
      "references/nullifier-pdas.md",
      "references/compressed-pdas.md",
      "references/client.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "solana-compression-dev",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-12T16:43:44.853Z",
      "expiresAt": "2026-05-19T16:43:44.853Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=solana-compression-dev",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=solana-compression-dev",
        "contentDisposition": "attachment; filename=\"solana-compression-dev-1.0.4.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "solana-compression-dev"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/solana-compression-dev"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/solana-compression-dev",
    "downloadUrl": "https://openagent3.xyz/downloads/solana-compression-dev",
    "agentUrl": "https://openagent3.xyz/skills/solana-compression-dev/agent",
    "manifestUrl": "https://openagent3.xyz/skills/solana-compression-dev/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/solana-compression-dev/agent.md"
  }
}
```
## Documentation

### Compressed PDA Programs

Build Solana programs with compressed accounts via CPI to the Light System Program. No rent-exemption required.

Creation costSolana accountCompressed accountPDA (128 bytes)~1,100,000 lamports~5,000 lamports

### When to use compressed PDAs

Per-user state (profiles, game state, credentials)
DePIN device registrations
Nullifier-based double-spend prevention
Infrequently accessed accounts

### Choosing approach

CriteriaLight-PDA (easy)Compressed PDA (advanced)WhenRent-free version of existing Anchor accountsCustom compressed state with ZK proofsSkilllight-sdk (Anchor macro pattern)This skill (solana-compression)Macro#[light_account(init)]LightAccount::new_init() manual CPIDependencieslight-sdk, light-compressiblelight-sdk, light-sdk-types

If you just want rent-free Anchor accounts, use the light-sdk skill instead. This skill is for programs that require manual CPI to the Light System Program (custom compressed state, ZK proofs, address derivation).

### Client-program interaction flow

├─ Client
 │  ├─ Get ValidityProof from RPC.
 │  ├─ pack accounts with PackedAccounts into PackedAddressTreeInfo and PackedStateTreeInfo.
 │  ├─ pack CompressedAccountMeta.
 │  ├─ Build Instruction from PackedAccounts and CompressedAccountMetas.
 │  └─ Send transaction.
 │
 └─ Custom Program
    ├─ CpiAccounts parse accounts consistent with PackedAccounts.
    ├─ LightAccount instantiates from CompressedAccountMeta.
    │
    └─ Light System Program CPI
       ├─ Verify ValidityProof.
       ├─ Update State Merkle tree.
       ├─ Update Address Merkle tree.
       └─ Complete atomic state transition.

### Domain references

TopicReferenceProgram operations (create, update, close, burn, reinit)references/compressed-pdas.mdClient SDK (TypeScript + Rust)references/client.mdNullifier PDAs (double-spend prevention)references/nullifier-pdas.mdError codes (6000-16034)references/error-codes.md

### Reference repos

Basic operations — create, update, close, reinit, burn (each with Anchor and Native variants)

Counter — full lifecycle (create, increment, decrement, reset, close):

counter/anchor — Anchor with Rust and TypeScript tests
counter/native — Native with light-sdk and Rust tests
counter/pinocchio — Pinocchio with light-sdk-pinocchio and Rust tests

Other examples:

create-and-update — Create and update with a single validity proof in one instruction
read-only — Create and read a compressed account onchain
account-comparison — Compressed vs regular Solana accounts

Nullifier:

nullifier-program — Rent-free PDA for duplicate execution prevention. SDK: light-nullifier-program | example client

Airdrop claim:

simple-claim — Compressed tokens decompressed to SPL on claim with cliff
merkle-distributor — SPL tokens with compressed PDA claim tracking, linear vesting, partial claims, clawback
example-token-distribution — Simple client-side distribution

ZK programs:

zk-id — Identity verification with Groth16 proofs
zk/nullifier — Simple nullifier creation program

Additional: examples-zk-compression — More ZK compression examples

Canonical source: program-examples README. If cloned locally, scope Read, Glob, Grep to these repositories and the current project directory only.

### 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

Match task to domain references and reference repos
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.

### Required commands

Anchor programs:

anchor build
anchor test

Native programs:

cargo build-sbf
cargo test-sbf

### Forbidden shortcuts

Do NOT use cargo build (must use cargo build-sbf)
Do NOT use cargo test (must use cargo test-sbf)
Do NOT skip SBF compilation
Tests MUST run against real BPF bytecode

### Failure recovery

On failure, spawn debugger agent with error context.

Loop rules:

Each debugger gets fresh context + previous debug reports
Each attempt tries something DIFFERENT
NEVER GIVE UP - keep spawning until fixed
Max 5 attempts per error

Do NOT proceed until all tests pass.

### SDK references

PackageLinklight-sdkdocs.rslight-clientdocs.rs@lightprotocol/stateless.jsAPI docslight-program-testdocs.rs

### DeepWiki fallback

If no matching pattern in reference repos:

mcp__deepwiki__ask_question("Lightprotocol/light-protocol", "How to {operation}?")

### Security

This skill provides code patterns and documentation references only.

Declared dependencies. Devnet and mainnet examples require API_KEY (Helius or Triton RPC key) and read ~/.config/solana/id.json for the payer keypair. Neither is needed on localnet. In production, load both from a secrets manager.
Filesystem scope. Read, Glob, and Grep must be limited to the current project directory and the reference repos listed above. Do not read outside these paths.
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.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: tilo-14
- Version: 1.0.4
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-12T16:43:44.853Z
- Expires at: 2026-05-19T16:43:44.853Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/solana-compression-dev)
- [Send to Agent page](https://openagent3.xyz/skills/solana-compression-dev/agent)
- [JSON manifest](https://openagent3.xyz/skills/solana-compression-dev/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/solana-compression-dev/agent.md)
- [Download page](https://openagent3.xyz/downloads/solana-compression-dev)