mcpField
S
shopify-developer

shopify-developer

github.com/tech-leads-club開発7.1k218 回インストール3 日前に更新
リポジトリ

shopify-developer について

テーマ、アプリ、API、ヘッドレスストアフロントを扱うShopify開発者向けのリファレンススキルです。作業別に情報を整理し、APIバージョン2026-01と実装・トラブルシューティングを扱います。

主な機能

  1. 01Liquidの構文、フィルター、オブジェクト
  2. 02テーマ構成のガイド
  3. 03AdminおよびStorefront APIの資料
  4. 04アプリとShopify Functionsのガイド
  5. 05Hydrogenとパフォーマンスの資料
  6. 06デバッグと移行に関する情報

活用シーン

  1. 01Liquidテーマの構築やデバッグ
  2. 02Shopifyアプリと拡張機能の開発
  3. 03AdminまたはStorefront APIの連携
  4. 04ストアフロントの性能やAPI問題の調査

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/tech-leads-club/agent-skills --skill shopify-developer

インストール後、Claude Code で/shopify-developerを入力して読み込まれたか確認します。

同梱ファイル

SKILL.md と一緒にインストールされる参考資料やスクリプト。

references/
api-admin.md
api-storefront.md
app-development.md
debugging.md
functions.md
hydrogen.md
liquid-filters.md
liquid-objects.md
liquid-syntax.md
performance.md
theme-development.md

詳細

Shopify 開発者リファレンス

プロフェッショナルな Shopify 開発の包括的なリファレンス — API バージョン 2026-01。

クイックリファレンス

項目値
API バージョン2026-01(安定版)
GraphQL AdminPOST https://{store}.myshopify.com/admin/api/2026-01/graphql.json
Storefront APIPOST https://{store}.myshopify.com/api/2026-01/graphql.json
Ajax API(テーマ)/cart.js、/cart/add.js、/cart/change.js
CLI インストールnpm install -g @shopify/cli
テーマ開発shopify theme dev --store {store}.myshopify.com
アプリ開発shopify app dev
デプロイshopify app deploy
ドキュメントshopify.dev

作業内容に応じて選ぶ

タスクに合ったリファレンスファイルをお読みください。

Liquid テンプレート — .liquid ファイルの作成やデバッグ:

テーマ開発 — テーマの構築やカスタマイズ:

API 統合 — プログラムによるデータの取得や変更:

アプリ開発 — Shopify アプリの構築:

サーバーレスロジック — カスタムビジネスルール:

  • references/functions.md - Shopify Functions(Scripts に代わるもの)、Rust/JS ターゲット、デプロイ

ヘッドレスコマース — カスタムストアフロント:

最適化とトラブルシューティング:

非推奨に関する通知

非推奨の項目置き換え先期限
Shopify ScriptsShopify Functions2025年8月(移行)、終了時期は未定
checkout.liquidCheckout Extensibility2024年8月(Plus)、完了
REST Admin APIGraphQL Admin API非推奨化中(削除日は未定)
レガシーカスタムアプリ新しい認証モデル2025年1月(完了)
Polaris ReactPolaris Web Components移行中
Remix(アプリフレームワーク)React Router 7Hydrogen 2025.5.0+

Liquid の基本

3 種類の構文:

{{ product.title | upcase }}                    {# Output with filter #}
{% if product.available %}In stock{% endif %}   {# Logic tag #}
{% assign sale = product.price | times: 0.8 %}  {# Assignment #}
{%- if condition -%}Stripped whitespace{%- endif -%}

主なパターン:

{% for product in collection.products limit: 5 %}
  {% render 'product-card', product: product %}
{% endfor %}

{% paginate collection.products by 12 %}
  {% for product in paginate.collection.products %}...{% endfor %}
  {{ paginate | default_pagination }}
{% endpaginate %}

API の基本

// GraphQL Admin - always use GraphQL over REST
const response = await fetch(`https://${store}.myshopify.com/admin/api/2026-01/graphql.json`, {
  method: 'POST',
  headers: {
    'X-Shopify-Access-Token': accessToken,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ query, variables }),
})
const { data, errors } = await response.json()
if (errors) throw new Error(errors[0].message)

// Ajax API (theme-only cart operations)
fetch('/cart/add.js', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ id: variantId, quantity: 1 }),
})

参照ファイル

ファイル行数対象範囲
liquid-syntax.md~600タグ、制御フロー、反復処理、変数、空白、LiquidDoc
liquid-filters.md~870文字列、数値、配列、Shopify 固有、日付、URL、色のフィルター
liquid-objects.md~695すべての Shopify オブジェクト:商品、バリエーション、コレクション、カート、顧客、注文など
theme-development.md~1200ファイル構造、JSON テンプレート、セクション、ブロック、設定スキーマ、レイアウト
api-admin.md~595GraphQL クエリ/ミューテーション、REST(レガシー)、OAuth、ウェブフック、レート制限
api-storefront.md~235Storefront API、Ajax API、カート操作、Customer Account API
app-development.md~760CLI、アプリのアーキテクチャ、拡張機能、Polaris Web Components、デプロイ
functions.md~300Function の種類、Rust/JS ターゲット、CLI ワークフロー、Scripts の移行
hydrogen.md~375セットアップ、ルーティング、データ読み込み、Storefront API、デプロイ
performance.md~605画像、JS、CSS、フォント、Liquid、サードパーティ製スクリプト、Core Web Vitals
debugging.md~650Liquid、JavaScript、API、カート、ウェブフック、テーマエディターのトラブルシューティング

コメント