/shoplazza:shoplazza-shopfrom Shoplazza
Manages store-level config and content for Shoplazza stores: settings, analytics, media library, metafields, blogs, pages, navigation, redirects, markets, languages, and carrier services.
Ships in Shoplazza. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
CRITICAL — before anything else, use Read on ../shoplazza-common/SKILL.md.
It owns every cross-cutting mechanic: the three access tiers, the output envelope (.data),
--dry-run, --jq (incl. "don't pass -r"), --fields, schema, api rest, auth /
profiles, and the safety protocol. This file covers only the shop domain and never repeats them.
The shop module is the store-level config & content domain: shop info/settings,
sales & traffic analytics, the media library (files), metafields (all three families),
blogs & articles, custom pages, navigation menus, URL redirects, markets, store languages,
and real-time shipping-rate carrier services. Broad and shallow — this file is the router; per-sub-area
depth lives in references/.
The only shortcut is +upload-file — everything else is a spec leaf
(--params / --data). All three access tiers apply (tier rule in shoplazza-common).
Intent → command, highest-fit tier first. Authoritative flags/params live in
shoplazza shop <cmd> --help and shoplazza schema shop.<cmd>, not this table.
| User intent | Command |
|---|---|
| Store info — 查店铺信息 / domain / currency / plan | shop info get (optional --params '{"fields":["id","domain"]}') |
| 改客服邮箱 / change customer-service email (the ONLY editable field) | shop info get --jq '.data.id' → shop info update --params '{"shop_id":"<id>"}' --data '{"shop":{"customer_email":"…"}}' |
| Analytics — 销售额/订单数报表 for a date range | shop analytics overview --data '{"begin_time":"<unix-str>","end_time":"<unix-str>","indicator":["sales","orders"]}' → references/analytics.md |
| SKU 销量排行 / best-selling SKU | shop analytics by-sku --data '{…,"sort_by":"sales_total","sort_direction":"desc"}' |
| SPU / landing-page / UTM breakdown | shop analytics by-spu (extra required type) / by-land-page (required dimensions) / by-utm |
| 搜索词分析 / 搜了没结果的词 / on-site search keywords | shop analytics search-keyword --data '{…,"sort_by":"count","sort_direction":"desc"}' (has_result is a string "0"/"1") |
| 流量渠道 / 流量来源 / traffic by channel | shop analytics traffic-channel (required dimensions + metrics); valid channel names: shop analytics traffic-channel-options |
| Media library — 上传文件到素材库 | shop +upload-file --source-url <url> [--source-url <url> …] (http(s) URLs); a local file → shop files upload --data '{"original_source_list":["data:<mime>;base64,…"]}' |
| Check an upload task / 上传进度 | shop files task --params '{"task_id":"<id>"}' (the shortcut already fetches it once) |
| Browse the media library / 看素材库 | shop files list (folder defaults to all_upload; page_size ≤ 300) |
| File detail / delete a file | shop files {get,delete} --params '{"file_uri":"<uri>"}' |
| Metafields — 店铺级 metafield | shop metafields-shop create --data '{"namespace":"…","key":"…","type":"string","value":"…"}' → references/metafields.md |
| Metafield ON a product/order/customer… (给商品加字段) | shop metafields-resource create --params '{"owner_resource":"product","owner_id":"<id>"}' --data '{"definition_id":"…","namespace":"…","key":"…","type":"…","value":…}' |
| Define a metafield schema (元字段定义) | shop metafields-definition create --params '{"owner_resource":"…"}' --data '{"name":"…","namespace":"…","key":"…","type":"…"}' |
| Blog content — 发博客文章 / new blog post | shop articles create --data '{"article":{"title":"…","content":"…","blog_ids":["…"]}}' → references/blogs-articles.md |
| Manage blogs (containers of articles) | shop blogs list / shop blogs create --data '{"blog":{"Title":"…"}}' (title key is capital Title) |
| Custom pages — 自定义页面 / 关于我们 / About Us | shop pages create --data '{"page":{"title":"…","content":"…"}}' → references/pages-redirects.md |
| Navigation menus — 看导航菜单 / list menus & items | shop menu list (built-ins have ids header / footer; one menu: --params '{"ids":["header"]}') |
| 新建菜单 / create a custom menu | shop menu create --data '{"title":"…","children":[…]}' (custom menus only) |
| 改菜单名 / 改菜单项 / edit a menu | shop menu update --params '{"id":"<menu-id>"}' --data '{"title":"…"}' — sending children replaces the whole item tree (see Gotchas) |
| 删菜单 / delete a custom menu | shop menu delete --params '{"id":"<menu-id>"}' (built-in header / footer can't be deleted) |
| URL redirect — 301 / 跳转 | shop redirects create --data '{"redirect":{"from_url":"…","redirect_url":"…","status":"…"}}' (status required — see Gotchas) |
| Markets — 建市场 / 发布到某国 | shop markets create --data '{"name":"…","countries":["JP"]}' → references/markets.md |
| Languages — 开通语言 / 多语言 | shop languages supported → add → enable → publish → references/languages.md |
| Carrier services — 注册实时运费报价承运商 | shop carrier-services create --data '{"carrier_service":{"name":"…","callback_url":"…","carrier_code":"…"}}' → references/carrier-services.md |
Config domain — no full ask-matrix, but these writes have required no-default fields.
Missing or ambiguous → ask with AskUserQuestion (one batch), never fabricate. Never ask
about defaulted/optional fields.
| Operation | Must ASK if missing | Default silently / never ask |
|---|---|---|
+upload-file | a public URL, or where the local file is (never invent either) | — |
pages create | title | url, meta_*, independent_seo — omit; never fabricate SEO fields |
redirects create | from_url, redirect_url; status value if the wording doesn't settle it (enum not in schema — see Gotchas) | — |
metafields-shop create | namespace, key, type, value | description, definition_id (optional here) |
metafields-resource create | owner_resource+owner_id, definition_id, namespace, key, value | description; type — resolve from the definition (metafields-definition get) before asking |
markets create | name, countries | confirm — never silently pass true (it deletes occupied markets) |
carrier-services create | name, callback_url (the user's own endpoint — never invent), carrier_code | active, logo, short_desc |
languages add | the language(s); resolve IETF codes via languages supported | — |
info update | the new customer_email | shop_id — resolve it yourself via info get, don't ask |
menu create | title; each item's title + link target (resolve ids yourself) | category (always custom 3), target, disabled |
menu update | which menu (resolve the id via menu list), the change | title / category — omit to keep them |
Destructive leaves (pages batch-delete, markets delete — irreversible, files delete,
redirects delete, metafields-* delete, menu delete, menu update with children) →
--dry-run first + restate, per shoplazza-common → Safety protocol.
Reads like another domain (or another domain reads like shop):
| Sounds like | Actually belongs to | Command |
|---|---|---|
| 给商品/订单加元字段 / metafield on a product | HERE — all metafields live in shop, even product-owned ones | shop metafields-resource create --params '{"owner_resource":"product",…}' |
| 商品图片 / 主图 / image attached to a product | shoplazza-products | products images create |
| 上传文件 / 素材库 / media library asset | HERE | shop +upload-file / shop files … |
| 销量/流量/转化 报表 / sales & traffic analytics | HERE | shop analytics … |
| 订单量统计 / 搜订单 / order count & search | orders domain | orders +count / orders +search |
| 实时运费报价承运商 / rate-quoting carrier at checkout | HERE | shop carrier-services … |
| 物流商查询 / 运单追踪 / fulfillment tracking carriers, shipping zones | orders domain | orders tracking-carriers / orders shipping-schemas |
| 自定义页面 / 关于我们 / brand-story page | HERE (content, not theming) | shop pages create |
| 导航菜单 / 菜单项 / add a link to the main menu | HERE (menu content) | shop menu list → shop menu update |
| 页头显示哪个菜单 / bind a menu to the header card | shoplazza-themes | themes +edit (the card's link_list setting) |
| 改模板 / 装修 / theme & template editing, layout of a custom page | shoplazza-themes | themes +page / themes +edit / themes template … |
| 博客/文章 blog & articles | HERE (not product reviews) | shop blogs / shop articles |
| 买家评价 / product reviews | shoplazza-products | products comments … |
| 优惠码 / 折扣 / discount codes | shoplazza-discounts | discounts +* |
Authorization is by domain (the unit of --domain), not per command. Authorization flow
is in shoplazza-common → Authentication.
| Operation | Needs | Grant |
|---|---|---|
read (info get, * list/get/count) | the sub-area's read scope | auth login --domain shop |
write (* create/update/delete, languages enable/publish, …) | the sub-area's write scope | auth login --domain shop |
Each sub-area has its own read_/write_ pair: shop (info, markets, languages, menu),
collection (blogs, articles), shop_navigation (pages, redirects), product
(carrier-services); files, metafields and analytics need none. --domain shop expands into all of them.
Domain-specific pitfalls only (generic ones — .data prefix, --jq without -r — are in
shoplazza-common).
| Symptom | Cause | Fix |
|---|---|---|
| Analytics call rejected / empty | Every analytics report is POST (only traffic-channel-options is a GET): filters go in --data, not --params; begin_time/end_time are unix-second timestamps passed as STRINGS ("1782864000") | Compute the timestamps, quote them as strings, send via --data |
traffic-channel 400 cannot unmarshal object … filters of type string | Its filters is a JSON object encoded as a string; search-keyword's has_result is also a string | "filters":"{\"last_referrer_first_show\":{\"operator\":\"in\",\"value\":[\"Social\"]}}"; "has_result":"0" — see references/analytics.md |
Menu items lost after menu update | children replaces the whole item tree: items left out are deleted, [] clears the menu | Read the menu first, edit the full tree, send all of it back (keep each existing item's id); omit children to change only the title |
| Nested menu items came back flat / nesting lost | menu list returns items flat — a sub-item points at its parent via pid; writes take nesting only as nested children (no pid field) | Rebuild the tree from pid before sending children |
Unsure what to put in a menu item's url_obj | The link type values are not enumerated in the schema | Copy url_obj from an existing item of the same kind in menu list (type + source_id + url); never invent a type or source_id |
| Tried to update shop name/address | info update exposes one editable field: shop.customer_email | Anything else is not updatable via this endpoint; say so |
info update needs a shop_id the user can't know | shop_id is a required path param | Resolve first: shop info get --jq '.data.id' |
| Asked to upload a local file | +upload-file takes only http(s) URLs; the API fetches each one | Base64 it into a data: URI and send shop files upload --data @body.json ({"original_source_list":["data:image/png;base64,…"]}), then check shop files task |
| Upload "done" but file missing | Upload is an async task — POST returns a task_id; the shortcut auto-fetches the task once | Re-check with shop files task --params '{"task_id":"…"}' until status/success_list settle |
blogs create title ignored / rejected | Blog title key is capital Title (required, 1–100), not lowercase title | shop blogs create --data '{"blog":{"Title":"…"}}' — confirm fields via schema shop.blogs.create |
What values can redirects status take? | status is required but the schema documents no enum — do not invent one | Check schema shop.redirects.create, inspect existing rules (shop redirects list --jq '.data.redirects[].status') or the OpenAPI docs; ask the user if still ambiguous |
metafields-resource create rejected, metafields-shop create fine | Asymmetry: resource-level requires definition_id; shop-level doesn't (optional). Type enums differ too (shop: JSON/string; resource: single_line_text_field, integer, …) | See references/metafields.md |
| Language published but market relations vanished | languages publish is a full replacement — market_ids: [] removes ALL relations | Always send the complete target list |
| Added a language, storefront unchanged | Newly added languages are disabled by default; unsupported codes are silently dropped | languages enable after add; verify codes via languages supported |
markets create/update with confirm: true deleted other markets | A country may belong to only ONE market; confirm: true auto-deletes the occupied markets | Preview with markets preview, --dry-run, restate what gets deleted, get explicit consent |
metafields-definition get 404s with id in path | Its id is a query param, not a path segment | shop metafields-definition get --params '{"id":123456}' |
# 1. Store's primary domain and currency
shop info get --jq '{domain: .data.domain, currency: .data.currency}'
# 2. Change the customer-service email (only editable field; two steps)
SHOP_ID=$(shop info get --jq '.data.id')
shop info update --params "{\"shop_id\":\"$SHOP_ID\"}" --data '{"shop":{"customer_email":"[email protected]"}}'
# 3. Sales + order count, 2026-07-01 .. 2026-07-15 (unix seconds as STRINGS)
shop analytics overview --data '{"begin_time":"1782864000","end_time":"1784159999","indicator":["sales","orders"]}'
# 4. Best-selling SKU over a window (sort desc by sales metric)
shop analytics by-sku --data '{"begin_time":"1782864000","end_time":"1784159999","sort_by":"sales_total","sort_direction":"desc","page_size":10}'
# 5. Upload a public image to the media library (async task)
shop +upload-file --source-url https://example.com/banner.png
# 6. Create an "About Us" custom page
shop pages create --data '{"page":{"title":"关于我们","content":"我们是一家来自杭州的 DTC 品牌"}}'
# 7. Permanent URL redirect (status REQUIRED — pin the value via schema/existing rules first)
shop redirects list --jq '.data.redirects[].status' # see what values live rules use
shop redirects create --data '{"redirect":{"from_url":"/old-sale","redirect_url":"/new-sale","status":"<verified-value>"}}'
# 8. Shop-level metafield (no definition_id needed at shop level)
shop metafields-shop create --data '{"namespace":"global","key":"support_phone","type":"string","value":"400-800-1234"}'
# 9. Product-level metafield (owner in --params, definition_id REQUIRED in --data)
shop metafields-resource create --params '{"owner_resource":"product","owner_id":"66880"}' \
--data '{"definition_id":"D8899","namespace":"specs","key":"material","type":"single_line_text_field","value":"cotton"}'
# 10. Launch Japanese and publish it to the Japan market
shop languages supported --jq '.data.languages' # find the exact IETF code
shop languages add --data '{"codes":["ja-JP"]}'
shop languages enable --params '{"language_code":"ja-JP"}'
MARKET_ID=$(shop markets list --jq '.data.markets[] | select(.name=="Japan") | .id')
shop languages publish --params '{"language_code":"ja-JP"}' --data "{\"market_ids\":[\"$MARKET_ID\"]}"
# 11. Rename a custom menu without touching its items (no children = items kept)
shop menu list --jq '[.data.menus[] | {id, title, category}]' # category 3 = custom
shop menu update --params '{"id":"<menu-id>"}' --data '{"title":"Footer links"}'
Titleshoplazza shop <cmd> --helpshoplazza schema shop.<cmd> (nested: schema shop.metafields-resource.create)--dry-run / --jq / safety): ../shoplazza-common/SKILL.mdreferences/analytics.md (opens in a new tab)references/blogs-articles.md (opens in a new tab)references/carrier-services.md (opens in a new tab)references/languages.md (opens in a new tab)references/markets.md (opens in a new tab)references/metafields.md (opens in a new tab)references/pages-redirects.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
shoplazza, store-config, ecommerce, store-analytics, metafields
npx claudepluginhub shoplazza/shoplazza-cli --plugin shoplazza10 skills in this plugin
/shoplazza-billingUse when an app developer needs to bill a Shoplazza merchant for app usage through the CLI — one-time application charges, recurring (subscription) charges, metered usage charges, and app-charge transaction records. Triggers include 应用收费 / 订阅费 / 一次性收费 / 用量费 / 计费 / app billing / recurring / one-time / usage charge. NOT buyer order payments or refunds (那是 shoplazza-orders 的 transactions / +refund)./shoplazza-commonShared foundation for the shoplazza CLI: installing the CLI (安装 CLI / command not found), authentication (auth login — account-level and store-level; 登录 / 授权), auth status/scopes/logout, store switching (auth store use; 切换店铺 / 换店), multi-store profiles (add/list/use/rename/remove/info), the three access tiers (+shortcut / spec leaf / api rest), the output envelope ({ok,data} / .data), --dry-run / --jq / --fields / --format, schema introspection, api rest fallback, update notice, the safety protocol, and how to trust a filtered list read (pagination / has_more / cursor, silently-dropped filters, the exact-match precision ladder). Read this FIRST on first use of the shoplazza CLI, when the CLI is missing, when logging in / authorizing / switching store or profile, on permission errors, when a search or filter looks like it returned too much, and before using any domain skill. Platform developer-docs questions (an app's OAuth, webhook HMAC, Liquid, changelog) → shoplazza-docs./shoplazza-customersUse when the user wants to manage customers (buyers) on a shoplazza store through the CLI — create a customer profile, find a customer by email or phone, get customer details or the total customer count, update names / tags / email or SMS marketing subscription, or manage a customer's shipping addresses including the default checkout address. Triggers include 客户 / 买家 / 顾客 / 客户资料 / 新建客户 / 按邮箱查客户 / 按手机号查客户 / 给客户打标签 / 退订营销 / 收货地址 / 默认地址 / customer profile / new customer / find customer by email or phone / customer count / tag a customer / unsubscribe marketing / shipping address / default address. Finding the customer RECORD by email (按邮箱找客户资料) belongs HERE (customers +search); that customer's ORDER HISTORY (该客户下过的订单 / orders placed by this email) belongs to shoplazza-orders./shoplazza-discountsUse when the user wants to manage discount activities on a shoplazza store through the CLI — promotional campaigns, coupon codes, flash sales, buy-X-get-Y offers, rebates / tiered satisfy-N-get-M discounts, free-shipping codes, M-for-N (Nth-item-off) discounts, discount stacking / combination rules, or coupon (voucher) campaigns. Triggers include 满减 / 折扣码 / 优惠码 / 闪购 / 满X减Y. NOT gift cards (redeemable store credit → shoplazza-products `gift-cards`). NOT showing a sale inside a theme card / 首页促销卡片 (→ shoplazza-themes)./shoplazza-docsSearch and read the Shoplazza developer docs on shoplazza.dev (开发者文档 / 查文档) with `shoplazza docs search --query --locale` / `docs get --url`; no login needed. Use when the user asks how the Shoplazza platform works or what it allows: app development (应用开发), OAuth and access scopes for their own app (应用授权 / 权限范围), verifying webhook HMAC signatures (webhook 验签), app proxy (应用代理), checkout / theme / function extensions (结账扩展 / 主题扩展), theme development and the Liquid reference (主题开发 / Liquid 语法 / 对象 / 过滤器); before writing code that calls the Shoplazza API or Liquid; on an unfamiliar API error or field (报错 / 字段含义); when upgrading API versions (版本升级 / changelog). Prefer it over WebFetch or web search for shoplazza.dev. NOT store data (→ domain skills); NOT a CLI command's params / body / response (→ `shoplazza schema` / `--help`); NOT logging the CLI in (→ shoplazza-common); NOT webhook subscriptions (→ shoplazza-webhook); NOT editing the store's theme or AI cards (→ shoplazza-themes)./shoplazza-ordersUse when the user wants to manage a shoplazza store's orders through the CLI — searching / counting / viewing orders (查订单 / 找订单 / 订单列表 / 订单详情 / 新订单 / order search), shipping and fulfillment (发货 / 标记发货 / 物流 / 运单号 / 改运单号 / ship an order / update tracking), refunding a buyer (退款 / 给顾客退钱 / 退钱给买家 / refund an order — buyer refunds live HERE, not in discounts and not in billing), cancelling / creating / updating / marking orders paid (取消订单 / 代客下单 / 标记支付), an order's payment transactions (订单支付流水 / 支付交易记录 / buyer payment transactions — app-charge transactions → shoplazza-billing), fraud risk records (欺诈 / 风控 / 高风险订单 / order risk), after-sales records (售后 / post-sales), shipping zones and rates (运费区域 / 邮费 / 运费方案 / shipping zones — real-time rate carriers → shoplazza-shop carrier-services), and tracking-carrier lookup (快递承运商 / 运单号识别承运商). A customer's orders by email (按邮箱查某客户的订单) are searched HERE; the customer record itself → shoplazza-customers. NOT product stock / 库存 / 补货 (→ shoplazza-products).Other plugins' skills for the same job