Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

rp-source-shopify

БесплатноЗапускает вложенные скриптыНе проверен

Shopify private-data source adapter, read entirely through the Shopify CLI (`shopify store execute`) on the import operator's machine: discovery capture, its…

wixот wix★ 40 звёзд на GitHub

Об этом скилле

rp-source-shopify

Shopify source adapter for private data: orders, customers, gift cards, discounts, draft and archived products, content, navigation, locations, shipping, metaobjects, files and redirects. It follows the same contract as rp-source-wordpress and rp-source-csv: it discovers what the store holds, writes the standard discovery files, records everything it could not capture as a source-coverage row, and hands over to the general mapping, approval, import and reporting steps. Nothing it reads is written back; the store is never changed.

When this skill is used

  • rp-discovery runs the Discovery section when the Shopify acquisition-mode answer was Admin API (sourceMode=private_data).
  • rp-import-codegen reads the Read contract section.

Access path: the Shopify CLI, read-only

Every call is store execute --store <shop>.myshopify.com --query <query> --json --version 2026-10, run through lib/shopify-cli.js by the adapter's own Shopify CLI install, using the session the operator approved in the browser on their machine. No token is stored by this adapter.

  • Read-only by construction. A mutation document is refused before any process starts. The one exception is the bulk extract's start: Shopify classes bulkOperationRunQuery (a read job) as a mutation, so startBulkOperation sends that one fixed document with --allow-mutations. No other call can carry the flag, and operations are never cancelled.
  • A GraphQL error is data about the store, returned to the caller: discovery turns it into a capture-failed coverage row. A read Shopify throttles on all 6 calls (1, 2, 4, 8, 16 s between them) is shopify_throttled, also a capture-failed row at discovery. Any other CLI failure stops the step (exit 2); it is never retried in a loop and never read as "no records".
  • Shopify's terms forbid automating the store admin in a browser. Never do it.

The connection: one dedicated staff account, checked before every read

Inputs: SHOPIFY_SHOP_DOMAIN=<shop>.myshopify.com in config/source.shopify.env (not a secret). The operator's Node.js must be 22.12 or later.

  1. The store owner creates a staff account for the migration (Administrator role, or a custom role with app and channel management) and gives it to the import operator. The owner's own account is not an allowed fallback.

  2. Run the session check from this skill directory:

    node scripts/shopify-session-check.js --project <migrations-root>/<project>
    

    It checks, in order and stopping at the first failure: Node.js ≥ 22.12; the adapter's own Shopify CLI at exactly 4.8.3 in ~/.replatform/tools/shopify-cli-4.8.3; the connection and Shopify's scope readback (every scope the reads declare); and that Shopify lists the pinned Admin API version 2026-10 as supported. Then it writes data/shopify-discovery/session-receipt.json (no secret, no personal data).

  3. The first time, it asks the first-connection question (a discovery question action): was the connection approved from the dedicated migration staff account? Answer dedicated-account only when it was. other-account stops: discovery does not start and the question is asked again after the owner provides a dedicated account.

  4. Follow its stop codes:

Code What the operator does
shopify_cli_node_unsupported Requires Import Operator. Switch this terminal to Node.js 22.12 or later (for example the current LTS) with the usual installer or version manager, check node --version, run the check again. Nothing was installed or read
shopify_cli_not_installed / shopify_cli_version_changed Ask the operator; with their consent run the check again with --install (installs or reinstalls exactly 4.8.3 into the adapter folder, about 52 MB, nothing global)
shopify_session_missing / shopify_scopes_missing Run the check with --connect and approve in the browser while signed in to the store as the dedicated staff account. --connect requests the full derived scope list
shopify_cli_incompatible The adapter install is damaged or moved; reinstall with --install
shopify_api_version_unsupported Stop and report: moving the pin is a tested code change, never a workaround

Never type shopify store auth or any other bare shopify command. --connect starts the browser approval itself through the adapter's CLI with Shopify's self-update switched off; a bare command would run another Shopify CLI and could upgrade a machine-wide installation. Never run npm -g, shopify config autoupgrade, or change any Shopify CLI setting.

Exit codes: 0 passed and confirmed; 3 the first-connection question is pending; 2 stopped (the printed code says why); 1 usage error.

Run the check before discovery and before each extract. Discovery refuses to start (shopify_session_not_checked, `shopify_first_connection

Полный SKILL.md на GitHub

Установить rp-source-shopify в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

lib/discovery-reads.jslib/import-findings.jslib/shopify-bulk-sqlite-worker.jslib/shopify-bulk.jslib/shopify-bundles.jslib/shopify-cli.jslib/shopify-gift-cards.jslib/shopify-nested-reads.jslib/shopify-protected-fields.jslib/shopify-regional.jslib/shopify-session.jsqueries/articles.graphqlqueries/blogs.graphqlqueries/collections.graphqlqueries/customers.graphqlqueries/delivery-profiles.graphqlqueries/discounts-buys-items.graphqlqueries/discounts-buys-variants.graphqlqueries/discounts-gets-collections.graphqlqueries/discounts-gets-products.graphqlqueries/discounts-gets-variants.graphqlqueries/discounts.graphqlqueries/files.graphqlqueries/gift-cards.graphqlqueries/inventory.graphqlqueries/locations.graphqlqueries/menus.graphqlqueries/metaobjects.graphqlqueries/orders-core.graphqlqueries/orders-fulfillments.graphqlqueries/orders-refunds.graphqlqueries/pages.graphqlqueries/probe-customers-address.graphqlqueries/probe-customers-email.graphqlqueries/probe-customers-name.graphqlqueries/probe-customers-phone.graphqlqueries/probe-orders-address.graphqlqueries/probe-orders-email.graphqlqueries/probe-orders-name.graphqlqueries/probe-orders-phone.graphql

FAQ

Что делает скилл rp-source-shopify?

Shopify private-data source adapter, read entirely through the Shopify CLI (`shopify store execute`) on the import operator's machine: discovery capture, its resumable step sequence, source-coverage rows, the bulk extract of the full store, and the read contract for codegen. Use when the source platform is Shopify and the Admin API (private data) was chosen. The public storefront route is `rp-quick-shopify` / public content, not this skill.

Как установить скилл rp-source-shopify?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл rp-source-shopify запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить rp-source-shopify с