subgraph-migrate

subgraph-migrate is a skill for Claude Code from goldsky-io/goldsky-agent. It costs 186 tokens per session (1,789 once invoked), scanned A, original, MIT.

A migration tool for moving a subgraph from The Graph, a service that provides searchable APIs for blockchain data, to Goldsky. It is intended to work without changing the subgraph code.

In plain words
What is it for?
Use it to move subgraphs from The Graph's hosted service, Subgraph Studio, or decentralized network to Goldsky.
Why use it?
It removes the need to rewrite an existing subgraph when changing data providers or replacing an unavailable endpoint.

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 move subgraphs from The Graph's hosted service, Subgraph Studio, or decentralized network to Goldsky.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/goldsky-io/goldsky-agent/subgraph-migrate
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-migrate
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-migrate

README.md
[![agentmods](https://agentmods.dev/badge/skills/goldsky-io/goldsky-agent/subgraph-migrate/github.svg)](https://agentmods.dev/skills/goldsky-io/goldsky-agent/subgraph-migrate)
Your own site
<a href="https://agentmods.dev/skills/goldsky-io/goldsky-agent/subgraph-migrate"><img src="https://agentmods.dev/badge/skills/goldsky-io/goldsky-agent/subgraph-migrate/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-migrate

Your own site · 80×15
<a href="https://agentmods.dev/skills/goldsky-io/goldsky-agent/subgraph-migrate"><img src="https://agentmods.dev/badge/skills/goldsky-io/goldsky-agent/subgraph-migrate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 186 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,789 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 1 Oct 2026
  • Snyk warn 1 Oct 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.00186 $0.01789
Opus 5.5 $0.00074 $0.00716
Sonnet 5.5 $0.00037 $0.00358
Haiku 4.5 $0.00019 $0.00179

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

Security

Grade A, and why

subgraph-migrate 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 2mo 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-migrate/SKILL.md · 125 lines

How it starts

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

Migrate a Subgraph from The Graph

Migrating an existing subgraph from The Graph to Goldsky is a drop-in replacement — you don't change your subgraph code. You point Goldsky at your published subgraph (by URL or IPFS hash) or redeploy from source, then swap the endpoint your app queries.

Worth a quick check first: do they still need a subgraph? Migration is a natural moment to reconsider. If the dApp needs a hosted GraphQL API, migrating the subgraph is the right move — continue below. But if the real goal is getting this data into a database for analytics or a backend, a Turbo pipeline is faster, more reliable, and cheaper (/turbo-builder) — they may not need a subgraph at all. Surface this once; if they clearly want GraphQL, proceed with the migration.

Boundaries

  • This skill is for migrating from The Graph (hosted service, Subgraph Studio, or decentralized network).
  • For diagnosing a subgraph that fails to deploy or sync after migrating, use /subgraph-doctor.
  • For deploy/tag/endpoint/webhook reference, use /subgraph-builder.
  • For migrating from Alchemy, follow the dedicated Alchemy migration docs (not covered here).

Two hard rules

1. Never invent the source URL or IPFS hash. Always have the user provide their actual deployment URL or IPFS hash. Do not construct or guess api.thegraph.com/... or gateway URLs — fabricated source URLs are a top failure mode and waste deploy attempts. If you don't have a verified source, ask for it (see Step 2).

2. Never quote pricing. Do not tell the user migration is "free" or "cheap" or estimate a price. Subgraph pricing depends on usage and plan, and a wrong guess erodes trust (one customer was told "cheap" then quoted $10k+). For any cost question, route them to a Goldsky quote: [email protected] or their account/sales contact.

Step 1: Choose a migration path

You have… Use Notes
A public GraphQL endpoint for the deployed subgraph --from-url <url> Simplest. Works for publicly deployed subgraphs.
The subgraph's IPFS hash (deployment ID) --from-ipfs-hash <hash> Use when you have the hash but not a queryable URL.
The original source code locally --path . (build first) Use if the published version is unavailable or you want to change code.

Read the full file on GitHub · 125 lines

Files

What ships with it

1 file 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. 2mo ago Changed · -2 lines scan C → A af8895eb4c94
  2. 3mo ago First seen · 127 lines · 186 tokens per session scan C 46e5d9f0ad41

Subscribe to this mod's changes

subgraph-migrate is a skill published in the GitHub repository goldsky-io/goldsky-agent (12 stars, last pushed 2d ago), licensed MIT. It adds 186 tokens to every session and 1,789 once invoked, about $0.0007 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-migrate compared with skills from other repositories

subgraph-migrate next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
subgraph-migrategoldsky-io/goldsky-agentSkill122d agoMITA186Claude Code
polymarket-tradingmachina-sports/sports-skillsSkill275todayMITA129Claude Code
bloombloom-directory/bloomSkill27todayMITA124Claude Code
x402-listmcccsm/x402-list-mcpSkill151mo agoMITA99Claude Code, Codex
tradingcalcSKalinin909/tradingcalc-mcpSkill627d agoMITA107Cursor
nodejs-keccak256Jamkris/everything-gemini-codeSkill966mo agoMITA51Claude Code, Codex
quest-setupxsolla/xsolla-ai-kitSkill10todayMITC99Claude Code, Cursor