From shopify-admin-skills
Mines Shopify order history to find product pairs and triplets frequently purchased together, generating cross-sell and bundle recommendations using co-occurrence frequency, lift scores, and confidence metrics.
How this skill is triggered — by the user, by Claude, or both
Slash command
/shopify-admin-skills:shopify-admin-frequently-bought-togetherThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Analyzes order history to discover which products are frequently purchased together. Calculates co-occurrence frequency, lift scores, and confidence metrics to generate data-driven cross-sell recommendations and bundle candidates. Read-only — no mutations.
Analyzes order history to discover which products are frequently purchased together. Calculates co-occurrence frequency, lift scores, and confidence metrics to generate data-driven cross-sell recommendations and bundle candidates. Read-only — no mutations.
shopify store auth --store <domain> --scopes read_orders,read_productsread_orders, read_products| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| store | string | yes | — | Store domain |
| days_back | integer | no | 180 | Order lookback window |
| min_support | integer | no | 3 | Minimum co-occurrence count to report a pair |
| max_results | integer | no | 25 | Maximum product pairs to return |
| group_size | integer | no | 2 | Pair size: 2 for pairs, 3 for triplets |
| collection_filter | string | no | — | Limit to products in a specific collection |
| format | string | no | human | Output format: human or json |
ℹ️ Read-only skill — no mutations are executed. Safe to run at any time.
OPERATION: orders — query
Inputs: query: "created_at:>='<NOW - days_back days>'", first: 250, select lineItems { product { id, title } }, pagination cursor
Expected output: All orders with product-level line items
For each order with 2+ distinct products, generate all product pair combinations
Build co-occurrence matrix:
OPERATION: products — query (enrichment)
Inputs: Product IDs from top pairs for titles, images, prices
Expected output: Product details for display
Rank pairs by lift score (descending), filter by min_support
# orders:query — validated against api_version 2025-01
query OrderLineItems($query: String!, $after: String) {
orders(first: 250, after: $after, query: $query) {
edges {
node {
id
lineItems(first: 50) {
edges {
node {
product { id title }
quantity
}
}
}
}
}
pageInfo { hasNextPage endCursor }
}
}
# products:query — validated against api_version 2025-01
query ProductDetails($ids: [ID!]!) {
nodes(ids: $ids) {
... on Product {
id
title
vendor
productType
priceRangeV2 {
minVariantPrice { amount currencyCode }
maxVariantPrice { amount currencyCode }
}
totalInventory
status
}
}
}
Claude MUST emit the following output at each stage. This is mandatory.
On start, emit:
╔══════════════════════════════════════════════╗
║ SKILL: Frequently Bought Together ║
║ 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):
══════════════════════════════════════════════
FREQUENTLY BOUGHT TOGETHER (<days_back> days, <n> orders analyzed)
Unique product pairs found: <n>
Pairs meeting min_support: <n>
TOP PAIRS BY LIFT:
#1 "<product A>" + "<product B>"
Support: <n> orders Lift: <n>x Confidence: <pct>%
#2 "<product A>" + "<product B>"
Support: <n> orders Lift: <n>x Confidence: <pct>%
BUNDLE CANDIDATES (high support + high lift):
"<product A>" + "<product B>" → Suggested bundle price: $<n>
Output: fbt_pairs_<date>.csv
══════════════════════════════════════════════
CSV file fbt_pairs_<YYYY-MM-DD>.csv with columns:
product_a_id, product_a_title, product_b_id, product_b_title, support, confidence_a_to_b, confidence_b_to_a, lift, combined_avg_price
| Error | Cause | Recovery |
|---|---|---|
THROTTLED | API rate limit exceeded | Wait 2 seconds, retry up to 3 times |
| Single-item orders only | Store with no multi-item orders | Report empty — suggest longer lookback window |
| Too many products | Combinatorial explosion | Limit to top 500 products by order count |
days_back: 180 or 365 for sufficient sample size.top-product-performance to ensure paired items are high-performing.npx claudepluginhub 40rty-ai/shopify-admin-skills --plugin shopify-admin-skillsMines Shopify order history to find frequently co-purchased product pairs, ranked by support, confidence, and lift for bundles and cross-sell recommendations.
Queries Wix orders via REST API for revenue calculation, trend analysis, and cohort analysis. Filters by date range, payment/fulfillment status, and value.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.