shopify-admin-inventory-adjustment
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-adjustment" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-3bfdeeff7d8e3bb30bd288a3b6550422db6965f1349afbd6830a6cf23f371841. 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
Apply inventory quantity adjustments for a specific product variant at a specific location. Used to increase, decrease, or set inventory counts for a given location and variant after cycle counts, third-party logistics return batches, or reconciliation corrections.
Introduction source: third_party · 40RTY-ai · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Apply inventory quantity adjustments to specific variants at specific locations — after a cycle count, 3PL return batch, or sync discrepancy correction.
- Inputs and outputs
- CSV file `inventory-adjustments-<YYYY-MM-DD>.csv` with columns: `sku`, `product_title`, `location_name`, `quantity_before`, `delta`, `quantity_after`, `reason`.
- Software, accounts and paid services
- `shopify auth login --store <domain>` API scopes: `read_products`, `write_inventory`
- Testing
- Not tested
Browse files
Frontmatter
name: shopify-admin-inventory-adjustment
role: merchandising
description: "Apply inventory quantity adjustments to specific variants at specific locations — after a cycle count, 3PL return batch, or sync discrepancy correction."
toolkit: shopify-admin, shopify-admin-execution
api_version: "2025-01"
graphql_operations:
- productVariants:query
- inventoryAdjustQuantities:mutation
status: stable
compatibility: Claude Code, Cursor, Codex, Gemini CLIPurpose
Applies inventory quantity corrections to specific variants at specific locations — the programmatic equivalent of manually editing inventory in the Shopify admin. Use after a cycle count reveals discrepancies, after a 3PL return batch posts late, or after the multi-location-inventory-audit skill identifies Available/Committed drift. Replaces manual row-by-row inventory editing in the Shopify admin.
Prerequisites
shopify auth login --store <domain>- API scopes:
read_products,write_inventory
Parameters
| 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 |
| adjustments | array | yes | — | Array of {sku, location_id, delta} objects. delta is the signed quantity change (e.g., +5 to add 5 units, -3 to remove 3) |
| reason | string | no | correction |
Adjustment reason logged to audit trail: correction, cycle_count, damaged, received, reservation_created, reservation_deleted, shrinkage |
| reference_document_uri | string | no | — | URI to link the adjustment to a PO, return, or cycle count document |
Safety
⚠️ Step 2 executes
inventoryAdjustQuantitieswhich immediately changes live inventory quantities. Incorrect adjustments can cause overselling (if you reduce too far) or inflated stock counts (if you add incorrectly). Run withdry_run: trueto see the before/after quantities per SKU before committing. Thereasonfield is logged permanently in Shopify's inventory activity history.
Workflow Steps
-
OPERATION:
productVariants— query Inputs: For each{sku}inadjustments: look up the variant by SKU to get itsinventoryItem.id; also fetch currentinventoryQuantityfor before/after comparison Expected output: Map of{sku → inventoryItemId, currentQuantity}for all adjustment targets; abort if any SKU is not found -
OPERATION:
inventoryAdjustQuantities— mutation Inputs:changesarray of{inventoryItemId, locationId, delta, ledgerDocumentUri}using the reason and reference_document_uri parameters Expected output:inventoryAdjustmentGroup.changeswithquantityAfterChangeper item;userErrors
GraphQL Operations
# productVariants:query — validated against api_version 2025-01
query VariantBySku($first: Int!, $query: String) {
productVariants(first: $first, query: $query) {
edges {
node {
id
sku
inventoryQuantity
inventoryItem {
id
tracked
}
product {
title
}
}
}
}
}
# inventoryAdjustQuantities:mutation — validated against api_version 2025-01
mutation InventoryAdjustQuantities($input: InventoryAdjustQuantitiesInput!) {
inventoryAdjustQuantities(input: $input) {
inventoryAdjustmentGroup {
id
reason
changes {
name
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-adjustment ║
║ 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, e.g., "143 records returned">
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 adjusted: <value>
Total units added: <value>
Total units removed: <value>
Errors: <count, 0 if none>
Output: <filename or "none">
══════════════════════════════════════════════
For format: json, emit a JSON object with this schema:
{
"skill": "inventory-adjustment",
"store": "<domain>",
"started_at": "<ISO8601>",
"completed_at": "<ISO8601>",
"dry_run": false,
"steps": [
{
"step": 1,
"operation": "<OperationName>",
"type": "query|mutation",
"params_summary": "<string>",
"result_summary": "<string>",
"skipped": false
}
],
"outcome": {
"skus_adjusted": 0,
"total_units_added": 0,
"total_units_removed": 0,
"errors": 0,
"output_file": "<filename|null>"
}
}
Output Format
CSV file inventory-adjustments-<YYYY-MM-DD>.csv with columns: sku, product_title, location_name, quantity_before, delta, quantity_after, reason.
Error Handling
| Error | Cause | Recovery |
|---|---|---|
| SKU not found | SKU doesn't exist in store | Verify SKU spelling; use low-inventory-restock to browse valid SKUs |
inventoryItem.tracked: false |
Variant has inventory tracking disabled | Enable tracking in Shopify admin before adjusting |
userErrors from mutation |
Invalid delta, invalid location, or permission issue | Check write_inventory scope and verify location GID |
| Delta would push quantity below 0 | Adjustment removes more than available | Confirm correct delta value; use negative delta only for known stock removals |
Best Practices
- Always run
dry_run: truefirst — the before/after CSV preview lets you confirm every change before it hits live inventory. - Use
reason: cycle_countwith areference_document_uripointing to your count sheet — this creates a permanent audit trail in Shopify's inventory activity log. - Batch all corrections from a single count session into one command rather than applying one-at-a-time — the audit trail groups them under a single
inventoryAdjustmentGroup. - After adjusting, run
multi-location-inventory-auditagain to confirm all discrepancies are resolved. - For 3PL return batches, use
reason: receivedand link the return batch document URI — this makes reconciliation with your 3PL invoice straightforward.
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
- 针对电商运营中的高频刚需场景(周期盘点、3PL退货、同步差异修正)提供自动化库存调整能力
- 显著提升日常运营效率,替代手动逐行编辑Shopify后台的繁琐操作
Highlights
- 触发词精准覆盖多种变体(cycle count, 3PL return batch, sync discrepancy correction)
- 边界清晰,不易与其他Skill重叠
Highlights
- Phase/步骤清晰划分(查询→变更),有明确的出口条件
- 包含完整的GraphQL操作示例和Session Tracking规范
- frontmatter完整,单文件结构良好
Highlights
- 工具来源明确(shopify-admin toolkit),参数定义完整
- 覆盖主要异常场景并提供恢复建议
- 不可逆操作有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.
`shopify auth login --store <domain>` API scopes: `read_products`, `write_inventory`
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.