
supply-chain-optimization-shopify
โ 319by nexscope-ai ยท part of nexscope-ai/ecommerce-skills
Supply Chain Bottleneck Analyzer for Shopify/DTC stores. Diagnose cash flow, inventory, shipping costs, and customer acquisition efficiency. Includes CAC/LTV analysis, 3PL cost optimization, and ad spend benchmarks. No API key required for basic analysis.
This is the playbook your agent receives when the skill activates โ you don't need to read it to use the skill, but it's here to audit before installing.
Supply Chain Optimization โ Shopify/DTC ๐ฆ
Supply chain bottleneck analyzer for Shopify and Direct-to-Consumer stores. Diagnose cash flow, inventory, shipping, and customer acquisition costs.
Platform Characteristics
| Feature | Shopify/DTC | vs Amazon |
|---|---|---|
| Fulfillment | Self-select (ShipBob/self) | FBA |
| Platform fee | None | 8-15% |
| Payment fee | 2.9% + $0.30 | Included in fee |
| Payment cycle | 2-3 days | 14 days |
| Traffic cost | High (self-built) | Low (platform) |
| Data ownership | Full | Limited |
Cost Structure (Shopify/DTC)
Selling Price $XX
โโโ Product Cost
โโโ Inbound Shipping (to warehouse)
โโโ 3PL Storage Fee (e.g., ShipBob)
โโโ 3PL Fulfillment Fee
โโโ Payment Processing (2.9% + $0.30)
โโโ Shopify Subscription (allocated)
โโโ Advertising (Meta/Google/TikTok) โ Key Cost
โโโ Net ProfitDTC-Specific Costs
Advertising Costs (Critical!)
Meta Ads (Facebook/Instagram): CPM $10-30
Google Ads: CPC $1-5
TikTok Ads: CPM $5-15
Influencer Marketing: Variable
DTC ad spend typically 20-40% of revenue3PL Logistics Costs
Common 3PL Options:
โโโ ShipBob
โโโ Deliverr
โโโ ShipMonk
โโโ Red Stag
Fee Structure:
โโโ Receiving: $2-5/case
โโโ Storage: $0.5-1/cubic ft/month
โโโ Pick & Pack: $2-4/order
โโโ Shipping: By weight/zonePayment Processing Fees
Shopify Payments: 2.9% + $0.30
PayPal: 2.9% + $0.30
Stripe: 2.9% + $0.30
High AOV: Ratio acceptable
Low AOV: Erodes profitInput Data
**Sales (Shopify-specific)**
โข Average Selling Price: $___
โข Average Order Value (AOV): $___
โข Payment Fee: 2.9% + $0.30
**Logistics (3PL)**
โข 3PL Fulfillment Fee: $___/order
โข 3PL Storage Fee: $___/unit/month
โข Receiving Fee: $___/case
**Marketing (Critical!)**
โข Ad Spend Ratio: ___%
โข Customer Acquisition Cost (CAC): $___
โข Customer Lifetime Value (LTV): $___
โข Repeat Purchase Rate: ___%API Integration
Shopify Admin API
export SHOPIFY_STORE_URL="xxx.myshopify.com"
export SHOPIFY_ACCESS_TOKEN="xxx"Available Data
| Data | API |
|---|---|
| Orders | Orders API |
| Products | Products API |
| Inventory | Inventory API |
| Customers | Customers API |
3PL API (e.g., ShipBob)
export SHIPBOB_API_TOKEN="xxx"Bottleneck Diagnosis Focus
DTC-specific bottlenecks:
- High CAC โ Low ad efficiency, acquisition cost eating profit
- LTV/CAC < 3 โ Customer value insufficient to support CAC
- High 3PL costs โ Poor logistics choice
- Low repeat rate โ Reliant on new customers, high cost
- Low gross margin โ Cannot support ad spend
DTC Health Formula
Net Profit = Price - Product Cost - Shipping - Payment Fee - Ad Spend - Ops Cost
DTC Golden Ratios:
โโโ Gross Margin > 60%
โโโ Ad Spend < 30%
โโโ Shipping < 15%
โโโ Net Margin > 15%
โโโ LTV/CAC > 3vs Amazon Comparison
| Item | Amazon | Shopify/DTC |
|---|---|---|
| Platform fee | 8-15% | 0% |
| Payment fee | Included | 2.9% + $0.30 |
| Payment cycle | 14 days | 2-3 days |
| Ad spend | 10-20% | 20-40% |
| Traffic | Platform | Self-built |
| Margin need | 40%+ | 60%+ |
| Data | Limited | Full ownership |
Part of Nexscope AI โ AI tools for e-commerce sellers.
npx skills add https://github.com/nexscope-ai/ecommerce-skills --skill supply-chain-optimization-shopifyRun this in your project โ your agent picks the skill up automatically.
Installation
npx skills add nexscope-ai/eCommerce-Skills --skill supply-chain-optimization-shopify -gBenchmark Configuration
BENCHMARKS = {
"shopify": {
"gross_margin": {
"healthy": 0.60, # DTC needs high margin for ads
"warning": 0.50,
"danger": 0.40
},
"shipping_ratio": {
"healthy": 0.08, # 3PL fees
"warning": 0.12,
"danger": 0.18
},
"inventory_days": {
"healthy": 45,
"warning": 60,
"danger": 90
},
"cash_cycle": {
"healthy": 45, # Fast payment
"warning": 70,
"danger": 100
},
"net_margin": {
"healthy": 0.20,
"warning": 0.12,
"danger": 0.05
},
# DTC-specific metrics
"cac": { # Customer Acquisition Cost
"healthy": 0.25, # CAC < 25% of price
"warning": 0.35,
"danger": 0.50
},
"ltv_cac_ratio": { # LTV/CAC
"healthy": 3.0, # LTV > 3x CAC
"warning": 2.0,
"danger": 1.0
},
"ad_spend_ratio": { # Ad spend ratio
"healthy": 0.25,
"warning": 0.35,
"danger": 0.45
}
}
}No common issues documented yet. If you hit a problem, the repository's GitHub Issues page is the best place to look.
Licensed under MITโ you can use, modify, and redistribute it under that license's terms.
View the full license file on GitHub โ