Agent skill · Backend & API

subgraph-indexing

Subgraph development for The Graph protocol. Includes manifest configuration, GraphQL schema design, AssemblyScript handlers, entity relationships, and deployment to hosted and decentralized networks.

a5c-aigithub.com/a5c-aiGitHub ↗
claude-codecodexcan modify filesMIT
Install
npx skills add a5c-ai/babysitter --skill subgraph-indexing --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 8 KB
Bundled scripts: none
Allowed tools: ReadGrepWriteBashEditGlobWebFetch
Path: library/specializations/cryptography-blockchain/skills/subgraph-indexing/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 1,642
Language: JavaScript

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Subgraph Indexing Skill Subgraph development for The Graph protocol, enabling efficient blockchain data indexing and querying. ## Capabilities - **Manifest Configuration**: Write subgraph.yaml files - **Schema Design**: Define GraphQL schemas for entities - **Event Handlers**: Implement AssemblyScript handlers - **Entity Relationships**: Handle derived fields and relations - **Local Testing**: Test with Graph Node locally - **Deployment**: Deploy to hosted and decentralized networks - **Performance**: Optimize indexing performance - **Reorg Handling**: Handle chain reorganizations ## Installation ```bash # Install Graph CLI npm install -g @graphprotocol/graph-cli # Verify graph --version ``` ## Project Setup ### Initialize Subgraph ```bash # Initialize from existing contract graph init --product subgraph-studio \ --from-contract 0x... \ --network mainnet \ --abi ./abi.json \ my-subgraph cd my-subgraph ``` ### Project Structure ``` my-subgraph/ ├── subgraph.yaml # Manifest ├── schema.graphql # GraphQL schema ├── src/ │ └── mapping.ts # Event handlers ├── abis/ │ └── Contract.json # Contract ABIs ├── tests/ │ └── contract.test.ts # Unit tests └── package.json ``` ## Manifest (subgr

What's inside
Steps it walks through
  1. Capabilities
  2. Installation
  3. Project Setup
  4. Initialize Subgraph
  5. Project Structure
  6. Manifest (subgraph.yaml)
  7. GraphQL Schema
  8. AssemblyScript Handlers
  9. Data Source Templates
  10. Build and Deploy
  11. Querying
  12. Testing
  13. Process Integration
  14. Best Practices
Ships with 1 file
  • README.md
Commands it runs
Install Graph CLI
npm install -g @graphprotocol/graph-cli
Verify
graph --version
Initialize from existing contract
graph init --product subgraph-studio \
my-subgraph
cd my-subgraph
Generate code from schema
graph codegen
More from babysitter
All skills →
About this skill
What does the subgraph-indexing skill do?

Subgraph development for The Graph protocol. Includes manifest configuration, GraphQL schema design, AssemblyScript handlers, entity relationships, and deployment to hosted and decentralized networks.

How do I install it?

Run `npx skills add a5c-ai/babysitter --skill subgraph-indexing --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From a5c-ai/babysitter, a repository with 1,642 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going