/substreams-svm:substreams-packfrom substreams-svm
Builds, packs, and distributes Substreams .spkg packages in a Solana Virtual Machine monorepo. Follows bottom-up dependency order across DEX, DB, and sink layers.
Ships in substreams-svm. 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.
None: SKILL.md is the whole skill.
Instructions for building, packing, and copying .spkg files in the substreams-svm monorepo.
The ./spkg/ directory is the central distribution point for shared Substreams packages. Downstream modules import their dependencies from ../spkg/*.spkg, so packages must be copied there after packing.
Packages must be built bottom-up — a package's .spkg dependencies must exist in ./spkg/ before it can be packed.
Level 0 — Leaf crates (individual DEX/token modules):
├── raydium/amm-v4/ → raydium-amm-v4-v*.spkg
├── raydium/clmm/ → raydium-clmm-v*.spkg
├── raydium/cpmm/ → raydium-cpmm-v*.spkg
├── raydium/launchpad/ → raydium-launchpad-v*.spkg
├── jupiter/v4/ → jupiter-v4-v*.spkg
├── jupiter/v6/ → jupiter-v6-v*.spkg
├── orca/whirlpool/ → orca-whirlpool-v*.spkg
├── meteora/amm/ → meteora-amm-v*.spkg
├── meteora/daam/ → meteora-daam-v*.spkg
├── meteora/dllm/ → meteora-dllm-v*.spkg
├── pumpfun/bonding_curve/ → pumpfun-bonding-curve-v*.spkg
├── pumpfun/amm/ → pumpfun-amm-v*.spkg
├── pumpswap/ → pumpswap-v*.spkg
├── spl-token/ → spl-token-v*.spkg
├── native-token/ → native-token-v*.spkg
└── ... (moonshot, pancakeswap, lifinity, phoenix, openbook, etc.)
Level 1 — DB layer (imports Level 0 .spkg files):
├── db-svm-dex/ → svm-dex-v*.spkg
├── db-svm-transfers/ → svm-transfers-v*.spkg
├── db-svm-balances/ → svm-balances-v*.spkg
├── db-svm-accounts/ → svm-accounts-v*.spkg
└── db-svm-metadata/ → svm-metadata-v*.spkg
Level 2 — Sink layer (imports Level 1 .spkg files):
├── db-svm-dex-clickhouse/ → clickhouse-svm-dex-v*.spkg
├── db-svm-dex-postgres/ → postgres-svm-dex-v*.spkg
├── db-svm-transfers-clickhouse/ → clickhouse-svm-transfers-v*.spkg
├── db-svm-transfers-postgres/ → postgres-svm-transfers-v*.spkg
├── db-svm-balances-clickhouse/ → clickhouse-svm-balances-v*.spkg
├── db-svm-balances-postgres/ → postgres-svm-balances-v*.spkg
├── db-svm-accounts-clickhouse/ → clickhouse-svm-accounts-v*.spkg
├── db-svm-accounts-postgres/ → postgres-svm-accounts-v*.spkg
├── db-svm-metadata-clickhouse/ → clickhouse-svm-metadata-v*.spkg
└── db-svm-metadata-postgres/ → postgres-svm-metadata-v*.spkg
cd proto && make protogen
This runs substreams protogen --exclude-paths sf/substreams,google to regenerate proto/src/pb/*.rs from proto/v1/*.proto.
cargo build --target wasm32-unknown-unknown --release
Or build specific crates:
cargo build --target wasm32-unknown-unknown --release \
-p raydium-amm-v4 \
-p jupiter-v6 \
-p db-svm-dex
cd raydium/amm-v4 && substreams pack && cp raydium-amm-v4-v*.spkg ../../spkg/
cd jupiter/v6 && substreams pack && cp jupiter-v6-v*.spkg ../../spkg/
cd pumpfun/bonding_curve && substreams pack && cp pumpfun-bonding-curve-v*.spkg ../../spkg/
cd spl-token && substreams pack && cp spl-token-v*.spkg ../spkg/
cd native-token && substreams pack && cp native-token-v*.spkg ../spkg/
These import Level 0 .spkg files, so Level 0 must be packed first.
cd db-svm-dex && substreams pack && cp svm-dex-v*.spkg ../spkg/
cd db-svm-transfers && substreams pack && cp svm-transfers-v*.spkg ../spkg/
cd db-svm-balances && substreams pack && cp svm-balances-v*.spkg ../spkg/
These import Level 1 .spkg files, so Level 1 must be packed first.
cd db-svm-dex-clickhouse && substreams pack && cp clickhouse-svm-dex-v*.spkg ../spkg/
cd db-svm-dex-postgres && substreams pack && cp postgres-svm-dex-v*.spkg ../spkg/
substreams pack reads compiled .wasm files./spkg/ when updating versionswasm/rust-v1+wasm-bindgen-shims (not plain wasm/rust-v1)raydium/amm-v4/), so SPKG copy paths use ../../spkg/What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub pinax-network/substreams-svm --plugin substreams-svm6 skills in this plugin
/release-conventionsNaming conventions for tags, releases, and SPKGs in the substreams-svm monorepo. Use when creating releases, tagging versions, or publishing packages./substreams-devExpert knowledge for developing Substreams modules on Solana/SVM. Covers manifest spec, Rust modules, IDL-based decoders, protobuf schemas, and Solana-specific data processing patterns./substreams-sinkExpert knowledge for consuming Substreams data from Solana/SVM modules. Use when building sinks, real-time data pipelines, or integrating Substreams outputs into applications./substreams-sqlExpert knowledge for building SQL database sinks from Solana/SVM Substreams. Covers DatabaseChanges, ClickHouse schemas, PostgreSQL schemas, and materialized views for Solana DEX/token data./substreams-testingExpert knowledge for testing Solana/SVM Substreams applications. Covers unit testing, integration testing, and performance testing patterns.Other plugins' skills for the same job