/shoplazza:shoplazza-themesfrom Shoplazza
Manages Shoplazza store themes via CLI: page/card editing, theme settings, app embeds, custom templates, AI cards, theme market operations, version history, and page builder.
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"), schema, api rest, auth / profiles, and the
safety protocol. This file covers only the themes domain and never repeats them.
A store can hold many themes; exactly one is published (what buyers see). This skill covers
the "Store theme operations" half of themes --help: finding and managing installed themes,
the theme market, editing theme pages (cards, blocks, global settings, app embeds), custom
templates, AI cards (generated liquid blocks), theme files and version history, and the page
builder. Local theme development (init / serve / push / pull / package / share /
env) is out of scope — see themes <cmd> --help.
Page edits go through three layers:
| Layer | What happens | Who sees it |
|---|---|---|
Edit session (oseid) | +edit, session update-config, app enable/disable, block +edit write here | Only the preview link |
Save (--promote) | The whole session is written into that theme's draft | Still nobody on the storefront |
Publish (--publish / themes publish) | That theme becomes the store's live theme, replacing the old one | Buyers, immediately |
Tiers: shortcuts +page (read) / +edit (write) / +card-schema / +preview and
block +edit / block +get come first; spec leaves (--params / --data) cover the rest.
Intent → command, highest-fit tier first. Authoritative flags live in themes <cmd> --help and
schema themes.<cmd>, not this table. Shortcuts (+…) take the theme as -t <theme_id>: on
+page / +edit / block +edit / block +get an omitted -t means the published theme;
+preview and +card-schema require it. Spec leaves have no -t. Where the path has
{theme_id} (themes get, file *, template *, …) it goes in --params; the edit-session
leaves (app enable/disable, section set-props, block add/remove/set-props, pb save-block)
take it in the --data body. schema themes.<cmd> shows which.
| User intent | Command | Details |
|---|---|---|
| Which themes / which one is live / theme detail & version | themes list --params '{"published":"1"}' · themes get --params '{"theme_id":"<id>"}' | query.md |
| Storefront preview link (optionally with unsaved edits) | themes +preview -t <id> [--oseid <oseid>] [--path /products/<handle>] | query.md |
| Rename / duplicate / upgrade / delete / publish a theme | themes rename · duplicate · upgrade · delete · publish | lifecycle.md |
| Browse the theme market / install a theme | themes market list · themes market install --params '{"remote_theme_id":"…"}' | market.md |
| List a theme's page templates | themes +page -t <id> --list | page-read.md |
| Read a page's cards; open an edit session | themes +page -t <id> --template <name> → .data.oseid | page-read.md |
| Read one card: current values, field schema, block targets | themes +page -t <id> --template <name> --session <oseid> --section <sid> --include schema | page-read.md |
| Change card settings, add/remove/move blocks, hide/move/delete a card | themes +edit -t <id> --template <name> --session <oseid> --ops '[…]' | card-edit.md |
| Save the draft / publish it | themes +edit -t <id> --template <name> --session <oseid> --ops '[]' --promote [--publish] | card-edit.md |
| Add a new card to a page; which cards can be added | themes section cards → themes +card-schema → +edit add_section | card-add.md |
| Theme-wide settings (colors, fonts, layout, buttons, cart…) | themes session get-config / session update-config | global-config.md |
| App embeds and injected scripts: list, turn on/off | themes app list · themes app enable · themes app disable · themes app extensions | apps.md |
| Custom templates bound to products / collections / pages | themes template list · create · update · delete | page-template.md |
| Generate a new AI card (asked for explicitly, or no existing card fits) | themes block +edit -t <id> --session <oseid> --content <file> --template <name> | block/generate-block.md |
| Change an AI card's source / delete it | themes block +get → block +edit --id <gen_id> · themes block delete-gen | block/edit-block.md · block/delete-block.md |
| Theme files and their version history | themes file tree · file get/create/update/rename/delete · themes version list/records/get | files-versions.md |
| Page-builder (advanced) cards and templates | themes pb … | page-builder.md |
| Low-level session / card / block calls the shortcuts don't cover | themes session … · themes section … · themes block add/remove/set-props | raw-leaves.md |
Every page edit is one stateful flow. Keep theme_id and oseid for the whole task.
theme_id (Rules → 1). Pass -t <theme_id> on every read and write below.+page -t <id> --template <name> → oseid, card rows
(section_id, type, area). Reuse an oseid from earlier in the conversation with
--session; a +page without --session opens a NEW, empty session.--session <oseid> --section <sid> --include schema
→ current settings, field schema (label, options, min/max, visibleOn), block rows
with ready-made targets. Copy targets verbatim.+edit --ops (cards) · session update-config (theme
settings) · app enable/disable · block +edit (AI cards) → applied, preview_url.+page --session … --section …, get-config,
block +get). Report the re-read state, not what you sent.labels, old → new) and give the
preview_url. Nothing is live yet.+edit … --session <oseid> --ops '[]' --promote → promoted:true.
Then ask whether to publish.+edit … --ops '[]' --promote --publish → published:true. With nothing pending, themes publish does the same switch.themes list --params '{"published":"1"}'). A theme named without an id: match it per
query.md → Finding a theme by name — every page,
projected, matched yourself, never select by name inside --jq (market lookups follow
market.md); several or no matches → ask.
Exception: for rename, delete and publish never fall back to the live theme — when
nothing points to a theme, run that list and ask with its rows as the candidates. A request
that names the live theme itself ("the one I'm using") does point to it.
Omitting -t on a later call silently switches to the published theme.+page / +edit / update-config / app / block call of
the task carries the same oseid.add_section (card-add.md).label (merchant-facing name), never by guessing keys. Row count vs per-row
count, and PC vs mobile fields, are separate fields.shop markets list →
the primary market → shop markets list-language). Text the user gives is written verbatim,
and copy you draft for the same card follows that text's language.--dry-run → restate → wait for consent: themes publish,
+edit --publish, themes delete, themes template delete, themes block delete-gen,
themes pb delete-template, session promote with force:true, file delete on any theme,
and every other direct file write on the published theme
(files-versions.md). Everything else runs directly, with no
dry-run and no "shall I go ahead?" — a rename with the id and new name known is one call. This
list replaces shoplazza-common's dry-run-first rule for this domain: session draft writes (even a
batch +edit with remove_section) reach no buyer until a save and publish."改一下首页 / 换个主题 / 加一张卡片" is an action, not a question:
themes list, +page), run
that read in the same turn and ask with its rows — never make the user name it blind or offer
to list it.| User says | Command | How to extract values |
|---|---|---|
| 我有哪些主题 / 现在用的哪个主题 / which theme is live | themes list | live → --params '{"published":"1"}'; count → .data.count |
| 预览一下 / 给我预览链接 / preview | themes +preview | page → --path (/, /products/<handle>, …); unsaved edits → --oseid |
| 首页有哪些模块 / what's on the homepage | themes +page --template index | page name → --template (index, product, collection, cart, …) |
| 把轮播图标题改成… / 改文案 / 换图 / change the banner text | +page → +edit replace_props / update_slot | card from wording → section_id; field by label; value verbatim |
| 隐藏 / 删掉 / 上移 这个模块 / hide / remove / move a section | +edit set_visibility / remove_section / move_section | target = the card's section_id; move → position: before:/after:<sid> |
| 加一个 xx 卡片 / add a testimonials section | section cards → +edit add_section | name/need → a returned items[].id; nothing fits → AI card |
| 改主题配色 / 换字体 / change theme colors or fonts | session get-config → update-config | field by label; fonts only from fonts.md |
| 开启 / 关闭 xx 弹窗 app / turn on an app embed | themes app list → themes app enable / disable | current state and block_id from themes section list (apps.md) |
| 给某商品单独做个详情页 / custom product template | themes template create | type from wording; bindings from real ids |
| 生成一个 xx 卡片 / 自定义卡片 / generate a card | block +edit | an explicit ask to generate → generate; a request for an effect → existing cards first (block/generate-block.md → When to generate) |
| 保存 / 发布 / save / publish the changes | +edit --ops '[]' --promote [--publish] | publish needs consent |
| 安装 xx 主题 / install theme X | market list → market install | preset from wording, else Default (no Default row → omit preset) |
| 主题改名 / 复制 / 升级 / 删除 / rename, duplicate, upgrade, delete | themes rename / duplicate / upgrade / delete | only the "which theme" half locates the theme |
| Operation | Must ASK if unspecified | Infer if possible | Default silently |
|---|---|---|---|
+edit value change | a value with no direction ("调一下") — ask for that field only | direction ("更大", "深一点") → pick from min/max/options | other fields stay untouched |
add_section | which card, when several candidates fit | the card from name / need; position from wording (position: before:/after:<sid>, first) | position (end of the page area) |
themes rename | the new name; the theme when nothing in the conversation points to one — run themes list first and put its rows in the question, even when the new name is missing too (Rules → 1 exception) | the theme | — |
themes duplicate | — | source theme | copy_theme_name is required: send <source name> copy unless a name was given |
themes upgrade | — | the theme (has_newest_version must be true) | new theme name |
themes market install | which theme when the name is ambiguous | preset from wording | preset Default (or omitted when there's no such row), server-side name |
themes template create | bindings the user named but that can't be resolved | type from wording | from: "default", no bindings |
themes publish / delete / template delete | consent (always); for publish / delete, the theme when nothing points to one (Rules → 1 exception) | the theme / template | — |
--area (default all) · --include · from on template create · duplicate / install / upgrade
names · install preset (Default) · limit / page · which session (reuse the current one).
Never ask "shall I go ahead?" before rename, duplicate, upgrade, market install, template create / update, or any draft write (+edit without --publish, update-config, app enable /
disable, block +edit): once the values are known, run it. Consent is only for the operations in
Rules → 8.
| Sounds like themes | Actually belongs to | Command |
|---|---|---|
| 自定义页面 content / 关于我们 page text | shoplazza-shop | shop pages … (a page custom template only changes its layout — page-template.md) |
| 博客文章 / blog posts | shoplazza-shop | shop articles … |
| 导航菜单 items / menu entries | shop menu | shop menu list / update (binding a menu to a header card is here) |
| 商品图片 / product images | shoplazza-products | products images … (card image fields are here) |
| 创建限时促销 / create a flash sale | shoplazza-discounts | discounts +flashsale (binding it to a card is here) |
| 上传素材 / media library files | shoplazza-shop | shop +upload-file / shop files … (theme assets/ files are here) |
| 应用市场安装 / install an app from the app store | merchant admin | not a CLI action (turning its theme embed on/off is here) |
| Liquid 语法 / 对象 / 过滤器 / Liquid reference | shoplazza-docs | docs search --query "<filter or object>" (writing an AI card's Liquid is here) |
| 本地开发主题 / theme dev workflow | shoplazza-docs for how-to questions | docs search; the commands are themes init/serve/push/pull (see --help, not covered by this skill) |
| Operation | Needs | Grant |
|---|---|---|
read (list, get, +page, get-config, app list, file tree/get, version *, market list) | themes read scope | auth login --domain themes |
write (+edit, update-config, app enable/disable, template *, block *, file *, lifecycle, install, publish) | themes write scope | auth login --domain themes |
--domain themes expands to read_themes, write_themes and read_shop; check with
shoplazza auth scopes.
| Symptom | Cause | Fix |
|---|---|---|
| Earlier edits missing from a read | +page without --session opened a new session | Always pass the task's --session <oseid> |
| Edits landed on the live theme instead of the one being discussed | A call omitted -t | Pass -t <theme_id> on every call of the task |
+preview: unknown flag: --theme | Only -t / --theme-id there | Use -t <theme_id> |
| Saving included changes from earlier turns | --promote saves the whole session | Say so in the summary |
| No confirmation prompt before publish | The y/N prompt only appears on an interactive terminal | Get the user's consent yourself (Rules → 8) |
update-config / app enable have no --promote | They share the page session | Save / publish with +edit … --ops '[]' --session <oseid> --promote |
update-config accepted a wrong value | It stores anything: bad colors, out-of-range numbers, unknown keys | Check the value against the get-config schema before writing; re-read after |
Header / footer / announcement change via update-config fails | Global cards are cards | Edit them with +edit using their section_id (e.g. header) as the target |
app enable / disable → 422 … not found in theme app_embeds/script_tags (some backends: a bare 500) | The id isn't stored in this theme; ids from app list often differ | Use the stored id from themes section list (apps.md); not stored → can't be switched from the CLI. Don't retry the same id |
invalid source: gen from section cards | Some backends don't accept that source | Retry without gen |
Guessed a global card name (cart_drawer…) that isn't there | Global-area cards differ per theme | Read +page --area global; the section_id equals the type |
| A file change went live at once | file create/update/rename/delete bypass sessions; on the published theme they are live | Dry-run → restate → consent first |
| New theme id after duplicate / upgrade / install | Those create a new, unpublished theme | Use the new id for everything after; publish separately |
themes duplicate errored, yet a copy appeared | The copy can be created even when the call returns an error | Never retry blindly — check themes list for the copy first |
themes delete refused | The published theme and the store's default theme can't be deleted | Published: list the unpublished themes (published:"0") and ask which to publish first; default: no way (lifecycle.md) |
| Template bindings vanished | template update relations replaces the whole set | Send the complete list; template list only shows a count, so ask for the full set when unsure |
| AI card saved but broken on the storefront | The server only rejects liquid parse errors and a missing or invalid {% schema %} | Run block/self-check.md before writing |
order / order_verify template edits can't be checked | Those pages can't be previewed | Say it isn't supported |
# Which theme is live?
themes list --params '{"published":"1"}' --jq '.data.themes[] | {id, name, merchant_theme_name}'
# Open a session on a theme's homepage and list its cards
themes +page -t <theme_id> --template index --jq '{oseid: .data.oseid, areas: .data.areas, sections: [.data.sections[] | {section_id, type, area, name, visible} + ([.blocks[]? | select(.type | startswith("blocks/gen_")) | {type, cname, target}] | if length > 0 then {ai_cards: .} else {} end)]}'
# Change one card field, re-read it, then save on request
themes +edit -t <theme_id> --template index --session <oseid> --ops '[{"op":"replace_props","target":"<section_id>","props":{"<field_id>":<value>}}]'
themes +page -t <theme_id> --template index --session <oseid> --section <section_id> --include schema
themes +edit -t <theme_id> --template index --session <oseid> --ops '[]' --promote
shoplazza themes <cmd> --help · params/body: shoplazza schema themes.<cmd>../shoplazza-common/SKILL.mdreferences/apps.md (opens in a new tab)references/block/block-cli.md (opens in a new tab)references/block/concepts.md (opens in a new tab)references/block/delete-block.md (opens in a new tab)references/block/edit-block.md (opens in a new tab)references/block/edit-discipline.md (opens in a new tab)references/block/generate-block.md (opens in a new tab)references/block/kind-and-components.md (opens in a new tab)references/block/kinds/product-card-async.md (opens in a new tab)references/block/kinds/product-card-interaction.md (opens in a new tab)references/block/kinds/product-card.md (opens in a new tab)references/block/kinds/product-single.md (opens in a new tab)references/block/liquid-rules.md (opens in a new tab)references/block/ljs/ljs-accordion.md (opens in a new tab)references/block/ljs/ljs-anchor.md (opens in a new tab)references/block/ljs/ljs-animation.md (opens in a new tab)references/block/ljs/ljs-carousel.md (opens in a new tab)references/block/ljs/ljs-countdown.md (opens in a new tab)references/block/ljs/ljs-currency.md (opens in a new tab)references/block/ljs/ljs-data-source.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
shoplazza, theme-management, storefront, liquid-blocks, page-builder
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