用途:为 Shopify 主题开发提供专家级指导,覆盖主题文件结构、Online Store 2.0 架构、sections、snippets 与配置。适用时机包括创建或修改 Shopify 主题、处理 .json 模板文件、构建带 schema 定义的 section、创建可复用 snippet、组织主题文件结构、配置 settings_schema.json、实现 section blocks 与设置、设置主题资源(CSS、JavaScript、图片)、处理布局文件(theme.liquid、password.liquid)以及创建带后缀的模板变体。
主要能力:一是主题文件结构,涵盖 assets、config、layout、locales、sections、snippets、templates 等目录组织;二是 JSON 模板,使用 templates/index.json、templates/product.json 等配置 sections、blocks、block_order 与 order;三是 section 架构,通过 {% schema %} 定义 name、tag、class、settings、presets,并可用 {% stylesheet %} 与 {% javascript %} 编写作用域样式脚本;四是带 blocks 的 section,支持 product、collection、heading、text 等 block 类型与 max_blocks;五是 snippets,如 product-card.liquid、product-price.liquid,通过 {% render %} 传参复用;六是 settings_schema.json,提供颜色、排版、布局、页头、社交媒体等主题设置界面;七是布局文件,如 theme.liquid 中输出 content_for_header、content_for_layout 并引入 header/footer section。
使用方式:在主题目录中按上述结构组织文件,模板使用 JSON 格式,section 内用 schema 声明可配置项,重复 UI 抽为 snippet 并用 render 调用,主题级设置写入 config/settings_schema.json。
限制与说明:资料未提供安装命令、收费、价格、平台支持范围或效果数据;部分内容(如 checkout.liquid 仅限 Shopify Plus)为资料中标注的说明。详细参考文件包括 references/settings-schema.md、references/section-patterns.md、references/template-examples.md,并可与 shopify-liquid、shopify-performance 技能配合使用。