/shopify-admin-fulfillment-location-routing
Reassign fulfillment orders from one location to another for warehouse overflow or regional routing.
$ npx -y skills add 40rty-ai/shopify-admin-skills --skill shopify-admin-fulfillment-location-routing --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/shopify-admin-fulfillment-location-routing
Context preview
The summary Claude sees to decide when to auto-load this skill.
Reassign fulfillment orders from one location to another for warehouse overflow or regional routing.
SKILL.md
shopify-admin-fulfillment-location-routing.SKILL.mdname: shopify-admin-fulfillment-location-routing
role: fulfillment-ops
description: "Reassign fulfillment orders from one location to another for warehouse overflow or regional routing."
toolkit: shopify-admin, shopify-admin-execution
api_version: "2025-01"
graphql_operations:
- fulfillmentOrders:query
- fulfillmentOrderMove:mutation
status: stable
compatibility: Claude Code, Cursor, Codex, Gemini CLI
Purpose
Queries open fulfillment orders assigned to a source location and moves them to a destination location. Used when a warehouse is at capacity, a location is closing, or regional routing rules change. Replaces manual reassignment in Shopify Admin — this skill handles bulk location transfers for any number of open orders in a single workflow.
Prerequisites
- Authenticated Shopify CLI session: `shopify store auth --store <domain> --scopes read_orders,write_fulfillments`
- API scopes: `read_orders`, `write_fulfillments`
- Both source and destination locations must be active fulfillment locations in Shopify
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 orders FROM | | destination_location_id | string | yes | — | GID of the location to move orders TO | | order_filter | string | no | — | Optional order name filter (e.g., "#1001,#1002") | | dry_run | bool | no | true | Preview moves without executing mutations | | format | string | no | human | Output format: `human` or `json` |
Safety
> ⚠️ `fulfillmentOrderMove` reassigns fulfillment responsibility. This affects which warehouse picks and ships the order. Verify destination location has sufficient stock for all products before moving. Run with `dry_run: true` to confirm the order list and destination before committing.
Workflow Steps
1. **OPERATION:** `fulfillmentOrders` — query **Inputs:** `assignedLocationId: <source_location_id>`, `status: OPEN`, `first: 250`, pagination cursor **Expected output:** List of open fulfillment orders; paginate until `hasNextPage: false`
2. **OPERATION:** `fulfillmentOrderMove` — mutation **Inputs:** `id: <fulfillment_order_id>`, `newLocationId: <destination_location_id>` **Expected output:** `movedFulfillmentOrder { id, assignedLocation { name } }`, `userErrors`
GraphQL Operations
# fulfillmentOrders:query — validated against api_version 2025-01
query FulfillmentOrdersByLocation($locationId: ID!, $after: String) {
fulfillmentOrders(
assignedLocationId: $locationId
first: 250
after: $after
query: "status:open"
) {
edges {
node {
id
status
order {
id
name
}
assignedLocation {
location {
id
name
}
}
}
}
pageInfo {
hasNextPage
endCursor
}
}
}# fulfillmentOrderMove:mutation — validated against api_version 2025-01
mutation FulfillmentOrderMove($id: ID!, $newLocationId: ID!) {
fulfillmentOrderMove(id: $id, newLocationId: $newLocationId) {
movedFulfillmentOrder {
id
assignedLocation {
location {
id
name
}
}
}
originalFulfillmentOrder {
id
status
}
remainingFulfillmentOrder {
id
status
}
userErrors {
field
message
}
}
}Session Tracking
**Claude MUST emit the following output at each stage. This is mandatory.**
**On start**, emit:
╔══════════════════════════════════════════════╗
║ SKILL: Fulfillment Location Routing ║
║ 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
Orders at source location: <n>
Orders moved: <n>
Errors: <n>
Output: routing_log_<date>.csv
══════════════════════════════════════════════
For `format: json`, emit:
{
"skill": "fulfillment-location-routing",
"store": "<domain>",
"started_at": "<ISO8601>",
"completed_at": "<ISO8601>",
"dry_run": true,
"outcome": {
"orders_at_source": 0,
"orders_moved": 0,
"errors": 0,
"output_file": "routing_log_<date>.csv"
}
}Output Format
CSV file `routing_log_<YYYY-MM-DD>.csv` with columns: `order_name`, `fulfillment_order_id`, `source_location`, `destination_location`, `status`
Error Handling
| Error | Cause | Recovery | |-------|-------|----------| | `THROTTLED` | API rate limit exceeded | Wait 2 seconds, retry up to 3 times | | `userErrors` on fulfillmentOrderMove | Order already fulfilled or location inactive | Log error, skip order, continue | | Destination location not stocked | Insufficient inventory at destination | Log warning per SKU, continue move | | No open orders at source | Source has no pending work | Exit with summary: 0 orders found |
Best Practices
- Always run with `dry_run: true` first — moving a fulfillment order does not move inventory; verify destination stock levels separately using the `multi-location-inventory-audit` skill.
- Use `order_filter` to move specific high-priority orders first rather than the entire queue.
- For location closures, run this skill before the location is deactivated in Shopify Admin.
Read more
name: shopify-admin-fulfillment-location-routing role: fulfillment-ops description: "Reassign fulfillment orders from one location to another for warehouse overflow or regional routing." toolkit: shopify-admin, shopify-admin-execution api_version: "2025-01" graphql_operations: - fulfillmentOrders:query - fulfillmentOrderMove:mutation status: stable compatibility: Claude Code, Cursor, Codex, Gemini CLI
Purpose
Queries open fulfillment orders assigned to a source location and moves them to a destination location. Used when a warehouse is at capacity, a location is closing, or regional routing rules change. Replaces manual reassignment in Shopify Admin — this skill handles bulk location transfers for any number of open orders in a single workflow.
Prerequisites
- Authenticated Shopify CLI session: `shopify store auth --store <domain> --scopes read_orders,write_fulfillments`
- API scopes: `read_orders`, `write_fulfillments`
- Both source and destination locations must be active fulfillment locations in Shopify
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 orders FROM | | destination_location_id | string | yes | — | GID of the location to move orders TO | | order_filter | string | no | — | Optional order name filter (e.g., "#1001,#1002") | | dry_run | bool | no | true | Preview moves without executing mutations | | format | string | no | human | Output format: `human` or `json` |
Safety
> ⚠️ `fulfillmentOrderMove` reassigns fulfillment responsibility. This affects which warehouse picks and ships the order. Verify destination location has sufficient stock for all products before moving. Run with `dry_run: true` to confirm the order list and destination before committing.
Workflow Steps
1. **OPERATION:** `fulfillmentOrders` — query **Inputs:** `assignedLocationId: <source_location_id>`, `status: OPEN`, `first: 250`, pagination cursor **Expected output:** List of open fulfillment orders; paginate until `hasNextPage: false`
2. **OPERATION:** `fulfillmentOrderMove` — mutation **Inputs:** `id: <fulfillment_order_id>`, `newLocationId: <destination_location_id>` **Expected output:** `movedFulfillmentOrder { id, assignedLocation { name } }`, `userErrors`
GraphQL Operations
# fulfillmentOrders:query — validated against api_version 2025-01
query FulfillmentOrdersByLocation($locationId: ID!, $after: String) {
fulfillmentOrders(
assignedLocationId: $locationId
first: 250
after: $after
query: "status:open"
) {
edges {
node {
id
status
order {
id
name
}
assignedLocation {
location {
id
name
}
}
}
}
pageInfo {
hasNextPage
endCursor
}
}
}# fulfillmentOrderMove:mutation — validated against api_version 2025-01
mutation FulfillmentOrderMove($id: ID!, $newLocationId: ID!) {
fulfillmentOrderMove(id: $id, newLocationId: $newLocationId) {
movedFulfillmentOrder {
id
assignedLocation {
location {
id
name
}
}
}
originalFulfillmentOrder {
id
status
}
remainingFulfillmentOrder {
id
status
}
userErrors {
field
message
}
}
}Session Tracking
**Claude MUST emit the following output at each stage. This is mandatory.**
**On start**, emit:
╔══════════════════════════════════════════════╗ ║ SKILL: Fulfillment Location Routing ║ ║ 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 Orders at source location: <n> Orders moved: <n> Errors: <n> Output: routing_log_<date>.csv ══════════════════════════════════════════════
For `format: json`, emit:
{
"skill": "fulfillment-location-routing",
"store": "<domain>",
"started_at": "<ISO8601>",
"completed_at": "<ISO8601>",
"dry_run": true,
"outcome": {
"orders_at_source": 0,
"orders_moved": 0,
"errors": 0,
"output_file": "routing_log_<date>.csv"
}
}Output Format
CSV file `routing_log_<YYYY-MM-DD>.csv` with columns: `order_name`, `fulfillment_order_id`, `source_location`, `destination_location`, `status`
Error Handling
| Error | Cause | Recovery | |-------|-------|----------| | `THROTTLED` | API rate limit exceeded | Wait 2 seconds, retry up to 3 times | | `userErrors` on fulfillmentOrderMove | Order already fulfilled or location inactive | Log error, skip order, continue | | Destination location not stocked | Insufficient inventory at destination | Log warning per SKU, continue move | | No open orders at source | Source has no pending work | Exit with summary: 0 orders found |
Best Practices
- Always run with `dry_run: true` first — moving a fulfillment order does not move inventory; verify destination stock levels separately using the `multi-location-inventory-audit` skill.
- Use `order_filter` to move specific high-priority orders first rather than the entire queue.
- For location closures, run this skill before the location is deactivated in Shopify Admin.
Community-maintained AI agent skills for operating Shopify stores — workflows, optimization, reports and more
Other skills on shopify-admin-skills.
- /shopify-admin-agentic-crawler-access
Edit 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.
Open skill - /shopify-admin-agentic-description-enrichment
Rewrite 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.
Open skill - /shopify-admin-agentic-image-alt-text
Generate 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.
Open skill - /shopify-admin-agentic-llms-txt
Generate 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.
Open skill - /shopify-admin-agentic-metafields-setup
Define and populate agentic-commerce metafields (material, attributes, key features, specs, sizing) so AI agents can filter and match products to specific shopper requirements.
Open skill - /shopify-admin-agentic-organization-schema
Inject an Organization JSON-LD block (name, logo, sameAs social links, contactPoint) into the theme so AI agents can verify the store is a real, trusted brand and link it to its public identity.
Open skill

