enable-shopify-cms
enable-shopify-cms 是一个用于为 shop 模板接入 Shopify CMS 的技能。它把首页与营销页的硬编码内容替换为 Shopify 托管的 metaobject 内容,基于 cms_homepage 和 cms_page 两种 metaobject 定义。技能会新增 lib/shopify/operations/cms.ts 中的三个操作(getHomepage、getMarketingPage、getAllMarketingPageSlugs),编写并校验 Storefront GraphQL 查询,创建转换层把原始 metaobject 字段映射为 Homepage、MarketingPage、ContentSection 等领域类型,并将 CMS 读取接入首页、营销页路由与站点地图。前提是 Shopify 店铺已定义相应 metaobject 且配置了 Storefront API 访问令牌。