Shopify 店铺运营诊断:从 Supabase 获取店铺域名与 token,检测装修、产品、结账及指标异常,支持发布引流博文(唯一写操作)。
面向 OpenClaw 触发的 Shopify 运营能力集合: 以只读诊断为主,帮助定位转化/营销/商品问题; 唯一写操作 是发布 Shopify Blog 文章(需要明确 --confirm)。
适用场景关键词:店铺审计、装修优化、产品优化、结账/checkout 测试、转化下降、营销效果差、发布博客/引流文章。
触发后执行顺序:
setup once:用 ICOSMOS_USER_EMAIL / ICOSMOS_USER_PASSWORD 同步店铺与 token 到本地缓存content/*:拉原始数据(更全面、更可追溯)audit/* / test checkout:给诊断与验证blog publish:仅当明确需要发布时执行(必须 --confirm)诉求命令Setup Once:从 Supabase 同步店铺/token 到本地icosmos-shopify setup once列出店铺icosmos-shopify stores list获取店铺基础信息(原始数据)icosmos-shopify content shop --store xxx.myshopify.com获取产品列表(原始数据,分页)icosmos-shopify content products list --store xxx.myshopify.com --first 20 --after <cursor>获取订单列表(原始数据,时间窗)icosmos-shopify content orders list --store xxx.myshopify.com --start <RFC3339> --end <RFC3339>获取博客列表/文章(原始数据)icosmos-shopify content blogs list --store xxx.myshopify.com / icosmos-shopify content blogs articles list --store xxx.myshopify.com --blog-id 123装修检查单(只读)icosmos-shopify audit theme --store xxx.myshopify.com产品质量诊断(只读)icosmos-shopify audit products --store xxx.myshopify.com --limit 50结账链路测试(只读)icosmos-shopify test checkout --store xxx.myshopify.com经营指标与异常线索(只读)icosmos-shopify audit metrics --store xxx.myshopify.com --days 7发布引流博文(写操作)icosmos-shopify blog publish --store xxx.myshopify.com --blog-id 123 --title ... --body-file article.html --confirm
默认推荐 --format json( content/* 默认就是 json),统一结构:
store_domain / api_version / meta / data分页信息:
meta.page_info.has_next_page/end_cursormeta.page_info.next_link(来自 Link: rel="next")Setup Onece:
ICOSMOS_USER_EMAILICOSMOS_USER_PASSWORD两个字段需要保存到系统环境变量
所需命令行工具为当前目录下的 icosmos-shopify
SHOPIFY_API_VERSION(默认 2026-01)--confirm;否则即使参数齐全也只会 dry-run。abcd...wxyz)。