一键导入
thegraph
The Graph — subgraph manifest, schema, mappings, GraphQL API, templates, Substreams, and performance practices for agent-driven indexing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
The Graph — subgraph manifest, schema, mappings, GraphQL API, templates, Substreams, and performance practices for agent-driven indexing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Go Ethereum (geth) — CLI, JSON-RPC, Clef, abigen, and developer workflows.
Agent-oriented skills for the Anchor framework—Solana program structure, accounts, CPI, IDL, clients, and tooling.
Solana Kit (JavaScript SDK) — RPC, signers, transactions, accounts, codecs, instruction plans, and program clients for agent-driven Solana tooling.
Solana blockchain development — core concepts, clients, RPC, tokens, and payments for agent-driven tooling.
TON Blueprint development environment — project layout, build/test/run, NetworkProvider, config, scripts, wrappers, and deploy/testing practices.
TON Blockchain — addresses, messages, TVM, cells, Blueprint, contracts, payments, API.
| name | thegraph |
| description | The Graph — subgraph manifest, schema, mappings, GraphQL API, templates, Substreams, and performance practices for agent-driven indexing. |
| metadata | {"author":"hairy","version":"2026.2.9","source":"Generated from https://github.com/graphprotocol/docs, scripts at https://github.com/antfu/skills"} |
Skill based on The Graph docs (graphprotocol/docs), generated 2026-02-09. Official docs: https://thegraph.com/docs
The Graph indexes blockchain data into queryable subgraphs. Subgraphs are defined by a manifest (subgraph.yaml), a GraphQL schema, and AssemblyScript mappings; they are queried via GraphQL. Substreams provide parallel, multi-chain indexing with multiple sinks.
| Topic | Description | Reference |
|---|---|---|
| Subgraph Manifest | Data sources, event/call/block handlers, indexer hints | core-subgraph-manifest |
| Schema | Entities, scalars, relationships, @derivedFrom, fulltext | core-schema |
| Mappings | AssemblyScript handlers, graph-ts, codegen, store API | core-mappings |
| GraphQL API | Queries, filtering, pagination, sorting, time-travel | core-graphql-api |
| Subgraph ID vs Deployment ID | When to use which for querying; version pinning | core-deployment-id-vs-subgraph-id |
| Topic | Description | Reference |
|---|---|---|
| Performance | Avoid eth_calls, immutable entities, Bytes ids, @derivedFrom, pruning | best-practices-performance |
| Grafting & Hotfix | Reuse indexed data for hotfix deployment; when to use and avoid | best-practices-grafting-hotfix |
| Timeseries & Aggregations | @entity(timeseries), @aggregation, intervals, dimensions | best-practices-timeseries |
| Querying | Static queries, variables, @include/@skip, batching, fragments | best-practices-querying |
| Topic | Description | Reference |
|---|---|---|
| Data Source Templates | Dynamic contracts, factory pattern, create/createWithContext | features-data-source-templates |
| Deployment & Publishing | Deploy to Studio, publish to network, CLI, GRT signal | features-deployment-publishing |
| Querying from Application | Endpoints, graph-client, Apollo, URQL, API keys | features-querying-from-application |
| Unit Testing (Matchstick) | graph test, describe/test, assertions, mocking, coverage | features-unit-testing |
| Subgraph Composition | Combine up to 5 source subgraphs; immutable entities, same chain | features-subgraph-composition |
| Subgraph Linter | Static analysis: entity overwrite, null safety, undeclared eth_calls | features-subgraph-linter |
| Debug Forking | Fork remote store at block X for fast local debugging | features-debug-forking |
| Graph Node Dev (gnd) | Local node with optional IPFS, auto Postgres, --watch | features-graph-node-dev |
| Topic | Description | Reference |
|---|---|---|
| Substreams | Parallel indexing, Rust/WASM, multi-chain, multi-sink | features-substreams |
| Substreams Sinks | SQL, PubSub, stream, KV; official vs community | features-substreams-sinks |