thegraph

Organize The Graph subgraph concepts for agent-driven blockchain data indexing.

4|1|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/hairyf/blockchain-master --skill thegraph
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: thegraph
Source: https://github.com/hairyf/blockchain-master/tree/main/skills/thegraph
Command: npx skills add https://github.com/hairyf/blockchain-master --skill thegraph

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

The Graph provides a standardized, scalable way to index blockchain data by defining subgraphs that map on-chain events to queryable entities. It offers a clear workflow with subgraph manifests, GraphQL schemas, and AssemblyScript mappings, plus optional substreams for accelerated indexing.

Core Features & Use Cases

  • Subgraph manifests (subgraph.yaml) configure data sources and handlers.
  • Schema and GraphQL API expose queryable entities and relationships.
  • Mappings in AssemblyScript translate blockchain data into entities and enable codegen and templates for dynamic data sources.

Quick Start

Follow The Graph docs to create and deploy a basic subgraph to begin indexing.

Frequently Asked Questions about thegraph

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I index blockchain data using The Graph subgraphs?

To index blockchain data with The Graph subgraphs, you define a subgraph manifest (subgraph.yaml) to configure data sources, create a GraphQL schema for queryable entities, and write AssemblyScript mappings to translate on-chain events into those entities.

What is a subgraph manifest and how does it work?

A subgraph manifest, typically named subgraph.yaml, is a configuration file that defines data sources and handler functions. It specifies which blockchain addresses and events the subgraph monitors and maps to queryable entities in the GraphQL API.

Do I need AssemblyScript to write subgraph mappings?

Yes, AssemblyScript is required to write subgraph mappings. Mappings in AssemblyScript translate blockchain data into entities, enabling codegen and templates for dynamic data sources within your subgraph indexing workflow.

Can I use substreams to accelerate blockchain indexing?

Yes, The Graph supports optional substreams to accelerate blockchain indexing. Substreams provide an alternative to standard mappings for faster data processing and indexing across blockchain data indexing scenarios.

How does the GraphQL schema expose blockchain data relationships?

The GraphQL schema defines queryable entities and their relationships for the indexed blockchain data. It works with the subgraph manifest and mappings to expose a standardized GraphQL API for querying on-chain events.

What is the best way to organize subgraph concepts for agent-driven indexing?

Organizing subgraph concepts involves structuring manifest design, schema definitions, and AssemblyScript mappings with best-practice references. This approach ensures standardized, scalable indexing of blockchain data mapped to queryable entities.