agentleFS
0xvikram0xvikram/backboard-skills/skills/goldsky/SKILL.md

goldsky

Skill1 starsChanged 26 days agoMITView on GitHub

Goldsky hosts subgraphs (GraphQL APIs over contract events, The Graph compatible) and streams chain data into databases and webhooks (Turbo pipelines, which replace Mirror). Use this skill for the goldsky CLI and login, deploying a subgraph from source, from an ABI (instant subgraph) or from The Graph, querying the endpoint, subgraph webhooks, Turbo/Mirror pipelines, chain slugs for 0G, Hedera, Arc, World Chain, Unichain, and free-plan limits.

  • Reads credentials
  • Installs packages
  • Sends data out

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write an instant-subgraph config next to your ABI file.

    line 29
  2. Very specific:

    Run it with npx tsx --env-file=.env query.ts.

    line 57
  3. Very specific:

    Read the docs index first: https://docs.goldsky.com/llms.txt (every page also exists as .md).

    line 76
  4. Very specific:

    Check versions first with npm view @goldskycom/cli version.

    line 79

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Goldsky

Goldsky runs subgraphs for you. A subgraph turns your contract's events into a GraphQL API. Goldsky also runs Turbo pipelines, which stream chain data into Postgres, ClickHouse, Kafka, S3 or a webhook. Turbo replaces the older Mirror product. Pick Goldsky when your app needs lists, history or totals over events (feeds, leaderboards, balances), or when you need a push when something happens on-chain. It is one of the few indexers that supports 0G and Hedera subgraphs. If you only need to read one value from a contract, use a plain eth_call (viem) instead.

Goldsky also publishes its own agent skill pack (https://github.com/goldsky-io/goldsky-agent): npx skills add goldsky-io/goldsky-agent. Use it for Goldsky's own workflows; this skill adds a tested hackathon path, the sponsor-chain slugs and the gotchas found in testing.

Quickstart

  1. Sign up at https://app.goldsky.com/signup. New teams start on the free Starter plan with a one-time $100 credit (see pricing).
  2. Install the CLI with npm (it works on macOS, Linux and Windows; Goldsky's install page lists other ways):
    npm install -g @goldskycom/cli@13.17.1
    goldsky --version
  3. Log in: goldsky login opens the browser. On a headless machine, create an API key in Project Settings (https://app.goldsky.com/dashboard/settings) and run goldsky login --token <GOLDSKY_API_KEY>.
  4. Write an instant-subgraph config next to your ABI file. Goldsky generates the schema and mappings for you. Keep ABI names lowercase (see errors.md):
    {
      "version": "1",
      "name": "counter",
      "abis": { "counter": { "path": "./abis/Counter.json" } },
      "instances": [
        { "abi": "counter", "address": "<CONTRACT_ADDRESS>", "startBlock": <DEPLOY_BLOCK>, "chain": "arc-testnet" }
      ]
    }
    For chain, use a subgraph slug from chains.md, such as 0g-galileo-testnet, hedera-testnet, unichain-testnet or worldchain-sepolia.
  5. Deploy it. The CLI prints your GraphQL endpoint:
    goldsky subgraph deploy counter/1.0.0 --from-abi goldsky-config.json
    goldsky subgraph tag create counter/1.0.0 --tag prod   # stable URL: .../subgraphs/counter/prod/gn
  6. Query it from any app. Errors such as 404 or 429 come back as { statusCode, message }. GraphQL errors come back as { errors }:
    const res = await fetch(process.env.GOLDSKY_SUBGRAPH_URL!, {
      method: "POST",
      headers: { "Content-Type": "application/json" },
      body: JSON.stringify({ query: "{ transfers(first: 5, orderBy: timestamp_, orderDirection: desc) { id from to value } }" }),
    });
    const json = await res.json();
    if (!res.ok || json.errors) throw new Error(json.message ?? json.errors?.[0]?.message);
    console.log(json.data);
  7. Run it with npx tsx --env-file=.env query.ts. The .env file holds GOLDSKY_SUBGRAPH_URL=https://api.goldsky.com/api/public/<PROJECT_ID>/subgraphs/counter/prod/gn.

Full walkthrough, with dashboard steps, a typed query script and plan limits: references/quickstart.md.

Common tasks

  • Deploy a subgraph from source (graph-cli project)
  • Instant subgraph from an ABI: factory, multi-chain, enrichments
  • Migrate from The Graph (IPFS hash or URL)
  • Query: fetch, graphql-request, pagination, private endpoints
  • Webhooks on subgraph entities and a receiver
  • Turbo pipeline: chain data to Postgres or a webhook (Mirror basics)
  • Tags, versions, logs, pause and delete
  • Errors and gotchas
  • Slugs for 0G, Hedera, Arc, World Chain, Unichain (subgraphs vs Turbo)
  • Goldsky docs MCP server for Claude Code / Cursor

Before you write more code

At ETHGlobal Mumbai

  • Sponsor chains, all supported for subgraphs on mainnet and testnet: 0G (0g, 0g-galileo-testnet), Hedera (hedera-mainnet, hedera-testnet), Arc (arc-mainnet, arc-testnet), World Chain (worldchain, worldchain-sepolia) and Unichain (unichain, unichain-testnet).
  • Turbo pipelines cover fewer of these networks, and Hedera has none. Whitechain is not listed. Details: references/chains.md.
  • May help with the 0G, Hedera, Arc, World and Uniswap Foundation tracks: activity feeds, leaderboards, dashboards and alerts over your contract's events. Check the tracks and their rules yourself at https://ethglobal.com/events/mumbai/prizes.
  • Help: support@goldsky.com, and the Goldsky docs MCP server (mcp.md). For deeper chain facts, see the sponsor-chains skill (npx skills add 0xvikram/backboard-skills --skill sponsor-chains).

About

Hand-written for Backboard (https://backboard.0xvikram.me), an independent project not affiliated with ETHGlobal or Goldsky. Tested 2026-10-19 with @goldskycom/cli@13.17.1, the Turbo extension 0.13.1, graphql-request@7.4.0 and graphql@16.14.2.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.