/goldsky:turbo-pipelinesfrom Goldsky
Reference for Turbo pipeline YAML configuration and architecture decisions. Covers field syntax, source/transform/sink setup, resource sizing, and patterns like dataset vs Kafka, streaming vs job, fan-out vs fan-in.
Ships in Goldsky. 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.
YAML configuration reference and architecture guide for Turbo pipelines. For interactive pipeline building, use /turbo-builder. For troubleshooting, use /turbo-doctor. For transform implementation, use /turbo-transforms.
Decoded contract events are transform output, not a consumable <chain>.decoded_logs dataset. Source EVM contract logs from <chain>.raw_logs, then decode them in a transform (see /turbo-transforms). Pre-decoded token datasets such as <chain>.erc20_transfers, <chain>.erc721_transfers, and <chain>.erc1155_transfers are separate, available datasets; use /datasets to verify chain coverage.
CRITICAL: Always validate YAML with
goldsky turbo validate <file.yaml>before showing complete pipeline YAML to the user or deploying.
name: my-first-pipeline
resource_size: s
sources:
transfers:
type: dataset
dataset_name: base.erc20_transfers
version: 1.2.0
start_at: latest
transforms: {}
sinks:
output:
type: blackhole
from: transfers
goldsky turbo validate pipeline.yaml # Validate first
goldsky turbo apply pipeline.yaml -i # Deploy + inspect
goldsky is not on PATH, follow /auth-setup/auth-setup and run its bundled installer with turbo. Do not trigger the interactive auto-installer. Verify goldsky turbo --version succeeds; the published Linux binary requires x64 and glibc 2.39+, and the Mac binary requires Apple Silicon. Windows uses the WSL entry point. An unsupported platform is not a successful installation.export PATH="$HOME/.local/bin:$HOME/.goldsky/bin:$PATH" in every new shell/tool call; exports do not persist across calls./auth-setup and run goldsky login yourself when goldsky project list is not authenticated/secrets)| Scenario | Source Type | Why |
|---|---|---|
| Decode contract events from logs | dataset | Need raw_logs + _gs_log_decode() |
| Track token transfers | dataset | erc20_transfers has structured data |
| Historical backfill + live | dataset | start_at: earliest processes history |
| Live token balances | kafka | latest_balances_v2 is a streaming topic |
| Real-time state snapshots | kafka | Kafka delivers latest state continuously |
| Only need new data going forward | Either | Dataset with start_at: latest or Kafka |
Note: Kafka sources are used in production but are not documented in official Goldsky docs. Contact Goldsky support for topic names.
| Pattern | When to Use | Template |
|---|---|---|
| Linear | Single source, single destination, simple processing | templates/linear-pipeline.yaml |
| Fan-out | One source → multiple sinks (different views/subsets) | templates/fan-out-pipeline.yaml |
| Fan-in | Multiple event types → UNION ALL → one table | templates/fan-in-pipeline.yaml |
| Multi-chain | Same logic across chains (separate pipelines) | templates/multi-chain-templated.yaml |
For detailed pattern diagrams, YAML examples, and multi-chain deployment guidance, read references/architecture-patterns.md.
| Size | Workers | CPU | Memory | When to Use |
|---|---|---|---|---|
xs | — | 0.4 | 0.5 Gi | Small datasets, light testing |
s | 1 | 0.8 | 1.0 Gi | Simple filters, single source/sink, low volume (default) |
m | 4 | 1.6 | 2.0 Gi | Multiple sinks, Kafka streaming, moderate transform complexity |
l | 10 | 3.2 | 4.0 Gi | Multi-event decoding + UNION ALL, high-volume backfill |
xl | 20 | 6.4 | 8.0 Gi | Large chain backfills, complex JOINs |
xxl | 40 | 12.8 | 16.0 Gi | Highest throughput; up to 6.3M rows/min |
Start small and scale up — defensive sizing avoids wasted resources.
resource_size sizes the pipeline, not the sink — they are independent. An l/xl pipeline pointed at an undersized destination produces the "deployed but writing nothing" shape: it validates, deploys, reports Running, and then fails every write. A Neon free tier (512 MB) will not hold a multi-month backfill of a high-volume chain — it errors could not extend file because project size limit (512 MB) has been exceeded and checkpoints time out. Check the destination's storage ceiling against the backfill scope (the start position plus any end bound) before deploying, not after.
| Destination | Sink Type | Best For |
|---|---|---|
| Application DB | postgres | Row-level lookups, joins, application serving |
| Real-time aggregates | postgres_aggregate | Balances, counters, running totals via triggers |
| MySQL-compatible DB | mysql | Existing MySQL stacks, upserts on primary key |
| Analytics queries | clickhouse | Large-scale aggregations, time-series data |
| Event processing | kafka | Downstream consumers, event-driven systems |
| AWS messaging | sqs_sink | Decoupled AWS consumers (standard queues only) |
| GCP messaging | pubsub | Google Cloud Pub/Sub topics (Turbo-only) |
| Serverless streaming | s2_sink | S2.dev streams, alternative to Kafka |
| Notifications | webhook | Lambda functions, API callbacks, alerts |
| Data lake | s3_sink | Long-term archival, batch processing |
| Testing | blackhole | Validate pipeline without writing data |
For full sink field specifications, see Sinks in the docs (one page per sink type).
| Scenario | Mode | Why |
|---|---|---|
| Real-time dashboard | Streaming | Continuous updates needed |
| Backfill 6 months of history | Job | One-time, stops when done |
| Real-time + catch-up on deploy | Streaming | start_at: earliest does backfill then streams |
| Export data to S3 once | Job | No need for continuous processing |
| Webhook notifications on events | Streaming | Needs to react as events happen |
| Load test with historical data | Job | Process and inspect, then discard |
Job mode rules: Runs to completion, auto-deletes ~1hr after finishing. Must delete before redeploying. Cannot pause/resume/restart.
Default to one pipeline with multiple sinks when the user wants the same source data sent to multiple destinations. A single Turbo pipeline supports multiple sinks natively — each sink has a from: field pointing at a source or transform by name, and sinks run independently (one failing does not block the others, and each can have its own batch_size / batch_flush_interval).
Do NOT split into separate pipelines just because there are multiple destinations. Generating one pipeline per sink duplicates the source ingestion, wastes resources, and decouples deployments that should be atomic.
Split into multiple pipelines only when: sources are fundamentally different (different chains with independent lifecycles), the destinations need different resource sizes, or the user explicitly asks for separate pipelines.
See references/architecture-patterns.md for fan-out (one source → multiple sinks) and fan-in (UNION ALL) YAML examples, and templates/multi-sink-pipeline.yaml / templates/fan-out-pipeline.yaml / templates/fan-in-pipeline.yaml for ready-to-adapt configs.
name: my-pipeline # Required: unique identifier (lowercase, hyphens)
resource_size: s # Required: xs/s/m/l/xl/xxl
job: true # Optional: one-time batch (default: false = streaming)
sources:
source_name:
type: dataset # or: kafka
# ... source config
transforms: # Optional
transform_name:
type: sql # or: script, handler, dynamic_table
# ... transform config
sinks:
sink_name:
type: postgres # or: clickhouse, kafka, webhook, s3_sink, etc.
# ... sink config
sources:
my_source:
type: dataset
dataset_name: <chain>.<dataset_type>
version: <version>
start_at: latest | earliest # EVM, NEAR, Bitcoin, Stellar
# start_block: <slot_number> # Solana only — omit to start at the latest slot
# end_block: <block_number> # Solana only: bounded backfill (ignored on EVM)
# filter: >- # Optional: SQL WHERE for source-level pre-filtering
# address = '0x...' AND block_number >= 10000000
| Field | Required | Description |
|---|---|---|
type | Yes | dataset for blockchain data |
dataset_name | Yes | Format: <chain>.<dataset_type> |
version | Yes | Dataset version (e.g., 1.2.0) |
start_at | EVM-family | latest or earliest; on Stellar also a ledger sequence number. Used by EVM, NEAR, Bitcoin, Stellar. Omitted = earliest = full chain history |
start_block | No | Solana only: starting slot. Omitted = latest slot, i.e. no backfill |
end_block | No | Solana only: stop at this slot. Silently ignored on EVM |
filter | No | SQL WHERE clause — pre-filters at ingestion (efficient) |
Use filter for contract addresses and block ranges (coarse pre-filtering). Use transform WHERE for fine-grained filtering.
Set the start position explicitly on every dataset source, and say which one you chose. On the start_at chains (EVM, NEAR, Bitcoin, Stellar) omitting it does not mean "start now": the backend starts from the earliest available data, so the pipeline backfills the full chain history — days of replay and millions of rows before it reaches live data, and the sink has to hold all of it. A block number is not a valid start_at value; bound an EVM range with a block_number predicate in filter (pre-applied at the source), plus job: true for a one-shot backfill — end_block is silently ignored on EVM. Solana is the opposite default: it uses the numeric start_block, and omitting that starts at the latest slot, so a Solana backfill is always something you asked for — bound it with end_block or block_ranges.
For chain prefixes and dataset types, see /datasets.
sources:
my_source:
type: kafka
topic: base.raw.latest_balances_v2
No start_at or version fields. Optional: filter, include_metadata, starting_offsets.
| Type | Use Case |
|---|---|
sql | Filtering, projections, SQL functions |
script | Custom TypeScript/WASM logic |
handler | Call external HTTP APIs to enrich |
dynamic_table | Lookup tables backed by a database |
throttle | Cap throughput to a fixed records-per-second |
transforms:
filtered:
type: sql
primary_key: id
sql: |
SELECT id, sender, recipient, amount
FROM source_name
WHERE amount > 1000
| Field | Required | Description |
|---|---|---|
type | Yes | sql |
primary_key | Yes | Column for uniqueness/ordering |
sql | Yes | SQL query (reference sources by name) |
from | No | Override default source (for chaining) |
Chain transforms using from:
transforms:
step1:
type: sql
primary_key: id
sql: SELECT * FROM source WHERE amount > 100
step2:
type: sql
primary_key: id
from: step1
sql: SELECT *, 'processed' as status FROM step1
For TypeScript, handler, and dynamic table transforms, see /turbo-transforms.
Caps the throughput of a stream by buffering records into batches and emitting each batch on a fixed minimum interval. Throttle does not modify data — every input record passes through unchanged. Use it to stay under rate limits of downstream sinks or external APIs, smooth bursty sources, or pace records into HTTP handlers.
transforms:
throttled:
type: throttle
from: my_source
max_batch_size: 100
min_batch_interval: 10s
| Field | Required | Description |
|---|---|---|
type | Yes | throttle |
from | Yes | Source or transform to read from |
max_batch_size | No | Max records per batch |
min_batch_interval | No | Minimum time between batches (e.g. 10s, 500ms, 1m) |
Effective max throughput ≈ max_batch_size / min_batch_interval records per second. Throttle limits the maximum rate, not the minimum — if upstream is slow, batches will be smaller and arrive less frequently.
Place throttle close to the bottleneck (just before the rate-limited sink or handler) so upstream transforms still process at full speed.
Quick examples for common sinks. For full field specs of all sink types, see Sinks in the docs (one page per sink type).
primary_key placement depends on the sink type; it is not limited to transforms. A SQL transform's key describes its output, while a sink's key controls destination behavior:
| Turbo sink | Sink-level primary_key |
|---|---|
| PostgreSQL | Optional; enables upserts. Omit for plain inserts. |
| MySQL | Optional; enables upserts. Omit for plain inserts. |
| ClickHouse | Required; sets table ordering and deduplication columns. |
| Kafka | Optional; selects message-key columns. If omitted, uses the upstream key when available. |
For other sink types, check their own field reference before adding or removing primary_key. Mirror uses different sink schemas; do not copy Turbo sink fields into Mirror configs.
sinks:
output:
type: postgres
from: my_transform
schema: public
table: my_table
secret_name: MY_POSTGRES_SECRET
primary_key: id
sinks:
output:
type: clickhouse
from: my_transform
table: my_table
secret_name: MY_CLICKHOUSE_SECRET
primary_key: id
sinks:
output:
type: pubsub
from: my_transform
topic: my-topic
secret_name: MY_PUBSUB_SECRET
The secret holds a GCP project id and service-account JSON. Topic must already exist in GCP.
sinks:
output:
type: blackhole
from: my_transform
To reset checkpoints: rename the source or pipeline. Warning: this reprocesses all historical data.
| Template | Description | Use Case |
|---|---|---|
minimal-erc20-blackhole.yaml | Simplest pipeline, no credentials | Quick testing |
filtered-transfers-sql.yaml | Filter by contract address | USDC, specific tokens |
postgres-output.yaml | Write to PostgreSQL | Production data storage |
pubsub-output.yaml | Write to Google Cloud Pub/Sub | GCP-based event consumers |
multi-chain-pipeline.yaml | Combine multiple chains | Cross-chain analytics |
solana-transfers.yaml | Solana SPL tokens | Non-EVM chains |
multi-sink-pipeline.yaml | Multiple outputs | Archive + alerts + streaming |
linear-pipeline.yaml | Simple decode → filter → sink | Basic linear flow |
fan-out-pipeline.yaml | One source → multiple sinks | Multi-destination |
fan-in-pipeline.yaml | Multiple events → UNION ALL | Activity feeds |
multi-chain-templated.yaml | Per-chain pipeline pattern | Independent chain deploys |
Template location: templates/ (relative to this skill's directory)
| Action | Command |
|---|---|
| Install Goldsky CLI | Follow /auth-setup and use its bundled installer |
| Install Turbo extension | Follow /auth-setup and run its bundled installer with turbo; require a successful version check |
| Validate (REQUIRED) | goldsky turbo validate pipeline.yaml |
| Deploy/Update | goldsky turbo apply pipeline.yaml |
| Deploy + Inspect | goldsky turbo apply pipeline.yaml -i |
| List pipelines | goldsky turbo list |
| List datasets | goldsky dataset list --output json |
| List secrets | goldsky secret list |
For lifecycle commands (pause/resume/restart/delete) and monitoring (inspect/logs), see /turbo-operations.
See references/troubleshooting.md for CLI hanging, validation errors, and runtime errors.
/turbo-builder — Interactive wizard to build pipelines step-by-step/turbo-doctor — Diagnose and fix pipeline issues/turbo-operations — Lifecycle commands and monitoring reference/turbo-transforms — SQL, TypeScript, and dynamic table transform reference/datasets — Dataset names and chain prefixes/secrets — Sink credential managementevals/trigger-eval.json (opens in a new tab)references/architecture-patterns.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)references/validation-checklist.md (opens in a new tab)templates/fan-in-pipeline.yaml (opens in a new tab)templates/fan-out-pipeline.yaml (opens in a new tab)templates/filtered-transfers-sql.yaml (opens in a new tab)templates/linear-pipeline.yaml (opens in a new tab)templates/minimal-erc20-blackhole.yaml (opens in a new tab)templates/multi-chain-pipeline.yaml (opens in a new tab)templates/multi-chain-templated.yaml (opens in a new tab)templates/multi-sink-pipeline.yaml (opens in a new tab)templates/postgres-output.yaml (opens in a new tab)templates/pubsub-output.yaml (opens in a new tab)templates/solana-transfers.yaml (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
16 skills in this plugin
/auth-setupSet up Goldsky CLI authentication and project configuration. Use this skill when the user needs to: install the goldsky CLI (what's the official install command?), run goldsky login (including when the browser opens but 'authentication failed'), run goldsky project list and see 'not logged in' or 'unauthorized', switch between Goldsky projects, check which project they're currently authenticated to, or fix 'unauthorized' errors when running goldsky turbo commands. Also use for 'walk me through setting up goldsky CLI from scratch for the first time', and when they just installed Goldsky and say 'Set it up and help me get started'. If any other Goldsky skill hits an auth error, redirect here first./boostConfigure and troubleshoot Goldsky Boost, the free RPC caching CDN in front of a provider the user already pays for. Use for cutting RPC bills without migrating, connecting Alchemy/QuickNode/Infura upstreams, goldsky boost, edge.goldsky.com/boost, verification, cache hit rates, eth_getLogs forwarding, and x-cache / x-edge-billable / x-edge-source headers. Boost keeps the existing provider and forwards uncached requests. To replace a provider with Goldsky's managed RPC, use /edge. Pipeline, Subgraph, and Compose tasks have separate skills./datasetsUse this skill when the user needs to look up or verify Goldsky blockchain dataset names, chain prefixes, dataset types, or versions. Triggers on questions like 'what\'s the dataset name for X?', 'what prefix does Goldsky use for chain Y?', 'what version should I use for Z?', or 'what datasets are available for Solana/Stellar/Arbitrum/etc?'. Also use for chain-specific dataset questions (e.g., polygon vs matic prefix, stellarnet balance datasets, solana token transfer dataset names), and to answer 'is there a dataset for X?' where X is a domain rather than a chain — decoded logs, token transfers and balances, mint/burn events for circulating supply, DEX or prediction-market activity (Polymarket), or the raw blocks, transactions and traces behind wallet history and reconciliation. Do NOT trigger for questions about CLI commands, pipeline setup, or general Goldsky architecture unless the core question is about finding the right dataset name or chain prefix. Feeds REST queries (Polymarket, blocks) are /feeds./edgeConfigure and troubleshoot Goldsky Edge, Goldsky's managed EVM RPC endpoint service. Use for Edge RPC, Goldsky RPC endpoints, edge.goldsky.com, slow eth_getLogs, rate limits, hedged requests, flashblocks, HyperEVM system transactions, x402 pay-per-request RPC, pricing, the Edge dashboard, gs_edge_ keys, rpc-edge, and errors -32005/-32012/-32014/-32015/-32016. Covers resilient low-latency EVM endpoints and provider comparisons. For self-hosted eRPC configuration, consult docs.erpc.cloud/llms.txt. To keep an existing provider and reduce its bill through caching, or for x-cache / x-edge-billable / goldsky boost, use /boost. REST reads under edge.goldsky.com/data (Feeds: wallets, tokens, Polymarket, blocks; formerly Edge Data / Data APIs) are /feeds. Pipeline and Subgraph questions have separate skills./feedsQuery Goldsky Feeds over HTTP: one wallet's balances and transfers; metadata and current USD price of up to 100 EVM tokens; Polymarket activity (a wallet's trades), positions, PnL and balances; block headers by number, hash or timestamp; and a chain's head block. Feeds absorbed Edge Data / Data APIs, with the same URLs and keys. Use for wallet holdings, portfolio value, transfer history, deposit checks, token prices or metadata, a wallet's Polymarket trades or positions, which block was at a timestamp, the latest indexed block, edge.goldsky.com/data, a Feeds API key, Feeds pricing, or paying per request with x402 instead of a key. Get the key with goldsky feeds key reveal, then call the feeds over HTTP. The CLI login token is not this key. For rows in the user's own database, use /turbo-builder. For a Turbo dataset name, use /datasets. For JSON-RPC, use /edge or /boost./mirrorUse this skill when the user asks about Goldsky Mirror pipelines — creating, deploying, operating, or troubleshooting Mirror. Triggers on: 'Mirror pipeline', 'goldsky pipeline apply', 'sync subgraph to database', 'mirror vs turbo', 'direct indexing', 'mirror pipeline YAML', 'mirror pipeline pause/stop/restart'. Also use this skill when the user wants to sync a Goldsky subgraph into a database or message queue — Mirror is the only pipeline product that supports subgraph sources. For new pipelines that don't need a subgraph source, the turbo-builder skill is usually a better fit. Do NOT trigger on 'goldsky turbo' commands or generic 'build a pipeline' requests without subgraph context — those belong to the turbo skills.npx claudepluginhub goldsky-io/goldsky-agent --plugin goldskyOther plugins' skills for the same job