shopify-admin-inventory-transfer-between-locations
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "shopify-admin-inventory-transfer-between-locations" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-6bfdfedca5429526c4f74520bfb11317cbf568295108d49e690e064585dc069b. Verify the upstream source and version against https://github.com/40RTY-ai/shopify-admin-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Move inventory units from one location to another: decrease the inventory at the source location and increase the inventory at the destination location to reflect the transfer between locations.
Introduction source: third_party · 40RTY-ai · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Moves inventory units from one location to another by decrementing the source and incrementing the destination.
- Inputs and outputs
- CSV file `inventory_transfer_<YYYY-MM-DD>.csv` with columns: `sku`, `product_title`, `inventory_item_id`, `source_location`, `destination_location`, `quantity_transferred`, `source_qty_before`, `source_qty_after`, `destination_qty_before`, `destination_qty_after`
- Software, accounts and paid services
- Authenticated Shopify CLI session: `shopify store auth --store <domain> --scopes read_products,write_inventory,read_inventory` API scopes: `read_products`, `read_inventory`, `write_inventory` Both source and destination must be active Shopify locations
- Testing
- Not tested
Browse files
Frontmatter
name: shopify-admin-inventory-transfer-between-locations
role: merchandising
description: "Moves inventory units from one location to another by decrementing the source and incrementing the destination."
toolkit: shopify-admin, shopify-admin-execution
api_version: "2025-01"
graphql_operations:
- locations:query
- inventoryItems:query
- inventoryAdjustQuantities:mutation
status: stable
compatibility: Claude Code, Cursor, Codex, Gemini CLIPurpose
Transfers a specified quantity of inventory from a source location to a destination location using paired inventory adjustments (decrement source, increment destination). Used for inter-warehouse rebalancing, pre-positioning stock before a sale, or redistributing inventory after a location change. Replaces manual inventory transfer in Shopify Admin.
Prerequisites
- Authenticated Shopify CLI session:
shopify store auth --store <domain> --scopes read_products,write_inventory,read_inventory - API scopes:
read_products,read_inventory,write_inventory - Both source and destination must be active Shopify locations
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| store | string | yes | — | Store domain (e.g., mystore.myshopify.com) |
| source_location_id | string | yes | — | GID of the location to move stock FROM |
| destination_location_id | string | yes | — | GID of the location to move stock TO |
| transfers | array | yes | — | List of {sku, quantity} objects to transfer |
| dry_run | bool | no | true | Preview adjustments without executing mutations |
| format | string | no | human | Output format: human or json |
Safety
⚠️
inventoryAdjustQuantitiesdirectly modifies inventory levels. Decrementing the source below zero is possible if the quantity exceeds available stock — the skill will warn but Shopify does not block negative adjustments. Run withdry_run: trueto verify available quantities at the source before committing. This does NOT create a transfer order record in Shopify; it is a direct adjustment.
Workflow Steps
-
OPERATION:
locations— query Inputs:first: 50Expected output: All locations withid,name— validate source and destination IDs exist -
OPERATION:
inventoryItems— query Inputs: Batch lookup by SKU to getinventoryItem.idfor each transfer SKU Expected output: Inventory items with current quantities at source location -
Validate: for each SKU, confirm
available >= quantityat source. Warn if not but proceed ifdry_run: false -
OPERATION:
inventoryAdjustQuantities— mutation Inputs: Two changes per SKU:{ inventoryItemId, locationId: source, delta: -quantity, reason: "correction" }and{ inventoryItemId, locationId: destination, delta: +quantity, reason: "correction" }Expected output:inventoryAdjustmentGroup { changes { delta, location } },userErrors
GraphQL Operations
# locations:query — validated against api_version 2025-01
query ActiveLocations {
locations(first: 50, includeInactive: false) {
edges {
node {
id
name
isActive
fulfillsOnlineOrders
}
}
}
}
# inventoryItems:query — validated against api_version 2025-01
query InventoryLevelsAtLocation($ids: [ID!]!) {
nodes(ids: $ids) {
... on InventoryItem {
id
sku
inventoryLevels(first: 20) {
edges {
node {
location {
id
name
}
quantities(names: ["available", "on_hand"]) {
name
quantity
}
}
}
}
}
}
}
# inventoryAdjustQuantities:mutation — validated against api_version 2025-01
mutation InventoryAdjustQuantities($input: InventoryAdjustQuantitiesInput!) {
inventoryAdjustQuantities(input: $input) {
inventoryAdjustmentGroup {
createdAt
reason
changes {
delta
quantityAfterChange
item {
id
sku
}
location {
id
name
}
}
}
userErrors {
field
message
}
}
}
Session Tracking
Claude MUST emit the following output at each stage. This is mandatory.
On start, emit:
╔══════════════════════════════════════════════╗
║ SKILL: Inventory Transfer Between Locations ║
║ 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>
If dry_run: true, prefix every mutation step with [DRY RUN] and do not execute it.
On completion, emit:
For format: human (default):
══════════════════════════════════════════════
OUTCOME SUMMARY
SKUs transferred: <n>
Total units moved: <n>
Warnings (low stock): <n>
Errors: <n>
Output: inventory_transfer_<date>.csv
══════════════════════════════════════════════
For format: json, emit:
{
"skill": "inventory-transfer-between-locations",
"store": "<domain>",
"started_at": "<ISO8601>",
"dry_run": true,
"source_location": "<name>",
"destination_location": "<name>",
"outcome": {
"skus_transferred": 0,
"units_moved": 0,
"warnings": 0,
"errors": 0,
"output_file": "inventory_transfer_<date>.csv"
}
}
Output Format
CSV file inventory_transfer_<YYYY-MM-DD>.csv with columns:
sku, product_title, inventory_item_id, source_location, destination_location, quantity_transferred, source_qty_before, source_qty_after, destination_qty_before, destination_qty_after
Error Handling
| Error | Cause | Recovery |
|---|---|---|
THROTTLED |
API rate limit exceeded | Wait 2 seconds, retry up to 3 times |
| SKU not found | SKU not in catalog | Log warning, skip transfer for that SKU |
userErrors on adjustment |
Location not stocking item | Log error, skip SKU, continue |
| Quantity would go negative | Transferring more than available | Log warning; abort SKU if dry_run: false |
Best Practices
- Always run with
dry_run: truefirst — the skill verifies available quantities and shows exactly what will change. - This creates raw inventory adjustments, not a transfer order. For audit trail purposes, add a note in the reason field and document the transfer separately.
- For large transfers (50+ SKUs), run during off-peak hours to avoid interfering with live inventory reads by the storefront.
- Pair with
multi-location-inventory-auditto identify which locations have excess stock before deciding transfer quantities.
Version history
-
v1.1.0
GitHub ↗
Original release notes
## 🤖 New category: Agentic Commerce Readiness The fix-it side of the [**agentiq.report**](https://agentiq.report) audit. The audit tells operators *where* AI shopping agents (ChatGPT, Gemini, Perplexity, agentic checkout) can't find, read, or recommend their store. This release adds **10 skills that remediate those findings** via the native Shopify Admin GraphQL toolkit — closing the loop: **audit finds the gap → run the matching skill → re-audit confirms.** Every skill declares the audit **signals** it fixes (`audit_signals` frontmatter), so a finding in the report maps directly to the skill that resolves it. ### Skills - **`agentic-readiness-audit`** — flagship, read-only store-side scorecard that routes each gap to its fix skill - **`agentic-product-jsonld-backfill`** — barcode/GTIN, vendor, product type for complete Product JSON-LD - **`agentic-image-alt-text`** — descriptive alt text on product media - **`agentic-description-enrichment`** — fact-rich descriptions for AI quoting - **`agentic-metafields-setup`** — define + populate agentic metafields for filtering - **`agentic-product-taxonomy`** — Shopify Standard Product Taxonomy categories - **`agentic-crawler-access`** — allow GPTBot/ClaudeBot/PerplexityBot… in `robots.txt.liquid` - **`agentic-llms-txt`** — publish a curated `/llms.txt` for AI assistants - **`agentic-organization-schema`** — Organization JSON-LD (sameAs, contactPoint) into the theme - **`agentic-policy-readability`** — machine-readable shipping/returns policies Plus a weekly **`agentic-readiness-monitor`** routine that re-audits and alerts on regressions. ### Stats **116 skills across 11 categories** (was 106/10), **21 routines** (was 20). All GraphQL validated against the live Admin 2025-01 schema; `pnpm validate:index` passes (116 skills, 64 operations). ### Notes Theme-editing and policy skills default to `dry_run`/`audit` mode, write inside managed `# BEGIN/END` blocks, and recommend duplicating the theme first.
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决电商运营中跨仓库库存调拨的高频刚需场景
- 支持批量 SKU 转移和 dry_run 预览,显著提升操作安全性与效率
Highlights
- 触发描述精准完整,明确区分源位置与目标位置
- description 位于 frontmatter 顶层,位置规范
Highlights
- 四步工作流清晰划分,包含验证与执行阶段
- 提供完整的 GraphQL 操作示例和 Session Tracking 规范
Highlights
- 覆盖主要异常场景(限流/SKU不存在/负库存)并提供恢复策略
- dry_run 模式有效防止误操作,不可逆操作有确认机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Authenticated Shopify CLI session: `shopify store auth --store <domain> --scopes read_products,write_inventory,read_inventory` API scopes: `read_products`, `read_inventory`, `write_inventory` Both source and destination must be active Shopify locations
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.