shopify-admin-collection-reorganization

Reorders manual Shopify collection products by total inventory levels.

174|18|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/40RTY-ai/shopify-admin-skills --skill shopify-admin-collection-reorganization
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shopify-admin-collection-reorganization
Source: https://github.com/40RTY-ai/shopify-admin-skills/tree/main/skills/merchandising/shopify-admin-collection-reorganization
Command: npx skills add https://github.com/40RTY-ai/shopify-admin-skills --skill shopify-admin-collection-reorganization

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually sorting products inside a manual Shopify collection is slow and error-prone, especially when inventory changes often. This Skill automatically reorganizes collection product order so in-stock items surface first and out-of-stock items sink to the bottom.

Core Features & Use Cases

  • Inventory-based reordering: Moves every product in a manual collection based on totalInventory, optionally sorting descending (best stock first) or ascending (worst stock first).
  • Admin-free execution: Avoids navigating the Shopify admin UI by querying the collection and applying a single collectionReorderProducts mutation with complete move positions.
  • Guardrails and safety checks: Validates that the collection’s sortOrder is MANUAL, supports dry_run to preview changes, and aborts with a clear message for non-manual (smart) collections.

Quick Start

Run shopify-admin-collection-reorganization with your collection_id, set dry_run to true, choose inventory_desc, and review the computed order before executing the reorder.

Frequently Asked Questions about shopify-admin-collection-reorganization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically sort Shopify collection products by inventory levels?

You can automatically reorder Shopify manual collection products by total inventory levels, bringing in-stock items to the top and out-of-stock items to the bottom using a single GraphQL mutation.

Can I use this to reorder products in a smart Shopify collection?

No, this inventory sorting process only works on manual collections. It validates that the collection's sortOrder is MANUAL and will abort with a clear message if applied to non-manual smart collections.

How do I preview inventory sorting changes before applying them to my Shopify collection?

You can preview inventory-based reordering by enabling a dry run. This computes the complete move positions and displays the proposed product order without submitting the actual collectionReorderProducts mutation.

What is the best way to bulk adjust merchandising display order in Shopify without the admin UI?

The best way to bulk adjust display order without the Shopify admin UI is querying all product nodes with totalInventory data, computing complete move positions, and submitting a single collectionReorderProducts mutation.

Does Shopify collection reordering support sorting out-of-stock items to the top?

Yes, Shopify collection reordering supports reversible sorting. You can use inventory_asc to move worst stock items to the top, or inventory_desc to surface best stock items first.

How does pagination work when reordering large manual collections in Shopify?

The reordering process supports full-collection pagination to read all product nodes within large manual collections. It computes the complete move positions across all pages before submitting the final mutation.