shopify-admin-bundle-availability-check
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-bundle-availability-check" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-0b02eb4b8bcd82762ce9b32eca325f19e58cafabb0cbee13fb429078e73ff080. 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
Read-only: Verify for native bundles and metafield-defined bundles that each component variant has sufficient inventory to meet the bundle's actual availability.
Introduction source: third_party · 40RTY-ai · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Read-only: for native bundle products and metafield-defined bundles, verifies every component variant has sufficient stock to fulfill the bundle's effective availability.
- Inputs and outputs
- CSV file `bundle_availability_<YYYY-MM-DD>.csv` with columns: `bundle_product_id`, `bundle_title`, `bundle_variant_sku`, `max_buildable_units`, `bottleneck_component_sku`, `bottleneck_component_title`, `bottleneck_required_qty`, `bottleneck_on_hand`, `status`
- Software, accounts and paid services
- Authenticated Shopify CLI session: `shopify store auth --store <domain> --scopes read_products,read_inventory` API scopes: `read_products`, `read_inventory`
- Testing
- Not tested
Browse files
Frontmatter
name: shopify-admin-bundle-availability-check
role: fulfillment-ops
description: "Read-only: for native bundle products and metafield-defined bundles, verifies every component variant has sufficient stock to fulfill the bundle's effective availability."
toolkit: shopify-admin, shopify-admin-execution
api_version: "2025-01"
graphql_operations:
- products:query
- productVariants:query
- inventoryItems:query
status: stable
compatibility: Claude Code, Cursor, Codex, Gemini CLIPurpose
Walks every product flagged as a bundle (either via Shopify's native requiresComponents mechanic or a bundle.components metafield convention), then verifies each component variant has sufficient inventory to back the bundle's quantity ratio. Surfaces bundles that are listed as in-stock on the storefront but cannot actually be fulfilled because one component has run out. Read-only — no mutations.
Prerequisites
- Authenticated Shopify CLI session:
shopify store auth --store <domain> --scopes read_products,read_inventory - API scopes:
read_products,read_inventory
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| store | string | yes | — | Store domain (e.g., mystore.myshopify.com) |
| metafield_namespace | string | no | bundle | Metafield namespace where bundle component definitions live |
| metafield_key | string | no | components | Metafield key that holds the JSON list of {variantId, quantity} |
| safety_stock | integer | no | 0 | Treat component as out-of-stock if on-hand minus this buffer is below required |
| only_listed | bool | no | true | Only check bundle products with status ACTIVE |
| format | string | no | human | Output format: human or json |
Safety
ℹ️ Read-only skill — no mutations are executed. Safe to run at any time. The skill reads inventory and metafields only; it never adjusts component quantities or bundle availability.
Workflow Steps
-
OPERATION:
products— query Inputs:first: 250,query: "metafield:<namespace>.<key>:* OR product_type:bundle", selectrequiresSellingPlan,status,metafield(namespace, key),variants, pagination cursor Expected output: Bundle products and their parent variants; paginate untilhasNextPage: false -
For each bundle, parse component list. Native bundles use
productVariant.requiresComponentsandproductVariant.productVariantComponents. Metafield bundles parse JSON value into[{variantId, quantity}]. -
OPERATION:
productVariants— query Inputs: Batched IDs of all unique component variants, selectinventoryQuantity,inventoryItem { id },product { title }Expected output: On-hand quantity per component -
OPERATION:
inventoryItems— query Inputs: Batched component inventory item IDs, selecttracked,inventoryLevels(first: 25) { quantities }Expected output: Per-location quantity for each component -
For each bundle, compute
max_buildable_units = floor(min over components of (component_on_hand - safety_stock) / required_qty). Flag bundles wheremax_buildable_units == 0(broken bundle) or< min_listed_inventory_threshold.
GraphQL Operations
# products:query — validated against api_version 2025-01
query BundleProducts($query: String!, $after: String, $namespace: String!, $key: String!) {
products(first: 250, after: $after, query: $query) {
edges {
node {
id
title
status
productType
metafield(namespace: $namespace, key: $key) {
id
value
type
}
variants(first: 100) {
edges {
node {
id
title
sku
inventoryQuantity
requiresComponents
productVariantComponents(first: 50) {
edges {
node {
quantity
productVariant {
id
sku
inventoryQuantity
product {
id
title
}
}
}
}
}
}
}
}
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
# productVariants:query — validated against api_version 2025-01
query ComponentVariantStock($ids: [ID!]!) {
nodes(ids: $ids) {
... on ProductVariant {
id
sku
inventoryQuantity
product {
id
title
}
inventoryItem {
id
tracked
}
}
}
}
# inventoryItems:query — validated against api_version 2025-01
query ComponentInventoryLevels($ids: [ID!]!) {
nodes(ids: $ids) {
... on InventoryItem {
id
tracked
inventoryLevels(first: 25) {
edges {
node {
location {
id
name
}
quantities(names: ["available", "on_hand", "committed"]) {
name
quantity
}
}
}
}
}
}
}
Session Tracking
Claude MUST emit the following output at each stage. This is mandatory.
On start, emit:
╔══════════════════════════════════════════════╗
║ SKILL: Bundle Availability Check ║
║ 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):
══════════════════════════════════════════════
BUNDLE AVAILABILITY CHECK
Bundles inspected: <n>
Fully buildable: <n>
Constrained (low): <n>
Broken (cannot build): <n>
Top broken bundles:
"<bundle>" Bottleneck: "<component>" Need: <n> Have: <n>
Output: bundle_availability_<date>.csv
══════════════════════════════════════════════
For format: json, emit:
{
"skill": "bundle-availability-check",
"store": "<domain>",
"bundles_inspected": 0,
"fully_buildable": 0,
"constrained": 0,
"broken": 0,
"issues": [],
"output_file": "bundle_availability_<date>.csv"
}
Output Format
CSV file bundle_availability_<YYYY-MM-DD>.csv with columns:
bundle_product_id, bundle_title, bundle_variant_sku, max_buildable_units, bottleneck_component_sku, bottleneck_component_title, bottleneck_required_qty, bottleneck_on_hand, status
Error Handling
| Error | Cause | Recovery |
|---|---|---|
THROTTLED |
API rate limit exceeded | Wait 2 seconds, retry up to 3 times |
| Metafield value is invalid JSON | Malformed configuration | Skip bundle, log warning, include in error count |
| Component variant ID does not resolve | Component product was deleted | Mark bundle as BROKEN_REFERENCE, include in output |
Component is tracked: false |
Untracked inventory | Treat component as infinitely available, note in output |
Best Practices
- Run daily for stores with many bundles; surface broken bundles before customers can buy something you cannot ship.
- Use
safety_stockto keep a buffer for non-bundle sales of the same component — bundles share inventory with standalone variants. - Pair with
inventory-adjustmentorlow-inventory-restockto action a broken bundle into a reorder. - For native bundles,
requiresComponents: trueis authoritative — prefer it over metafield conventions when both exist. - A bundle with
max_buildable_units = 0should also be temporarily unpublished until the bottleneck component is restocked; consider chaining this skill withproduct-lifecycle-manager.
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
- 解决电商运营中的核心痛点:捆绑产品库存验证
- 防止超卖和无法履约的情况发生
- 适用于高频刚需场景
Highlights
- 触发词精准完整,覆盖多种变体
- 边界清晰,不易误触或漏触
Highlights
- Phase/步骤清晰,有明确的出口条件
- 包含端到端示例和完整的frontmatter
Highlights
- 工具来源明确,参数正确
- 覆盖主要异常情况
- 不可逆操作有确认机制
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,read_inventory` API scopes: `read_products`, `read_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.