Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
40rty-ai avatar

Shopify Admin Customer Win Back

  • 7 installs
  • 173 repo stars
  • Updated June 26, 2026
  • 40rty-ai/shopify-admin-skills

shopify-admin-customer-win-back is a Claude Code skill that identifies Shopify customers with no order in the last N days, exports a re-engagement list, and tags them in Shopify.

About

This Claude Code skill finds Shopify customers who placed at least one order but have not purchased again within a set window, then tags them for re-engagement and exports the list to CSV. A marketer runs it to build a win-back segment; sending the actual emails requires an external tool. It matters because it produces a clean lapsed-customer cohort ready for a re-engagement campaign.

  • Identifies lapsed customers who have not ordered in a configurable window
  • Tags the re-engagement segment in Shopify via the Admin API
  • Exports a win-back list CSV for campaign targeting

Shopify Admin Customer Win Back by the numbers

  • 7 all-time installs (skills.sh)
  • Ranked #702 of 853 Sales & Marketing skills by installs in the Skillselion catalog
  • Data as of Aug 1, 2026 (Skillselion catalog sync)
At a glance

shopify-admin-customer-win-back capabilities & compatibility

Free skill; requires an authenticated Shopify store session with write_customers scope

Capabilities
customer segmentation · win back tagging · lapsed customer detection
Use cases
marketing · data analysis
Runs
Runs locally
Pricing
Free
From the docs

What shopify-admin-customer-win-back says it does

Segments lapsed customers — those who placed at least one order but have not purchased again within a configurable window — and tags them for re-engagement.
SKILL.md
This skill handles the Shopify-native data layer; sending re-engagement emails requires an external tool.
SKILL.md
npx skills add https://github.com/40rty-ai/shopify-admin-skills --skill shopify-admin-customer-win-back

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs7
repo stars173
Last updatedJune 26, 2026
Repository40rty-ai/shopify-admin-skills

What it does

Find and tag lapsed Shopify customers so they can be targeted with a re-engagement campaign.

Who is it for?

Building a lapsed-customer segment and tagging it for a re-engagement campaign

Skip if: Sending the re-engagement emails, which requires an external tool

When should I use this skill?

You want to tag Shopify customers who have gone inactive for a win-back campaign

What you get

A dated win-back tag and CSV of the lapsed cohort ready for targeting.

  • win-back tag on lapsed customers
  • winback_<date>.csv export

By the numbers

  • inactive_days defaults to 90
  • processes up to 500 customers per run by default
  • 2 GraphQL operations (customers query, tagsAdd mutation)

Files

SKILL.mdMarkdownGitHub ↗

Purpose

Segments lapsed customers — those who placed at least one order but have not purchased again within a configurable window — and tags them for re-engagement. This skill handles the Shopify-native data layer; sending re-engagement emails requires an external tool.

Prerequisites

  • Authenticated Shopify CLI session: shopify auth login --store <domain>
  • API scopes: read_customers, write_customers

Parameters

ParameterTypeRequiredDefaultDescription
storestringyesStore domain
formatstringnohumanhuman or json
dry_runboolnofalsePreview without tagging
inactive_daysintegerno90Days since last order to qualify as lapsed
min_ordersintegerno1Minimum lifetime order count to include
tagstringnowin-backTag applied to lapsed customers
max_customersintegerno500Maximum customers to process per run

Workflow Steps

1. OPERATION: customers — query Inputs: filter last_order_date:<(NOW - inactive_days days), orders_count:>=(min_orders), first: 250, pagination Expected output: List of customer objects with id, defaultEmailAddress { emailAddress }, firstName, lastName, ordersCount, lastOrder.processedAt; paginate until hasNextPage: false

2. OPERATION: tagsAdd — mutation Inputs: Customer id, tag string from tag parameter Expected output: Confirmation per customer; collect userErrors

GraphQL Operations

# customers:query — validated against api_version 2025-04
query LapsedCustomers($first: Int!, $after: String, $query: String) {
  customers(first: $first, after: $after, query: $query) {
    edges {
      node {
        id
        defaultEmailAddress {
          emailAddress
        }
        firstName
        lastName
        ordersCount
        lastOrder {
          processedAt
          totalPriceSet {
            shopMoney {
              amount
              currencyCode
            }
          }
        }
      }
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
# tagsAdd:mutation — validated against api_version 2025-01
mutation TagsAdd($id: ID!, $tags: [String!]!) {
  tagsAdd(id: $id, tags: $tags) {
    node {
      id
    }
    userErrors {
      field
      message
    }
  }
}

Session Tracking

Claude MUST emit the following output at each stage. This is mandatory.

On start, emit:

╔══════════════════════════════════════════════╗
║  SKILL: Customer Win-Back                    ║
║  Store: <store domain>                       ║
║  Started: <YYYY-MM-DD HH:MM UTC>             ║
╚══════════════════════════════════════════════╝

After each step, emit:

[N/TOTAL] <QUERY|MUTATION>  <OperationName>
          → Params: <brief summary>
          → Result: <count or outcome>

If dry_run: true, prefix mutation steps with [DRY RUN] and do not execute.

On completion, for format: human:

══════════════════════════════════════════════
OUTCOME SUMMARY
  Lapsed customers found:  <n>
  Customers tagged:        <n>
  Errors:                  <n>
  Output:                  winback_<date>.csv
══════════════════════════════════════════════

For format: json, emit the standard JSON schema with outcome keys: lapsed_found, customers_tagged, errors, output_file.

Output Format

CSV winback_<YYYY-MM-DD>.csv with columns: customer_id, email, first_name, last_name, orders_count, last_order_date, tag_applied

Error Handling

ErrorCauseRecovery
THROTTLEDRate limitWait 2s, retry up to 3 times
userErrors on tagsAddCustomer not found or invalid IDLog, skip, continue

Best Practices

  • Use a dated tag (e.g., win-back-2026-04) so you can track which cohort was targeted each month and avoid re-tagging customers who already received a win-back campaign.
  • Set min_orders: 2 to focus on customers who had a genuine purchase relationship, not one-time buyers who may never have intended to return.
  • Run with dry_run: true first to validate the lapsed customer count before tagging — the count informs the scale of your re-engagement campaign.

Related skills

FAQ

How does it decide who is lapsed?

It flags customers with at least min_orders lifetime orders whose last order is older than inactive_days, which defaults to 90 days.

Does it send the emails?

No. It handles the Shopify data layer and tagging; sending re-engagement emails requires an external tool.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.