skills/turbo-builder/SKILL.md
Build and deploy new Goldsky Turbo pipelines from scratch. Triggers on: 'build a pipeline', 'index X on Y chain', 'set up a pipeline', 'track transfers to postgres', or any request describing data to move from a chain/contract to a destination (postgres, mysql, clickhouse, kafka, pubsub, s3, sqs, webhook). Covers the full workflow: requirements → dataset selection → YAML generation → validation → deploy. Not for debugging (use /turbo-doctor) or syntax lookups (use /turbo-pipelines).
npx skillsauth add goldsky-io/goldsky-agent turbo-builderInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
/turbo-doctor./turbo-pipelines skill instead./datasets.Walk the user through building a complete pipeline from scratch, step by step. Generate a valid YAML configuration, validate it, and deploy it.
Run goldsky project list 2>&1 to check login status.
/auth-setup skill for guidance.Ask the user what they want to index. Good questions:
If the user already described their goal, extract answers from their description.
Use the /datasets skill to find the right dataset.
Key points:
<chain>.raw_logs, <chain>.raw_transactions, <chain>.erc20_transfers, <chain>.raw_traces<chain>.raw_logs with a filter on address ONLY, then add a SQL transform that calls _gs_log_decode(_gs_fetch_abi(<explorer-url>, <source>), topics, data) AS decoded, then filter downstream by WHERE decoded.event_signature = '<EventName>(<types>)'. Never put topic0 hashes in the source filter — see /turbo-transforms for the full pattern. There is no consumable <chain>.decoded_logs dataset; decoding always happens in a transform.<chain>.erc20_transfers, <chain>.erc721_transfers, <chain>.erc1155_transfers are available and don't need decoding transforms.solana.transactions, solana.token_transfers, etc.Present the dataset choice to the user for confirmation.
Build the source section of the YAML:
sources:
my_source:
type: dataset
dataset_name: <chain>.<dataset>
version: 1.0.0
start_at: earliest # or a specific block number
Ask about:
earliest (from genesis), latest (from now), or a specific block numberIf the user needs transforms, use the /turbo-transforms skill to help:
Build the transforms section:
transforms:
my_transform:
type: sql
primary_key: id
sql: |
SELECT * FROM my_source
WHERE <conditions>
Ask where the data should go. Use the /turbo-pipelines skill for sink configuration:
| Sink | Key config |
|------|-----------|
| PostgreSQL | secret_name, schema, table, primary_key |
| MySQL | secret_name, schema, table, primary_key (optional, enables upsert) |
| ClickHouse | secret_name, table, order_by |
| Kafka | secret_name, topic |
| Pub/Sub (Turbo-only) | secret_name, topic |
| SQS | secret_name, queue_url |
| S3 | bucket, region, prefix, format |
| Webhook | url, format |
If the user names more than one destination, generate ONE pipeline with multiple sinks — do not generate a separate pipeline per destination. Each sink has a from: field that references the source (or a transform) by name, and sinks run independently. Use a fan-out pattern when different sinks want different views of the same source — add an SQL transform per view, then point each sink's from: at the appropriate transform. See references/architecture-patterns.md in /turbo-pipelines and templates/multi-sink-pipeline.yaml for examples.
Only split into separate pipelines when sources are fundamentally different (e.g., different chains with independent lifecycles) or the user explicitly asks for separate pipelines.
For sinks requiring secret_name, check if the secret exists:
goldsky secret list
If it doesn't exist, help create it using the /secrets skill.
Use the /turbo-pipelines skill for guidance:
end_block, runs indefinitelyjob: true and end_blockAssemble the complete pipeline YAML. Use a descriptive name following the convention: <chain>-<data>-<sink> (e.g., base-erc20-transfers-postgres).
<pipeline-name>.yaml).goldsky turbo validate -f <pipeline-name>.yaml
If validation fails, fix the issues and re-validate. Do NOT present the YAML until validation passes. Common fixes:
version field on dataset sourcesecret_name for database sinksOnce validation passes, present the full YAML to the user for review.
After user confirms the YAML looks good:
goldsky turbo apply <pipeline-name>.yaml
After deployment:
goldsky turbo list
Suggest running inspect to verify data flow:
goldsky turbo inspect <pipeline-name> -p
To filter to a specific node: goldsky turbo inspect <pipeline-name> -n <node-name> -p.
Present a summary:
## Pipeline Deployed
**Name:** [name]
**Chain:** [chain]
**Dataset:** [dataset]
**Sink:** [sink type]
**Mode:** [streaming/job]
**Next steps:**
- Verify data flow with `goldsky turbo inspect <name> -p`
- Check logs with `goldsky turbo logs <name>`
- Use /turbo-doctor if you run into issues
blackhole sink for testing pipelines without writing to a real destination.start_at: earliest unless the user specifies otherwise.version: 1.0.0 on dataset sources./turbo-pipelines — YAML configuration and architecture reference/turbo-doctor — Diagnose and fix pipeline issues/turbo-operations — Lifecycle commands and monitoring reference/turbo-transforms — SQL and TypeScript transform reference/datasets — Dataset names and chain prefixes/secrets — Sink credential managementdevelopment
Turbo pipeline YAML reference and architecture guide. Covers: YAML field syntax (start_at, from, version, primary_key), source/transform/sink configuration, validation errors, resource sizing (xs–xxl), architecture decisions (dataset vs kafka, streaming vs job, fan-out vs fan-in, sink selection, pipeline splitting). Triggers on: 'what does field X do', 'what fields does a postgres sink need', 'what resource size', 'should I use kafka or dataset', 'how to structure my pipeline'. For writing transforms, use /turbo-transforms. For end-to-end building, use /turbo-builder.
development
Write SQL, TypeScript, and dynamic table transforms for Turbo pipelines. Covers: decoding EVM logs with _gs_log_decode, filtering/casting blockchain data, UNION ALL for combining events, TypeScript/WASM transforms (invoke function), dynamic lookup tables (dynamic_table_check), transform chaining, and Solana decoding. Triggers on: 'decode Transfer events', 'write a SQL transform', 'filter by contract', 'TypeScript transform', 'dynamic table', 'UNION ALL'. For pipeline YAML structure, use /turbo-pipelines. For end-to-end building, use /turbo-builder.
tools
Use this skill when a user wants to store, manage, or work with Goldsky secrets — the named credential objects used by pipeline sinks. This includes: creating a new secret from a connection string or credentials, listing or inspecting existing secrets, updating or rotating credentials after a password change, and deleting secrets that are no longer needed. Trigger for any query where the user mentions 'goldsky secret', wants to securely store database credentials for a pipeline, or is working with sink authentication for PostgreSQL, Neon, Supabase, ClickHouse, Kafka, S3, Google Cloud Pub/Sub, Elasticsearch, DynamoDB, SQS, OpenSearch, or webhooks.
tools
Use 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). 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.