Shopify 数据一键直连管理
简介
OOMOL 官方出品的 Shopify REST Admin (Legacy) 连接技能,通过 oo CLI 安全调用官方 API,实现店铺文章、页面、博客等数据的免密查询与管理。
原始描述
Shopify REST Admin (Legacy) (shopify.com). Use this skill for ANY Shopify REST Admin (Legacy) request — searching and reading data. Whenever a task involves Shopify REST Admin (Legacy), use this skill instead of calling the API directly.
通过你的 Agent 添加
安装目录:shopify-rest-admin-legacy/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
oo-shopify 是 OOMOL 官方提供的 Shopify REST Admin (Legacy) 连接器技能,专为电商运营者和开发者设计。用户通过 oo connector schema 获取指定操作的实时输入输出结构,再使用 oo connector run 执行数据查询。支持 14 种操作,涵盖文章计数、博客列表、页面检索等读取类功能,所有操作均通过 OOMOL 服务端注入凭证,用户无需接触原始 API Token。
显著优点
安全无感认证:OOMOL 在服务端注入 Shopify 凭证,彻底杜绝 Token 泄露风险。零代码接入:无需编写 HTTP 客户端或处理 OAuth 流程,CLI 命令即查即用。实时 Schema 发现:通过 oo connector schema 动态获取字段定义,避免文档过时问题。官方背书:由 OOMOL 团队直接维护,与平台深度集成,稳定性有保障。跨平台支持:提供 macOS/Linux/Windows 统一的安装脚本,开箱即用。
潜在缺点与局限性
功能范围受限:当前版本仅包含读取类操作(count/get/list),无 [write] 或 [destructive] 标签的增删改能力,复杂业务场景需配合其他工具。Legacy API 限制:基于 Shopify REST Admin (Legacy) 而非 GraphQL 或新版 Admin API,部分新功能(如 Markets、Subscription Contracts)无法访问。依赖 OOMOL 生态:必须安装 oo CLI 并完成 OOMOL 账号绑定,无法独立运行,对离线环境或自建基础设施不友好。计费门槛:OOMOL 采用 Token 计费模式,HTTP 402 错误时需充值,高频调用可能产生持续成本。网络要求:所有请求经 OOMOL 服务端代理,延迟和可用性受制于 OOMOL 基础设施。
适合的目标群体
- Shopify 店主/运营:快速导出文章、页面、博客元数据用于内容审计或迁移准备
- 电商数据分析师:低门槛获取店铺结构化数据,对接 BI 工具前的数据探查
- 开发者原型验证:在正式接入 Shopify SDK 前,快速验证 API 字段和业务逻辑
- 内容管理团队:批量检索文章标签、作者信息,辅助内容分类和 SEO 优化
使用风险
性能瓶颈:代理架构引入额外网络跳数,高并发场景下可能触发 OOMOL 速率限制。凭证失效:Shopify API Key 轮换或 OOMOL 连接过期时,需人工重新授权,自动化流程可能中断。数据一致性:Legacy API 与 Shopify 后台存在字段差异,关键业务决策前建议交叉校验。供应商锁定:技能深度绑定 OOMOL 平台,迁移至其他基础设施需重构调用方式。
技能正文
name: oo-shopify
description: "Shopify REST Admin (Legacy) (shopify.com). Use this skill for ANY Shopify REST Admin (Legacy) request — searching and reading data. Whenever a task involves Shopify REST Admin (Legacy), use this skill instead of calling the API directly."
allowed-tools: [Bash(oo *)]
metadata:
title: "Shopify REST Admin (Legacy)"
author: "OOMOL"
version: "1.0.1"
services: ["shopify"]
icon: "https://static.oomol.com/logo/third-party/shopify.svg"
Shopify REST Admin (Legacy)
Operate Shopify REST Admin (Legacy) through your OOMOL-connected account. This skill calls the shopify connector with the oo CLI; OOMOL injects credentials server-side, so you never handle raw tokens.
Running an action
Assume the user has already installed the oo CLI, signed in, and connected Shopify REST Admin (Legacy). Do not run oo auth login or open the connection URL proactively — just run the action. Fall back to First-time setup only when a command actually fails with an auth or connection error.
1. Inspect the contract to get the authoritative input/output schema before building a payload:
oo connector schema "shopify" --action "<action_name>"
2. Run the action with a JSON payload that matches the input schema:
oo connector run "shopify" --action "<action_name>" --data '<json>' --json
--datatakes a JSON object string or@path/to/file.json; omit it to send{}.- The response is
{ "data": ..., "meta": { "executionId": "..." } }; the execution id lives undermeta.executionId.
Each action is listed below with a one-line description; actions that change state carry a [write] or [destructive] tag. Before constructing --data, fetch the action's live schema with oo connector schema to get its authoritative input fields.
Available actions
count_articles — Count Shopify REST articles in a blog with optional filters.
count_blogs — Count Shopify REST blogs in the connected shop.
count_pages — Count Shopify REST pages with optional filters.
get_article — Retrieve one Shopify REST article by blog ID and article ID.
get_blog — Retrieve one Shopify REST blog by numeric ID.
get_page — Retrieve one Shopify REST page by numeric ID.
get_shop — Retrieve the connected Shopify REST Admin shop configuration.
list_article_authors — List Shopify REST article authors across the connected shop.
list_article_tags — List Shopify REST article tags across all articles in the connected shop.
list_articles — List Shopify REST articles in a blog with optional filters and pagination.
list_blog_article_tags — List Shopify REST article tags for one blog.
list_blogs — List Shopify REST blogs with optional handle filtering and pagination.
list_pages — List Shopify REST pages with optional filters and pagination.
Safety
- Untagged actions are reads (get / list / search) — safe to run directly.
- Actions tagged
[write] change Shopify REST Admin (Legacy) state — confirm the exact payload and effect with the user before running.
- Actions tagged
[destructive] remove or overwrite data — always confirm the target and get explicit approval first.
First-time setup
count_articles — Count Shopify REST articles in a blog with optional filters.count_blogs — Count Shopify REST blogs in the connected shop.count_pages — Count Shopify REST pages with optional filters.get_article — Retrieve one Shopify REST article by blog ID and article ID.get_blog — Retrieve one Shopify REST blog by numeric ID.get_page — Retrieve one Shopify REST page by numeric ID.get_shop — Retrieve the connected Shopify REST Admin shop configuration.list_article_authors — List Shopify REST article authors across the connected shop.list_article_tags — List Shopify REST article tags across all articles in the connected shop.list_articles — List Shopify REST articles in a blog with optional filters and pagination.list_blog_article_tags — List Shopify REST article tags for one blog.list_blogs — List Shopify REST blogs with optional handle filtering and pagination.list_pages — List Shopify REST pages with optional filters and pagination.- Untagged actions are reads (get / list / search) — safe to run directly.
- Actions tagged
[write]change Shopify REST Admin (Legacy) state — confirm the exact payload and effect with the user before running. - Actions tagged
[destructive]remove or overwrite data — always confirm the target and get explicit approval first.
First-time setup
These are one-time steps — do not repeat them on every call. Run a step only when a command fails for the matching reason.
-
oo: command not found— install the oo CLI (other platforms: https://cli.oomol.com/install-guide.md):curl -fsSL https://cli.oomol.com/install.sh | bash # macOS / Linuxirm https://cli.oomol.com/install.ps1 | iex # Windows PowerShell -
Not signed in / authentication error — sign in to your OOMOL account once:
oo auth login -
scope_missing/credential_expired/app_not_ready/app_not_found— Shopify REST Admin (Legacy) is not connected, or the connection expired or lacks a scope. Connect once (auth type: API key) at:https://console.oomol.com/app-connections?provider=shopify -
HTTP 402 /
OOMOL_INSUFFICIENT_CREDIT— billing stop. Recharge athttps://console.oomol.com/billing/token-rechargebefore retrying.
Resources
- Shopify REST Admin (Legacy) homepage: https://www.shopify.com
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。