migrate-to-portal

migrate-to-portal is a skill for Claude Code from subsquid-labs/portal-mcp-server. It costs 200 tokens per session (5,980 once invoked), scanned A, original, MIT.

A migration guide for moving a Squid blockchain indexer from an older v2 gateway to SQD Portal, a service for reading blockchain data.

In plain words
What is it for?
Use it to update EVM or Solana Squid SDK indexers, including their data sources, package dependencies, types, and selected fields.
Why use it?
It addresses package, API, and type changes needed as older gateway datasets are retired or moved to Portal.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the portal plugin — 4 skills, 1 MCP server shipped together

Good fit Use it to update EVM or Solana Squid SDK indexers, including their data sources, package dependencies, types, and selected fields.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/subsquid-labs/portal-mcp-server/migrate-to-portal
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add subsquid-labs/portal-mcp-server --skill migrate-to-portal
Clone the repo
git clone --depth 1 https://github.com/subsquid-labs/portal-mcp-server

Made for: Claude Code.

Or install portal, the plugin that ships this one along with the rest of its 4 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for migrate-to-portal

README.md
[![agentmods](https://agentmods.dev/badge/skills/subsquid-labs/portal-mcp-server/migrate-to-portal/github.svg)](https://agentmods.dev/skills/subsquid-labs/portal-mcp-server/migrate-to-portal)
Your own site
<a href="https://agentmods.dev/skills/subsquid-labs/portal-mcp-server/migrate-to-portal"><img src="https://agentmods.dev/badge/skills/subsquid-labs/portal-mcp-server/migrate-to-portal/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for migrate-to-portal

Your own site · 80×15
<a href="https://agentmods.dev/skills/subsquid-labs/portal-mcp-server/migrate-to-portal"><img src="https://agentmods.dev/badge/skills/subsquid-labs/portal-mcp-server/migrate-to-portal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 200 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,980 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00200 $0.05980
Opus 5 $0.00100 $0.02990
Sonnet 5 $0.00040 $0.01196
Haiku 4.5 $0.00020 $0.00598

Measured 12d ago against content hash 43152eb12781, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

migrate-to-portal scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sI https://portal.sqd.dev/datasets/<slug>/metadata
plugins/portal/skills/migrate-to-portal/SKILL.md · 481 lines

How it starts

The opening of the file, as written. The whole thing — 481 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Migrate a Squid to Portal

Walks the migration of an existing Squid SDK indexer onto the Portal data source. EVM and Solana have different package sets; the migration shape (data source + types + field selection) is parallel. Upstream doc (unified, both chains): https://docs.sqd.dev/en/sdk/migration/gateway-to-portal.

The v2 gateways are actively being sunset. On 2026-08-05, 18 datasets (including astar-mainnet, berachain-mainnet, celo-mainnet, linea-mainnet, scroll-mainnet, taiko-mainnet, unichain-mainnet, zksync-mainnet, zora-mainnet) became Portal-only. A v2 squid on those chains is already broken and must migrate. On 2026-08-20, 67 low-usage datasets retired from both v2 and Portal (announcement); there is no Portal migration target for them, so move to RPC or a private Portal instead. The July 30, 2026 Squid SDK release also introduced the @subsquid/squid-sdk umbrella package with an automatic Portal/RPC failover data source. Consider it for new work, though this guide's @subsquid/evm-stream target remains current.

When to use this skill

Activate when the user says any of:

  • "migrate my squid to Portal" (EVM or Solana)
  • "move off v2 archive / setGateway / setDataSource / lookupArchive"
  • "upgrade @subsquid/evm-processor" or "@subsquid/solana-stream to 1.x"
  • references https://v2.archive.subsquid.io/...
  • mentions removing SolanaRpcClient
  • asks about Solana block-height-to-slot conversion
  • hits compile errors on EvmBatchProcessor, evmLog, block.height, or block.header.slot after a bump
  • needs to migrate processor.setPrometheusPort() / processor.setPrometheusServer() (EVM only — removed with EvmBatchProcessor)

Pre-flight

  1. Identify the chain. Grep:
    grep -RE "@subsquid/(evm-processor|solana-stream|archive-registry)" --include="*.ts" --include="*.json" .
    
    • @subsquid/evm-processor → EVM section below
    • @subsquid/solana-stream@^0.x → Solana section below

Read the full file on GitHub · 481 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 481 lines · 200 tokens per session scan A 43152eb12781

Subscribe to this mod's changes

migrate-to-portal is a skill published in the GitHub repository subsquid-labs/portal-mcp-server (1 stars, last pushed 4d ago), licensed MIT. It adds 200 tokens to every session and 5,980 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

walkeros-create-destination

Use when creating a new walkerOS destination to send events to a vendor or API (GA4/gtag, Meta/Facebook Pixel, Mixpanel, Amplitude, a custom HTTP API, Measurement Protocol), web or server-side. Example-driven workflow: research the vendor SDK and define step examples before implementing the destination interface, env…

elbwalker/walkerOS · 77 tokens

walkeros-create-source

Use when creating a new walkerOS source to capture events (browser source, dataLayer interception, server/HTTP source, webhook receiver, event capture), web or server-side. Example-driven workflow: research the input format and define step examples before implementing the push interface, createTrigger, and env pattern.

elbwalker/walkerOS · 65 tokens

implementing-mcp-tools

Guide for exposing PostHog product endpoints as MCP tools. Use when creating new or updating API endpoints, adding MCP tool definitions, scaffolding YAML configs, or writing serializers with good descriptions. Covers the full pipeline from Django serializer to generated TypeScript tool handler.

PostHog/posthog · 58 tokens

subgraph-development-guide

Guide to building blockchain data indexes with The Graph — subgraph architecture, schema design, mapping handlers, deployment, and querying. Covers GraphQL APIs for DEX data, token transfers, and DeFi protocol events. Use when explaining blockchain indexing or building custom data pipelines.

nirholas/three.ws · 59 tokens

chainlink-oracle-guide

How Chainlink oracle price feeds work — architecture, reading feeds on-chain, available pairs, the aggregator model, and oracle security. Covers how DeFi protocols (Aave, Sperax, Compound) rely on Chainlink for accurate pricing. Use when explaining oracles, price feeds, or DeFi infrastructure.

nirholas/three.ws · 68 tokens

web3auth-integration-guide

Guide to integrating Web3Auth for social login in Web3 dApps. Covers email, Google, Apple, Discord, and Twitter login flows. MPC key management, session handling, RainbowKit integration, and migration from traditional wallet-only flows. Zero-friction onboarding.

nirholas/three.ws · 60 tokens