/shopify-admin-skills:shopify-admin-multi-location-inventory-auditfrom shopify-admin-skills
Audits inventory levels across all active Shopify locations, flagging variants where Available is negative or Committed exceeds On Hand — indicating inventory sync drift.
Ships in shopify-admin-skills. 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.
None: SKILL.md is the whole skill.
Surfaces inventory sync discrepancies across locations — specifically variants where available is negative or committed > on_hand, which indicate drift between Shopify's committed counter and actual physical stock. Common causes: 3PL delays posting returns, WMS deductions stacking with Shopify's committed count, or multi-store sync issues. Read-only — no mutations. Replaces manual inventory reconciliation spreadsheets and the need to navigate each location separately in the Shopify admin.
shopify auth login --store <domain>read_products, read_inventory, read_locations| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| store | string | yes | — | Store domain (e.g., mystore.myshopify.com) |
| format | string | no | human | Output format: human or json |
| dry_run | bool | no | false | Preview operations without executing mutations |
| location_ids | array | no | — | Specific location GIDs to audit (default: all active locations) |
| flag_negative_available | bool | no | true | Flag variants where available < 0 |
| flag_committed_exceeds_onhand | bool | no | true | Flag variants where committed > on_hand |
| include_untracked | bool | no | false | Include variants with inventory tracking disabled |
OPERATION: locations — query
Inputs: first: 50, query: "is_active:true"
Expected output: List of active location IDs and names; filter by location_ids parameter if provided
OPERATION: inventoryItems — query (via location.inventoryLevels)
Inputs: Per location: fetch inventory levels with available, committed, onHand quantities per variant
Expected output: Per-location inventory matrix; compute discrepancies; collect flagged variants
# locations:query — validated against api_version 2025-01
query ActiveLocations($first: Int!) {
locations(first: $first, query: "is_active:true") {
edges {
node {
id
name
isActive
inventoryLevels(first: 250) {
edges {
node {
id
available
item {
id
sku
tracked
variant {
id
displayName
product {
id
title
}
}
}
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
}
}
}
# inventoryItems:query — validated against api_version 2025-01
query InventoryItemLevels($id: ID!, $after: String) {
location(id: $id) {
id
name
inventoryLevels(first: 250, after: $after) {
edges {
node {
id
available
item {
id
sku
tracked
inventoryLevel(locationId: $id) {
available
incoming
}
variant {
id
displayName
inventoryQuantity
product {
id
title
}
}
}
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
}
Note: inventoryItems:query in the frontmatter represents querying inventory item data via location inventory levels. The Shopify Admin API surfaces inventory per location through location.inventoryLevels.
Claude MUST emit the following output at each stage. This is mandatory.
On start, emit:
╔══════════════════════════════════════════════╗
║ SKILL: multi-location-inventory-audit ║
║ Store: <store domain> ║
║ Started: <YYYY-MM-DD HH:MM UTC> ║
╚══════════════════════════════════════════════╝
After each step, emit:
[N/TOTAL] <QUERY|MUTATION> <OperationName>
→ Params: <brief summary of key inputs>
→ Result: <count or outcome>
On completion, emit:
For format: human (default):
══════════════════════════════════════════════
OUTCOME SUMMARY
Locations audited: <n>
Variants scanned: <n>
Discrepancies found: <n>
Negative available: <n>
Committed > On Hand: <n>
Errors: 0
Output: inventory-audit-<date>.csv
══════════════════════════════════════════════
For format: json, emit:
{
"skill": "multi-location-inventory-audit",
"store": "<domain>",
"started_at": "<ISO8601>",
"completed_at": "<ISO8601>",
"dry_run": false,
"steps": [
{ "step": 1, "operation": "ActiveLocations", "type": "query", "params_summary": "first: 50, is_active: true", "result_summary": "<n> locations", "skipped": false },
{ "step": 2, "operation": "InventoryItemLevels", "type": "query", "params_summary": "per location, first: 250", "result_summary": "<n> variants scanned", "skipped": false }
],
"outcome": {
"locations_audited": 0,
"variants_scanned": 0,
"discrepancies_found": 0,
"negative_available_count": 0,
"committed_exceeds_onhand_count": 0,
"errors": 0,
"output_file": "inventory-audit-<date>.csv"
}
}
CSV file inventory-audit-<YYYY-MM-DD>.csv with columns: location_name, product_title, variant_title, sku, available, flag.
Also displays an inline summary table:
| Location | Variants Scanned | Discrepancies | Negative Available | Committed > On Hand |
|---|
| Error | Cause | Recovery |
|---|---|---|
| No locations returned | No active locations found | Verify at least one active location in Shopify admin |
inventoryLevels empty for a location | Location has no inventory assigned | Expected for fulfillment-only or virtual locations |
| Rate limit (429) | Large inventory + multiple locations | Reduce page size per location to 100 |
item.tracked: false for all variants | Store uses untracked inventory | Enable tracking or set include_untracked: true |
available value does not always indicate a real problem — it can occur legitimately during flash sales. Cross-reference with your order volume before making manual corrections.inventory-adjustment skill to apply corrections immediately after the audit identifies discrepancies.location_id for targeted audits (e.g., just your main warehouse) to reduce API calls on large catalogs.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
116 skills in this plugin
/shopify-admin-abandoned-cart-recoveryQuery checkouts abandoned in the last N days, generate unique discount codes per customer, and tag them for re-engagement./shopify-admin-address-correctionUpdate the shipping address on an unfulfilled order before it ships./shopify-admin-agentic-crawler-accessEdit the theme's robots.txt.liquid to explicitly allow AI crawlers (GPTBot, ClaudeBot, PerplexityBot, Google-Extended, OAI-SearchBot, Amazonbot) so AI assistants are permitted to read the catalog./shopify-admin-agentic-description-enrichmentRewrite thin product descriptions into structured, fact-rich copy (materials, fit, use-cases, the words shoppers actually type) so AI agents have something concrete to quote and match./shopify-admin-agentic-image-alt-textGenerate and set descriptive alt text on product images so AI agents (which can't 'see' pixels) can understand and recommend what each product looks like./shopify-admin-agentic-llms-txtGenerate and publish an /llms.txt guide (brand summary, flagship products, key policies, contact) via a theme template so AI assistants get a curated, machine-readable map of the store.npx claudepluginhub 40rty-ai/shopify-admin-skills --plugin shopify-admin-skillsOther plugins' skills for the same job