subgraph-builder

subgraph-builder is a skill for Claude Code from goldsky-io/goldsky-agent. It costs 239 tokens per session (2,446 once invoked), scanned A, original, MIT.

A tool for creating and deploying subgraphs, which are searchable GraphQL APIs built from blockchain data. It covers the data schema, blockchain event handlers, configuration, and deployment.

In plain words
What is it for?
Use it to scaffold a subgraph, define its data model, write or fix event-processing code, configure it, and deploy it.
Why use it?
It gives you one place to turn on-chain events into structured data that applications can query.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the goldsky-data plugin — 15 skills shipped together , and of goldsky

Good fit Use it to scaffold a subgraph, define its data model, write or fix event-processing code, configure it, and deploy it.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/goldsky-io/goldsky-agent/subgraph-builder
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add goldsky-io/goldsky-agent --skill subgraph-builder
Clone the repo
git clone --depth 1 https://github.com/goldsky-io/goldsky-agent

Made for: Claude Code.

Or install goldsky-data, the plugin that ships this one along with the rest of its 15 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for subgraph-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/goldsky-io/goldsky-agent/subgraph-builder/github.svg)](https://agentmods.dev/skills/goldsky-io/goldsky-agent/subgraph-builder)
Your own site
<a href="https://agentmods.dev/skills/goldsky-io/goldsky-agent/subgraph-builder"><img src="https://agentmods.dev/badge/skills/goldsky-io/goldsky-agent/subgraph-builder/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for subgraph-builder

Your own site · 80×15
<a href="https://agentmods.dev/skills/goldsky-io/goldsky-agent/subgraph-builder"><img src="https://agentmods.dev/badge/skills/goldsky-io/goldsky-agent/subgraph-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 239 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,446 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 26 Jun 2026
  • Snyk pass 26 Jun 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00239 $0.02446
Opus 5.5 $0.00096 $0.00978
Sonnet 5.5 $0.00048 $0.00489
Haiku 4.5 $0.00024 $0.00245

Measured 3mo ago against content hash d0d75d1df752, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

subgraph-builder scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/subgraph-builder/SKILL.md · 146 lines

How it starts

The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Subgraph Builder

Build a Goldsky Subgraph end-to-end: design the schema, write mappings, configure the manifest, then build and deploy to a hosted GraphQL endpoint. Subgraphs are best for dApp frontends and apps that need flexible GraphQL queries over structured onchain data. Subgraphs are EVM-only.

Default to Turbo unless the user specifically needs GraphQL. Turbo is faster, more reliable, and cheaper, and needs no custom indexing code. Before building a subgraph, confirm a hosted GraphQL API is actually the requirement (usually: a dApp/frontend querying onchain data). If the real goal is moving onchain data into a database (PostgreSQL, ClickHouse, Kafka, S3) for analytics or a backend, build a Turbo pipeline instead — /turbo-builder. Subgraphs are the right call only for a GraphQL API or custom entity-relationship modeling. Surface this once; don't push it if they clearly want GraphQL.

Boundaries

  • Build and author NEW subgraphs (schema, mappings, manifest, deploy, endpoints, tags, webhooks).
  • Do not diagnose broken/stalled subgraphs — use /subgraph-doctor.
  • Do not run The Graph migrations — use /subgraph-migrate.
  • For exhaustive goldsky subgraph flags, use goldsky subgraph <cmd> --help — this skill covers the workflow, not a flag dump.

Choose an approach first

You have… Approach Path
A contract + ABI, want a GraphQL API fast, no custom logic Instant / no-code subgraph Step A
Custom entities, relationships, or business logic in handlers Code-based subgraph Step B

Both deploy to the same hosted endpoint. Start with instant unless the user needs custom logic.

Step 0: Verify Authentication

Run goldsky project list 2>&1. If not logged in, use /auth-setup.

Step A: Instant / no-code subgraph (from ABI)

Generate and deploy directly from a contract ABI — no AssemblyScript.

# Interactive wizard (prompts for contract, network, start block, events/calls)
goldsky subgraph init

# Or one-shot from an ABI file
goldsky subgraph deploy my-subgraph/1.0.0 --from-abi ./MyContract.json

Read the full file on GitHub · 146 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 146 lines · 239 tokens per session scan A d0d75d1df752

Subscribe to this mod's changes

subgraph-builder is a skill published in the GitHub repository goldsky-io/goldsky-agent (12 stars, last pushed 2d ago), licensed MIT. It adds 239 tokens to every session and 2,446 once invoked, about $0.0010 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

subgraph-builder compared with skills from other repositories

subgraph-builder next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
subgraph-buildergoldsky-io/goldsky-agentSkill122d agoMITA239Claude Code
web3-fullstack-packaged-buildHKUDS/OpenSpaceSkill8.1k21d agoMITA21Claude Code, Codex
web3-fullstack-systematic-buildHKUDS/OpenSpaceSkill8.1k21d agoMITA21Claude Code, Codex
solana-devsolana-foundation/solana-dev-skillSkill599todayMITA258Claude Code, Codex
devtools-event-clientTanStack/devtoolsSkill518todayMITA79Claude Code, Codex
walkeros-create-destinationelbwalker/walkerOSSkill354yesterdayMITA77Claude Code
walkeros-create-sourceelbwalker/walkerOSSkill354yesterdayMITA65Claude Code