返回顶部
s

shopify-runtime

Use when the user wants direct Shopify runtime access through one configured store: inspect setup status, search Shopify docs, or execute JavaScript against the configured store.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
75
下载量
1
收藏
概述
安装方式
版本历史

shopify-runtime

# Seller Runtime Toolkit Use this skill when you need direct, scriptable access to one Shopify store from OpenClaw. This skill complements `seller-api-workflow`. Keep the existing workflow skill for higher-level business asks. Use this skill when the task is explicitly about Shopify setup status, documentation search, script execution, or troubleshooting those surfaces. This skill is self-contained. You can copy the entire `shopify-runtime/` folder into an OpenClaw `workspace/skills/` directory and run it there without the `seller-assistant` plugin repository beside it. ## Quick Start - Configure the skill in OpenClaw instead of maintaining per-store profiles. - Set this skill's `apiKey` in OpenClaw. Because the skill declares `primaryEnv: "SHOPIFY_CLIENT_SECRET"`, OpenClaw injects that value into `SHOPIFY_CLIENT_SECRET` for each agent run. - Set `skills.entries."shopify-runtime".env.SHOPIFY_STORE_DOMAIN` to your `*.myshopify.com` domain. - Set `skills.entries."shopify-runtime".env.SHOPIFY_CLIENT_ID` to your Shopify app client id. - Optionally set `skills.entries."shopify-runtime".env.SHOPIFY_API_VERSION` to override the default API version. - Run the bundled script with `node`. - Read [references/shopify-provider.md](references/shopify-provider.md) when the request touches auth, scopes, orders, or write access. - Read [references/runtime-contract.md](references/runtime-contract.md) when you need the output shape or command examples. Example OpenClaw config: ```json5 { skills: { entries: { "shopify-runtime": { apiKey: { source: "env", provider: "default", id: "SHOPIFY_CLIENT_SECRET" }, env: { SHOPIFY_STORE_DOMAIN: "your-store.myshopify.com", SHOPIFY_CLIENT_ID: "your_shopify_client_id", SHOPIFY_API_VERSION: "2026-01", }, }, }, }, } ``` ## Auth And Scope Notes - This skill currently authenticates with Shopify by exchanging `SHOPIFY_CLIENT_ID + SHOPIFY_CLIENT_SECRET` for an Admin API access token. It does not use a pre-issued `SHOPIFY_ACCESS_TOKEN`. - This flow is intended for a Shopify app owned by the same organization as the target store and installed on that same store. - Read operations usually need matching Shopify Admin API scopes such as `read_products`, `read_inventory`, `read_orders`, or `read_customers`. - Write operations usually need the matching write scopes such as `write_products`, `write_inventory`, or `write_orders`. - Order access can still fail even with basic scopes. Older orders may require `read_all_orders`, and protected customer data access may still be required. ## Capability Boundaries - Prefer Admin GraphQL for normal reads and writes. Use REST only when GraphQL is not the best fit. - `--mode read` blocks local REST writes and GraphQL mutations before the request is sent. - `--mode write` only removes the local read-only guard. Shopify still enforces the app's granted scopes. - `status` confirms local skill readiness, not that Shopify token exchange will succeed. ## Commands ### Inspect current setup Use this when the user asks whether the skill is ready, which store it is pointed at, or which API version it will use. ```bash node skills/shopify-runtime/scripts/seller-runtime.mjs status ``` ### Search provider and official docs Use this before writing an API script from memory. Prefer provider notes and the narrowest matching official documentation entry. ```bash node skills/shopify-runtime/scripts/seller-runtime.mjs search --query "orders graphql pagination" ``` Add `--limit` or `--refresh` when needed. ### Execute JavaScript Use this after you know the request shape. Default to `--mode read`. Only use `--mode write` when the user clearly asked for a write operation and the Shopify token should allow it. ```bash cat <<'EOF' | node skills/shopify-runtime/scripts/seller-runtime.mjs execute --mode read return await provider.graphql(` query { shop { name } } `) EOF ``` The script body should use `provider.graphql(...)` or `provider.request(...)`. In this runtime, `provider.graphql(...)` returns the validated GraphQL `data` object directly. Prefer piping the script on `stdin` so you do not need temporary files. `--script-file` is still supported when a real file is more convenient. ## Working Rules - This skill targets one configured Shopify store per agent run. - Search docs before inventing request shapes or filters from memory. - Keep execution scripts narrow and return concise structured objects instead of raw payloads when possible. - Treat `requestSummary`, `rawResponses`, and `logs` as execution evidence when you explain the outcome. - Read mode blocks REST write methods and GraphQL mutations locally. Write mode still depends on the Shopify token having matching Admin API access. - The runtime reads `SHOPIFY_STORE_DOMAIN`, `SHOPIFY_CLIENT_ID`, `SHOPIFY_CLIENT_SECRET`, and optional `SHOPIFY_API_VERSION` from the environment that OpenClaw injects for the skill run.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 shopify-runtime-1776116174 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 shopify-runtime-1776116174 技能

通过命令行安装

skillhub install shopify-runtime-1776116174

下载 Zip 包

⬇ 下载 shopify-runtime v1.0.0

文件大小: 15 KB | 发布时间: 2026-4-14 12:55

v1.0.0 最新 2026-4-14 12:55
Initial release of shopify-runtime for direct Shopify runtime access, scripting, and store operations.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部