Skip to content
Back to skills

Inventory Sync

ASecurity

Audit and bulk-update Salla product stock by SKU, variant or branch

  • 29 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 20, 2026
ai-agentsgoapi

Works with

  • api

Security analysis

A100/100

Scanned September 20, 2026

npx -y skills add theYahia/WWmcp --skill inventory-sync --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Inventory Sync?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Inventory Sync
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/theyahia-inventory-sync/badge)](https://www.skillsdirectory.com/skills/theyahia-inventory-sync)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: inventory-sync
description: Audit and bulk-update Salla product stock by SKU, variant or branch
argument-hint: "[sku or product name]"
---

# /inventory-sync — Stock Audit and Bulk Update

## Algorithm

1. Survey the catalogue with `list_products` (page, per_page up to 50, status: sale / out / hidden / deleted). Status `out` is the fastest way to see what is already sold out.
2. Resolve a single item: `get_product_by_sku` (sku) when the user gives a SKU, `get_product` (product_id) when they give an ID.
3. If stock is branch-specific, get the branch IDs with `list_branches` (page, per_page).
4. 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.
5. Single-field corrections (name, price, quantity, status) on one product: `update_product` (product_id, plus the fields to change).
6. Read back with `get_product_by_sku` or `get_product` and show before/after.

## Notes

- `bulk_update_quantities` is **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
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.