npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

subgraphs-skills

v1.1.0

Published

AI agent skills for developing, testing, and optimizing subgraphs with The Graph protocol. Works with Claude Code, Cursor, Gemini CLI, and more.

Downloads

8

Readme

Subgraphs Skills

Claude Code OpenClaw The Graph License: MIT

A collection of AI agent skills providing expert knowledge for developing, testing, and deploying subgraphs with The Graph protocol.

Overview

This repository provides subgraph development expertise for AI coding assistants in two formats:

| Format | Location | Use With | |--------|----------|----------| | Claude Code Plugin | skills/ | Claude Code CLI | | OpenClaw Skills | openclaw/ | OpenClaw / Clawdbot |

Same knowledge, different agent platforms.

Skills

🛠️ subgraph-dev

Core development knowledge including:

  • Schema design and GraphQL types
  • Manifest configuration (subgraph.yaml)
  • AssemblyScript mapping handlers
  • Data source templates
  • Contract bindings and calls
  • Subgraph Composition - Combine multiple subgraphs
  • Common Patterns - ERC20, DEX, NFT, Lending, Staking, Governance
  • Subgraph Uncrashable (safe code generation)
  • Deployment workflows

⚡ subgraph-optimization

Performance best practices from The Graph docs:

  • Pruning with indexerHints
  • Arrays with @derivedFrom
  • Immutable entities and Bytes as IDs
  • Avoiding eth_calls
  • Timeseries and aggregations
  • Grafting for hotfixes

🧪 subgraph-testing

Quality assurance with Matchstick and Subgraph Linter:

  • Subgraph Linter - Static analysis to catch bugs before runtime
  • Common Errors - Troubleshooting guide for indexing issues
  • Unit testing setup and patterns with Matchstick
  • Mock events and contract calls
  • Entity assertions
  • Data source mocking
  • CI/CD integration

Installation

Claude Code

# Add as a Claude Code plugin
claude plugins add PaulieB14/subgraphs-skills

OpenClaw / Clawdbot

# Copy skills to OpenClaw directory
cp -r openclaw/subgraph-* ~/.openclaw/skills/

# Or via ClawHub (when published)
clawdbot skill install subgraph-dev
clawdbot skill install subgraph-optimization
clawdbot skill install subgraph-testing

Manual

Clone this repository and reference it in your agent's configuration.

Repository Structure

subgraphs-skills/
├── .claude-plugin/
│   └── manifest.json           # Claude Code plugin metadata
├── skills/                     # Claude Code format
│   ├── subgraph-dev/
│   │   ├── SKILL.md
│   │   └── references/
│   │       ├── schema-types.md
│   │       ├── assemblyscript-api.md
│   │       ├── subgraph-composition.md
│   │       ├── subgraph-uncrashable.md
│   │       └── patterns.md
│   ├── subgraph-optimization/
│   │   ├── SKILL.md
│   │   └── references/
│   │       └── performance-benchmarks.md
│   └── subgraph-testing/
│       ├── SKILL.md
│       └── references/
│           ├── matchstick-api.md
│           ├── subgraph-linter.md
│           └── common-errors.md
├── openclaw/                   # OpenClaw format (YAML frontmatter)
│   ├── README.md
│   ├── subgraph-dev/
│   │   └── SKILL.md
│   ├── subgraph-optimization/
│   │   └── SKILL.md
│   └── subgraph-testing/
│       └── SKILL.md
├── examples/                   # Working code examples
│   ├── README.md
│   └── erc20-token/
├── scripts/
├── package.json
└── README.md

Usage Examples

Once installed, the AI assistant will have access to subgraph development expertise:

Schema Design:

"Create a schema for tracking DEX swaps with proper relationships"

Optimization:

"How do I optimize my subgraph for faster indexing?"

Testing:

"Write unit tests for my Transfer event handler"

Resources

Platforms

This skill pack works with:

| Platform | Description | Link | |----------|-------------|------| | Claude Code | Anthropic's official CLI for Claude | claude.ai/claude-code | | OpenClaw | Open-source AI agent framework | github.com/openclaw/openclaw |

Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

Acknowledgments

License

MIT