/percolator:compressed-tokenfrom percolator
For compressed token operations on Solana ~400x cheaper than SPL: create mints with interface PDAs, mint, transfer, approve, revoke, compress, decompress, merge, and Token-2022 with compression. Compressed token accounts are always rent-free. @lightprotocol/compressed-token (TypeScript) with createRpc() from @lightprotocol/stateless.js.
Ships in percolator. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Build token applications with @lightprotocol/compressed-token (TypeScript). Compressed token accounts are always rent-free. The SPL mint and interface PDA still pay rent, but each holder's compressed token account costs a fraction of an SPL account.
| Creation cost | SPL | Compressed |
|---|---|---|
| Token account | ~2,000,000 lamports | ~5,000 lamports |
Compressed token accounts store balance, owner, mint, and delegate like SPL token accounts. They require no associated token account (ATA) and no rent-exempt balance, and convert to and from SPL tokens at any time with compress() and decompress(). Wallets like Phantom and Backpack display them alongside SPL tokens.
Compressed tokens use a standard SPL (or Token-2022) mint plus an interface PDA. The interface PDA is an omnibus account that locks SPL tokens while they are compressed and releases them on decompression. Create it with the mint via createMint(), or add one to an existing mint with createTokenPool().
SPL mint --register--> interface PDA (omnibus PDA)
mintTo / compress --> compressed token accounts (rent-free, in state tree)
decompress --> back to SPL token account
Each mint supports a maximum of 4 interface PDAs. They get write-locked during compression and decompression, so add more with addTokenPools() to raise per-block write-lock capacity for high-throughput distribution.
Examples run on localnet by default. For devnet or mainnet, use the RPC key ${user_config.rpc_api_key} (Helius or Triton) and the keypair path ${user_config.solana_keypair}. Do not read an API key from the environment, and do not open a keypair from the home directory.
import { createRpc } from '@lightprotocol/stateless.js';
// Localnet (defaults to http://127.0.0.1:8899):
const rpc = createRpc();
// Devnet or mainnet:
const rpc = createRpc(`https://devnet.helius-rpc.com?api-key=${user_config.rpc_api_key}`);
| Task | Reference |
|---|---|
| Create a mint with interface PDA, add more | references/create-mint.md |
| Mint compressed tokens | references/mint-to.md |
| Transfer compressed tokens | references/transfer.md |
| Approve and revoke delegates | references/approve-revoke.md |
| Compress and decompress SPL tokens | references/compress-decompress.md |
| Merge fragmented compressed accounts | references/merge-token-accounts.md |
| Token-2022 with compression | references/token-2022.md |
| Token distribution and airdrops | references/distribution.md |
| Query balances, accounts, and history | references/queries.md |
All functions are in @lightprotocol/compressed-token unless noted. RPC helpers come from @lightprotocol/stateless.js.
createMint (SPL mint + pool), createTokenPool (pool for existing mint), addTokenPools (max 4 per mint).mintTo, approveAndMintTo, transfer, transferDelegated.approve, revoke.compress, decompress, decompressDelegated, compressSplTokenAccount.mergeTokenAccounts (up to 8 accounts).CompressedTokenProgram.* methods (compress, decompress, transfer, createTokenPool, deriveTokenPoolPda) and the standalone createMintInstruction export.getTokenPoolInfos, selectTokenPoolInfo, selectTokenPoolInfosForDecompression, selectMinCompressedTokenAccountsForTransfer.Rpc): createRpc, getValidityProof, getCompressedTokenAccountsByOwner, getCompressedTokenAccountsByDelegate, getCompressedTokenBalancesByOwnerV2, getCompressionSignaturesForTokenOwner, selectStateTreeInfo.buildAndSignTx, sendAndConfirmTx, dedupeSigner.If cloned locally, scope Read, Glob, Grep to these repositories and the current project directory only.
AskUserQuestion to resolve blind spots before execution.Task subagents for parallel research; track progress with TodoWrite.Read, Glob, Grep, and DeepWiki MCP access, loading skills/ask-mcp. Scope reads to skill references, example repos, and docs.Install dependencies and run a script against localnet, devnet, or mainnet by setting the RPC URL in createRpc().
npm install @lightprotocol/stateless.js @lightprotocol/compressed-token @solana/web3.js @solana/spl-token
npx tsx your-script.ts
If no matching pattern in the reference repos, ask mcp__deepwiki__ask_question against Lightprotocol/light-protocol, for example "How to mint compressed tokens with @lightprotocol/compressed-token?".
This skill provides code patterns and documentation references only.
${user_config.rpc_api_key} and ${user_config.solana_keypair}. Neither is needed on localnet. Do not read an API key from the environment, and do not open a keypair from the home directory.Read, Glob, Grep must stay within the current project directory and the reference repos above.npx skills add Lightprotocol/skills installs from the public GitHub repository (Lightprotocol/skills). Verify the source before running.references/approve-revoke.md (opens in a new tab)references/compress-decompress.md (opens in a new tab)references/create-mint.md (opens in a new tab)references/distribution.md (opens in a new tab)references/merge-token-accounts.md (opens in a new tab)references/mint-to.md (opens in a new tab)references/queries.md (opens in a new tab)references/token-2022.md (opens in a new tab)references/transfer.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub solizardking/solizardking-clawd-plugin-marketplace --plugin percolator131 skills in this plugin
/1passwordSet up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op./agent-browserUse the host-side `agent-browser` CLI for local browser smoke tests, screenshots, snapshots, and simple UI validation against forwarded localhost URLs./agent-desktopUse the built-in `Computer` sub-agent with `agent-desktop` for macOS desktop automation. Apply when a task needs application launching, accessibility snapshots, stable element refs, window focusing, semantic clicks/typing, or visual confirmation outside the browser sandbox.Other plugins' skills for the same job