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.
npx skills add a5c-ai/babysitter --skill subgraph-indexing --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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
- Capabilities
- Installation
- Project Setup
- Initialize Subgraph
- Project Structure
- Manifest (subgraph.yaml)
- GraphQL Schema
- AssemblyScript Handlers
- Data Source Templates
- Build and Deploy
- Querying
- Testing
- Process Integration
- Best Practices
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
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.
