/goldsky:mirror-doctorfrom Goldsky
Diagnoses and fixes broken Goldsky Mirror pipelines by running CLI commands to check status, read errors, identify root cause, and apply fixes. For failing, stuck, terminated, or restart-loop pipelines.
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.
Diagnose and fix existing Mirror pipeline problems by running CLI commands, identifying root causes, and executing fixes.
/mirror for config reference or /turbo-builder for new Turbo pipelines./mirror for CLI syntax and flag lookups./turbo-doctor for goldsky turbo problems./secrets for credential management. But DO check whether secrets exist as part of diagnosis.Follow these steps in order. Each step builds on the previous one.
Run goldsky project list 2>&1 to confirm the user is logged in.
/auth-setup. Do not proceed until auth works.Run goldsky pipeline list --include-runtime-details 2>&1 to list all Mirror pipelines with their status.
If the user already named a pipeline, confirm it exists in the list. If not, show the list and ask which pipeline they want to diagnose.
Note both the desired status (ACTIVE, INACTIVE, PAUSED) and the runtime status (STARTING, RUNNING, FAILING, TERMINATED) — Mirror pipelines have both, and the combination tells the story.
The desired + runtime status combination determines the diagnostic path:
| Desired | Runtime | Meaning | Action |
|---|---|---|---|
| ACTIVE | RUNNING | Healthy — pipeline is processing data | Ask user what symptom they're seeing. Proceed to Step 4. |
| ACTIVE | STARTING | Pipeline is initializing | Ask how long. If >10 min, proceed to Step 4. |
| ACTIVE | FAILING | Pipeline is encountering errors but hasn't terminated yet | Proceed to Step 4 immediately — this is time-sensitive. |
| ACTIVE | TERMINATED | Most common failure. Pipeline wanted to run but crashed. | Proceed to Step 4. |
| PAUSED | TERMINATED | User paused the pipeline (snapshot was taken). | Ask if they want to resume: goldsky pipeline start <name> --from-snapshot last |
| INACTIVE | TERMINATED | User stopped the pipeline (no snapshot). | Ask if they want to start: goldsky pipeline start <name> |
ACTIVE + TERMINATED is the most common case. The pipeline's desired status is ACTIVE (it should be running) but the runtime has terminated due to an error. Focus the diagnosis here.
Run these commands to understand what went wrong:
# Get error details and runtime metrics
goldsky pipeline monitor <name> 2>&1
# Check for in-flight requests blocking operations
goldsky pipeline monitor <name> --update-request 2>&1
# Get the pipeline definition to check for misconfig
goldsky pipeline get <name> --definition 2>&1
# Get pipeline info including version
goldsky pipeline info <name> 2>&1
# Check available snapshots
goldsky pipeline snapshots list <name> 2>&1
Run these in sequence and analyze the output before proceeding. The monitor output is the most important — it shows error messages, records received/written metrics, and runtime status transitions.
Based on the diagnostic data, match against these known patterns:
Symptoms: Pipeline terminates shortly after starting. Monitor shows credential or authentication errors.
Verify: Run goldsky secret list 2>&1 and cross-reference with the secret_name values in the pipeline definition from Step 4.
Fix:
/secrets to create it.goldsky secret update; follow Rotating Credentials for the required JSON format and credential handling. Do not delete and recreate an in-use secret.goldsky pipeline restart <name> --from-snapshot lastSymptoms: Connection timeout, connection refused, or network errors in the monitor output. Pipeline may cycle between FAILING and TERMINATED.
Common causes:
Fix:
goldsky pipeline restart <name> --from-snapshot lastSymptoms: Pipeline runs for a while then terminates. Monitor may show high record counts or slow processing. Common during large backfills or pipelines with many sources/JOINs.
Fix:
goldsky pipeline resize <name> <size> — sizes are s, m, l, xl, xxl.s handles most workloads (up to 300K records/sec, ~8 subgraph sources). Use l or larger for big chain backfills or heavy JOINs.Symptoms: User tries to update, delete, or restart the pipeline but gets "Cannot process request, found existing request in-flight."
Diagnose: goldsky pipeline monitor <name> --update-request — this shows what operation is in progress (usually a snapshot).
Fix:
goldsky pipeline cancel-update <name>Symptoms: Pipeline can't be paused, updated, or restarted because a snapshot creation is taking too long or failing. The --update-request monitor shows snapshot progress stuck at a percentage.
Fix:
goldsky pipeline cancel-update <name>goldsky pipeline restart <name> --from-snapshot lastgoldsky pipeline restart <name> --from-snapshot none (starts from scratch — warn the user this reprocesses data)Symptoms: Pipeline terminates with SQL-related error messages. Could be syntax errors, referencing a non-existent column, or type mismatches.
Diagnose: Check the pipeline definition (goldsky pipeline get <name> --definition) and look at the transforms section.
Fix:
goldsky pipeline validate <file.yaml>goldsky pipeline apply <file.yaml> --status ACTIVE --from-snapshot lastUse /mirror for SQL transform syntax reference if needed.
Symptoms: Pipeline repeatedly cycles through STARTING → FAILING → TERMINATED. Monitor shows the same error recurring.
This is usually a symptom of another root cause — bad secret, sink unreachable, or resource issues. The pipeline keeps trying to start but hits the same wall.
Fix:
goldsky pipeline restart <name> --from-snapshot lastSymptoms: Pipeline was running fine, then the sink (database) went down temporarily. Pipeline auto-retried, then restarted its writers, then eventually terminated.
This is expected behavior — Mirror handles transient sink errors automatically (retry batch → restart writers → fail after prolonged issues).
Fix:
goldsky pipeline restart <name> --from-snapshot lastAfter identifying the issue, present findings clearly:
## Diagnosis
**Pipeline:** <name>
**Status:** <desired> + <runtime>
**Issue:** <one-line summary>
**Root cause:**
<What's wrong and why>
**Evidence:**
- <Error message or observation from monitor>
- <Relevant detail from pipeline definition>
**Recommended fix:**
1. <Step 1>
2. <Step 2>
**Prevention:**
<How to avoid this in the future, if applicable>
Offer to run the fix commands directly. Always confirm with the user before executing:
goldsky pipeline restart <name> --from-snapshot lastgoldsky pipeline resize <name> <size>goldsky pipeline cancel-update <name>goldsky pipeline restart <name> --from-snapshot none (warn: reprocesses data)goldsky pipeline apply <file.yaml> --status ACTIVE --from-snapshot lastgoldsky pipeline delete <name> -f then goldsky pipeline apply <file.yaml> --status ACTIVE (last resort)After executing, verify recovery by running goldsky pipeline monitor <name> and watching for STARTING → RUNNING transition.
--from-snapshot last preserves progress. --from-snapshot none starts over. Default to last unless there's a reason not to.If you don't have the Bash tool, output the diagnostic commands for the user to run, but structure them clearly:
This is the fallback path — always prefer running commands directly when Bash is available.
/mirror — Pipeline YAML configuration, CLI flag reference, sink setup/secrets — Create and manage sink credentials/auth-setup — CLI installation and authentication/turbo-doctor — Diagnose Turbo pipeline problems (not Mirror)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub goldsky-io/goldsky-agent --plugin goldsky16 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.Other plugins' skills for the same job