# Shopify REST → GraphQL Migration Surgeon

> Migrate your Shopify app off the legacy REST Admin API — full-codebase scan, phased cutover plan, client-ready migration report.

Shopify REST → GraphQL Migration Surgeon is a paid AI agent skill on Agensi by Adrian Clements, in E-commerce. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $12 (one-time purchase)
- Creator: [Adrian Clements](https://www.agensi.io/creators/adrian-clements)
- Category: [E-commerce](https://www.agensi.io/skills/ecommerce)
- Version: 1.0
- Last updated: 2026-07-09
- Security: scan passed (2026-07-09); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/shopify-rest-graphql-migration-surgeon
- Tags: shopify, graphql, migration, rest-api, ecommerce, refactoring, code-audit

## About this skill

Migrate your Shopify app off the legacy REST Admin API without breaking production.

Shopify's REST Admin API is legacy — new apps must be GraphQL-first, and deprecation pressure on existing REST apps escalates every year. Shopify's free tools convert one call at a time. This skill migrates your whole app.

WHAT IT DOES
- Scans your entire codebase with a bundled read-only Python scanner: finds every REST call site across raw URLs, shopify-api-js / Remix REST clients, resource classes, Ruby ShopifyAPI usage, and Python resource classes.
- Classifies every resource by risk and assigns it to a 5-phase cutover plan (foundations -> low-risk -> medium -> high-risk -> platform migrations).
- Generates a polished, client-ready HTML Migration Readiness Report (prints to PDF) — the artifact your team approves or your agency bills against.
- Executes the migration phase by phase, handling the six things that break naive migrations: numeric IDs -> GIDs, page_info pagination -> cursors/bulk operations, HTTP-status error handling -> 200-with-errors + userErrors, 429/Retry-After -> cost-point throttling, split/merged operation shapes (e.g. productDeleteMedia), and scope/response-shape verification.
- Finds "collapse opportunities" — chained REST calls that become one GraphQL query.

SAFETY & HONESTY
- The scanner is read-only and makes zero network calls.
- No code is modified until you approve the phase plan.
- Unverified operation mappings are labeled as unverified; Asset/Checkout surfaces are reported honestly as platform-feature migrations, not call swaps.

WHO IT'S FOR
Developers and agencies maintaining Shopify public apps, custom apps, or integrations still on the REST Admin API.

Includes: scanner script, six-conversions playbook, resource->GraphQL risk map, report spec, and a full sample Migration Readiness Report.

## Known limitations

Requires scan approval before code changes. Asset and Checkout APIs are reported as platform migrations, not direct swaps. Operation verification depends on API version reference.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Shopify REST → GraphQL Migration Surgeon skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Does this skill handle just simple API calls, or does it also handle pagination and GID conversions?

The migration focuses on complex logic shifts like converting numeric IDs to Global IDs (GIDs), switching from page-based to cursor-based pagination, and implementing GraphQL-specific error handling and cost-point throttling.

### Which programming languages and frameworks is the scanner compatible with?

The included Python scanner is language-agnostic; it identifies REST patterns across JavaScript/Remix, Ruby, and Python codebases to ensure no legacy hook or URL is missed during the audit.

### Will the skill make automatic changes to my production code immediately?

No, the scanner is read-only and makes zero network calls; you review and approve the generated phased cutover plan before any code modifications are suggested or executed.

### What specific deliverables are included with this migration skill?

The purchase includes the read-only scanner script, the six-conversions playbook, a resource-to-GraphQL risk map, and a template for the professional HTML Migration Readiness Report.

### How does this skill help optimize my app beyond just a basic API swap?

The skill identifies "collapse opportunities" where multiple sequential REST calls can be refactored into a single, efficient GraphQL query to improve your app's performance.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
