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,972 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,972 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.05972
Opus 5.5 $0.00080 $0.02389
Sonnet 5.5 $0.00040 $0.01194
Haiku 4.5 $0.00020 $0.00597

Measured 1mo ago against content hash 96cfe60439b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo ago Changed 96cfe60439b0
  2. 2mo 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 (2 stars, last pushed 1mo ago), licensed MIT. It adds 200 tokens to every session and 5,972 once invoked, about $0.0008 per session on Opus 5.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

migrate-to-portal compared with skills from other repositories

migrate-to-portal next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
migrate-to-portalsubsquid-labs/portal-mcp-serverSkill21mo agoMITA200Claude Code
walkeros-create-destinationelbwalker/walkerOSSkill3492d agoMITA77Claude Code
walkeros-create-sourceelbwalker/walkerOSSkill3492d agoMITA65Claude Code
implementing-mcp-toolsPostHog/posthogSkill41kyesterdaynoneA58Claude Code, Codex
webiny-api-cms-content-modelswebiny/webiny-jsSkill8.0kyesterdaynoneA313Claude Code, Codex
webiny-form-modelwebiny/webiny-jsSkill8.0kyesterdaynoneA93Claude Code, Codex
webiny-api-permissionswebiny/webiny-jsSkill8.0kyesterdaynoneA78Claude Code, Codex