AGENT SKILL
inventory-sync
Audit and bulk-update Salla product stock by SKU, variant or branch
适用职业产品经理
- License 许可
- MIT
- 所属仓库
- theYahia/WWmcp
- 最近更新
- 2026-09-26
- Stars
- ★ 38
- Forks
- 5
01 前言 Front Matter
- name
- inventory-sync
- description
- Audit and bulk-update Salla product stock by SKU, variant or branch
- argument-hint
- [sku or product name]
03 SKILL.md 正文
/inventory-sync — Stock Audit and Bulk Update
Algorithm
- Survey the catalogue with
list_products(page, per_page up to 50, status: sale / out / hidden / deleted). Statusoutis the fastest way to see what is already sold out. - Resolve a single item:
get_product_by_sku(sku) when the user gives a SKU,get_product(product_id) when they give an ID. - If stock is branch-specific, get the branch IDs with
list_branches(page, per_page). - Push quantities with
bulk_update_quantities(products — an array of items). Each item takes:- identifer_type — whether identifer holds a product id, variant id or SKU;
- identifer — the actual id or SKU value;
- quantity — the new number;
- mode — how quantity is applied;
- unlimited_quantity, branch, reason_id — optional.
- Single-field corrections (name, price, quantity, status) on one product:
update_product(product_id, plus the fields to change). - Read back with
get_product_by_skuorget_productand show before/after.
Notes
bulk_update_quantitiesis queued — Salla accepts the request and applies it asynchronously, so it may take minutes. A read straight after the call can still show the old number; say so instead of retrying blindly.- Do not batch more than the user has actually confirmed. Show the full table of intended changes first.
- The parameter is spelled identifer / identifer_type in the API — keep that spelling.
Response Format
## Salla stock
### Out of stock (status: out)
| SKU | Product | Qty |
|-----|---------|-----|
| MUG-BLU-01 | Blue mug | 0 |
### Queued update (5 items)
| SKU | Was | Will be |
|-----|-----|---------|
| MUG-BLU-01 | 0 | 40 |
Salla queued the job — re-check in a few minutes.
Examples
/inventory-sync
/inventory-sync MUG-BLU-01
/inventory-sync set MUG-BLU-01 to 40
04 同仓库更多 Skills
refund-payment
Возврат по платежу — полный или частичный. Проверяет статус перед возвратом
★ 38
daily-report
Отчёт по платежам за сегодня — суммы, статусы, итого. Использует list_payments
★ 38
create-and-track
Создать платёж в ЮKassa и показать ссылку для оплаты. Использует create_payment и get_payment
★ 38
check-account
Проверка статуса магазина ЮKassa — тестовый/боевой, фискализация, ID
★ 38
semantic-core
Сбор семантического ядра под русский рынок — частотность, расширение, сезонность
★ 38
geo-priority
Где спрос по фразе выше среднего — регионы РФ по объёму и affinity для геотаргетинга
★ 38