跳到正文
Skillpedia
API 与服务器(后端)7.1k · #13533

shopify-developer

它能做什么

这个技能为 AI 提供在 Shopify 上开发所需的详细知识,包括 Liquid 模板、主题开发、GraphQL 查询和应用扩展。适合从事 Shopify 店铺或应用的建设者和开发者。

适用场景

  • ✓当你正在编辑 Shopify 主题或包含 Liquid 代码的文件时。
  • ✓当你需要为 Shopify API 编写 GraphQL 查询时。
  • ✓当你正在构建 Shopify 应用或无头店面时。

技能链接

https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(development)/shopify-developer/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(development)/shopify-developer/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我的 Shopify 主题在商品页面的 Liquid 代码中报错。请找出问题并修复它。”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会选择与任务相符的参考,例如 Liquid 语法或 GraphQL,并按照 Shopify 当前 API 版本的指导进行操作。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Shopify Developer Reference

Comprehensive reference for professional Shopify development - API version 2026-01.

Quick Reference

Item Value
API version 2026-01 (stable)
GraphQL Admin POST https://{store}.myshopify.com/admin/api/2026-01/graphql.json
Storefront API POST https://{store}.myshopify.com/api/2026-01/graphql.json
Ajax API (theme) /cart.js, /cart/add.js, /cart/change.js
CLI install npm install -g @shopify/cli
Theme dev shopify theme dev --store {store}.myshopify.com
App dev shopify app dev
Deploy shopify app deploy
Docs shopify.dev

Choose Your Path

Read the reference file(s) that match your task:

Liquid templating - writing or debugging .liquid files:

Theme development - building or customising themes:

API integration - fetching or modifying data programmatically:

App development - building Shopify apps:

Serverless logic - custom business rules:

Headless commerce - custom storefronts:

Optimisation and troubleshooting:

Deprecation Notices

Deprecated Replacement Deadline
Shopify Scripts Shopify Functions August 2025 (migration), sundown TBD
checkout.liquid Checkout Extensibility August 2024 (Plus), done
REST Admin API GraphQL Admin API Active deprecation (no removal date yet)
Legacy custom apps New auth model January 2025 (done)
Polaris React Polaris Web Components Active migration
Remix (app framework) React Router 7 Hydrogen 2025.5.0+

Liquid Essentials

Three syntax types:

{{ 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 -%}

Key patterns:

{% 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 Essentials

// 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-Sho
常见问题

它使用哪个 Shopify API 版本?

它按 2026-01 版本编写。

它能帮助解决 Liquid 错误吗?

能。它涵盖 Liquid 语法、控制流程和调试。

它能帮助从 Scripts 迁移到 Functions 吗?

能。它涵盖从 Shopify Scripts 迁移到 Functions 的内容。

详情

作者的原始描述

Complete Shopify development reference covering Liquid templating, OS 2.0 themes, GraphQL APIs, Hydrogen, Functions, and performance optimization (API v2026-01). Use when working with .liquid files, building Shopify themes or apps, writing GraphQL queries for Shopify, debugging Liquid errors, creating app extensions, migrating from Scripts to Functions, or building headless storefronts. Triggers on "Shopify", "Liquid template", "Hydrogen", "Storefront API", "theme development", "Shopify Functions", "Polaris". Do NOT use for non-Shopify e-commerce platforms.

repo: tech-leads-club/agent-skills

热度

GitHub 星标
7.1k
排名
#13533
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能