Claude Code skills for creating, editing, analyzing, and migrating Amp-powered subgraphs.
subgraph-migration– Migrate a traditional WASM/AssemblyScript subgraph to an Amp-powered subgraph
Start Claude Code, then run the following commands inside the session.
Add the marketplace from GitHub:
/plugin marketplace add edgeandnode/subgraph-skills
Then install the plugin:
/plugin install subgraph-skills
You can also browse and install interactively by running /plugin and navigating to the Discover tab.
Navigate to a subgraph project directory and invoke the skill directly:
/subgraph-migration
The skill also triggers automatically from natural language. Just ask Claude something like:
- "Help me migrate this subgraph to Amp"
- "Convert this subgraph to Amp"
- "Migrate to Amp"
The skill will:
- Validate the subgraph directory (expects a
subgraph.yamlwithdataSourcesandschema.file) - Analyze and classify all entities and handlers
- Generate SQL transformer queries for each handler
- Determine the migration mode (single Amp subgraph or two-subgraph plan)
- Write a complete migration plan to
subgraph-migration.mdin your project directory
You can also pass optional arguments to customize the migration:
> /subgraph-migration target network: base, use aggregations for stateful entities
Supported options via arguments:
- Target network/dataset override
- Whether to adopt aggregation patterns for stateful entities
- Specific data sources to migrate (partial migration)
| Network Aliases | Amp Network | Amp Dataset |
|---|---|---|
mainnet, ethereum, ethereum-mainnet |
ethereum-mainnet |
edgeandnode/ethereum_mainnet |
base, base-mainnet |
base-mainnet |
edgeandnode/base_mainnet |
arbitrum, arbitrum-one |
arbitrum-one |
edgeandnode/arbitrum_one |
Custom networks are supported — the skill will prompt you for the Amp dataset and network names.
MIT